(print_gdb_version): Don't print final newline.
[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"
c16158bc 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 PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI LN_S YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG READLINE READLINE_DEPS READLINE_CFLAGS HAVE_LIBEXPAT LIBEXPAT LTLIBEXPAT ALLOCA CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_MAJOR_VERSION TCL_MINOR_VERSION TCL_CC TCL_DEFS TCL_SHLIB_CFLAGS TCL_SHLIB_LD TCL_SHLIB_LD_LIBS TCL_SHLIB_SUFFIX TCL_DL_LIBS TCL_LD_FLAGS TCL_LD_SEARCH_FLAGS TCL_CC_SEARCH_FLAGS TCL_COMPAT_OBJS TCL_RANLIB TCL_BUILD_LIB_SPEC TCL_LIB_SPEC TCL_LIB_VERSIONS_OK TK_VERSION TK_DEFS TK_BUILD_INCLUDES TK_XINCLUDES TK_XLIBSW TK_BUILD_LIB_SPEC TK_LIB_SPEC TCLHDIR TKHDIR ITCLHDIR ITKHDIR ITCL_VERSION ITCL_DEFS ITCL_BUILD_INCLUDES ITCL_BUILD_LIB_SPEC ITCL_LIB_SPEC ITK_VERSION ITK_DEFS ITK_BUILD_INCLUDES ITK_BUILD_LIB_SPEC ITK_LIB_SPEC X_CFLAGS X_LDFLAGS X_LIBS TCL_DEPS TK_DEPS ITCLLIB ITCL_DEPS ITKLIB ITK_DEPS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR SIM SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags nm_h LIBICONV LIBOBJS LTLIBOBJS gl_LIBOBJS gl_LTLIBOBJS gltests_LIBOBJS gltests_LTLIBOBJS'
a4ce5b0d 318ac_subst_files='host_makefile_frag'
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
c16158bc
JM
885 --with-pkgversion=PKG Use PKG in the version string in place of "GDB"
886 --with-bugurl=URL Direct users to URL to report a bug
6a30b0a5 887 --with-system-readline use installed readline library
5c39566f 888 --with-expat include expat support (auto/yes/no)
3841debe
DJ
889 --with-gnu-ld assume the C compiler uses GNU ld default=no
890 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
891 --without-libexpat-prefix don't search for libexpat in includedir and libdir
bec39cab
AC
892 --without-included-regex don't use included regex; this is the default
893 on systems with version 2 of the GNU C library
894 (use with caution on other system)
895 --with-sysroot=DIR Search for usr/lib et al within DIR.
896 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)
897 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)
898 --with-tclinclude=DIR Directory where tcl private headers are
899 --with-tkinclude=DIR Directory where tk private headers are
900 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)
901 --with-itkconfig Directory containing itk configuration (itkConfig.sh)
902 --with-x use the X Window System
903 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
904
905Some influential environment variables:
906 CC C compiler command
907 CFLAGS C compiler flags
908 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
909 nonstandard directory <lib dir>
b4e70030
JB
910 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
911 headers in a nonstandard directory <include dir>
bec39cab
AC
912 CPP C preprocessor
913
914Use these variables to override the choices made by `configure' or to help
915it to find libraries and programs with nonstandard names/locations.
916
917_ACEOF
918fi
919
920if test "$ac_init_help" = "recursive"; then
921 # If there are subdirs, report their specific --help.
b4e70030 922 ac_popdir=`pwd`
bec39cab
AC
923 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
924 test -d $ac_dir || continue
925 ac_builddir=.
926
b4e70030 927if test "$ac_dir" != .; then
bec39cab 928 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
929 # A "../" for each directory in $ac_dir_suffix.
930 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
931else
932 ac_dir_suffix= ac_top_builddir=
933fi
bec39cab
AC
934
935case $srcdir in
b4e70030 936 .) # No --srcdir option. We are building in place.
bec39cab 937 ac_srcdir=.
b4e70030
JB
938 if test -z "$ac_top_builddir"; then
939 ac_top_srcdir=.
940 else
941 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
942 fi ;;
943 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 944 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
945 ac_top_srcdir=$srcdir ;;
946 *) # Relative path.
947 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
948 ac_top_srcdir=$ac_top_builddir$srcdir ;;
949esac
950
951# Do not use `cd foo && pwd` to compute absolute paths, because
952# the directories may not exist.
953case `pwd` in
954.) ac_abs_builddir="$ac_dir";;
955*)
956 case "$ac_dir" in
957 .) ac_abs_builddir=`pwd`;;
958 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
959 *) ac_abs_builddir=`pwd`/"$ac_dir";;
960 esac;;
961esac
962case $ac_abs_builddir in
963.) ac_abs_top_builddir=${ac_top_builddir}.;;
964*)
965 case ${ac_top_builddir}. in
966 .) ac_abs_top_builddir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
968 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
969 esac;;
970esac
971case $ac_abs_builddir in
972.) ac_abs_srcdir=$ac_srcdir;;
973*)
974 case $ac_srcdir in
975 .) ac_abs_srcdir=$ac_abs_builddir;;
976 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
977 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
978 esac;;
979esac
980case $ac_abs_builddir in
981.) ac_abs_top_srcdir=$ac_top_srcdir;;
982*)
983 case $ac_top_srcdir in
984 .) ac_abs_top_srcdir=$ac_abs_builddir;;
985 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
986 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
987 esac;;
bec39cab
AC
988esac
989
b4e70030
JB
990 cd $ac_dir
991 # Check for guested configure; otherwise get Cygnus style configure.
bec39cab 992 if test -f $ac_srcdir/configure.gnu; then
b4e70030 993 echo
bec39cab
AC
994 $SHELL $ac_srcdir/configure.gnu --help=recursive
995 elif test -f $ac_srcdir/configure; then
b4e70030 996 echo
bec39cab 997 $SHELL $ac_srcdir/configure --help=recursive
b4e70030
JB
998 elif test -f $ac_srcdir/configure.ac ||
999 test -f $ac_srcdir/configure.in; then
1000 echo
1001 $ac_configure --help
3ace7edb 1002 else
bec39cab 1003 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
b4e70030
JB
1004 fi
1005 cd $ac_popdir
bec39cab
AC
1006 done
1007fi
1008
b4e70030 1009test -n "$ac_init_help" && exit 0
bec39cab
AC
1010if $ac_init_version; then
1011 cat <<\_ACEOF
1012
b4e70030 1013Copyright (C) 2003 Free Software Foundation, Inc.
bec39cab
AC
1014This configure script is free software; the Free Software Foundation
1015gives unlimited permission to copy, distribute and modify it.
1016_ACEOF
b4e70030 1017 exit 0
bec39cab 1018fi
b4e70030
JB
1019exec 5>config.log
1020cat >&5 <<_ACEOF
bec39cab
AC
1021This file contains any messages produced by compilers while
1022running configure, to aid debugging if configure makes a mistake.
1023
1024It was created by $as_me, which was
b4e70030 1025generated by GNU Autoconf 2.59. Invocation command line was
bec39cab
AC
1026
1027 $ $0 $@
1028
1029_ACEOF
1030{
1031cat <<_ASUNAME
1032## --------- ##
1033## Platform. ##
1034## --------- ##
1035
1036hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1037uname -m = `(uname -m) 2>/dev/null || echo unknown`
1038uname -r = `(uname -r) 2>/dev/null || echo unknown`
1039uname -s = `(uname -s) 2>/dev/null || echo unknown`
1040uname -v = `(uname -v) 2>/dev/null || echo unknown`
1041
1042/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1043/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1044
1045/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1046/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1047/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
b4e70030 1048hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
bec39cab
AC
1049/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1050/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1051/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1052
1053_ASUNAME
1054
1055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1056for as_dir in $PATH
1057do
1058 IFS=$as_save_IFS
1059 test -z "$as_dir" && as_dir=.
1060 echo "PATH: $as_dir"
1061done
1062
1063} >&5
1064
1065cat >&5 <<_ACEOF
1066
1067
1068## ----------- ##
1069## Core tests. ##
1070## ----------- ##
1071
1072_ACEOF
1073
1074
1075# Keep a trace of the command line.
1076# Strip out --no-create and --no-recursion so they do not pile up.
1077# Strip out --silent because we don't want to record it for future runs.
1078# Also quote any args containing shell meta-characters.
1079# Make two passes to allow for proper duplicate-argument suppression.
1080ac_configure_args=
1081ac_configure_args0=
1082ac_configure_args1=
1083ac_sep=
1084ac_must_keep_next=false
1085for ac_pass in 1 2
1086do
1087 for ac_arg
1088 do
1089 case $ac_arg in
1090 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092 | -silent | --silent | --silen | --sile | --sil)
1093 continue ;;
b4e70030 1094 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
bec39cab
AC
1095 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1096 esac
1097 case $ac_pass in
1098 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1099 2)
1100 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1101 if test $ac_must_keep_next = true; then
1102 ac_must_keep_next=false # Got value, back to normal.
1103 else
1104 case $ac_arg in
1105 *=* | --config-cache | -C | -disable-* | --disable-* \
1106 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1107 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1108 | -with-* | --with-* | -without-* | --without-* | --x)
1109 case "$ac_configure_args0 " in
1110 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1111 esac
1112 ;;
1113 -* ) ac_must_keep_next=true ;;
1114 esac
1115 fi
1116 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1117 # Get rid of the leading space.
1118 ac_sep=" "
1119 ;;
1120 esac
1121 done
1122done
1123$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1124$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1125
1126# When interrupted or exit'd, cleanup temporary files, and complete
1127# config.log. We remove comments because anyway the quotes in there
1128# would cause problems or look ugly.
b4e70030
JB
1129# WARNING: Be sure not to use single quotes in there, as some shells,
1130# such as our DU 5.0 friend, will then `close' the trap.
bec39cab
AC
1131trap 'exit_status=$?
1132 # Save into config.log some information that might help in debugging.
1133 {
1134 echo
1135
1136 cat <<\_ASBOX
1137## ---------------- ##
1138## Cache variables. ##
1139## ---------------- ##
1140_ASBOX
1141 echo
1142 # The following way of writing the cache mishandles newlines in values,
b4e70030 1143{
bec39cab 1144 (set) 2>&1 |
b4e70030
JB
1145 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1146 *ac_space=\ *)
bec39cab 1147 sed -n \
b4e70030
JB
1148 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1149 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1150 ;;
bec39cab 1151 *)
b4e70030
JB
1152 sed -n \
1153 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
bec39cab 1154 ;;
b4e70030
JB
1155 esac;
1156}
bec39cab
AC
1157 echo
1158
1159 cat <<\_ASBOX
1160## ----------------- ##
1161## Output variables. ##
1162## ----------------- ##
1163_ASBOX
1164 echo
1165 for ac_var in $ac_subst_vars
1166 do
b4e70030
JB
1167 eval ac_val=$`echo $ac_var`
1168 echo "$ac_var='"'"'$ac_val'"'"'"
bec39cab
AC
1169 done | sort
1170 echo
1171
1172 if test -n "$ac_subst_files"; then
1173 cat <<\_ASBOX
b4e70030
JB
1174## ------------- ##
1175## Output files. ##
1176## ------------- ##
bec39cab
AC
1177_ASBOX
1178 echo
1179 for ac_var in $ac_subst_files
1180 do
b4e70030
JB
1181 eval ac_val=$`echo $ac_var`
1182 echo "$ac_var='"'"'$ac_val'"'"'"
bec39cab
AC
1183 done | sort
1184 echo
1185 fi
1186
1187 if test -s confdefs.h; then
1188 cat <<\_ASBOX
1189## ----------- ##
1190## confdefs.h. ##
1191## ----------- ##
1192_ASBOX
1193 echo
b4e70030 1194 sed "/^$/d" confdefs.h | sort
bec39cab 1195 echo
3ace7edb 1196 fi
bec39cab
AC
1197 test "$ac_signal" != 0 &&
1198 echo "$as_me: caught signal $ac_signal"
1199 echo "$as_me: exit $exit_status"
1200 } >&5
b4e70030
JB
1201 rm -f core *.core &&
1202 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
bec39cab 1203 exit $exit_status
b4e70030 1204 ' 0
bec39cab
AC
1205for ac_signal in 1 2 13 15; do
1206 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1207done
1208ac_signal=0
1209
1210# confdefs.h avoids OS command line length limits that DEFS can exceed.
b4e70030
JB
1211rm -rf conftest* confdefs.h
1212# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1213echo >confdefs.h
bec39cab
AC
1214
1215# Predefined preprocessor variables.
1216
1217cat >>confdefs.h <<_ACEOF
1218#define PACKAGE_NAME "$PACKAGE_NAME"
1219_ACEOF
1220
1221
1222cat >>confdefs.h <<_ACEOF
1223#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1224_ACEOF
1225
1226
1227cat >>confdefs.h <<_ACEOF
1228#define PACKAGE_VERSION "$PACKAGE_VERSION"
1229_ACEOF
1230
1231
1232cat >>confdefs.h <<_ACEOF
1233#define PACKAGE_STRING "$PACKAGE_STRING"
1234_ACEOF
1235
1236
1237cat >>confdefs.h <<_ACEOF
1238#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1239_ACEOF
1240
1241
1242# Let the site file select an alternate cache file if it wants to.
1243# Prefer explicitly selected file to automatically selected ones.
b4e70030
JB
1244if test -z "$CONFIG_SITE"; then
1245 if test "x$prefix" != xNONE; then
1246 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1247 else
1248 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1249 fi
c906108c 1250fi
b4e70030 1251for ac_site_file in $CONFIG_SITE; do
c906108c 1252 if test -r "$ac_site_file"; then
bec39cab
AC
1253 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1254echo "$as_me: loading site script $ac_site_file" >&6;}
1255 sed 's/^/| /' "$ac_site_file" >&5
c906108c
SS
1256 . "$ac_site_file"
1257 fi
1258done
1259
1260if test -r "$cache_file"; then
bec39cab
AC
1261 # Some versions of bash will fail to source /dev/null (special
1262 # files actually), so we avoid doing that.
1263 if test -f "$cache_file"; then
1264 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1265echo "$as_me: loading cache $cache_file" >&6;}
1266 case $cache_file in
1267 [\\/]* | ?:[\\/]* ) . $cache_file;;
1268 *) . ./$cache_file;;
1269 esac
1270 fi
c906108c 1271else
bec39cab
AC
1272 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1273echo "$as_me: creating cache $cache_file" >&6;}
1274 >$cache_file
1275fi
1276
1277# Check that the precious variables saved in the cache have kept the same
1278# value.
1279ac_cache_corrupted=false
b4e70030
JB
1280for ac_var in `(set) 2>&1 |
1281 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
bec39cab
AC
1282 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1283 eval ac_new_set=\$ac_env_${ac_var}_set
b4e70030
JB
1284 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1285 eval ac_new_val="\$ac_env_${ac_var}_value"
bec39cab
AC
1286 case $ac_old_set,$ac_new_set in
1287 set,)
1288 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1289echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1290 ac_cache_corrupted=: ;;
1291 ,set)
1292 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1293echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1294 ac_cache_corrupted=: ;;
1295 ,);;
1296 *)
1297 if test "x$ac_old_val" != "x$ac_new_val"; then
fdc59709
PB
1298 # differences in whitespace do not lead to failure.
1299 ac_old_val_w=`echo x $ac_old_val`
1300 ac_new_val_w=`echo x $ac_new_val`
1301 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1302 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
bec39cab 1303echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
fdc59709
PB
1304 ac_cache_corrupted=:
1305 else
1306 { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1307echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1308 eval $ac_var=\$ac_old_val
1309 fi
1310 { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1311echo "$as_me: former value: \`$ac_old_val'" >&2;}
1312 { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1313echo "$as_me: current value: \`$ac_new_val'" >&2;}
bec39cab
AC
1314 fi;;
1315 esac
1316 # Pass precious variables to config.status.
1317 if test "$ac_new_set" = set; then
1318 case $ac_new_val in
b4e70030
JB
1319 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1320 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
bec39cab
AC
1321 *) ac_arg=$ac_var=$ac_new_val ;;
1322 esac
1323 case " $ac_configure_args " in
1324 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1325 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1326 esac
1327 fi
1328done
1329if $ac_cache_corrupted; then
1330 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1331echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1332 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1333echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1334 { (exit 1); exit 1; }; }
c906108c
SS
1335fi
1336
b4e70030
JB
1337ac_ext=c
1338ac_cpp='$CPP $CPPFLAGS'
1339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1341ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c
SS
1342
1343
783e057b
DJ
1344gl_header_list="$gl_header_list stdint.h"
1345gl_header_list="$gl_header_list wchar.h"
1346gl_header_list="$gl_header_list string.h"
bec39cab
AC
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
bec39cab 1363
b4e70030
JB
1364 ac_config_headers="$ac_config_headers config.h:config.in"
1365
1366echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1367echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1368 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
413ccac7 1369if test "${enable_maintainer_mode+set}" = set; then
b4e70030
JB
1370 enableval="$enable_maintainer_mode"
1371 USE_MAINTAINER_MODE=$enableval
413ccac7
AC
1372else
1373 USE_MAINTAINER_MODE=no
b4e70030
JB
1374fi;
1375 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1376echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
413ccac7 1377
413ccac7
AC
1378
1379if test $USE_MAINTAINER_MODE = yes; then
1380 MAINTAINER_MODE_TRUE=
1381 MAINTAINER_MODE_FALSE='#'
1382else
1383 MAINTAINER_MODE_TRUE='#'
1384 MAINTAINER_MODE_FALSE=
1385fi
85981d60 1386
413ccac7 1387 MAINT=$MAINTAINER_MODE_TRUE
413ccac7 1388
c906108c 1389
bec39cab
AC
1390
1391ac_ext=c
1392ac_cpp='$CPP $CPPFLAGS'
1393ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1394ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1395ac_compiler_gnu=$ac_cv_c_compiler_gnu
1396if test -n "$ac_tool_prefix"; then
1397 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1398set dummy ${ac_tool_prefix}gcc; ac_word=$2
b4e70030
JB
1399echo "$as_me:$LINENO: checking for $ac_word" >&5
1400echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1401if test "${ac_cv_prog_CC+set}" = set; then
1402 echo $ECHO_N "(cached) $ECHO_C" >&6
1403else
1404 if test -n "$CC"; then
1405 ac_cv_prog_CC="$CC" # Let the user override the test.
1406else
1407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1408for as_dir in $PATH
1409do
1410 IFS=$as_save_IFS
1411 test -z "$as_dir" && as_dir=.
1412 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1414 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1416 break 2
1417 fi
1418done
1419done
1420
1421fi
1422fi
1423CC=$ac_cv_prog_CC
1424if test -n "$CC"; then
b4e70030
JB
1425 echo "$as_me:$LINENO: result: $CC" >&5
1426echo "${ECHO_T}$CC" >&6
bec39cab 1427else
b4e70030
JB
1428 echo "$as_me:$LINENO: result: no" >&5
1429echo "${ECHO_T}no" >&6
bec39cab
AC
1430fi
1431
1432fi
1433if test -z "$ac_cv_prog_CC"; then
1434 ac_ct_CC=$CC
1435 # Extract the first word of "gcc", so it can be a program name with args.
c906108c 1436set dummy gcc; ac_word=$2
b4e70030
JB
1437echo "$as_me:$LINENO: checking for $ac_word" >&5
1438echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1439if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1440 echo $ECHO_N "(cached) $ECHO_C" >&6
1441else
1442 if test -n "$ac_ct_CC"; then
1443 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1444else
1445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1446for as_dir in $PATH
1447do
1448 IFS=$as_save_IFS
1449 test -z "$as_dir" && as_dir=.
1450 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1451 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1452 ac_cv_prog_ac_ct_CC="gcc"
1453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1454 break 2
1455 fi
1456done
1457done
1458
1459fi
1460fi
1461ac_ct_CC=$ac_cv_prog_ac_ct_CC
1462if test -n "$ac_ct_CC"; then
b4e70030
JB
1463 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1464echo "${ECHO_T}$ac_ct_CC" >&6
bec39cab 1465else
b4e70030
JB
1466 echo "$as_me:$LINENO: result: no" >&5
1467echo "${ECHO_T}no" >&6
bec39cab
AC
1468fi
1469
b4e70030 1470 CC=$ac_ct_CC
bec39cab
AC
1471else
1472 CC="$ac_cv_prog_CC"
1473fi
1474
1475if test -z "$CC"; then
b4e70030
JB
1476 if test -n "$ac_tool_prefix"; then
1477 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
bec39cab 1478set dummy ${ac_tool_prefix}cc; ac_word=$2
b4e70030
JB
1479echo "$as_me:$LINENO: checking for $ac_word" >&5
1480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1481if test "${ac_cv_prog_CC+set}" = set; then
1482 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1483else
1484 if test -n "$CC"; then
1485 ac_cv_prog_CC="$CC" # Let the user override the test.
1486else
bec39cab
AC
1487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1488for as_dir in $PATH
1489do
1490 IFS=$as_save_IFS
1491 test -z "$as_dir" && as_dir=.
1492 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1494 ac_cv_prog_CC="${ac_tool_prefix}cc"
1495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1496 break 2
1497 fi
1498done
1499done
1500
c906108c
SS
1501fi
1502fi
bec39cab 1503CC=$ac_cv_prog_CC
c906108c 1504if test -n "$CC"; then
b4e70030
JB
1505 echo "$as_me:$LINENO: result: $CC" >&5
1506echo "${ECHO_T}$CC" >&6
c906108c 1507else
b4e70030
JB
1508 echo "$as_me:$LINENO: result: no" >&5
1509echo "${ECHO_T}no" >&6
c906108c
SS
1510fi
1511
b4e70030
JB
1512fi
1513if test -z "$ac_cv_prog_CC"; then
1514 ac_ct_CC=$CC
1515 # Extract the first word of "cc", so it can be a program name with args.
1516set dummy cc; ac_word=$2
1517echo "$as_me:$LINENO: checking for $ac_word" >&5
1518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1519if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1520 echo $ECHO_N "(cached) $ECHO_C" >&6
1521else
1522 if test -n "$ac_ct_CC"; then
1523 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1524else
1525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1526for as_dir in $PATH
1527do
1528 IFS=$as_save_IFS
1529 test -z "$as_dir" && as_dir=.
1530 for ac_exec_ext in '' $ac_executable_extensions; do
1531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1532 ac_cv_prog_ac_ct_CC="cc"
1533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1534 break 2
4e8d927d 1535 fi
b4e70030
JB
1536done
1537done
1538
1539fi
1540fi
1541ac_ct_CC=$ac_cv_prog_ac_ct_CC
1542if test -n "$ac_ct_CC"; then
1543 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1544echo "${ECHO_T}$ac_ct_CC" >&6
1545else
1546 echo "$as_me:$LINENO: result: no" >&5
1547echo "${ECHO_T}no" >&6
1548fi
1549
1550 CC=$ac_ct_CC
1551else
1552 CC="$ac_cv_prog_CC"
1553fi
1554
bec39cab 1555fi
c906108c
SS
1556if test -z "$CC"; then
1557 # Extract the first word of "cc", so it can be a program name with args.
1558set dummy cc; ac_word=$2
b4e70030
JB
1559echo "$as_me:$LINENO: checking for $ac_word" >&5
1560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1561if test "${ac_cv_prog_CC+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1563else
1564 if test -n "$CC"; then
1565 ac_cv_prog_CC="$CC" # Let the user override the test.
1566else
c906108c 1567 ac_prog_rejected=no
bec39cab
AC
1568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1569for as_dir in $PATH
1570do
1571 IFS=$as_save_IFS
1572 test -z "$as_dir" && as_dir=.
1573 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1575 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1576 ac_prog_rejected=yes
1577 continue
1578 fi
1579 ac_cv_prog_CC="cc"
1580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1581 break 2
1582 fi
1583done
1584done
1585
c906108c
SS
1586if test $ac_prog_rejected = yes; then
1587 # We found a bogon in the path, so make sure we never use it.
1588 set dummy $ac_cv_prog_CC
1589 shift
bec39cab 1590 if test $# != 0; then
c906108c
SS
1591 # We chose a different compiler from the bogus one.
1592 # However, it has the same basename, so the bogon will be chosen
1593 # first if we set CC to just the basename; use the full file name.
1594 shift
bec39cab 1595 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
c906108c
SS
1596 fi
1597fi
1598fi
1599fi
bec39cab 1600CC=$ac_cv_prog_CC
c906108c 1601if test -n "$CC"; then
b4e70030
JB
1602 echo "$as_me:$LINENO: result: $CC" >&5
1603echo "${ECHO_T}$CC" >&6
c906108c 1604else
b4e70030
JB
1605 echo "$as_me:$LINENO: result: no" >&5
1606echo "${ECHO_T}no" >&6
c906108c
SS
1607fi
1608
bec39cab
AC
1609fi
1610if test -z "$CC"; then
1611 if test -n "$ac_tool_prefix"; then
b4e70030 1612 for ac_prog in cl
bec39cab
AC
1613 do
1614 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1615set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b4e70030
JB
1616echo "$as_me:$LINENO: checking for $ac_word" >&5
1617echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1618if test "${ac_cv_prog_CC+set}" = set; then
1619 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1620else
1621 if test -n "$CC"; then
1622 ac_cv_prog_CC="$CC" # Let the user override the test.
1623else
bec39cab
AC
1624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1625for as_dir in $PATH
1626do
1627 IFS=$as_save_IFS
1628 test -z "$as_dir" && as_dir=.
1629 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1630 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1631 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1633 break 2
1634 fi
1635done
1636done
1637
c906108c
SS
1638fi
1639fi
bec39cab 1640CC=$ac_cv_prog_CC
c906108c 1641if test -n "$CC"; then
b4e70030
JB
1642 echo "$as_me:$LINENO: result: $CC" >&5
1643echo "${ECHO_T}$CC" >&6
c906108c 1644else
b4e70030
JB
1645 echo "$as_me:$LINENO: result: no" >&5
1646echo "${ECHO_T}no" >&6
c906108c 1647fi
bec39cab
AC
1648
1649 test -n "$CC" && break
1650 done
1651fi
1652if test -z "$CC"; then
1653 ac_ct_CC=$CC
b4e70030 1654 for ac_prog in cl
bec39cab
AC
1655do
1656 # Extract the first word of "$ac_prog", so it can be a program name with args.
1657set dummy $ac_prog; ac_word=$2
b4e70030
JB
1658echo "$as_me:$LINENO: checking for $ac_word" >&5
1659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1660if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1661 echo $ECHO_N "(cached) $ECHO_C" >&6
1662else
1663 if test -n "$ac_ct_CC"; then
1664 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1665else
1666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1667for as_dir in $PATH
1668do
1669 IFS=$as_save_IFS
1670 test -z "$as_dir" && as_dir=.
1671 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1673 ac_cv_prog_ac_ct_CC="$ac_prog"
1674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1675 break 2
c906108c 1676 fi
bec39cab
AC
1677done
1678done
1679
1680fi
1681fi
1682ac_ct_CC=$ac_cv_prog_ac_ct_CC
1683if test -n "$ac_ct_CC"; then
b4e70030
JB
1684 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1685echo "${ECHO_T}$ac_ct_CC" >&6
bec39cab 1686else
b4e70030
JB
1687 echo "$as_me:$LINENO: result: no" >&5
1688echo "${ECHO_T}no" >&6
c906108c
SS
1689fi
1690
bec39cab
AC
1691 test -n "$ac_ct_CC" && break
1692done
c906108c 1693
b4e70030 1694 CC=$ac_ct_CC
bec39cab
AC
1695fi
1696
1697fi
1698
1699
1700test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1701See \`config.log' for more details." >&5
1702echo "$as_me: error: no acceptable C compiler found in \$PATH
1703See \`config.log' for more details." >&2;}
1704 { (exit 1); exit 1; }; }
1705
1706# Provide some information about the compiler.
b4e70030
JB
1707echo "$as_me:$LINENO:" \
1708 "checking for C compiler version" >&5
bec39cab 1709ac_compiler=`set X $ac_compile; echo $2`
b4e70030
JB
1710{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1711 (eval $ac_compiler --version </dev/null >&5) 2>&5
bec39cab
AC
1712 ac_status=$?
1713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1714 (exit $ac_status); }
b4e70030
JB
1715{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1716 (eval $ac_compiler -v </dev/null >&5) 2>&5
bec39cab
AC
1717 ac_status=$?
1718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1719 (exit $ac_status); }
b4e70030
JB
1720{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1721 (eval $ac_compiler -V </dev/null >&5) 2>&5
bec39cab
AC
1722 ac_status=$?
1723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1724 (exit $ac_status); }
1725
1726cat >conftest.$ac_ext <<_ACEOF
1727/* confdefs.h. */
1728_ACEOF
1729cat confdefs.h >>conftest.$ac_ext
1730cat >>conftest.$ac_ext <<_ACEOF
1731/* end confdefs.h. */
1732
1733int
1734main ()
1735{
1736
1737 ;
1738 return 0;
1739}
1740_ACEOF
1741ac_clean_files_save=$ac_clean_files
b4e70030 1742ac_clean_files="$ac_clean_files a.out a.exe b.out"
bec39cab
AC
1743# Try to create an executable without -o first, disregard a.out.
1744# It will help us diagnose broken compilers, and finding out an intuition
1745# of exeext.
b4e70030
JB
1746echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1747echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
bec39cab
AC
1748ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1749if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1750 (eval $ac_link_default) 2>&5
1751 ac_status=$?
1752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1753 (exit $ac_status); }; then
b4e70030
JB
1754 # Find the output, starting from the most likely. This scheme is
1755# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1756# resort.
1757
1758# Be careful to initialize this variable, since it used to be cached.
1759# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1760ac_cv_exeext=
1761# b.out is created by i960 compilers.
1762for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
bec39cab
AC
1763do
1764 test -f "$ac_file" || continue
1765 case $ac_file in
b4e70030
JB
1766 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1767 ;;
1768 conftest.$ac_ext )
1769 # This is the source file.
1770 ;;
1771 [ab].out )
1772 # We found the default executable, but exeext='' is most
1773 # certainly right.
1774 break;;
1775 *.* )
1776 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1777 # FIXME: I believe we export ac_cv_exeext for Libtool,
1778 # but it would be cool to find out if it's true. Does anybody
1779 # maintain Libtool? --akim.
1780 export ac_cv_exeext
1781 break;;
1782 * )
1783 break;;
bec39cab
AC
1784 esac
1785done
1786else
1787 echo "$as_me: failed program was:" >&5
1788sed 's/^/| /' conftest.$ac_ext >&5
1789
1790{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1791See \`config.log' for more details." >&5
1792echo "$as_me: error: C compiler cannot create executables
1793See \`config.log' for more details." >&2;}
1794 { (exit 77); exit 77; }; }
1795fi
1796
b4e70030
JB
1797ac_exeext=$ac_cv_exeext
1798echo "$as_me:$LINENO: result: $ac_file" >&5
1799echo "${ECHO_T}$ac_file" >&6
1800
1801# Check the compiler produces executables we can run. If not, either
bec39cab 1802# the compiler is broken, or we cross compile.
b4e70030
JB
1803echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1804echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
bec39cab
AC
1805# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1806# If not cross compiling, check that we can run a simple program.
1807if test "$cross_compiling" != yes; then
1808 if { ac_try='./$ac_file'
1809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1810 (eval $ac_try) 2>&5
1811 ac_status=$?
1812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1813 (exit $ac_status); }; }; then
1814 cross_compiling=no
c906108c 1815 else
bec39cab
AC
1816 if test "$cross_compiling" = maybe; then
1817 cross_compiling=yes
1818 else
1819 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1820If you meant to cross compile, use \`--host'.
1821See \`config.log' for more details." >&5
1822echo "$as_me: error: cannot run C compiled programs.
1823If you meant to cross compile, use \`--host'.
1824See \`config.log' for more details." >&2;}
1825 { (exit 1); exit 1; }; }
1826 fi
c906108c 1827 fi
bec39cab 1828fi
b4e70030
JB
1829echo "$as_me:$LINENO: result: yes" >&5
1830echo "${ECHO_T}yes" >&6
bec39cab 1831
b4e70030
JB
1832rm -f a.out a.exe conftest$ac_cv_exeext b.out
1833ac_clean_files=$ac_clean_files_save
1834# Check the compiler produces executables we can run. If not, either
1835# the compiler is broken, or we cross compile.
1836echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1837echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1838echo "$as_me:$LINENO: result: $cross_compiling" >&5
1839echo "${ECHO_T}$cross_compiling" >&6
4e8d927d 1840
b4e70030
JB
1841echo "$as_me:$LINENO: checking for suffix of executables" >&5
1842echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
bec39cab
AC
1844 (eval $ac_link) 2>&5
1845 ac_status=$?
1846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1847 (exit $ac_status); }; then
b4e70030
JB
1848 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1849# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1850# work properly (i.e., refer to `conftest.exe'), while it won't with
1851# `rm'.
1852for ac_file in conftest.exe conftest conftest.*; do
1853 test -f "$ac_file" || continue
1854 case $ac_file in
1855 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1856 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1857 export ac_cv_exeext
1858 break;;
1859 * ) break;;
1860 esac
1861done
c906108c 1862else
bec39cab
AC
1863 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1864See \`config.log' for more details." >&5
1865echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1866See \`config.log' for more details." >&2;}
1867 { (exit 1); exit 1; }; }
c906108c 1868fi
c906108c 1869
b4e70030
JB
1870rm -f conftest$ac_cv_exeext
1871echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1872echo "${ECHO_T}$ac_cv_exeext" >&6
c906108c 1873
b4e70030 1874rm -f conftest.$ac_ext
bec39cab
AC
1875EXEEXT=$ac_cv_exeext
1876ac_exeext=$EXEEXT
b4e70030
JB
1877echo "$as_me:$LINENO: checking for suffix of object files" >&5
1878echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
bec39cab
AC
1879if test "${ac_cv_objext+set}" = set; then
1880 echo $ECHO_N "(cached) $ECHO_C" >&6
1881else
b4e70030
JB
1882 cat >conftest.$ac_ext <<_ACEOF
1883/* confdefs.h. */
1884_ACEOF
1885cat confdefs.h >>conftest.$ac_ext
1886cat >>conftest.$ac_ext <<_ACEOF
1887/* end confdefs.h. */
1888
1889int
1890main ()
1891{
1892
1893 ;
1894 return 0;
1895}
1896_ACEOF
1897rm -f conftest.o conftest.obj
bec39cab
AC
1898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1899 (eval $ac_compile) 2>&5
1900 ac_status=$?
1901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1902 (exit $ac_status); }; then
b4e70030 1903 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
bec39cab 1904 case $ac_file in
b4e70030 1905 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
bec39cab
AC
1906 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1907 break;;
1908 esac
1909done
c906108c 1910else
bec39cab
AC
1911 echo "$as_me: failed program was:" >&5
1912sed 's/^/| /' conftest.$ac_ext >&5
1913
1914{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1915See \`config.log' for more details." >&5
1916echo "$as_me: error: cannot compute suffix of object files: cannot compile
1917See \`config.log' for more details." >&2;}
1918 { (exit 1); exit 1; }; }
c906108c
SS
1919fi
1920
b4e70030 1921rm -f conftest.$ac_cv_objext conftest.$ac_ext
bec39cab 1922fi
b4e70030
JB
1923echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1924echo "${ECHO_T}$ac_cv_objext" >&6
bec39cab
AC
1925OBJEXT=$ac_cv_objext
1926ac_objext=$OBJEXT
b4e70030
JB
1927echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1928echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
bec39cab
AC
1929if test "${ac_cv_c_compiler_gnu+set}" = set; then
1930 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 1931else
bec39cab
AC
1932 cat >conftest.$ac_ext <<_ACEOF
1933/* confdefs.h. */
1934_ACEOF
1935cat confdefs.h >>conftest.$ac_ext
1936cat >>conftest.$ac_ext <<_ACEOF
1937/* end confdefs.h. */
1938
1939int
1940main ()
1941{
1942#ifndef __GNUC__
1943 choke me
1944#endif
1945
1946 ;
1947 return 0;
1948}
1949_ACEOF
1950rm -f conftest.$ac_objext
1951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1952 (eval $ac_compile) 2>conftest.er1
1953 ac_status=$?
1954 grep -v '^ *+' conftest.er1 >conftest.err
1955 rm -f conftest.er1
1956 cat conftest.err >&5
1957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1958 (exit $ac_status); } &&
b4e70030
JB
1959 { ac_try='test -z "$ac_c_werror_flag"
1960 || test ! -s conftest.err'
bec39cab
AC
1961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1962 (eval $ac_try) 2>&5
1963 ac_status=$?
1964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1965 (exit $ac_status); }; } &&
1966 { ac_try='test -s conftest.$ac_objext'
1967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1968 (eval $ac_try) 2>&5
1969 ac_status=$?
1970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1971 (exit $ac_status); }; }; then
1972 ac_compiler_gnu=yes
1973else
1974 echo "$as_me: failed program was:" >&5
1975sed 's/^/| /' conftest.$ac_ext >&5
1976
b4e70030 1977ac_compiler_gnu=no
bec39cab
AC
1978fi
1979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1980ac_cv_c_compiler_gnu=$ac_compiler_gnu
1981
1982fi
b4e70030
JB
1983echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1984echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
bec39cab
AC
1985GCC=`test $ac_compiler_gnu = yes && echo yes`
1986ac_test_CFLAGS=${CFLAGS+set}
1987ac_save_CFLAGS=$CFLAGS
b4e70030
JB
1988CFLAGS="-g"
1989echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1990echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
bec39cab
AC
1991if test "${ac_cv_prog_cc_g+set}" = set; then
1992 echo $ECHO_N "(cached) $ECHO_C" >&6
1993else
b4e70030 1994 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
1995/* confdefs.h. */
1996_ACEOF
1997cat confdefs.h >>conftest.$ac_ext
1998cat >>conftest.$ac_ext <<_ACEOF
1999/* end confdefs.h. */
2000
2001int
2002main ()
2003{
2004
2005 ;
2006 return 0;
2007}
2008_ACEOF
2009rm -f conftest.$ac_objext
2010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2011 (eval $ac_compile) 2>conftest.er1
2012 ac_status=$?
2013 grep -v '^ *+' conftest.er1 >conftest.err
2014 rm -f conftest.er1
2015 cat conftest.err >&5
2016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2017 (exit $ac_status); } &&
b4e70030
JB
2018 { ac_try='test -z "$ac_c_werror_flag"
2019 || test ! -s conftest.err'
bec39cab
AC
2020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2021 (eval $ac_try) 2>&5
2022 ac_status=$?
2023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024 (exit $ac_status); }; } &&
2025 { ac_try='test -s conftest.$ac_objext'
2026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2027 (eval $ac_try) 2>&5
2028 ac_status=$?
2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030 (exit $ac_status); }; }; then
c906108c
SS
2031 ac_cv_prog_cc_g=yes
2032else
bec39cab
AC
2033 echo "$as_me: failed program was:" >&5
2034sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2035
b4e70030 2036ac_cv_prog_cc_g=no
4e8d927d 2037fi
bec39cab
AC
2038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2039fi
b4e70030
JB
2040echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2041echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
c906108c 2042if test "$ac_test_CFLAGS" = set; then
bec39cab 2043 CFLAGS=$ac_save_CFLAGS
c906108c
SS
2044elif test $ac_cv_prog_cc_g = yes; then
2045 if test "$GCC" = yes; then
2046 CFLAGS="-g -O2"
2047 else
2048 CFLAGS="-g"
2049 fi
2050else
2051 if test "$GCC" = yes; then
2052 CFLAGS="-O2"
2053 else
2054 CFLAGS=
2055 fi
2056fi
b4e70030
JB
2057echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2058echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2059if test "${ac_cv_prog_cc_stdc+set}" = set; then
bec39cab
AC
2060 echo $ECHO_N "(cached) $ECHO_C" >&6
2061else
b4e70030 2062 ac_cv_prog_cc_stdc=no
bec39cab
AC
2063ac_save_CC=$CC
2064cat >conftest.$ac_ext <<_ACEOF
2065/* confdefs.h. */
2066_ACEOF
2067cat confdefs.h >>conftest.$ac_ext
2068cat >>conftest.$ac_ext <<_ACEOF
2069/* end confdefs.h. */
c906108c
SS
2070#include <stdarg.h>
2071#include <stdio.h>
2072#include <sys/types.h>
2073#include <sys/stat.h>
2074/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2075struct buf { int x; };
2076FILE * (*rcsopen) (struct buf *, struct stat *, int);
2077static char *e (p, i)
2078 char **p;
2079 int i;
2080{
2081 return p[i];
2082}
2083static char *f (char * (*g) (char **, int), char **p, ...)
2084{
2085 char *s;
2086 va_list v;
2087 va_start (v,p);
2088 s = g (p, va_arg (v,int));
2089 va_end (v);
2090 return s;
2091}
bec39cab
AC
2092
2093/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2094 function prototypes and stuff, but not '\xHH' hex character constants.
2095 These don't provoke an error unfortunately, instead are silently treated
b4e70030 2096 as 'x'. The following induces an error, until -std1 is added to get
bec39cab
AC
2097 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2098 array size at least. It's necessary to write '\x00'==0 to get something
b4e70030 2099 that's true only with -std1. */
bec39cab
AC
2100int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2101
c906108c
SS
2102int test (int i, double x);
2103struct s1 {int (*f) (int a);};
2104struct s2 {int (*f) (double a);};
2105int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2106int argc;
2107char **argv;
bec39cab
AC
2108int
2109main ()
2110{
c906108c 2111return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
bec39cab
AC
2112 ;
2113 return 0;
2114}
2115_ACEOF
b4e70030
JB
2116# Don't try gcc -ansi; that turns off useful extensions and
2117# breaks some systems' header files.
2118# AIX -qlanglvl=ansi
2119# Ultrix and OSF/1 -std1
2120# HP-UX 10.20 and later -Ae
2121# HP-UX older versions -Aa -D_HPUX_SOURCE
2122# SVR4 -Xc -D__EXTENSIONS__
2123for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
bec39cab
AC
2124do
2125 CC="$ac_save_CC $ac_arg"
2126 rm -f conftest.$ac_objext
2127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2128 (eval $ac_compile) 2>conftest.er1
2129 ac_status=$?
2130 grep -v '^ *+' conftest.er1 >conftest.err
2131 rm -f conftest.er1
2132 cat conftest.err >&5
2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 (exit $ac_status); } &&
b4e70030
JB
2135 { ac_try='test -z "$ac_c_werror_flag"
2136 || test ! -s conftest.err'
bec39cab
AC
2137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2138 (eval $ac_try) 2>&5
2139 ac_status=$?
2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); }; } &&
2142 { ac_try='test -s conftest.$ac_objext'
2143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2144 (eval $ac_try) 2>&5
2145 ac_status=$?
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); }; }; then
b4e70030
JB
2148 ac_cv_prog_cc_stdc=$ac_arg
2149break
c906108c 2150else
bec39cab
AC
2151 echo "$as_me: failed program was:" >&5
2152sed 's/^/| /' conftest.$ac_ext >&5
2153
c906108c 2154fi
bec39cab 2155rm -f conftest.err conftest.$ac_objext
c906108c 2156done
b4e70030 2157rm -f conftest.$ac_ext conftest.$ac_objext
bec39cab 2158CC=$ac_save_CC
c906108c
SS
2159
2160fi
b4e70030
JB
2161
2162case "x$ac_cv_prog_cc_stdc" in
2163 x|xno)
2164 echo "$as_me:$LINENO: result: none needed" >&5
2165echo "${ECHO_T}none needed" >&6 ;;
bec39cab 2166 *)
b4e70030
JB
2167 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2168echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2169 CC="$CC $ac_cv_prog_cc_stdc" ;;
c906108c
SS
2170esac
2171
b4e70030
JB
2172# Some people use a C++ compiler to compile C. Since we use `exit',
2173# in C++ we need to declare it. In case someone uses the same compiler
2174# for both compiling C and C++ we need to have the C++ compiler decide
2175# the declaration of exit, since it's the most demanding environment.
2176cat >conftest.$ac_ext <<_ACEOF
2177#ifndef __cplusplus
2178 choke me
2179#endif
2180_ACEOF
2181rm -f conftest.$ac_objext
2182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2183 (eval $ac_compile) 2>conftest.er1
2184 ac_status=$?
2185 grep -v '^ *+' conftest.er1 >conftest.err
2186 rm -f conftest.er1
2187 cat conftest.err >&5
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); } &&
2190 { ac_try='test -z "$ac_c_werror_flag"
2191 || test ! -s conftest.err'
2192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2193 (eval $ac_try) 2>&5
2194 ac_status=$?
2195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196 (exit $ac_status); }; } &&
2197 { ac_try='test -s conftest.$ac_objext'
2198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2199 (eval $ac_try) 2>&5
2200 ac_status=$?
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202 (exit $ac_status); }; }; then
2203 for ac_declaration in \
2204 '' \
2205 'extern "C" void std::exit (int) throw (); using std::exit;' \
2206 'extern "C" void std::exit (int); using std::exit;' \
2207 'extern "C" void exit (int) throw ();' \
2208 'extern "C" void exit (int);' \
2209 'void exit (int);'
2210do
2211 cat >conftest.$ac_ext <<_ACEOF
2212/* confdefs.h. */
2213_ACEOF
2214cat confdefs.h >>conftest.$ac_ext
2215cat >>conftest.$ac_ext <<_ACEOF
2216/* end confdefs.h. */
2217$ac_declaration
2218#include <stdlib.h>
2219int
2220main ()
2221{
2222exit (42);
2223 ;
2224 return 0;
2225}
2226_ACEOF
2227rm -f conftest.$ac_objext
2228if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2229 (eval $ac_compile) 2>conftest.er1
2230 ac_status=$?
2231 grep -v '^ *+' conftest.er1 >conftest.err
2232 rm -f conftest.er1
2233 cat conftest.err >&5
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); } &&
2236 { ac_try='test -z "$ac_c_werror_flag"
2237 || test ! -s conftest.err'
2238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2239 (eval $ac_try) 2>&5
2240 ac_status=$?
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); }; } &&
2243 { ac_try='test -s conftest.$ac_objext'
2244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2245 (eval $ac_try) 2>&5
2246 ac_status=$?
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); }; }; then
2249 :
2250else
2251 echo "$as_me: failed program was:" >&5
2252sed 's/^/| /' conftest.$ac_ext >&5
2253
2254continue
2255fi
2256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2257 cat >conftest.$ac_ext <<_ACEOF
2258/* confdefs.h. */
2259_ACEOF
2260cat confdefs.h >>conftest.$ac_ext
2261cat >>conftest.$ac_ext <<_ACEOF
2262/* end confdefs.h. */
2263$ac_declaration
2264int
2265main ()
2266{
2267exit (42);
2268 ;
2269 return 0;
2270}
2271_ACEOF
2272rm -f conftest.$ac_objext
2273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2274 (eval $ac_compile) 2>conftest.er1
2275 ac_status=$?
2276 grep -v '^ *+' conftest.er1 >conftest.err
2277 rm -f conftest.er1
2278 cat conftest.err >&5
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); } &&
2281 { ac_try='test -z "$ac_c_werror_flag"
2282 || test ! -s conftest.err'
2283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2284 (eval $ac_try) 2>&5
2285 ac_status=$?
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }; } &&
2288 { ac_try='test -s conftest.$ac_objext'
2289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2290 (eval $ac_try) 2>&5
2291 ac_status=$?
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); }; }; then
2294 break
2295else
2296 echo "$as_me: failed program was:" >&5
2297sed 's/^/| /' conftest.$ac_ext >&5
2298
2299fi
2300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2301done
2302rm -f conftest*
2303if test -n "$ac_declaration"; then
2304 echo '#ifdef __cplusplus' >>confdefs.h
2305 echo $ac_declaration >>confdefs.h
2306 echo '#endif' >>confdefs.h
2307fi
2308
2309else
2310 echo "$as_me: failed program was:" >&5
2311sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2312
b4e70030
JB
2313fi
2314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab
AC
2315ac_ext=c
2316ac_cpp='$CPP $CPPFLAGS'
2317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2319ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c 2320
60ca704f 2321
bec39cab
AC
2322cat >>confdefs.h <<\_ACEOF
2323#define _GNU_SOURCE 1
2324_ACEOF
c906108c
SS
2325
2326
8bb2c122 2327
bec39cab
AC
2328ac_ext=c
2329ac_cpp='$CPP $CPPFLAGS'
2330ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2331ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2332ac_compiler_gnu=$ac_cv_c_compiler_gnu
b4e70030
JB
2333echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2334echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
bec39cab
AC
2335# On Suns, sometimes $CPP names a directory.
2336if test -n "$CPP" && test -d "$CPP"; then
2337 CPP=
8bb2c122 2338fi
bec39cab
AC
2339if test -z "$CPP"; then
2340 if test "${ac_cv_prog_CPP+set}" = set; then
2341 echo $ECHO_N "(cached) $ECHO_C" >&6
2342else
2343 # Double quotes because CPP needs to be expanded
2344 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2345 do
2346 ac_preproc_ok=false
2347for ac_c_preproc_warn_flag in '' yes
2348do
2349 # Use a header file that comes with gcc, so configuring glibc
2350 # with a fresh cross-compiler works.
2351 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2352 # <limits.h> exists even on freestanding compilers.
2353 # On the NeXT, cc -E runs the code through the compiler's parser,
2354 # not just through cpp. "Syntax error" is here to catch this case.
2355 cat >conftest.$ac_ext <<_ACEOF
2356/* confdefs.h. */
2357_ACEOF
2358cat confdefs.h >>conftest.$ac_ext
2359cat >>conftest.$ac_ext <<_ACEOF
2360/* end confdefs.h. */
2361#ifdef __STDC__
2362# include <limits.h>
2363#else
2364# include <assert.h>
2365#endif
2366 Syntax error
2367_ACEOF
2368if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2369 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2370 ac_status=$?
2371 grep -v '^ *+' conftest.er1 >conftest.err
2372 rm -f conftest.er1
2373 cat conftest.err >&5
2374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2375 (exit $ac_status); } >/dev/null; then
2376 if test -s conftest.err; then
2377 ac_cpp_err=$ac_c_preproc_warn_flag
2378 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2379 else
2380 ac_cpp_err=
2381 fi
8bb2c122 2382else
bec39cab 2383 ac_cpp_err=yes
8bb2c122 2384fi
bec39cab
AC
2385if test -z "$ac_cpp_err"; then
2386 :
8bb2c122 2387else
bec39cab
AC
2388 echo "$as_me: failed program was:" >&5
2389sed 's/^/| /' conftest.$ac_ext >&5
2390
2391 # Broken: fails on valid input.
2392continue
2393fi
2394rm -f conftest.err conftest.$ac_ext
2395
b4e70030 2396 # OK, works on sane cases. Now check whether non-existent headers
bec39cab
AC
2397 # can be detected and how.
2398 cat >conftest.$ac_ext <<_ACEOF
2399/* confdefs.h. */
2400_ACEOF
2401cat confdefs.h >>conftest.$ac_ext
2402cat >>conftest.$ac_ext <<_ACEOF
2403/* end confdefs.h. */
2404#include <ac_nonexistent.h>
2405_ACEOF
2406if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2407 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2408 ac_status=$?
2409 grep -v '^ *+' conftest.er1 >conftest.err
2410 rm -f conftest.er1
2411 cat conftest.err >&5
2412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413 (exit $ac_status); } >/dev/null; then
2414 if test -s conftest.err; then
2415 ac_cpp_err=$ac_c_preproc_warn_flag
2416 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2417 else
2418 ac_cpp_err=
2419 fi
8bb2c122 2420else
bec39cab 2421 ac_cpp_err=yes
8bb2c122 2422fi
bec39cab
AC
2423if test -z "$ac_cpp_err"; then
2424 # Broken: success on invalid input.
2425continue
8bb2c122 2426else
bec39cab
AC
2427 echo "$as_me: failed program was:" >&5
2428sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 2429
bec39cab
AC
2430 # Passes both tests.
2431ac_preproc_ok=:
2432break
8bb2c122 2433fi
bec39cab 2434rm -f conftest.err conftest.$ac_ext
8bb2c122 2435
bec39cab
AC
2436done
2437# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2438rm -f conftest.err conftest.$ac_ext
2439if $ac_preproc_ok; then
2440 break
2441fi
8bb2c122 2442
bec39cab
AC
2443 done
2444 ac_cv_prog_CPP=$CPP
ddc9cd0f 2445
c906108c 2446fi
bec39cab
AC
2447 CPP=$ac_cv_prog_CPP
2448else
2449 ac_cv_prog_CPP=$CPP
c906108c 2450fi
b4e70030
JB
2451echo "$as_me:$LINENO: result: $CPP" >&5
2452echo "${ECHO_T}$CPP" >&6
bec39cab
AC
2453ac_preproc_ok=false
2454for ac_c_preproc_warn_flag in '' yes
2455do
2456 # Use a header file that comes with gcc, so configuring glibc
2457 # with a fresh cross-compiler works.
2458 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2459 # <limits.h> exists even on freestanding compilers.
2460 # On the NeXT, cc -E runs the code through the compiler's parser,
2461 # not just through cpp. "Syntax error" is here to catch this case.
2462 cat >conftest.$ac_ext <<_ACEOF
2463/* confdefs.h. */
2464_ACEOF
2465cat confdefs.h >>conftest.$ac_ext
2466cat >>conftest.$ac_ext <<_ACEOF
2467/* end confdefs.h. */
2468#ifdef __STDC__
2469# include <limits.h>
2470#else
2471# include <assert.h>
2472#endif
2473 Syntax error
2474_ACEOF
2475if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2476 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2477 ac_status=$?
2478 grep -v '^ *+' conftest.er1 >conftest.err
2479 rm -f conftest.er1
2480 cat conftest.err >&5
2481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); } >/dev/null; then
2483 if test -s conftest.err; then
2484 ac_cpp_err=$ac_c_preproc_warn_flag
2485 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2486 else
2487 ac_cpp_err=
2488 fi
c906108c 2489else
bec39cab 2490 ac_cpp_err=yes
c906108c 2491fi
bec39cab
AC
2492if test -z "$ac_cpp_err"; then
2493 :
c906108c 2494else
bec39cab
AC
2495 echo "$as_me: failed program was:" >&5
2496sed 's/^/| /' conftest.$ac_ext >&5
2497
2498 # Broken: fails on valid input.
2499continue
2500fi
2501rm -f conftest.err conftest.$ac_ext
2502
b4e70030 2503 # OK, works on sane cases. Now check whether non-existent headers
bec39cab
AC
2504 # can be detected and how.
2505 cat >conftest.$ac_ext <<_ACEOF
2506/* confdefs.h. */
2507_ACEOF
2508cat confdefs.h >>conftest.$ac_ext
2509cat >>conftest.$ac_ext <<_ACEOF
2510/* end confdefs.h. */
2511#include <ac_nonexistent.h>
2512_ACEOF
2513if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2514 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2515 ac_status=$?
2516 grep -v '^ *+' conftest.er1 >conftest.err
2517 rm -f conftest.er1
2518 cat conftest.err >&5
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); } >/dev/null; then
2521 if test -s conftest.err; then
2522 ac_cpp_err=$ac_c_preproc_warn_flag
2523 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2524 else
2525 ac_cpp_err=
2526 fi
c906108c 2527else
bec39cab 2528 ac_cpp_err=yes
c906108c 2529fi
bec39cab
AC
2530if test -z "$ac_cpp_err"; then
2531 # Broken: success on invalid input.
2532continue
c906108c 2533else
bec39cab
AC
2534 echo "$as_me: failed program was:" >&5
2535sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2536
bec39cab
AC
2537 # Passes both tests.
2538ac_preproc_ok=:
2539break
c906108c 2540fi
bec39cab 2541rm -f conftest.err conftest.$ac_ext
c906108c 2542
bec39cab
AC
2543done
2544# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2545rm -f conftest.err conftest.$ac_ext
2546if $ac_preproc_ok; then
c906108c
SS
2547 :
2548else
bec39cab
AC
2549 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2550See \`config.log' for more details." >&5
2551echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2552See \`config.log' for more details." >&2;}
2553 { (exit 1); exit 1; }; }
c906108c 2554fi
c906108c 2555
bec39cab
AC
2556ac_ext=c
2557ac_cpp='$CPP $CPPFLAGS'
2558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2560ac_compiler_gnu=$ac_cv_c_compiler_gnu
2561
2562
b4e70030
JB
2563echo "$as_me:$LINENO: checking for egrep" >&5
2564echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2565if test "${ac_cv_prog_egrep+set}" = set; then
4e8d927d
DJ
2566 echo $ECHO_N "(cached) $ECHO_C" >&6
2567else
b4e70030
JB
2568 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2569 then ac_cv_prog_egrep='grep -E'
2570 else ac_cv_prog_egrep='egrep'
bec39cab 2571 fi
4e8d927d 2572fi
b4e70030
JB
2573echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2574echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2575 EGREP=$ac_cv_prog_egrep
c906108c 2576
bec39cab
AC
2577
2578
b4e70030
JB
2579echo "$as_me:$LINENO: checking for AIX" >&5
2580echo $ECHO_N "checking for AIX... $ECHO_C" >&6
bec39cab
AC
2581cat >conftest.$ac_ext <<_ACEOF
2582/* confdefs.h. */
2583_ACEOF
2584cat confdefs.h >>conftest.$ac_ext
2585cat >>conftest.$ac_ext <<_ACEOF
2586/* end confdefs.h. */
2587#ifdef _AIX
2588 yes
2589#endif
2590
2591_ACEOF
c906108c 2592if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 2593 $EGREP "yes" >/dev/null 2>&1; then
b4e70030
JB
2594 echo "$as_me:$LINENO: result: yes" >&5
2595echo "${ECHO_T}yes" >&6
bec39cab
AC
2596cat >>confdefs.h <<\_ACEOF
2597#define _ALL_SOURCE 1
2598_ACEOF
2599
c906108c 2600else
b4e70030
JB
2601 echo "$as_me:$LINENO: result: no" >&5
2602echo "${ECHO_T}no" >&6
c906108c
SS
2603fi
2604rm -f conftest*
2605
c906108c 2606
b4e70030
JB
2607echo "$as_me:$LINENO: checking for library containing strerror" >&5
2608echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
bec39cab
AC
2609if test "${ac_cv_search_strerror+set}" = set; then
2610 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2611else
bec39cab 2612 ac_func_search_save_LIBS=$LIBS
b4e70030 2613ac_cv_search_strerror=no
bec39cab
AC
2614cat >conftest.$ac_ext <<_ACEOF
2615/* confdefs.h. */
2616_ACEOF
2617cat confdefs.h >>conftest.$ac_ext
2618cat >>conftest.$ac_ext <<_ACEOF
2619/* end confdefs.h. */
c906108c 2620
b4e70030 2621/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
2622#ifdef __cplusplus
2623extern "C"
2624#endif
b4e70030
JB
2625/* We use char because int might match the return type of a gcc2
2626 builtin and then its argument prototype would still apply. */
bec39cab
AC
2627char strerror ();
2628int
2629main ()
2630{
b4e70030 2631strerror ();
bec39cab
AC
2632 ;
2633 return 0;
2634}
2635_ACEOF
b4e70030 2636rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
2637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2638 (eval $ac_link) 2>conftest.er1
2639 ac_status=$?
2640 grep -v '^ *+' conftest.er1 >conftest.err
2641 rm -f conftest.er1
2642 cat conftest.err >&5
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); } &&
b4e70030
JB
2645 { ac_try='test -z "$ac_c_werror_flag"
2646 || test ! -s conftest.err'
bec39cab
AC
2647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2648 (eval $ac_try) 2>&5
2649 ac_status=$?
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); }; } &&
2652 { ac_try='test -s conftest$ac_exeext'
2653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654 (eval $ac_try) 2>&5
2655 ac_status=$?
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); }; }; then
b4e70030 2658 ac_cv_search_strerror="none required"
c906108c 2659else
bec39cab
AC
2660 echo "$as_me: failed program was:" >&5
2661sed 's/^/| /' conftest.$ac_ext >&5
c906108c
SS
2662
2663fi
bec39cab 2664rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
2665 conftest$ac_exeext conftest.$ac_ext
2666if test "$ac_cv_search_strerror" = no; then
2667 for ac_lib in cposix; do
2668 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2669 cat >conftest.$ac_ext <<_ACEOF
2670/* confdefs.h. */
2671_ACEOF
2672cat confdefs.h >>conftest.$ac_ext
2673cat >>conftest.$ac_ext <<_ACEOF
2674/* end confdefs.h. */
2675
2676/* Override any gcc2 internal prototype to avoid an error. */
2677#ifdef __cplusplus
2678extern "C"
2679#endif
2680/* We use char because int might match the return type of a gcc2
2681 builtin and then its argument prototype would still apply. */
2682char strerror ();
2683int
2684main ()
2685{
2686strerror ();
2687 ;
2688 return 0;
2689}
2690_ACEOF
2691rm -f conftest.$ac_objext conftest$ac_exeext
2692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2693 (eval $ac_link) 2>conftest.er1
2694 ac_status=$?
2695 grep -v '^ *+' conftest.er1 >conftest.err
2696 rm -f conftest.er1
2697 cat conftest.err >&5
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); } &&
2700 { ac_try='test -z "$ac_c_werror_flag"
2701 || test ! -s conftest.err'
2702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2703 (eval $ac_try) 2>&5
2704 ac_status=$?
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); }; } &&
2707 { ac_try='test -s conftest$ac_exeext'
2708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709 (eval $ac_try) 2>&5
2710 ac_status=$?
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); }; }; then
2713 ac_cv_search_strerror="-l$ac_lib"
2714break
4e8d927d 2715else
b4e70030
JB
2716 echo "$as_me: failed program was:" >&5
2717sed 's/^/| /' conftest.$ac_ext >&5
2718
2719fi
2720rm -f conftest.err conftest.$ac_objext \
2721 conftest$ac_exeext conftest.$ac_ext
2722 done
c906108c 2723fi
bec39cab 2724LIBS=$ac_func_search_save_LIBS
c906108c 2725fi
b4e70030
JB
2726echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2727echo "${ECHO_T}$ac_cv_search_strerror" >&6
2728if test "$ac_cv_search_strerror" != no; then
2729 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
bec39cab 2730
c906108c
SS
2731fi
2732
783e057b
DJ
2733if test -n "$ac_tool_prefix"; then
2734 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2735set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2736echo "$as_me:$LINENO: checking for $ac_word" >&5
2737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2738if test "${ac_cv_prog_RANLIB+set}" = set; then
2739 echo $ECHO_N "(cached) $ECHO_C" >&6
2740else
2741 if test -n "$RANLIB"; then
2742 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2743else
2744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745for as_dir in $PATH
2746do
2747 IFS=$as_save_IFS
2748 test -z "$as_dir" && as_dir=.
2749 for ac_exec_ext in '' $ac_executable_extensions; do
2750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2751 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2753 break 2
2754 fi
2755done
2756done
c906108c 2757
783e057b
DJ
2758fi
2759fi
2760RANLIB=$ac_cv_prog_RANLIB
2761if test -n "$RANLIB"; then
2762 echo "$as_me:$LINENO: result: $RANLIB" >&5
2763echo "${ECHO_T}$RANLIB" >&6
2764else
2765 echo "$as_me:$LINENO: result: no" >&5
2766echo "${ECHO_T}no" >&6
2767fi
bec39cab 2768
783e057b
DJ
2769fi
2770if test -z "$ac_cv_prog_RANLIB"; then
2771 ac_ct_RANLIB=$RANLIB
2772 # Extract the first word of "ranlib", so it can be a program name with args.
2773set dummy ranlib; ac_word=$2
2774echo "$as_me:$LINENO: checking for $ac_word" >&5
2775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2776if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
bec39cab 2777 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2778else
783e057b
DJ
2779 if test -n "$ac_ct_RANLIB"; then
2780 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2781else
2782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783for as_dir in $PATH
bec39cab 2784do
783e057b
DJ
2785 IFS=$as_save_IFS
2786 test -z "$as_dir" && as_dir=.
2787 for ac_exec_ext in '' $ac_executable_extensions; do
2788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2789 ac_cv_prog_ac_ct_RANLIB="ranlib"
2790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2791 break 2
2792 fi
2793done
2794done
2795
2796 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2797fi
2798fi
2799ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2800if test -n "$ac_ct_RANLIB"; then
2801 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2802echo "${ECHO_T}$ac_ct_RANLIB" >&6
2803else
2804 echo "$as_me:$LINENO: result: no" >&5
2805echo "${ECHO_T}no" >&6
2806fi
2807
2808 RANLIB=$ac_ct_RANLIB
2809else
2810 RANLIB="$ac_cv_prog_RANLIB"
2811fi
2812
2813echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2814echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2815if test "${ac_cv_header_stdc+set}" = set; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2817else
bec39cab
AC
2818 cat >conftest.$ac_ext <<_ACEOF
2819/* confdefs.h. */
2820_ACEOF
2821cat confdefs.h >>conftest.$ac_ext
2822cat >>conftest.$ac_ext <<_ACEOF
2823/* end confdefs.h. */
783e057b 2824#include <stdlib.h>
bec39cab 2825#include <stdarg.h>
783e057b
DJ
2826#include <string.h>
2827#include <float.h>
c906108c 2828
bec39cab
AC
2829int
2830main ()
2831{
c906108c 2832
bec39cab
AC
2833 ;
2834 return 0;
2835}
2836_ACEOF
2837rm -f conftest.$ac_objext
2838if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2839 (eval $ac_compile) 2>conftest.er1
2840 ac_status=$?
2841 grep -v '^ *+' conftest.er1 >conftest.err
2842 rm -f conftest.er1
2843 cat conftest.err >&5
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); } &&
b4e70030
JB
2846 { ac_try='test -z "$ac_c_werror_flag"
2847 || test ! -s conftest.err'
bec39cab
AC
2848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2849 (eval $ac_try) 2>&5
2850 ac_status=$?
2851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); }; } &&
2853 { ac_try='test -s conftest.$ac_objext'
2854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855 (eval $ac_try) 2>&5
2856 ac_status=$?
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }; }; then
783e057b 2859 ac_cv_header_stdc=yes
c906108c 2860else
bec39cab
AC
2861 echo "$as_me: failed program was:" >&5
2862sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2863
783e057b 2864ac_cv_header_stdc=no
c906108c 2865fi
bec39cab 2866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 2867
783e057b
DJ
2868if test $ac_cv_header_stdc = yes; then
2869 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2870 cat >conftest.$ac_ext <<_ACEOF
2871/* confdefs.h. */
2872_ACEOF
2873cat confdefs.h >>conftest.$ac_ext
2874cat >>conftest.$ac_ext <<_ACEOF
2875/* end confdefs.h. */
2876#include <string.h>
c906108c 2877
783e057b
DJ
2878_ACEOF
2879if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2880 $EGREP "memchr" >/dev/null 2>&1; then
2881 :
c906108c 2882else
783e057b 2883 ac_cv_header_stdc=no
c906108c 2884fi
783e057b 2885rm -f conftest*
c906108c
SS
2886
2887fi
2888
783e057b
DJ
2889if test $ac_cv_header_stdc = yes; then
2890 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2891 cat >conftest.$ac_ext <<_ACEOF
2892/* confdefs.h. */
2893_ACEOF
2894cat confdefs.h >>conftest.$ac_ext
2895cat >>conftest.$ac_ext <<_ACEOF
2896/* end confdefs.h. */
2897#include <stdlib.h>
bec39cab 2898
783e057b
DJ
2899_ACEOF
2900if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2901 $EGREP "free" >/dev/null 2>&1; then
2902 :
bec39cab 2903else
783e057b 2904 ac_cv_header_stdc=no
bec39cab 2905fi
783e057b 2906rm -f conftest*
bec39cab
AC
2907
2908fi
bec39cab 2909
783e057b
DJ
2910if test $ac_cv_header_stdc = yes; then
2911 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2912 if test "$cross_compiling" = yes; then
2913 :
bec39cab 2914else
783e057b
DJ
2915 cat >conftest.$ac_ext <<_ACEOF
2916/* confdefs.h. */
2917_ACEOF
2918cat confdefs.h >>conftest.$ac_ext
2919cat >>conftest.$ac_ext <<_ACEOF
2920/* end confdefs.h. */
2921#include <ctype.h>
2922#if ((' ' & 0x0FF) == 0x020)
2923# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2924# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2925#else
2926# define ISLOWER(c) \
2927 (('a' <= (c) && (c) <= 'i') \
2928 || ('j' <= (c) && (c) <= 'r') \
2929 || ('s' <= (c) && (c) <= 'z'))
2930# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2931#endif
2932
2933#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2934int
2935main ()
2936{
2937 int i;
2938 for (i = 0; i < 256; i++)
2939 if (XOR (islower (i), ISLOWER (i))
2940 || toupper (i) != TOUPPER (i))
2941 exit(2);
2942 exit (0);
2943}
2944_ACEOF
2945rm -f conftest$ac_exeext
2946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2947 (eval $ac_link) 2>&5
2948 ac_status=$?
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952 (eval $ac_try) 2>&5
2953 ac_status=$?
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); }; }; then
2956 :
2957else
2958 echo "$as_me: program exited with status $ac_status" >&5
2959echo "$as_me: failed program was:" >&5
2960sed 's/^/| /' conftest.$ac_ext >&5
2961
2962( exit $ac_status )
2963ac_cv_header_stdc=no
2964fi
2965rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2966fi
2967fi
2968fi
2969echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2970echo "${ECHO_T}$ac_cv_header_stdc" >&6
2971if test $ac_cv_header_stdc = yes; then
2972
2973cat >>confdefs.h <<\_ACEOF
2974#define STDC_HEADERS 1
2975_ACEOF
2976
2977fi
2978
2979# On IRIX 5.3, sys/types and inttypes.h are conflicting.
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2990 inttypes.h stdint.h unistd.h
2991do
2992as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2993echo "$as_me:$LINENO: checking for $ac_header" >&5
2994echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2995if eval "test \"\${$as_ac_Header+set}\" = set"; then
2996 echo $ECHO_N "(cached) $ECHO_C" >&6
2997else
2998 cat >conftest.$ac_ext <<_ACEOF
2999/* confdefs.h. */
3000_ACEOF
3001cat confdefs.h >>conftest.$ac_ext
3002cat >>conftest.$ac_ext <<_ACEOF
3003/* end confdefs.h. */
3004$ac_includes_default
3005
3006#include <$ac_header>
3007_ACEOF
3008rm -f conftest.$ac_objext
3009if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3010 (eval $ac_compile) 2>conftest.er1
3011 ac_status=$?
3012 grep -v '^ *+' conftest.er1 >conftest.err
3013 rm -f conftest.er1
3014 cat conftest.err >&5
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); } &&
3017 { ac_try='test -z "$ac_c_werror_flag"
3018 || test ! -s conftest.err'
3019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3020 (eval $ac_try) 2>&5
3021 ac_status=$?
3022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3023 (exit $ac_status); }; } &&
3024 { ac_try='test -s conftest.$ac_objext'
3025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3026 (eval $ac_try) 2>&5
3027 ac_status=$?
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); }; }; then
3030 eval "$as_ac_Header=yes"
3031else
3032 echo "$as_me: failed program was:" >&5
3033sed 's/^/| /' conftest.$ac_ext >&5
3034
3035eval "$as_ac_Header=no"
3036fi
3037rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3038fi
3039echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3040echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3041if test `eval echo '${'$as_ac_Header'}'` = yes; then
3042 cat >>confdefs.h <<_ACEOF
3043#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3044_ACEOF
3045
3046fi
3047
3048done
3049
3050
3051
3052 if test "${ac_cv_header_minix_config_h+set}" = set; then
3053 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3054echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3055if test "${ac_cv_header_minix_config_h+set}" = set; then
3056 echo $ECHO_N "(cached) $ECHO_C" >&6
3057fi
3058echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3059echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3060else
3061 # Is the header compilable?
3062echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3063echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3064cat >conftest.$ac_ext <<_ACEOF
3065/* confdefs.h. */
3066_ACEOF
3067cat confdefs.h >>conftest.$ac_ext
3068cat >>conftest.$ac_ext <<_ACEOF
3069/* end confdefs.h. */
3070$ac_includes_default
3071#include <minix/config.h>
3072_ACEOF
3073rm -f conftest.$ac_objext
3074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3075 (eval $ac_compile) 2>conftest.er1
3076 ac_status=$?
3077 grep -v '^ *+' conftest.er1 >conftest.err
3078 rm -f conftest.er1
3079 cat conftest.err >&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); } &&
3082 { ac_try='test -z "$ac_c_werror_flag"
3083 || test ! -s conftest.err'
3084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3085 (eval $ac_try) 2>&5
3086 ac_status=$?
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); }; } &&
3089 { ac_try='test -s conftest.$ac_objext'
3090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3091 (eval $ac_try) 2>&5
3092 ac_status=$?
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); }; }; then
3095 ac_header_compiler=yes
3096else
3097 echo "$as_me: failed program was:" >&5
3098sed 's/^/| /' conftest.$ac_ext >&5
3099
3100ac_header_compiler=no
3101fi
3102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3103echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3104echo "${ECHO_T}$ac_header_compiler" >&6
3105
3106# Is the header present?
3107echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3108echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3109cat >conftest.$ac_ext <<_ACEOF
3110/* confdefs.h. */
3111_ACEOF
3112cat confdefs.h >>conftest.$ac_ext
3113cat >>conftest.$ac_ext <<_ACEOF
3114/* end confdefs.h. */
3115#include <minix/config.h>
3116_ACEOF
3117if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3118 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3119 ac_status=$?
3120 grep -v '^ *+' conftest.er1 >conftest.err
3121 rm -f conftest.er1
3122 cat conftest.err >&5
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); } >/dev/null; then
3125 if test -s conftest.err; then
3126 ac_cpp_err=$ac_c_preproc_warn_flag
3127 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3128 else
3129 ac_cpp_err=
3130 fi
3131else
3132 ac_cpp_err=yes
3133fi
3134if test -z "$ac_cpp_err"; then
3135 ac_header_preproc=yes
3136else
3137 echo "$as_me: failed program was:" >&5
3138sed 's/^/| /' conftest.$ac_ext >&5
3139
3140 ac_header_preproc=no
3141fi
3142rm -f conftest.err conftest.$ac_ext
3143echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3144echo "${ECHO_T}$ac_header_preproc" >&6
3145
3146# So? What about this header?
3147case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3148 yes:no: )
3149 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3150echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3151 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3152echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3153 ac_header_preproc=yes
3154 ;;
3155 no:yes:* )
3156 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3157echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3158 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3159echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3160 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3161echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3162 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3163echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3164 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3165echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3166 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3167echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3168 (
3169 cat <<\_ASBOX
3170## ------------------------------------------ ##
3171## Report this to the AC_PACKAGE_NAME lists. ##
3172## ------------------------------------------ ##
3173_ASBOX
3174 ) |
3175 sed "s/^/$as_me: WARNING: /" >&2
3176 ;;
3177esac
3178echo "$as_me:$LINENO: checking for minix/config.h" >&5
3179echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3180if test "${ac_cv_header_minix_config_h+set}" = set; then
3181 echo $ECHO_N "(cached) $ECHO_C" >&6
3182else
3183 ac_cv_header_minix_config_h=$ac_header_preproc
3184fi
3185echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3186echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3187
3188fi
3189if test $ac_cv_header_minix_config_h = yes; then
3190 MINIX=yes
3191else
3192 MINIX=
3193fi
3194
3195
3196 if test "$MINIX" = yes; then
3197
3198cat >>confdefs.h <<\_ACEOF
3199#define _POSIX_SOURCE 1
3200_ACEOF
3201
3202
3203cat >>confdefs.h <<\_ACEOF
3204#define _POSIX_1_SOURCE 2
3205_ACEOF
3206
3207
3208cat >>confdefs.h <<\_ACEOF
3209#define _MINIX 1
3210_ACEOF
3211
3212 fi
3213
3214
3215
3216 echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3217echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6
3218if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3220else
3221 cat >conftest.$ac_ext <<_ACEOF
3222/* confdefs.h. */
3223_ACEOF
3224cat confdefs.h >>conftest.$ac_ext
3225cat >>conftest.$ac_ext <<_ACEOF
3226/* end confdefs.h. */
3227
3228# define __EXTENSIONS__ 1
3229 $ac_includes_default
3230int
3231main ()
3232{
3233
3234 ;
3235 return 0;
3236}
3237_ACEOF
3238rm -f conftest.$ac_objext
3239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3240 (eval $ac_compile) 2>conftest.er1
3241 ac_status=$?
3242 grep -v '^ *+' conftest.er1 >conftest.err
3243 rm -f conftest.er1
3244 cat conftest.err >&5
3245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3246 (exit $ac_status); } &&
3247 { ac_try='test -z "$ac_c_werror_flag"
3248 || test ! -s conftest.err'
3249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3250 (eval $ac_try) 2>&5
3251 ac_status=$?
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); }; } &&
3254 { ac_try='test -s conftest.$ac_objext'
3255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3256 (eval $ac_try) 2>&5
3257 ac_status=$?
3258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259 (exit $ac_status); }; }; then
3260 ac_cv_safe_to_define___extensions__=yes
3261else
3262 echo "$as_me: failed program was:" >&5
3263sed 's/^/| /' conftest.$ac_ext >&5
3264
3265ac_cv_safe_to_define___extensions__=no
3266fi
3267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3268fi
3269echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3270echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6
3271 test $ac_cv_safe_to_define___extensions__ = yes &&
3272 cat >>confdefs.h <<\_ACEOF
3273#define __EXTENSIONS__ 1
3274_ACEOF
3275
3276 cat >>confdefs.h <<\_ACEOF
3277#define _ALL_SOURCE 1
3278_ACEOF
3279
3280 cat >>confdefs.h <<\_ACEOF
3281#define _GNU_SOURCE 1
3282_ACEOF
3283
3284 cat >>confdefs.h <<\_ACEOF
3285#define _POSIX_PTHREAD_SEMANTICS 1
3286_ACEOF
3287
3288 cat >>confdefs.h <<\_ACEOF
3289#define _TANDEM_SOURCE 1
3290_ACEOF
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
3302echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
3303if test "${am_cv_prog_cc_stdc+set}" = set; then
3304 echo $ECHO_N "(cached) $ECHO_C" >&6
3305else
3306 am_cv_prog_cc_stdc=no
3307ac_save_CC="$CC"
3308# Don't try gcc -ansi; that turns off useful extensions and
3309# breaks some systems' header files.
3310# AIX -qlanglvl=ansi
3311# Ultrix and OSF/1 -std1
3312# HP-UX 10.20 and later -Ae
3313# HP-UX older versions -Aa -D_HPUX_SOURCE
3314# SVR4 -Xc -D__EXTENSIONS__
3315for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3316do
3317 CC="$ac_save_CC $ac_arg"
3318 cat >conftest.$ac_ext <<_ACEOF
3319/* confdefs.h. */
3320_ACEOF
3321cat confdefs.h >>conftest.$ac_ext
3322cat >>conftest.$ac_ext <<_ACEOF
3323/* end confdefs.h. */
3324#include <stdarg.h>
3325#include <stdio.h>
3326#include <sys/types.h>
3327#include <sys/stat.h>
3328/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3329struct buf { int x; };
3330FILE * (*rcsopen) (struct buf *, struct stat *, int);
3331static char *e (p, i)
3332 char **p;
3333 int i;
3334{
3335 return p[i];
3336}
3337static char *f (char * (*g) (char **, int), char **p, ...)
3338{
3339 char *s;
3340 va_list v;
3341 va_start (v,p);
3342 s = g (p, va_arg (v,int));
3343 va_end (v);
3344 return s;
3345}
3346int test (int i, double x);
3347struct s1 {int (*f) (int a);};
3348struct s2 {int (*f) (double a);};
3349int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3350int argc;
3351char **argv;
3352
3353int
3354main ()
3355{
3356
3357return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3358
3359 ;
3360 return 0;
3361}
3362_ACEOF
3363rm -f conftest.$ac_objext
3364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3365 (eval $ac_compile) 2>conftest.er1
3366 ac_status=$?
3367 grep -v '^ *+' conftest.er1 >conftest.err
3368 rm -f conftest.er1
3369 cat conftest.err >&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); } &&
3372 { ac_try='test -z "$ac_c_werror_flag"
3373 || test ! -s conftest.err'
3374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3375 (eval $ac_try) 2>&5
3376 ac_status=$?
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }; } &&
3379 { ac_try='test -s conftest.$ac_objext'
3380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3381 (eval $ac_try) 2>&5
3382 ac_status=$?
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); }; }; then
3385 am_cv_prog_cc_stdc="$ac_arg"; break
3386else
3387 echo "$as_me: failed program was:" >&5
3388sed 's/^/| /' conftest.$ac_ext >&5
3389
3390fi
3391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3392done
3393CC="$ac_save_CC"
3394
3395fi
3396
3397if test -z "$am_cv_prog_cc_stdc"; then
3398 echo "$as_me:$LINENO: result: none needed" >&5
3399echo "${ECHO_T}none needed" >&6
3400else
3401 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3402echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3403fi
3404case "x$am_cv_prog_cc_stdc" in
3405 x|xno) ;;
3406 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3407esac
3408
3409
3410ac_aux_dir=
3411for ac_dir in .. $srcdir/..; do
3412 if test -f $ac_dir/install-sh; then
3413 ac_aux_dir=$ac_dir
3414 ac_install_sh="$ac_aux_dir/install-sh -c"
3415 break
3416 elif test -f $ac_dir/install.sh; then
3417 ac_aux_dir=$ac_dir
3418 ac_install_sh="$ac_aux_dir/install.sh -c"
3419 break
3420 elif test -f $ac_dir/shtool; then
3421 ac_aux_dir=$ac_dir
3422 ac_install_sh="$ac_aux_dir/shtool install -c"
3423 break
3424 fi
3425done
3426if test -z "$ac_aux_dir"; then
3427 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in .. $srcdir/.." >&5
3428echo "$as_me: error: cannot find install-sh or install.sh in .. $srcdir/.." >&2;}
3429 { (exit 1); exit 1; }; }
3430fi
3431ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3432ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3433ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3434
3435# Make sure we can run config.sub.
3436$ac_config_sub sun4 >/dev/null 2>&1 ||
3437 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3438echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3439 { (exit 1); exit 1; }; }
3440
3441echo "$as_me:$LINENO: checking build system type" >&5
3442echo $ECHO_N "checking build system type... $ECHO_C" >&6
3443if test "${ac_cv_build+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3445else
3446 ac_cv_build_alias=$build_alias
3447test -z "$ac_cv_build_alias" &&
3448 ac_cv_build_alias=`$ac_config_guess`
3449test -z "$ac_cv_build_alias" &&
3450 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3451echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3452 { (exit 1); exit 1; }; }
3453ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3454 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3455echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3456 { (exit 1); exit 1; }; }
3457
3458fi
3459echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3460echo "${ECHO_T}$ac_cv_build" >&6
3461build=$ac_cv_build
3462build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3463build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3464build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3465
3466
3467echo "$as_me:$LINENO: checking host system type" >&5
3468echo $ECHO_N "checking host system type... $ECHO_C" >&6
3469if test "${ac_cv_host+set}" = set; then
3470 echo $ECHO_N "(cached) $ECHO_C" >&6
3471else
3472 ac_cv_host_alias=$host_alias
3473test -z "$ac_cv_host_alias" &&
3474 ac_cv_host_alias=$ac_cv_build_alias
3475ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3476 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3477echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3478 { (exit 1); exit 1; }; }
3479
3480fi
3481echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3482echo "${ECHO_T}$ac_cv_host" >&6
3483host=$ac_cv_host
3484host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3485host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3486host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3487
3488
3489echo "$as_me:$LINENO: checking target system type" >&5
3490echo $ECHO_N "checking target system type... $ECHO_C" >&6
3491if test "${ac_cv_target+set}" = set; then
3492 echo $ECHO_N "(cached) $ECHO_C" >&6
3493else
3494 ac_cv_target_alias=$target_alias
3495test "x$ac_cv_target_alias" = "x" &&
b4e70030
JB
3496 ac_cv_target_alias=$ac_cv_host_alias
3497ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3498 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3499echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
bec39cab
AC
3500 { (exit 1); exit 1; }; }
3501
3502fi
783e057b
DJ
3503echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3504echo "${ECHO_T}$ac_cv_target" >&6
3505target=$ac_cv_target
3506target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3507target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3508target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3509
3510
3511# The aliases save the names the user supplied, while $host etc.
3512# will get canonicalized.
3513test -n "$target_alias" &&
3514 test "$program_prefix$program_suffix$program_transform_name" = \
3515 NONENONEs,x,x, &&
3516 program_prefix=${target_alias}-
3517
3518
3519CONFIG_OBS=
3520CONFIG_DEPS=
3521CONFIG_SRCS=
3522ENABLE_CFLAGS=
3523
3524CONFIG_ALL=
3525CONFIG_CLEAN=
3526CONFIG_INSTALL=
3527CONFIG_UNINSTALL=
3528
3529# If we haven't got the data from the intl directory,
3530# assume NLS is disabled.
3531USE_NLS=no
3532LIBINTL=
3533LIBINTL_DEP=
3534INCINTL=
3535XGETTEXT=
3536GMSGFMT=
3537POSUB=
3538
3539if test -f ../intl/config.intl; then
3540 . ../intl/config.intl
3541fi
3542echo "$as_me:$LINENO: checking whether NLS is requested" >&5
3543echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
3544if test x"$USE_NLS" != xyes; then
3545 echo "$as_me:$LINENO: result: no" >&5
3546echo "${ECHO_T}no" >&6
3547else
3548 echo "$as_me:$LINENO: result: yes" >&5
3549echo "${ECHO_T}yes" >&6
3550
3551cat >>confdefs.h <<\_ACEOF
3552#define ENABLE_NLS 1
3553_ACEOF
3554
3555
3556 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
3557echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
3558 # Look for .po and .gmo files in the source directory.
3559 CATALOGS=
3560 XLINGUAS=
3561 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
3562 # If there aren't any .gmo files the shell will give us the
3563 # literal string "../path/to/srcdir/po/*.gmo" which has to be
3564 # weeded out.
3565 case "$cat" in *\**)
3566 continue;;
3567 esac
3568 # The quadruple backslash is collapsed to a double backslash
3569 # by the backticks, then collapsed again by the double quotes,
3570 # leaving us with one backslash in the sed expression (right
3571 # before the dot that mustn't act as a wildcard).
3572 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
3573 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
3574 # The user is allowed to set LINGUAS to a list of languages to
3575 # install catalogs for. If it's empty that means "all of them."
3576 if test "x$LINGUAS" = x; then
3577 CATALOGS="$CATALOGS $cat"
3578 XLINGUAS="$XLINGUAS $lang"
3579 else
3580 case "$LINGUAS" in *$lang*)
3581 CATALOGS="$CATALOGS $cat"
3582 XLINGUAS="$XLINGUAS $lang"
3583 ;;
3584 esac
3585 fi
3586 done
3587 LINGUAS="$XLINGUAS"
3588 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3589echo "${ECHO_T}$LINGUAS" >&6
3590
3591
3592 DATADIRNAME=share
3593
3594 INSTOBJEXT=.mo
3595
3596 GENCAT=gencat
3597
3598 CATOBJEXT=.gmo
3599
3600fi
3601
3602localedir='${datadir}/locale'
3603
3604
3605if test x"$USE_NLS" = xyes; then
3606 CONFIG_ALL="$CONFIG_ALL all-po"
3607 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3608 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3609 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3610fi
3611
3612
3613 GNULIB_MEMMEM=0;
3614 GNULIB_MEMPCPY=0;
3615 GNULIB_MEMRCHR=0;
3616 GNULIB_STPCPY=0;
3617 GNULIB_STPNCPY=0;
3618 GNULIB_STRCHRNUL=0;
3619 GNULIB_STRDUP=0;
3620 GNULIB_STRNDUP=0;
3621 GNULIB_STRNLEN=0;
3622 GNULIB_STRPBRK=0;
3623 GNULIB_STRSEP=0;
3624 GNULIB_STRSTR=0;
3625 GNULIB_STRCASESTR=0;
3626 GNULIB_STRTOK_R=0;
3627 GNULIB_MBSLEN=0;
3628 GNULIB_MBSNLEN=0;
3629 GNULIB_MBSCHR=0;
3630 GNULIB_MBSRCHR=0;
3631 GNULIB_MBSSTR=0;
3632 GNULIB_MBSCASECMP=0;
3633 GNULIB_MBSNCASECMP=0;
3634 GNULIB_MBSPCASECMP=0;
3635 GNULIB_MBSCASESTR=0;
3636 GNULIB_MBSCSPN=0;
3637 GNULIB_MBSPBRK=0;
3638 GNULIB_MBSSPN=0;
3639 GNULIB_MBSSEP=0;
3640 GNULIB_MBSTOK_R=0;
3641 GNULIB_STRERROR=0;
3642 GNULIB_STRSIGNAL=0;
3643 HAVE_DECL_MEMMEM=1;
3644 HAVE_MEMPCPY=1;
3645 HAVE_DECL_MEMRCHR=1;
3646 HAVE_STPCPY=1;
3647 HAVE_STPNCPY=1;
3648 HAVE_STRCHRNUL=1;
3649 HAVE_DECL_STRDUP=1;
3650 HAVE_STRNDUP=1;
3651 HAVE_DECL_STRNDUP=1;
3652 HAVE_DECL_STRNLEN=1;
3653 HAVE_STRPBRK=1;
3654 HAVE_STRSEP=1;
3655 HAVE_STRCASESTR=1;
3656 HAVE_DECL_STRTOK_R=1;
3657 HAVE_DECL_STRERROR=1;
3658 HAVE_DECL_STRSIGNAL=1;
3659 REPLACE_STRERROR=0;
3660 REPLACE_STRSIGNAL=0;
3661 REPLACE_MEMMEM=0;
3662 REPLACE_STRCASESTR=0;
3663 REPLACE_STRSTR=0;
3664
3665
3666 echo "$as_me:$LINENO: checking whether memmem is declared" >&5
3667echo $ECHO_N "checking whether memmem is declared... $ECHO_C" >&6
3668if test "${ac_cv_have_decl_memmem+set}" = set; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
3670else
3671 cat >conftest.$ac_ext <<_ACEOF
3672/* confdefs.h. */
3673_ACEOF
3674cat confdefs.h >>conftest.$ac_ext
3675cat >>conftest.$ac_ext <<_ACEOF
3676/* end confdefs.h. */
3677$ac_includes_default
3678int
3679main ()
3680{
3681#ifndef memmem
3682 char *p = (char *) memmem;
3683#endif
3684
3685 ;
3686 return 0;
3687}
3688_ACEOF
3689rm -f conftest.$ac_objext
3690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3691 (eval $ac_compile) 2>conftest.er1
3692 ac_status=$?
3693 grep -v '^ *+' conftest.er1 >conftest.err
3694 rm -f conftest.er1
3695 cat conftest.err >&5
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); } &&
3698 { ac_try='test -z "$ac_c_werror_flag"
3699 || test ! -s conftest.err'
3700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3701 (eval $ac_try) 2>&5
3702 ac_status=$?
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); }; } &&
3705 { ac_try='test -s conftest.$ac_objext'
3706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3707 (eval $ac_try) 2>&5
3708 ac_status=$?
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); }; }; then
3711 ac_cv_have_decl_memmem=yes
3712else
3713 echo "$as_me: failed program was:" >&5
3714sed 's/^/| /' conftest.$ac_ext >&5
3715
3716ac_cv_have_decl_memmem=no
3717fi
3718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3719fi
3720echo "$as_me:$LINENO: result: $ac_cv_have_decl_memmem" >&5
3721echo "${ECHO_T}$ac_cv_have_decl_memmem" >&6
3722if test $ac_cv_have_decl_memmem = yes; then
3723
3724cat >>confdefs.h <<_ACEOF
3725#define HAVE_DECL_MEMMEM 1
3726_ACEOF
3727
3728
3729else
3730 cat >>confdefs.h <<_ACEOF
3731#define HAVE_DECL_MEMMEM 0
3732_ACEOF
3733
3734
3735fi
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751for ac_func in memmem
3752do
3753as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3754echo "$as_me:$LINENO: checking for $ac_func" >&5
3755echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3756if eval "test \"\${$as_ac_var+set}\" = set"; then
3757 echo $ECHO_N "(cached) $ECHO_C" >&6
3758else
3759 cat >conftest.$ac_ext <<_ACEOF
3760/* confdefs.h. */
3761_ACEOF
3762cat confdefs.h >>conftest.$ac_ext
3763cat >>conftest.$ac_ext <<_ACEOF
3764/* end confdefs.h. */
3765/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3766 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3767#define $ac_func innocuous_$ac_func
3768
3769/* System header to define __stub macros and hopefully few prototypes,
3770 which can conflict with char $ac_func (); below.
3771 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3772 <limits.h> exists even on freestanding compilers. */
3773
3774#ifdef __STDC__
3775# include <limits.h>
3776#else
3777# include <assert.h>
3778#endif
3779
3780#undef $ac_func
3781
3782/* Override any gcc2 internal prototype to avoid an error. */
3783#ifdef __cplusplus
3784extern "C"
3785{
3786#endif
3787/* We use char because int might match the return type of a gcc2
3788 builtin and then its argument prototype would still apply. */
3789char $ac_func ();
3790/* The GNU C library defines this for functions which it implements
3791 to always fail with ENOSYS. Some functions are actually named
3792 something starting with __ and the normal name is an alias. */
3793#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3794choke me
3795#else
3796char (*f) () = $ac_func;
3797#endif
3798#ifdef __cplusplus
3799}
3800#endif
3801
3802int
3803main ()
3804{
3805return f != $ac_func;
3806 ;
3807 return 0;
3808}
3809_ACEOF
3810rm -f conftest.$ac_objext conftest$ac_exeext
3811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3812 (eval $ac_link) 2>conftest.er1
3813 ac_status=$?
3814 grep -v '^ *+' conftest.er1 >conftest.err
3815 rm -f conftest.er1
3816 cat conftest.err >&5
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); } &&
3819 { ac_try='test -z "$ac_c_werror_flag"
3820 || test ! -s conftest.err'
3821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3822 (eval $ac_try) 2>&5
3823 ac_status=$?
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); }; } &&
3826 { ac_try='test -s conftest$ac_exeext'
3827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3828 (eval $ac_try) 2>&5
3829 ac_status=$?
3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); }; }; then
3832 eval "$as_ac_var=yes"
3833else
3834 echo "$as_me: failed program was:" >&5
3835sed 's/^/| /' conftest.$ac_ext >&5
3836
3837eval "$as_ac_var=no"
3838fi
3839rm -f conftest.err conftest.$ac_objext \
3840 conftest$ac_exeext conftest.$ac_ext
3841fi
3842echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3843echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3844if test `eval echo '${'$as_ac_var'}'` = yes; then
3845 cat >>confdefs.h <<_ACEOF
3846#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3847_ACEOF
3848
3849else
3850
3851 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
3852
3853fi
3854done
3855
3856
3857
3858 :
3859
3860
3861
3862
3863
3864 if test $ac_cv_have_decl_memmem = no; then
3865 HAVE_DECL_MEMMEM=0
3866 fi
3867 :
3868
3869
3870 echo "$as_me:$LINENO: checking for long long int" >&5
3871echo $ECHO_N "checking for long long int... $ECHO_C" >&6
3872if test "${ac_cv_type_long_long_int+set}" = set; then
3873 echo $ECHO_N "(cached) $ECHO_C" >&6
3874else
3875 cat >conftest.$ac_ext <<_ACEOF
3876
3877 /* confdefs.h. */
3878_ACEOF
3879cat confdefs.h >>conftest.$ac_ext
3880cat >>conftest.$ac_ext <<_ACEOF
3881/* end confdefs.h. */
3882/* For now, do not test the preprocessor; as of 2007 there are too many
3883 implementations with broken preprocessors. Perhaps this can
3884 be revisited in 2012. In the meantime, code should not expect
3885 #if to work with literals wider than 32 bits. */
3886 /* Test literals. */
3887 long long int ll = 9223372036854775807ll;
3888 long long int nll = -9223372036854775807LL;
3889 unsigned long long int ull = 18446744073709551615ULL;
3890 /* Test constant expressions. */
3891 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
3892 ? 1 : -1)];
3893 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
3894 ? 1 : -1)];
3895 int i = 63;
3896int
3897main ()
3898{
3899/* Test availability of runtime routines for shift and division. */
3900 long long int llmax = 9223372036854775807ll;
3901 unsigned long long int ullmax = 18446744073709551615ull;
3902 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
3903 | (llmax / ll) | (llmax % ll)
3904 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
3905 | (ullmax / ull) | (ullmax % ull));
3906 ;
3907 return 0;
3908}
3909
3910_ACEOF
3911rm -f conftest.$ac_objext conftest$ac_exeext
3912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3913 (eval $ac_link) 2>conftest.er1
3914 ac_status=$?
3915 grep -v '^ *+' conftest.er1 >conftest.err
3916 rm -f conftest.er1
3917 cat conftest.err >&5
3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3919 (exit $ac_status); } &&
3920 { ac_try='test -z "$ac_c_werror_flag"
3921 || test ! -s conftest.err'
3922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3923 (eval $ac_try) 2>&5
3924 ac_status=$?
3925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926 (exit $ac_status); }; } &&
3927 { ac_try='test -s conftest$ac_exeext'
3928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3929 (eval $ac_try) 2>&5
3930 ac_status=$?
3931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3932 (exit $ac_status); }; }; then
3933 if test "$cross_compiling" = yes; then
3934 ac_cv_type_long_long_int=yes
3935else
3936 cat >conftest.$ac_ext <<_ACEOF
3937/* confdefs.h. */
3938_ACEOF
3939cat confdefs.h >>conftest.$ac_ext
3940cat >>conftest.$ac_ext <<_ACEOF
3941/* end confdefs.h. */
3942#include <limits.h>
3943 #ifndef LLONG_MAX
3944 # define HALF \
3945 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
3946 # define LLONG_MAX (HALF - 1 + HALF)
3947 #endif
3948int
3949main ()
3950{
3951long long int n = 1;
3952 int i;
3953 for (i = 0; ; i++)
3954 {
3955 long long int m = n << i;
3956 if (m >> i != n)
3957 return 1;
3958 if (LLONG_MAX / 2 < m)
3959 break;
3960 }
3961 return 0;
3962 ;
3963 return 0;
3964}
3965_ACEOF
3966rm -f conftest$ac_exeext
3967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3968 (eval $ac_link) 2>&5
3969 ac_status=$?
3970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3973 (eval $ac_try) 2>&5
3974 ac_status=$?
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); }; }; then
3977 ac_cv_type_long_long_int=yes
3978else
3979 echo "$as_me: program exited with status $ac_status" >&5
3980echo "$as_me: failed program was:" >&5
3981sed 's/^/| /' conftest.$ac_ext >&5
3982
3983( exit $ac_status )
3984ac_cv_type_long_long_int=no
3985fi
3986rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3987fi
3988else
3989 echo "$as_me: failed program was:" >&5
3990sed 's/^/| /' conftest.$ac_ext >&5
3991
3992ac_cv_type_long_long_int=no
3993fi
3994rm -f conftest.err conftest.$ac_objext \
3995 conftest$ac_exeext conftest.$ac_ext
3996fi
3997echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
3998echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
3999 if test $ac_cv_type_long_long_int = yes; then
4000
4001cat >>confdefs.h <<\_ACEOF
4002#define HAVE_LONG_LONG_INT 1
4003_ACEOF
4004
4005 fi
4006
4007
4008 echo "$as_me:$LINENO: checking for unsigned long long int" >&5
4009echo $ECHO_N "checking for unsigned long long int... $ECHO_C" >&6
4010if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
4011 echo $ECHO_N "(cached) $ECHO_C" >&6
4012else
4013 cat >conftest.$ac_ext <<_ACEOF
4014
4015 /* confdefs.h. */
4016_ACEOF
4017cat confdefs.h >>conftest.$ac_ext
4018cat >>conftest.$ac_ext <<_ACEOF
4019/* end confdefs.h. */
4020/* For now, do not test the preprocessor; as of 2007 there are too many
4021 implementations with broken preprocessors. Perhaps this can
4022 be revisited in 2012. In the meantime, code should not expect
4023 #if to work with literals wider than 32 bits. */
4024 /* Test literals. */
4025 long long int ll = 9223372036854775807ll;
4026 long long int nll = -9223372036854775807LL;
4027 unsigned long long int ull = 18446744073709551615ULL;
4028 /* Test constant expressions. */
4029 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
4030 ? 1 : -1)];
4031 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
4032 ? 1 : -1)];
4033 int i = 63;
4034int
4035main ()
4036{
4037/* Test availability of runtime routines for shift and division. */
4038 long long int llmax = 9223372036854775807ll;
4039 unsigned long long int ullmax = 18446744073709551615ull;
4040 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
4041 | (llmax / ll) | (llmax % ll)
4042 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
4043 | (ullmax / ull) | (ullmax % ull));
4044 ;
4045 return 0;
4046}
4047
4048_ACEOF
4049rm -f conftest.$ac_objext conftest$ac_exeext
4050if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4051 (eval $ac_link) 2>conftest.er1
4052 ac_status=$?
4053 grep -v '^ *+' conftest.er1 >conftest.err
4054 rm -f conftest.er1
4055 cat conftest.err >&5
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); } &&
4058 { ac_try='test -z "$ac_c_werror_flag"
4059 || test ! -s conftest.err'
4060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4061 (eval $ac_try) 2>&5
4062 ac_status=$?
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); }; } &&
4065 { ac_try='test -s conftest$ac_exeext'
4066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4067 (eval $ac_try) 2>&5
4068 ac_status=$?
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); }; }; then
4071 ac_cv_type_unsigned_long_long_int=yes
4072else
4073 echo "$as_me: failed program was:" >&5
4074sed 's/^/| /' conftest.$ac_ext >&5
4075
4076ac_cv_type_unsigned_long_long_int=no
4077fi
4078rm -f conftest.err conftest.$ac_objext \
4079 conftest$ac_exeext conftest.$ac_ext
4080fi
4081echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
4082echo "${ECHO_T}$ac_cv_type_unsigned_long_long_int" >&6
4083 if test $ac_cv_type_unsigned_long_long_int = yes; then
4084
4085cat >>confdefs.h <<\_ACEOF
4086#define HAVE_UNSIGNED_LONG_LONG_INT 1
4087_ACEOF
4088
4089 fi
4090
4091
4092
4093 echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
4094echo $ECHO_N "checking whether the preprocessor supports include_next... $ECHO_C" >&6
4095if test "${gl_cv_have_include_next+set}" = set; then
4096 echo $ECHO_N "(cached) $ECHO_C" >&6
4097else
4098 rm -rf conftestd1 conftestd2
4099 mkdir conftestd1 conftestd2
4100 cat <<EOF > conftestd1/conftest.h
4101#define DEFINED_IN_CONFTESTD1
4102#include_next <conftest.h>
4103#ifdef DEFINED_IN_CONFTESTD2
4104int foo;
4105#else
4106#error "include_next doesn't work"
4107#endif
4108EOF
4109 cat <<EOF > conftestd2/conftest.h
4110#ifndef DEFINED_IN_CONFTESTD1
4111#error "include_next test doesn't work"
4112#endif
4113#define DEFINED_IN_CONFTESTD2
4114EOF
4115 save_CPPFLAGS="$CPPFLAGS"
4116 CPPFLAGS="$CPPFLAGS -Iconftestd1 -Iconftestd2"
4117 cat >conftest.$ac_ext <<_ACEOF
4118#include <conftest.h>
4119_ACEOF
4120rm -f conftest.$ac_objext
4121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4122 (eval $ac_compile) 2>conftest.er1
4123 ac_status=$?
4124 grep -v '^ *+' conftest.er1 >conftest.err
4125 rm -f conftest.er1
4126 cat conftest.err >&5
4127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128 (exit $ac_status); } &&
4129 { ac_try='test -z "$ac_c_werror_flag"
4130 || test ! -s conftest.err'
4131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4132 (eval $ac_try) 2>&5
4133 ac_status=$?
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); }; } &&
4136 { ac_try='test -s conftest.$ac_objext'
4137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4138 (eval $ac_try) 2>&5
4139 ac_status=$?
4140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 (exit $ac_status); }; }; then
4142 gl_cv_have_include_next=yes
4143else
4144 echo "$as_me: failed program was:" >&5
4145sed 's/^/| /' conftest.$ac_ext >&5
4146
4147gl_cv_have_include_next=no
4148fi
4149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4150 CPPFLAGS="$save_CPPFLAGS"
4151 rm -rf conftestd1 conftestd2
4152
4153fi
4154echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
4155echo "${ECHO_T}$gl_cv_have_include_next" >&6
4156 if test $gl_cv_have_include_next = yes; then
4157
4158
4159cat >>confdefs.h <<\_ACEOF
4160#define HAVE_INCLUDE_NEXT 1
4161_ACEOF
4162
4163
4164 INCLUDE_NEXT=include_next
4165 else
4166 INCLUDE_NEXT=include
4167 fi
4168
4169
4170
4171
4172
4173
4174
4175for ac_header in $gl_header_list
4176do
4177as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4178if eval "test \"\${$as_ac_Header+set}\" = set"; then
4179 echo "$as_me:$LINENO: checking for $ac_header" >&5
4180echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4181if eval "test \"\${$as_ac_Header+set}\" = set"; then
4182 echo $ECHO_N "(cached) $ECHO_C" >&6
4183fi
4184echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4185echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4186else
4187 # Is the header compilable?
4188echo "$as_me:$LINENO: checking $ac_header usability" >&5
4189echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4190cat >conftest.$ac_ext <<_ACEOF
4191/* confdefs.h. */
4192_ACEOF
4193cat confdefs.h >>conftest.$ac_ext
4194cat >>conftest.$ac_ext <<_ACEOF
4195/* end confdefs.h. */
4196$ac_includes_default
4197#include <$ac_header>
4198_ACEOF
4199rm -f conftest.$ac_objext
4200if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4201 (eval $ac_compile) 2>conftest.er1
4202 ac_status=$?
4203 grep -v '^ *+' conftest.er1 >conftest.err
4204 rm -f conftest.er1
4205 cat conftest.err >&5
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); } &&
4208 { ac_try='test -z "$ac_c_werror_flag"
4209 || test ! -s conftest.err'
4210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4211 (eval $ac_try) 2>&5
4212 ac_status=$?
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); }; } &&
4215 { ac_try='test -s conftest.$ac_objext'
4216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4217 (eval $ac_try) 2>&5
4218 ac_status=$?
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); }; }; then
4221 ac_header_compiler=yes
4222else
4223 echo "$as_me: failed program was:" >&5
4224sed 's/^/| /' conftest.$ac_ext >&5
4225
4226ac_header_compiler=no
4227fi
4228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4229echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4230echo "${ECHO_T}$ac_header_compiler" >&6
4231
4232# Is the header present?
4233echo "$as_me:$LINENO: checking $ac_header presence" >&5
4234echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4235cat >conftest.$ac_ext <<_ACEOF
4236/* confdefs.h. */
4237_ACEOF
4238cat confdefs.h >>conftest.$ac_ext
4239cat >>conftest.$ac_ext <<_ACEOF
4240/* end confdefs.h. */
4241#include <$ac_header>
4242_ACEOF
4243if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4245 ac_status=$?
4246 grep -v '^ *+' conftest.er1 >conftest.err
4247 rm -f conftest.er1
4248 cat conftest.err >&5
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); } >/dev/null; then
4251 if test -s conftest.err; then
4252 ac_cpp_err=$ac_c_preproc_warn_flag
4253 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4254 else
4255 ac_cpp_err=
4256 fi
4257else
4258 ac_cpp_err=yes
4259fi
4260if test -z "$ac_cpp_err"; then
4261 ac_header_preproc=yes
4262else
4263 echo "$as_me: failed program was:" >&5
4264sed 's/^/| /' conftest.$ac_ext >&5
4265
4266 ac_header_preproc=no
4267fi
4268rm -f conftest.err conftest.$ac_ext
4269echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4270echo "${ECHO_T}$ac_header_preproc" >&6
4271
4272# So? What about this header?
4273case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4274 yes:no: )
4275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4276echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4278echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4279 ac_header_preproc=yes
4280 ;;
4281 no:yes:* )
4282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4283echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4285echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4287echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4289echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4291echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4293echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4294 (
4295 cat <<\_ASBOX
4296## ------------------------------------------ ##
4297## Report this to the AC_PACKAGE_NAME lists. ##
4298## ------------------------------------------ ##
4299_ASBOX
4300 ) |
4301 sed "s/^/$as_me: WARNING: /" >&2
4302 ;;
4303esac
4304echo "$as_me:$LINENO: checking for $ac_header" >&5
4305echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4306if eval "test \"\${$as_ac_Header+set}\" = set"; then
4307 echo $ECHO_N "(cached) $ECHO_C" >&6
4308else
4309 eval "$as_ac_Header=\$ac_header_preproc"
4310fi
4311echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4312echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4313
4314fi
4315if test `eval echo '${'$as_ac_Header'}'` = yes; then
4316 cat >>confdefs.h <<_ACEOF
4317#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4318_ACEOF
4319
4320fi
4321
4322done
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
4336echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
4337if test "${ac_cv_c_restrict+set}" = set; then
4338 echo $ECHO_N "(cached) $ECHO_C" >&6
4339else
4340 ac_cv_c_restrict=no
4341 # The order here caters to the fact that C++ does not require restrict.
4342 for ac_kw in __restrict __restrict__ _Restrict restrict; do
4343 cat >conftest.$ac_ext <<_ACEOF
4344/* confdefs.h. */
4345_ACEOF
4346cat confdefs.h >>conftest.$ac_ext
4347cat >>conftest.$ac_ext <<_ACEOF
4348/* end confdefs.h. */
4349typedef int * int_ptr;
4350 int foo (int_ptr $ac_kw ip) {
4351 return ip[0];
4352 }
4353int
4354main ()
4355{
4356int s[1];
4357 int * $ac_kw t = s;
4358 t[0] = 0;
4359 return foo(t)
4360 ;
4361 return 0;
4362}
4363_ACEOF
4364rm -f conftest.$ac_objext
4365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4366 (eval $ac_compile) 2>conftest.er1
4367 ac_status=$?
4368 grep -v '^ *+' conftest.er1 >conftest.err
4369 rm -f conftest.er1
4370 cat conftest.err >&5
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); } &&
4373 { ac_try='test -z "$ac_c_werror_flag"
4374 || test ! -s conftest.err'
4375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4376 (eval $ac_try) 2>&5
4377 ac_status=$?
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); }; } &&
4380 { ac_try='test -s conftest.$ac_objext'
4381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4382 (eval $ac_try) 2>&5
4383 ac_status=$?
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); }; }; then
4386 ac_cv_c_restrict=$ac_kw
4387else
4388 echo "$as_me: failed program was:" >&5
4389sed 's/^/| /' conftest.$ac_ext >&5
4390
4391fi
4392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4393 test "$ac_cv_c_restrict" != no && break
4394 done
4395
4396fi
4397echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
4398echo "${ECHO_T}$ac_cv_c_restrict" >&6
4399
4400
4401 case $ac_cv_c_restrict in
4402 restrict) ;;
4403 no) cat >>confdefs.h <<\_ACEOF
4404#define restrict
4405_ACEOF
4406 ;;
4407 *) cat >>confdefs.h <<_ACEOF
4408#define restrict $ac_cv_c_restrict
4409_ACEOF
4410 ;;
4411 esac
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425 :
4426
4427
4428
4429
4430
4431
4432
4433 if test $gl_cv_have_include_next = yes; then
4434 gl_cv_next_string_h='<'string.h'>'
4435 else
4436 echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
4437echo $ECHO_N "checking absolute name of <string.h>... $ECHO_C" >&6
4438if test "${gl_cv_next_string_h+set}" = set; then
4439 echo $ECHO_N "(cached) $ECHO_C" >&6
4440else
4441
4442 if test $ac_cv_header_string_h = yes; then
4443 cat >conftest.$ac_ext <<_ACEOF
4444/* confdefs.h. */
4445_ACEOF
4446cat confdefs.h >>conftest.$ac_ext
4447cat >>conftest.$ac_ext <<_ACEOF
4448/* end confdefs.h. */
4449#include <string.h>
4450
4451_ACEOF
4452 gl_cv_next_string_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4453 sed -n '\#/string.h#{
4454 s#.*"\(.*/string.h\)".*#\1#
4455 s#^/[^/]#//&#
4456 p
4457 q
4458 }'`'"'
4459 else
4460 gl_cv_next_string_h='<'string.h'>'
4461 fi
4462
4463fi
4464echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
4465echo "${ECHO_T}$gl_cv_next_string_h" >&6
4466 fi
4467 NEXT_STRING_H=$gl_cv_next_string_h
4468
4469
4470
4471
4472
4473 GNULIB_WCWIDTH=0;
4474 HAVE_DECL_WCWIDTH=1;
4475 REPLACE_WCWIDTH=0;
4476 WCHAR_H=
4477
4478
4479
4480
4481
4482if false; then
4483 GL_COND_LIBTOOL_TRUE=
4484 GL_COND_LIBTOOL_FALSE='#'
4485else
4486 GL_COND_LIBTOOL_TRUE='#'
4487 GL_COND_LIBTOOL_FALSE=
4488fi
4489
4490 gl_cond_libtool=false
4491 gl_libdeps=
4492 gl_ltlibdeps=
4493
4494
4495
4496 gl_source_base='gnulib'
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506for ac_func in memchr
4507do
4508as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4509echo "$as_me:$LINENO: checking for $ac_func" >&5
4510echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4511if eval "test \"\${$as_ac_var+set}\" = set"; then
4512 echo $ECHO_N "(cached) $ECHO_C" >&6
4513else
4514 cat >conftest.$ac_ext <<_ACEOF
4515/* confdefs.h. */
4516_ACEOF
4517cat confdefs.h >>conftest.$ac_ext
4518cat >>conftest.$ac_ext <<_ACEOF
4519/* end confdefs.h. */
4520/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4522#define $ac_func innocuous_$ac_func
4523
4524/* System header to define __stub macros and hopefully few prototypes,
4525 which can conflict with char $ac_func (); below.
4526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4527 <limits.h> exists even on freestanding compilers. */
4528
4529#ifdef __STDC__
4530# include <limits.h>
4531#else
4532# include <assert.h>
4533#endif
4534
4535#undef $ac_func
4536
4537/* Override any gcc2 internal prototype to avoid an error. */
4538#ifdef __cplusplus
4539extern "C"
4540{
4541#endif
4542/* We use char because int might match the return type of a gcc2
4543 builtin and then its argument prototype would still apply. */
4544char $ac_func ();
4545/* The GNU C library defines this for functions which it implements
4546 to always fail with ENOSYS. Some functions are actually named
4547 something starting with __ and the normal name is an alias. */
4548#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4549choke me
4550#else
4551char (*f) () = $ac_func;
4552#endif
4553#ifdef __cplusplus
4554}
4555#endif
4556
4557int
4558main ()
4559{
4560return f != $ac_func;
4561 ;
4562 return 0;
4563}
4564_ACEOF
4565rm -f conftest.$ac_objext conftest$ac_exeext
4566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4567 (eval $ac_link) 2>conftest.er1
4568 ac_status=$?
4569 grep -v '^ *+' conftest.er1 >conftest.err
4570 rm -f conftest.er1
4571 cat conftest.err >&5
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); } &&
4574 { ac_try='test -z "$ac_c_werror_flag"
4575 || test ! -s conftest.err'
4576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4577 (eval $ac_try) 2>&5
4578 ac_status=$?
4579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); }; } &&
4581 { ac_try='test -s conftest$ac_exeext'
4582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4583 (eval $ac_try) 2>&5
4584 ac_status=$?
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); }; }; then
4587 eval "$as_ac_var=yes"
4588else
4589 echo "$as_me: failed program was:" >&5
4590sed 's/^/| /' conftest.$ac_ext >&5
4591
4592eval "$as_ac_var=no"
4593fi
4594rm -f conftest.err conftest.$ac_objext \
4595 conftest$ac_exeext conftest.$ac_ext
4596fi
4597echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4598echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4599if test `eval echo '${'$as_ac_var'}'` = yes; then
4600 cat >>confdefs.h <<_ACEOF
4601#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4602_ACEOF
4603
4604else
4605
4606 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
4607
4608fi
4609done
4610
4611
4612 if test $ac_cv_func_memchr = no; then
4613
4614
4615for ac_header in bp-sym.h
4616do
4617as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4618if eval "test \"\${$as_ac_Header+set}\" = set"; then
4619 echo "$as_me:$LINENO: checking for $ac_header" >&5
4620echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4621if eval "test \"\${$as_ac_Header+set}\" = set"; then
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4623fi
4624echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4625echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4626else
4627 # Is the header compilable?
4628echo "$as_me:$LINENO: checking $ac_header usability" >&5
4629echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4630cat >conftest.$ac_ext <<_ACEOF
4631/* confdefs.h. */
4632_ACEOF
4633cat confdefs.h >>conftest.$ac_ext
4634cat >>conftest.$ac_ext <<_ACEOF
4635/* end confdefs.h. */
4636$ac_includes_default
4637#include <$ac_header>
4638_ACEOF
4639rm -f conftest.$ac_objext
4640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4641 (eval $ac_compile) 2>conftest.er1
4642 ac_status=$?
4643 grep -v '^ *+' conftest.er1 >conftest.err
4644 rm -f conftest.er1
4645 cat conftest.err >&5
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); } &&
4648 { ac_try='test -z "$ac_c_werror_flag"
4649 || test ! -s conftest.err'
4650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4651 (eval $ac_try) 2>&5
4652 ac_status=$?
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); }; } &&
4655 { ac_try='test -s conftest.$ac_objext'
4656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4657 (eval $ac_try) 2>&5
4658 ac_status=$?
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); }; }; then
4661 ac_header_compiler=yes
4662else
4663 echo "$as_me: failed program was:" >&5
4664sed 's/^/| /' conftest.$ac_ext >&5
4665
4666ac_header_compiler=no
4667fi
4668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4669echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4670echo "${ECHO_T}$ac_header_compiler" >&6
4671
4672# Is the header present?
4673echo "$as_me:$LINENO: checking $ac_header presence" >&5
4674echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4675cat >conftest.$ac_ext <<_ACEOF
4676/* confdefs.h. */
4677_ACEOF
4678cat confdefs.h >>conftest.$ac_ext
4679cat >>conftest.$ac_ext <<_ACEOF
4680/* end confdefs.h. */
4681#include <$ac_header>
4682_ACEOF
4683if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4684 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4685 ac_status=$?
4686 grep -v '^ *+' conftest.er1 >conftest.err
4687 rm -f conftest.er1
4688 cat conftest.err >&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); } >/dev/null; then
4691 if test -s conftest.err; then
4692 ac_cpp_err=$ac_c_preproc_warn_flag
4693 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4694 else
4695 ac_cpp_err=
4696 fi
4697else
4698 ac_cpp_err=yes
4699fi
4700if test -z "$ac_cpp_err"; then
4701 ac_header_preproc=yes
4702else
4703 echo "$as_me: failed program was:" >&5
4704sed 's/^/| /' conftest.$ac_ext >&5
4705
4706 ac_header_preproc=no
4707fi
4708rm -f conftest.err conftest.$ac_ext
4709echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4710echo "${ECHO_T}$ac_header_preproc" >&6
4711
4712# So? What about this header?
4713case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4714 yes:no: )
4715 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4716echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4718echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4719 ac_header_preproc=yes
4720 ;;
4721 no:yes:* )
4722 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4723echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4724 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4725echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4726 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4727echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4728 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4729echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4731echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4732 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4733echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4734 (
4735 cat <<\_ASBOX
4736## ------------------------------------------ ##
4737## Report this to the AC_PACKAGE_NAME lists. ##
4738## ------------------------------------------ ##
4739_ASBOX
4740 ) |
4741 sed "s/^/$as_me: WARNING: /" >&2
4742 ;;
4743esac
4744echo "$as_me:$LINENO: checking for $ac_header" >&5
4745echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4746if eval "test \"\${$as_ac_Header+set}\" = set"; then
4747 echo $ECHO_N "(cached) $ECHO_C" >&6
4748else
4749 eval "$as_ac_Header=\$ac_header_preproc"
4750fi
4751echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4752echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4753
4754fi
4755if test `eval echo '${'$as_ac_Header'}'` = yes; then
4756 cat >>confdefs.h <<_ACEOF
4757#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4758_ACEOF
4759
4760fi
4761
4762done
4763
4764
4765 fi
4766
4767
4768 echo "$as_me:$LINENO: checking for working memcmp" >&5
4769echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
4770if test "${ac_cv_func_memcmp_working+set}" = set; then
4771 echo $ECHO_N "(cached) $ECHO_C" >&6
4772else
4773 if test "$cross_compiling" = yes; then
4774 ac_cv_func_memcmp_working=no
4775else
4776 cat >conftest.$ac_ext <<_ACEOF
4777/* confdefs.h. */
4778_ACEOF
4779cat confdefs.h >>conftest.$ac_ext
4780cat >>conftest.$ac_ext <<_ACEOF
4781/* end confdefs.h. */
4782$ac_includes_default
4783int
4784main ()
4785{
4786
4787 /* Some versions of memcmp are not 8-bit clean. */
4788 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4789 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
4790 exit (1);
4791
4792 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
4793 or more and with at least one buffer not starting on a 4-byte boundary.
4794 William Lewis provided this test program. */
4795 {
4796 char foo[21];
4797 char bar[21];
4798 int i;
4799 for (i = 0; i < 4; i++)
4800 {
4801 char *a = foo + i;
4802 char *b = bar + i;
4803 strcpy (a, "--------01111111");
4804 strcpy (b, "--------10000000");
4805 if (memcmp (a, b, 16) >= 0)
4806 exit (1);
4807 }
4808 exit (0);
4809 }
4810
4811 ;
4812 return 0;
4813}
4814_ACEOF
4815rm -f conftest$ac_exeext
4816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4817 (eval $ac_link) 2>&5
4818 ac_status=$?
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4822 (eval $ac_try) 2>&5
4823 ac_status=$?
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); }; }; then
4826 ac_cv_func_memcmp_working=yes
4827else
4828 echo "$as_me: program exited with status $ac_status" >&5
4829echo "$as_me: failed program was:" >&5
4830sed 's/^/| /' conftest.$ac_ext >&5
4831
4832( exit $ac_status )
4833ac_cv_func_memcmp_working=no
4834fi
4835rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4836fi
4837fi
4838echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
4839echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
4840test $ac_cv_func_memcmp_working = no &&
4841
4842
4843
4844
4845
4846
4847 gl_LIBOBJS="$gl_LIBOBJS memcmp.$ac_objext"
4848
4849
4850 if test $ac_cv_func_memcmp_working = no; then
4851
4852cat >>confdefs.h <<\_ACEOF
4853#define memcmp rpl_memcmp
4854_ACEOF
4855
4856 :
4857 fi
4858
4859
4860
4861 if test $ac_cv_have_decl_memmem = yes; then
4862 echo "$as_me:$LINENO: checking whether memmem works in linear time" >&5
4863echo $ECHO_N "checking whether memmem works in linear time... $ECHO_C" >&6
4864if test "${gl_cv_func_memmem_works+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4866else
4867 if test "$cross_compiling" = yes; then
4868 gl_cv_func_memmem_works="guessing no"
4869else
4870 cat >conftest.$ac_ext <<_ACEOF
4871/* confdefs.h. */
4872_ACEOF
4873cat confdefs.h >>conftest.$ac_ext
4874cat >>conftest.$ac_ext <<_ACEOF
4875/* end confdefs.h. */
4876
4877#include <string.h> /* for memmem */
4878#include <stdlib.h> /* for malloc */
4879#include <unistd.h> /* for alarm */
4880
4881int
4882main ()
4883{
4884size_t m = 1000000;
4885 char *haystack = (char *) malloc (2 * m + 1);
4886 char *needle = (char *) malloc (m + 1);
4887 void *result = 0;
4888 /* Failure to compile this test due to missing alarm is okay,
4889 since all such platforms (mingw) also lack memmem. */
4890 alarm (5);
4891 /* Check for quadratic performance. */
4892 if (haystack && needle)
4893 {
4894 memset (haystack, 'A', 2 * m);
4895 haystack[2 * m] = 'B';
4896 memset (needle, 'A', m);
4897 needle[m] = 'B';
4898 result = memmem (haystack, 2 * m + 1, needle, m + 1);
4899 }
4900 /* Check for empty needle behavior. */
4901 return !result || !memmem ("a", 1, 0, 0);
4902 ;
4903 return 0;
4904}
4905_ACEOF
4906rm -f conftest$ac_exeext
4907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4908 (eval $ac_link) 2>&5
4909 ac_status=$?
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4913 (eval $ac_try) 2>&5
4914 ac_status=$?
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); }; }; then
4917 gl_cv_func_memmem_works=yes
4918else
4919 echo "$as_me: program exited with status $ac_status" >&5
4920echo "$as_me: failed program was:" >&5
4921sed 's/^/| /' conftest.$ac_ext >&5
4922
4923( exit $ac_status )
4924gl_cv_func_memmem_works=no
4925fi
4926rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4927fi
4928fi
4929echo "$as_me:$LINENO: result: $gl_cv_func_memmem_works" >&5
4930echo "${ECHO_T}$gl_cv_func_memmem_works" >&6
4931 if test "$gl_cv_func_memmem_works" != yes; then
4932 REPLACE_MEMMEM=1
4933
4934
4935
4936
4937
4938
4939
4940 gl_LIBOBJS="$gl_LIBOBJS memmem.$ac_objext"
4941
4942 fi
4943 fi
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957for ac_func in memmem
4958do
4959as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4960echo "$as_me:$LINENO: checking for $ac_func" >&5
4961echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4962if eval "test \"\${$as_ac_var+set}\" = set"; then
4963 echo $ECHO_N "(cached) $ECHO_C" >&6
4964else
4965 cat >conftest.$ac_ext <<_ACEOF
4966/* confdefs.h. */
4967_ACEOF
4968cat confdefs.h >>conftest.$ac_ext
4969cat >>conftest.$ac_ext <<_ACEOF
4970/* end confdefs.h. */
4971/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4973#define $ac_func innocuous_$ac_func
4974
4975/* System header to define __stub macros and hopefully few prototypes,
4976 which can conflict with char $ac_func (); below.
4977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4978 <limits.h> exists even on freestanding compilers. */
4979
4980#ifdef __STDC__
4981# include <limits.h>
4982#else
4983# include <assert.h>
4984#endif
4985
4986#undef $ac_func
4987
4988/* Override any gcc2 internal prototype to avoid an error. */
4989#ifdef __cplusplus
4990extern "C"
4991{
4992#endif
4993/* We use char because int might match the return type of a gcc2
4994 builtin and then its argument prototype would still apply. */
4995char $ac_func ();
4996/* The GNU C library defines this for functions which it implements
4997 to always fail with ENOSYS. Some functions are actually named
4998 something starting with __ and the normal name is an alias. */
4999#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5000choke me
5001#else
5002char (*f) () = $ac_func;
5003#endif
5004#ifdef __cplusplus
5005}
5006#endif
5007
5008int
5009main ()
5010{
5011return f != $ac_func;
5012 ;
5013 return 0;
5014}
5015_ACEOF
5016rm -f conftest.$ac_objext conftest$ac_exeext
5017if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5018 (eval $ac_link) 2>conftest.er1
5019 ac_status=$?
5020 grep -v '^ *+' conftest.er1 >conftest.err
5021 rm -f conftest.er1
5022 cat conftest.err >&5
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); } &&
5025 { ac_try='test -z "$ac_c_werror_flag"
5026 || test ! -s conftest.err'
5027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5028 (eval $ac_try) 2>&5
5029 ac_status=$?
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); }; } &&
5032 { ac_try='test -s conftest$ac_exeext'
5033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5034 (eval $ac_try) 2>&5
5035 ac_status=$?
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); }; }; then
5038 eval "$as_ac_var=yes"
5039else
5040 echo "$as_me: failed program was:" >&5
5041sed 's/^/| /' conftest.$ac_ext >&5
5042
5043eval "$as_ac_var=no"
5044fi
5045rm -f conftest.err conftest.$ac_objext \
5046 conftest$ac_exeext conftest.$ac_ext
5047fi
5048echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5049echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5050if test `eval echo '${'$as_ac_var'}'` = yes; then
5051 cat >>confdefs.h <<_ACEOF
5052#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5053_ACEOF
5054
5055else
5056
5057 gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
5058
5059fi
5060done
5061
5062
5063
5064 :
5065
5066
5067
5068
5069
5070 if test $ac_cv_have_decl_memmem = no; then
5071 HAVE_DECL_MEMMEM=0
5072 fi
5073 :
5074
5075
5076
5077 GNULIB_MEMMEM=1
5078
5079
5080
5081
5082 if test $ac_cv_type_long_long_int = yes; then
5083 HAVE_LONG_LONG_INT=1
5084 else
5085 HAVE_LONG_LONG_INT=0
5086 fi
5087
5088
5089 if test $ac_cv_type_unsigned_long_long_int = yes; then
5090 HAVE_UNSIGNED_LONG_LONG_INT=1
5091 else
5092 HAVE_UNSIGNED_LONG_LONG_INT=0
5093 fi
5094
5095
5096 if test $ac_cv_header_inttypes_h = yes; then
5097 HAVE_INTTYPES_H=1
5098 else
5099 HAVE_INTTYPES_H=0
5100 fi
5101
5102
5103 if test $ac_cv_header_sys_types_h = yes; then
5104 HAVE_SYS_TYPES_H=1
5105 else
5106 HAVE_SYS_TYPES_H=0
5107 fi
5108
5109
5110
5111
5112
5113 :
5114
5115
5116
5117
5118
5119
5120
5121 if test $gl_cv_have_include_next = yes; then
5122 gl_cv_next_stdint_h='<'stdint.h'>'
5123 else
5124 echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
5125echo $ECHO_N "checking absolute name of <stdint.h>... $ECHO_C" >&6
5126if test "${gl_cv_next_stdint_h+set}" = set; then
5127 echo $ECHO_N "(cached) $ECHO_C" >&6
5128else
5129
5130 if test $ac_cv_header_stdint_h = yes; then
5131 cat >conftest.$ac_ext <<_ACEOF
5132/* confdefs.h. */
5133_ACEOF
5134cat confdefs.h >>conftest.$ac_ext
5135cat >>conftest.$ac_ext <<_ACEOF
5136/* end confdefs.h. */
5137#include <stdint.h>
5138
5139_ACEOF
5140 gl_cv_next_stdint_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5141 sed -n '\#/stdint.h#{
5142 s#.*"\(.*/stdint.h\)".*#\1#
5143 s#^/[^/]#//&#
5144 p
5145 q
5146 }'`'"'
5147 else
5148 gl_cv_next_stdint_h='<'stdint.h'>'
5149 fi
5150
5151fi
5152echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
5153echo "${ECHO_T}$gl_cv_next_stdint_h" >&6
5154 fi
5155 NEXT_STDINT_H=$gl_cv_next_stdint_h
5156
5157
5158
5159 if test $ac_cv_header_stdint_h = yes; then
5160 HAVE_STDINT_H=1
5161 else
5162 HAVE_STDINT_H=0
5163 fi
5164
5165
5166 if test $ac_cv_header_stdint_h = yes; then
5167 echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
5168echo $ECHO_N "checking whether stdint.h conforms to C99... $ECHO_C" >&6
5169if test "${gl_cv_header_working_stdint_h+set}" = set; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5171else
5172 gl_cv_header_working_stdint_h=no
5173 cat >conftest.$ac_ext <<_ACEOF
5174
5175 /* confdefs.h. */
5176_ACEOF
5177cat confdefs.h >>conftest.$ac_ext
5178cat >>conftest.$ac_ext <<_ACEOF
5179/* end confdefs.h. */
5180
5181#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
5182#define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
5183#define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
5184#include <stdint.h>
5185/* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
5186#if !(defined WCHAR_MIN && defined WCHAR_MAX)
5187#error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
5188#endif
5189
5190
5191 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5192 included before <wchar.h>. */
5193 #include <stddef.h>
5194 #include <signal.h>
5195 #if HAVE_WCHAR_H
5196 # include <stdio.h>
5197 # include <time.h>
5198 # include <wchar.h>
5199 #endif
5200
5201
5202#ifdef INT8_MAX
5203int8_t a1 = INT8_MAX;
5204int8_t a1min = INT8_MIN;
5205#endif
5206#ifdef INT16_MAX
5207int16_t a2 = INT16_MAX;
5208int16_t a2min = INT16_MIN;
5209#endif
5210#ifdef INT32_MAX
5211int32_t a3 = INT32_MAX;
5212int32_t a3min = INT32_MIN;
5213#endif
5214#ifdef INT64_MAX
5215int64_t a4 = INT64_MAX;
5216int64_t a4min = INT64_MIN;
5217#endif
5218#ifdef UINT8_MAX
5219uint8_t b1 = UINT8_MAX;
5220#else
5221typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
5222#endif
5223#ifdef UINT16_MAX
5224uint16_t b2 = UINT16_MAX;
5225#endif
5226#ifdef UINT32_MAX
5227uint32_t b3 = UINT32_MAX;
5228#endif
5229#ifdef UINT64_MAX
5230uint64_t b4 = UINT64_MAX;
5231#endif
5232int_least8_t c1 = INT8_C (0x7f);
5233int_least8_t c1max = INT_LEAST8_MAX;
5234int_least8_t c1min = INT_LEAST8_MIN;
5235int_least16_t c2 = INT16_C (0x7fff);
5236int_least16_t c2max = INT_LEAST16_MAX;
5237int_least16_t c2min = INT_LEAST16_MIN;
5238int_least32_t c3 = INT32_C (0x7fffffff);
5239int_least32_t c3max = INT_LEAST32_MAX;
5240int_least32_t c3min = INT_LEAST32_MIN;
5241int_least64_t c4 = INT64_C (0x7fffffffffffffff);
5242int_least64_t c4max = INT_LEAST64_MAX;
5243int_least64_t c4min = INT_LEAST64_MIN;
5244uint_least8_t d1 = UINT8_C (0xff);
5245uint_least8_t d1max = UINT_LEAST8_MAX;
5246uint_least16_t d2 = UINT16_C (0xffff);
5247uint_least16_t d2max = UINT_LEAST16_MAX;
5248uint_least32_t d3 = UINT32_C (0xffffffff);
5249uint_least32_t d3max = UINT_LEAST32_MAX;
5250uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
5251uint_least64_t d4max = UINT_LEAST64_MAX;
5252int_fast8_t e1 = INT_FAST8_MAX;
5253int_fast8_t e1min = INT_FAST8_MIN;
5254int_fast16_t e2 = INT_FAST16_MAX;
5255int_fast16_t e2min = INT_FAST16_MIN;
5256int_fast32_t e3 = INT_FAST32_MAX;
5257int_fast32_t e3min = INT_FAST32_MIN;
5258int_fast64_t e4 = INT_FAST64_MAX;
5259int_fast64_t e4min = INT_FAST64_MIN;
5260uint_fast8_t f1 = UINT_FAST8_MAX;
5261uint_fast16_t f2 = UINT_FAST16_MAX;
5262uint_fast32_t f3 = UINT_FAST32_MAX;
5263uint_fast64_t f4 = UINT_FAST64_MAX;
5264#ifdef INTPTR_MAX
5265intptr_t g = INTPTR_MAX;
5266intptr_t gmin = INTPTR_MIN;
5267#endif
5268#ifdef UINTPTR_MAX
5269uintptr_t h = UINTPTR_MAX;
5270#endif
5271intmax_t i = INTMAX_MAX;
5272uintmax_t j = UINTMAX_MAX;
5273
5274#include <limits.h> /* for CHAR_BIT */
5275#define TYPE_MINIMUM(t) \
5276 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
5277#define TYPE_MAXIMUM(t) \
5278 ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
5279struct s {
5280 int check_PTRDIFF:
5281 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
5282 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
5283 ? 1 : -1;
5284 /* Detect bug in FreeBSD 6.0 / ia64. */
5285 int check_SIG_ATOMIC:
5286 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
5287 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
5288 ? 1 : -1;
5289 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
5290 int check_WCHAR:
5291 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
5292 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
5293 ? 1 : -1;
5294 /* Detect bug in mingw. */
5295 int check_WINT:
5296 WINT_MIN == TYPE_MINIMUM (wint_t)
5297 && WINT_MAX == TYPE_MAXIMUM (wint_t)
5298 ? 1 : -1;
5299
5300 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
5301 int check_UINT8_C:
5302 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
5303 int check_UINT16_C:
5304 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
5305
5306 /* Detect bugs in OpenBSD 3.9 stdint.h. */
5307#ifdef UINT8_MAX
5308 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
5309#endif
5310#ifdef UINT16_MAX
5311 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
5312#endif
5313#ifdef UINT32_MAX
5314 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
5315#endif
5316#ifdef UINT64_MAX
5317 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
5318#endif
5319 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
5320 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
5321 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
5322 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
5323 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
5324 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
5325 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
5326 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
5327 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
5328 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
5329 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
5330};
5331
5332int
5333main ()
5334{
5335
5336 ;
5337 return 0;
5338}
5339_ACEOF
5340rm -f conftest.$ac_objext
5341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5342 (eval $ac_compile) 2>conftest.er1
5343 ac_status=$?
5344 grep -v '^ *+' conftest.er1 >conftest.err
5345 rm -f conftest.er1
5346 cat conftest.err >&5
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); } &&
5349 { ac_try='test -z "$ac_c_werror_flag"
5350 || test ! -s conftest.err'
5351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352 (eval $ac_try) 2>&5
5353 ac_status=$?
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); }; } &&
5356 { ac_try='test -s conftest.$ac_objext'
5357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5358 (eval $ac_try) 2>&5
5359 ac_status=$?
5360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5361 (exit $ac_status); }; }; then
5362 gl_cv_header_working_stdint_h=yes
5363else
5364 echo "$as_me: failed program was:" >&5
5365sed 's/^/| /' conftest.$ac_ext >&5
5366
5367fi
5368rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5369fi
5370echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
5371echo "${ECHO_T}$gl_cv_header_working_stdint_h" >&6
5372 fi
5373 if test "$gl_cv_header_working_stdint_h" = yes; then
5374 STDINT_H=
5375 else
5376
5377
5378for ac_header in sys/inttypes.h sys/bitypes.h
5379do
5380as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5381if eval "test \"\${$as_ac_Header+set}\" = set"; then
5382 echo "$as_me:$LINENO: checking for $ac_header" >&5
5383echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5384if eval "test \"\${$as_ac_Header+set}\" = set"; then
5385 echo $ECHO_N "(cached) $ECHO_C" >&6
5386fi
5387echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5388echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5389else
5390 # Is the header compilable?
5391echo "$as_me:$LINENO: checking $ac_header usability" >&5
5392echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5393cat >conftest.$ac_ext <<_ACEOF
5394/* confdefs.h. */
5395_ACEOF
5396cat confdefs.h >>conftest.$ac_ext
5397cat >>conftest.$ac_ext <<_ACEOF
5398/* end confdefs.h. */
5399$ac_includes_default
5400#include <$ac_header>
5401_ACEOF
5402rm -f conftest.$ac_objext
5403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5404 (eval $ac_compile) 2>conftest.er1
5405 ac_status=$?
5406 grep -v '^ *+' conftest.er1 >conftest.err
5407 rm -f conftest.er1
5408 cat conftest.err >&5
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); } &&
5411 { ac_try='test -z "$ac_c_werror_flag"
5412 || test ! -s conftest.err'
5413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5414 (eval $ac_try) 2>&5
5415 ac_status=$?
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); }; } &&
5418 { ac_try='test -s conftest.$ac_objext'
5419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5420 (eval $ac_try) 2>&5
5421 ac_status=$?
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); }; }; then
5424 ac_header_compiler=yes
5425else
5426 echo "$as_me: failed program was:" >&5
5427sed 's/^/| /' conftest.$ac_ext >&5
5428
5429ac_header_compiler=no
5430fi
5431rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5432echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5433echo "${ECHO_T}$ac_header_compiler" >&6
5434
5435# Is the header present?
5436echo "$as_me:$LINENO: checking $ac_header presence" >&5
5437echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5438cat >conftest.$ac_ext <<_ACEOF
5439/* confdefs.h. */
5440_ACEOF
5441cat confdefs.h >>conftest.$ac_ext
5442cat >>conftest.$ac_ext <<_ACEOF
5443/* end confdefs.h. */
5444#include <$ac_header>
5445_ACEOF
5446if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5447 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5448 ac_status=$?
5449 grep -v '^ *+' conftest.er1 >conftest.err
5450 rm -f conftest.er1
5451 cat conftest.err >&5
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); } >/dev/null; then
5454 if test -s conftest.err; then
5455 ac_cpp_err=$ac_c_preproc_warn_flag
5456 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5457 else
5458 ac_cpp_err=
5459 fi
5460else
5461 ac_cpp_err=yes
5462fi
5463if test -z "$ac_cpp_err"; then
5464 ac_header_preproc=yes
5465else
5466 echo "$as_me: failed program was:" >&5
5467sed 's/^/| /' conftest.$ac_ext >&5
5468
5469 ac_header_preproc=no
5470fi
5471rm -f conftest.err conftest.$ac_ext
5472echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5473echo "${ECHO_T}$ac_header_preproc" >&6
5474
5475# So? What about this header?
5476case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5477 yes:no: )
5478 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5479echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5481echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5482 ac_header_preproc=yes
5483 ;;
5484 no:yes:* )
5485 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5486echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5487 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5488echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5489 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5490echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5491 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5492echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5494echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5495 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5496echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5497 (
5498 cat <<\_ASBOX
5499## ------------------------------------------ ##
5500## Report this to the AC_PACKAGE_NAME lists. ##
5501## ------------------------------------------ ##
5502_ASBOX
5503 ) |
5504 sed "s/^/$as_me: WARNING: /" >&2
5505 ;;
5506esac
5507echo "$as_me:$LINENO: checking for $ac_header" >&5
5508echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5509if eval "test \"\${$as_ac_Header+set}\" = set"; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5511else
5512 eval "$as_ac_Header=\$ac_header_preproc"
5513fi
5514echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5515echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5516
5517fi
5518if test `eval echo '${'$as_ac_Header'}'` = yes; then
5519 cat >>confdefs.h <<_ACEOF
5520#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5521_ACEOF
5522
5523fi
5524
5525done
5526
5527 if test $ac_cv_header_sys_inttypes_h = yes; then
5528 HAVE_SYS_INTTYPES_H=1
5529 else
5530 HAVE_SYS_INTTYPES_H=0
5531 fi
5532
5533 if test $ac_cv_header_sys_bitypes_h = yes; then
5534 HAVE_SYS_BITYPES_H=1
5535 else
5536 HAVE_SYS_BITYPES_H=0
5537 fi
5538
5539
5540
5541 :
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
5557 echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
5558echo $ECHO_N "checking for bit size of $gltype... $ECHO_C" >&6
5559if eval "test \"\${gl_cv_bitsizeof_${gltype}+set}\" = set"; then
5560 echo $ECHO_N "(cached) $ECHO_C" >&6
5561else
5562 if test "$cross_compiling" = yes; then
5563 # Depending upon the size, compute the lo and hi bounds.
5564cat >conftest.$ac_ext <<_ACEOF
5565/* confdefs.h. */
5566_ACEOF
5567cat confdefs.h >>conftest.$ac_ext
5568cat >>conftest.$ac_ext <<_ACEOF
5569/* end confdefs.h. */
5570
5571 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5572 included before <wchar.h>. */
5573 #include <stddef.h>
5574 #include <signal.h>
5575 #if HAVE_WCHAR_H
5576 # include <stdio.h>
5577 # include <time.h>
5578 # include <wchar.h>
5579 #endif
5580
5581#include <limits.h>
5582int
5583main ()
5584{
5585static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
5586test_array [0] = 0
5587
5588 ;
5589 return 0;
5590}
5591_ACEOF
5592rm -f conftest.$ac_objext
5593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5594 (eval $ac_compile) 2>conftest.er1
5595 ac_status=$?
5596 grep -v '^ *+' conftest.er1 >conftest.err
5597 rm -f conftest.er1
5598 cat conftest.err >&5
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); } &&
5601 { ac_try='test -z "$ac_c_werror_flag"
5602 || test ! -s conftest.err'
5603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5604 (eval $ac_try) 2>&5
5605 ac_status=$?
5606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607 (exit $ac_status); }; } &&
5608 { ac_try='test -s conftest.$ac_objext'
5609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5610 (eval $ac_try) 2>&5
5611 ac_status=$?
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); }; }; then
5614 ac_lo=0 ac_mid=0
5615 while :; do
5616 cat >conftest.$ac_ext <<_ACEOF
5617/* confdefs.h. */
5618_ACEOF
5619cat confdefs.h >>conftest.$ac_ext
5620cat >>conftest.$ac_ext <<_ACEOF
5621/* end confdefs.h. */
5622
5623 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5624 included before <wchar.h>. */
5625 #include <stddef.h>
5626 #include <signal.h>
5627 #if HAVE_WCHAR_H
5628 # include <stdio.h>
5629 # include <time.h>
5630 # include <wchar.h>
5631 #endif
5632
5633#include <limits.h>
5634int
5635main ()
5636{
5637static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
5638test_array [0] = 0
5639
5640 ;
5641 return 0;
5642}
5643_ACEOF
5644rm -f conftest.$ac_objext
5645if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5646 (eval $ac_compile) 2>conftest.er1
5647 ac_status=$?
5648 grep -v '^ *+' conftest.er1 >conftest.err
5649 rm -f conftest.er1
5650 cat conftest.err >&5
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); } &&
5653 { ac_try='test -z "$ac_c_werror_flag"
5654 || test ! -s conftest.err'
5655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5656 (eval $ac_try) 2>&5
5657 ac_status=$?
5658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5659 (exit $ac_status); }; } &&
5660 { ac_try='test -s conftest.$ac_objext'
5661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5662 (eval $ac_try) 2>&5
5663 ac_status=$?
5664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5665 (exit $ac_status); }; }; then
5666 ac_hi=$ac_mid; break
5667else
5668 echo "$as_me: failed program was:" >&5
5669sed 's/^/| /' conftest.$ac_ext >&5
5670
5671ac_lo=`expr $ac_mid + 1`
5672 if test $ac_lo -le $ac_mid; then
5673 ac_lo= ac_hi=
5674 break
5675 fi
5676 ac_mid=`expr 2 '*' $ac_mid + 1`
5677fi
5678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5679 done
5680else
5681 echo "$as_me: failed program was:" >&5
5682sed 's/^/| /' conftest.$ac_ext >&5
5683
5684cat >conftest.$ac_ext <<_ACEOF
5685/* confdefs.h. */
5686_ACEOF
5687cat confdefs.h >>conftest.$ac_ext
5688cat >>conftest.$ac_ext <<_ACEOF
5689/* end confdefs.h. */
5690
5691 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5692 included before <wchar.h>. */
5693 #include <stddef.h>
5694 #include <signal.h>
5695 #if HAVE_WCHAR_H
5696 # include <stdio.h>
5697 # include <time.h>
5698 # include <wchar.h>
5699 #endif
5700
5701#include <limits.h>
5702int
5703main ()
5704{
5705static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
5706test_array [0] = 0
5707
5708 ;
5709 return 0;
5710}
5711_ACEOF
5712rm -f conftest.$ac_objext
5713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5714 (eval $ac_compile) 2>conftest.er1
5715 ac_status=$?
5716 grep -v '^ *+' conftest.er1 >conftest.err
5717 rm -f conftest.er1
5718 cat conftest.err >&5
5719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5720 (exit $ac_status); } &&
5721 { ac_try='test -z "$ac_c_werror_flag"
5722 || test ! -s conftest.err'
5723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5724 (eval $ac_try) 2>&5
5725 ac_status=$?
5726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727 (exit $ac_status); }; } &&
5728 { ac_try='test -s conftest.$ac_objext'
5729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5730 (eval $ac_try) 2>&5
5731 ac_status=$?
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); }; }; then
5734 ac_hi=-1 ac_mid=-1
5735 while :; do
5736 cat >conftest.$ac_ext <<_ACEOF
5737/* confdefs.h. */
5738_ACEOF
5739cat confdefs.h >>conftest.$ac_ext
5740cat >>conftest.$ac_ext <<_ACEOF
5741/* end confdefs.h. */
5742
5743 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5744 included before <wchar.h>. */
5745 #include <stddef.h>
5746 #include <signal.h>
5747 #if HAVE_WCHAR_H
5748 # include <stdio.h>
5749 # include <time.h>
5750 # include <wchar.h>
5751 #endif
5752
5753#include <limits.h>
5754int
5755main ()
5756{
5757static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
5758test_array [0] = 0
5759
5760 ;
5761 return 0;
5762}
5763_ACEOF
5764rm -f conftest.$ac_objext
5765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5766 (eval $ac_compile) 2>conftest.er1
5767 ac_status=$?
5768 grep -v '^ *+' conftest.er1 >conftest.err
5769 rm -f conftest.er1
5770 cat conftest.err >&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); } &&
5773 { ac_try='test -z "$ac_c_werror_flag"
5774 || test ! -s conftest.err'
5775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5776 (eval $ac_try) 2>&5
5777 ac_status=$?
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); }; } &&
5780 { ac_try='test -s conftest.$ac_objext'
5781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5782 (eval $ac_try) 2>&5
5783 ac_status=$?
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); }; }; then
5786 ac_lo=$ac_mid; break
5787else
5788 echo "$as_me: failed program was:" >&5
5789sed 's/^/| /' conftest.$ac_ext >&5
5790
5791ac_hi=`expr '(' $ac_mid ')' - 1`
5792 if test $ac_mid -le $ac_hi; then
5793 ac_lo= ac_hi=
5794 break
5795 fi
5796 ac_mid=`expr 2 '*' $ac_mid`
5797fi
5798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5799 done
5800else
5801 echo "$as_me: failed program was:" >&5
5802sed 's/^/| /' conftest.$ac_ext >&5
5803
5804ac_lo= ac_hi=
5805fi
5806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5807fi
5808rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5809# Binary search between lo and hi bounds.
5810while test "x$ac_lo" != "x$ac_hi"; do
5811 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5812 cat >conftest.$ac_ext <<_ACEOF
5813/* confdefs.h. */
5814_ACEOF
5815cat confdefs.h >>conftest.$ac_ext
5816cat >>conftest.$ac_ext <<_ACEOF
5817/* end confdefs.h. */
5818
5819 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5820 included before <wchar.h>. */
5821 #include <stddef.h>
5822 #include <signal.h>
5823 #if HAVE_WCHAR_H
5824 # include <stdio.h>
5825 # include <time.h>
5826 # include <wchar.h>
5827 #endif
5828
5829#include <limits.h>
5830int
5831main ()
5832{
5833static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
5834test_array [0] = 0
5835
5836 ;
5837 return 0;
5838}
5839_ACEOF
5840rm -f conftest.$ac_objext
5841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5842 (eval $ac_compile) 2>conftest.er1
5843 ac_status=$?
5844 grep -v '^ *+' conftest.er1 >conftest.err
5845 rm -f conftest.er1
5846 cat conftest.err >&5
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); } &&
5849 { ac_try='test -z "$ac_c_werror_flag"
5850 || test ! -s conftest.err'
5851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5852 (eval $ac_try) 2>&5
5853 ac_status=$?
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); }; } &&
5856 { ac_try='test -s conftest.$ac_objext'
5857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5858 (eval $ac_try) 2>&5
5859 ac_status=$?
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); }; }; then
5862 ac_hi=$ac_mid
5863else
5864 echo "$as_me: failed program was:" >&5
5865sed 's/^/| /' conftest.$ac_ext >&5
5866
5867ac_lo=`expr '(' $ac_mid ')' + 1`
5868fi
5869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5870done
5871case $ac_lo in
5872?*) result=$ac_lo;;
5873'') result=unknown ;;
5874esac
5875else
5876 if test "$cross_compiling" = yes; then
5877 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5878See \`config.log' for more details." >&5
5879echo "$as_me: error: cannot run test program while cross compiling
5880See \`config.log' for more details." >&2;}
5881 { (exit 1); exit 1; }; }
5882else
5883 cat >conftest.$ac_ext <<_ACEOF
5884/* confdefs.h. */
5885_ACEOF
5886cat confdefs.h >>conftest.$ac_ext
5887cat >>conftest.$ac_ext <<_ACEOF
5888/* end confdefs.h. */
5889
5890 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5891 included before <wchar.h>. */
5892 #include <stddef.h>
5893 #include <signal.h>
5894 #if HAVE_WCHAR_H
5895 # include <stdio.h>
5896 # include <time.h>
5897 # include <wchar.h>
5898 #endif
5899
5900#include <limits.h>
5901long longval () { return sizeof ($gltype) * CHAR_BIT; }
5902unsigned long ulongval () { return sizeof ($gltype) * CHAR_BIT; }
5903#include <stdio.h>
5904#include <stdlib.h>
5905int
5906main ()
5907{
5908
5909 FILE *f = fopen ("conftest.val", "w");
5910 if (! f)
5911 exit (1);
5912 if ((sizeof ($gltype) * CHAR_BIT) < 0)
5913 {
5914 long i = longval ();
5915 if (i != (sizeof ($gltype) * CHAR_BIT))
5916 exit (1);
5917 fprintf (f, "%ld\n", i);
5918 }
5919 else
5920 {
5921 unsigned long i = ulongval ();
5922 if (i != (sizeof ($gltype) * CHAR_BIT))
5923 exit (1);
5924 fprintf (f, "%lu\n", i);
5925 }
5926 exit (ferror (f) || fclose (f) != 0);
5927
5928 ;
5929 return 0;
5930}
5931_ACEOF
5932rm -f conftest$ac_exeext
5933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5934 (eval $ac_link) 2>&5
5935 ac_status=$?
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5939 (eval $ac_try) 2>&5
5940 ac_status=$?
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }; }; then
5943 result=`cat conftest.val`
5944else
5945 echo "$as_me: program exited with status $ac_status" >&5
5946echo "$as_me: failed program was:" >&5
5947sed 's/^/| /' conftest.$ac_ext >&5
5948
5949( exit $ac_status )
5950result=unknown
5951fi
5952rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5953fi
5954fi
5955rm -f conftest.val
5956 eval gl_cv_bitsizeof_${gltype}=\$result
c906108c 5957
783e057b
DJ
5958fi
5959echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&5
5960echo "${ECHO_T}`eval echo '${'gl_cv_bitsizeof_${gltype}'}'`" >&6
5961 eval result=\$gl_cv_bitsizeof_${gltype}
5962 if test $result = unknown; then
5963 result=0
5964 fi
5965 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
5966 cat >>confdefs.h <<_ACEOF
5967#define BITSIZEOF_${GLTYPE} $result
5968_ACEOF
c906108c 5969
783e057b
DJ
5970 eval BITSIZEOF_${GLTYPE}=\$result
5971 done
c906108c 5972
c906108c 5973
c906108c 5974
bec39cab 5975
3841debe 5976
783e057b
DJ
5977
5978
5979 for gltype in sig_atomic_t wchar_t wint_t ; do
5980 echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
5981echo $ECHO_N "checking whether $gltype is signed... $ECHO_C" >&6
5982if eval "test \"\${gl_cv_type_${gltype}_signed+set}\" = set"; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5984else
5985 cat >conftest.$ac_ext <<_ACEOF
5986/* confdefs.h. */
5987_ACEOF
5988cat confdefs.h >>conftest.$ac_ext
5989cat >>conftest.$ac_ext <<_ACEOF
5990/* end confdefs.h. */
5991
5992 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
5993 included before <wchar.h>. */
5994 #include <stddef.h>
5995 #include <signal.h>
5996 #if HAVE_WCHAR_H
5997 # include <stdio.h>
5998 # include <time.h>
5999 # include <wchar.h>
6000 #endif
6001
6002 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
6003int
6004main ()
6005{
6006
6007 ;
6008 return 0;
6009}
6010_ACEOF
6011rm -f conftest.$ac_objext
6012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6013 (eval $ac_compile) 2>conftest.er1
6014 ac_status=$?
6015 grep -v '^ *+' conftest.er1 >conftest.err
6016 rm -f conftest.er1
6017 cat conftest.err >&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); } &&
6020 { ac_try='test -z "$ac_c_werror_flag"
6021 || test ! -s conftest.err'
6022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6023 (eval $ac_try) 2>&5
6024 ac_status=$?
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); }; } &&
6027 { ac_try='test -s conftest.$ac_objext'
6028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6029 (eval $ac_try) 2>&5
6030 ac_status=$?
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; }; then
6033 result=yes
6034else
6035 echo "$as_me: failed program was:" >&5
6036sed 's/^/| /' conftest.$ac_ext >&5
6037
6038result=no
20e95c23 6039fi
783e057b
DJ
6040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6041 eval gl_cv_type_${gltype}_signed=\$result
6042
6043fi
6044echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&5
6045echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_signed'}'`" >&6
6046 eval result=\$gl_cv_type_${gltype}_signed
6047 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6048 if test "$result" = yes; then
6049 cat >>confdefs.h <<_ACEOF
6050#define HAVE_SIGNED_${GLTYPE} 1
6051_ACEOF
6052
6053 eval HAVE_SIGNED_${GLTYPE}=1
6054 else
6055 eval HAVE_SIGNED_${GLTYPE}=0
6056 fi
6057 done
6058
6059
6060 gl_cv_type_ptrdiff_t_signed=yes
6061 gl_cv_type_size_t_signed=no
6062
6063
6064
6065
6066
6067
6068
6069 for gltype in ptrdiff_t sig_atomic_t size_t wchar_t wint_t ; do
6070 echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
6071echo $ECHO_N "checking for $gltype integer literal suffix... $ECHO_C" >&6
6072if eval "test \"\${gl_cv_type_${gltype}_suffix+set}\" = set"; then
6073 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 6074else
783e057b
DJ
6075 eval gl_cv_type_${gltype}_suffix=no
6076 eval result=\$gl_cv_type_${gltype}_signed
6077 if test "$result" = yes; then
6078 glsufu=
6079 else
6080 glsufu=u
6081 fi
6082 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
6083 case $glsuf in
6084 '') gltype1='int';;
6085 l) gltype1='long int';;
6086 ll) gltype1='long long int';;
6087 i64) gltype1='__int64';;
6088 u) gltype1='unsigned int';;
6089 ul) gltype1='unsigned long int';;
6090 ull) gltype1='unsigned long long int';;
6091 ui64)gltype1='unsigned __int64';;
6092 esac
6093 cat >conftest.$ac_ext <<_ACEOF
6094/* confdefs.h. */
6095_ACEOF
6096cat confdefs.h >>conftest.$ac_ext
6097cat >>conftest.$ac_ext <<_ACEOF
6098/* end confdefs.h. */
6099
6100 /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
6101 included before <wchar.h>. */
6102 #include <stddef.h>
6103 #include <signal.h>
6104 #if HAVE_WCHAR_H
6105 # include <stdio.h>
6106 # include <time.h>
6107 # include <wchar.h>
6108 #endif
6109
6110 extern $gltype foo;
6111 extern $gltype1 foo;
6112int
6113main ()
6114{
6115
6116 ;
6117 return 0;
6118}
6119_ACEOF
6120rm -f conftest.$ac_objext
6121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6122 (eval $ac_compile) 2>conftest.er1
6123 ac_status=$?
6124 grep -v '^ *+' conftest.er1 >conftest.err
6125 rm -f conftest.er1
6126 cat conftest.err >&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); } &&
6129 { ac_try='test -z "$ac_c_werror_flag"
6130 || test ! -s conftest.err'
6131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6132 (eval $ac_try) 2>&5
6133 ac_status=$?
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); }; } &&
6136 { ac_try='test -s conftest.$ac_objext'
6137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6138 (eval $ac_try) 2>&5
6139 ac_status=$?
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); }; }; then
6142 eval gl_cv_type_${gltype}_suffix=\$glsuf
6143else
6144 echo "$as_me: failed program was:" >&5
6145sed 's/^/| /' conftest.$ac_ext >&5
6146
6147fi
6148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6149 eval result=\$gl_cv_type_${gltype}_suffix
6150 test "$result" != no && break
6151 done
6152fi
6153echo "$as_me:$LINENO: result: `eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&5
6154echo "${ECHO_T}`eval echo '${'gl_cv_type_${gltype}_suffix'}'`" >&6
6155 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
6156 eval result=\$gl_cv_type_${gltype}_suffix
6157 test "$result" = no && result=
6158 eval ${GLTYPE}_SUFFIX=\$result
6159 cat >>confdefs.h <<_ACEOF
6160#define ${GLTYPE}_SUFFIX $result
6161_ACEOF
6162
6163 done
6164
6165
6166
6167 STDINT_H=stdint.h
6168 fi
6169
6170
6171
6172
6173
6174
6175
6176 echo "$as_me:$LINENO: checking whether <wchar.h> is standalone" >&5
6177echo $ECHO_N "checking whether <wchar.h> is standalone... $ECHO_C" >&6
6178if test "${gl_cv_header_wchar_h_standalone+set}" = set; then
6179 echo $ECHO_N "(cached) $ECHO_C" >&6
6180else
6181 cat >conftest.$ac_ext <<_ACEOF
6182#include <wchar.h>
6183wchar_t w;
6184_ACEOF
6185rm -f conftest.$ac_objext
6186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6187 (eval $ac_compile) 2>conftest.er1
6188 ac_status=$?
6189 grep -v '^ *+' conftest.er1 >conftest.err
6190 rm -f conftest.er1
6191 cat conftest.err >&5
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); } &&
6194 { ac_try='test -z "$ac_c_werror_flag"
6195 || test ! -s conftest.err'
6196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6197 (eval $ac_try) 2>&5
6198 ac_status=$?
6199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); }; } &&
6201 { ac_try='test -s conftest.$ac_objext'
6202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6203 (eval $ac_try) 2>&5
6204 ac_status=$?
6205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6206 (exit $ac_status); }; }; then
6207 gl_cv_header_wchar_h_standalone=yes
6208else
6209 echo "$as_me: failed program was:" >&5
6210sed 's/^/| /' conftest.$ac_ext >&5
6211
6212gl_cv_header_wchar_h_standalone=no
6213fi
6214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6215fi
6216echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_standalone" >&5
6217echo "${ECHO_T}$gl_cv_header_wchar_h_standalone" >&6
6218 if test $gl_cv_header_wchar_h_standalone != yes; then
6219 WCHAR_H=wchar.h
6220 fi
6221
6222
6223 :
6224
6225
6226
6227
6228
6229 if test $ac_cv_header_wchar_h = yes; then
6230 HAVE_WCHAR_H=1
6231 else
6232 HAVE_WCHAR_H=0
6233 fi
6234
6235
6236
6237
6238 :
6239
6240
6241
6242
6243
6244
6245
6246 if test $gl_cv_have_include_next = yes; then
6247 gl_cv_next_wchar_h='<'wchar.h'>'
6248 else
6249 echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
6250echo $ECHO_N "checking absolute name of <wchar.h>... $ECHO_C" >&6
6251if test "${gl_cv_next_wchar_h+set}" = set; then
6252 echo $ECHO_N "(cached) $ECHO_C" >&6
6253else
6254
6255 if test $ac_cv_header_wchar_h = yes; then
6256 cat >conftest.$ac_ext <<_ACEOF
6257/* confdefs.h. */
6258_ACEOF
6259cat confdefs.h >>conftest.$ac_ext
6260cat >>conftest.$ac_ext <<_ACEOF
6261/* end confdefs.h. */
6262#include <wchar.h>
6263
6264_ACEOF
6265 gl_cv_next_wchar_h='"'`(eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6266 sed -n '\#/wchar.h#{
6267 s#.*"\(.*/wchar.h\)".*#\1#
6268 s#^/[^/]#//&#
6269 p
6270 q
6271 }'`'"'
6272 else
6273 gl_cv_next_wchar_h='<'wchar.h'>'
6274 fi
6275
6276fi
6277echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
6278echo "${ECHO_T}$gl_cv_next_wchar_h" >&6
6279 fi
6280 NEXT_WCHAR_H=$gl_cv_next_wchar_h
6281
c906108c 6282
c906108c 6283
c906108c 6284
c906108c 6285
c906108c 6286
c906108c 6287
c906108c 6288
783e057b
DJ
6289 gltests_libdeps=
6290 gltests_ltlibdeps=
20e95c23 6291
20e95c23 6292
20e95c23 6293
783e057b 6294 gl_source_base='tests'
c906108c 6295
bec39cab 6296
bec39cab 6297
783e057b
DJ
6298
6299 LIBGNU_LIBDEPS="$gl_libdeps"
6300
6301 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
6302
6303
e28b3332 6304
bec39cab
AC
6305PACKAGE=gdb
6306
6307cat >>confdefs.h <<_ACEOF
6308#define PACKAGE "$PACKAGE"
6309_ACEOF
6310
6311
6312
e28b3332
DJ
6313# GDB does not use automake, but gnulib does. This line lets us
6314# generate its Makefile.in.
6315am__api_version="1.9"
6316# Find a good install program. We prefer a C program (faster),
6317# so one script is as good as another. But avoid the broken or
6318# incompatible versions:
6319# SysV /etc/install, /usr/sbin/install
6320# SunOS /usr/etc/install
6321# IRIX /sbin/install
6322# AIX /bin/install
6323# AmigaOS /C/install, which installs bootblocks on floppy discs
6324# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6325# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6326# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6327# OS/2's system install, which has a completely different semantic
6328# ./install, which can be erroneously created by make from ./install.sh.
6329echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6330echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
6331if test -z "$INSTALL"; then
6332if test "${ac_cv_path_install+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6334else
6335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336for as_dir in $PATH
6337do
6338 IFS=$as_save_IFS
6339 test -z "$as_dir" && as_dir=.
6340 # Account for people who put trailing slashes in PATH elements.
6341case $as_dir/ in
6342 ./ | .// | /cC/* | \
6343 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6344 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6345 /usr/ucb/* ) ;;
6346 *)
6347 # OSF1 and SCO ODT 3.0 have their own names for install.
6348 # Don't use installbsd from OSF since it installs stuff as root
6349 # by default.
6350 for ac_prog in ginstall scoinst install; do
6351 for ac_exec_ext in '' $ac_executable_extensions; do
6352 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
6353 if test $ac_prog = install &&
6354 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6355 # AIX install. It has an incompatible calling convention.
6356 :
6357 elif test $ac_prog = install &&
6358 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6359 # program-specific install script used by HP pwplus--don't use.
6360 :
6361 else
6362 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6363 break 3
6364 fi
6365 fi
6366 done
6367 done
6368 ;;
6369esac
6370done
6371
6372
6373fi
6374 if test "${ac_cv_path_install+set}" = set; then
6375 INSTALL=$ac_cv_path_install
6376 else
6377 # As a last resort, use the slow shell script. We don't cache a
6378 # path for INSTALL within a source directory, because that will
6379 # break other packages using the cache if that directory is
6380 # removed, or if the path is relative.
6381 INSTALL=$ac_install_sh
6382 fi
6383fi
6384echo "$as_me:$LINENO: result: $INSTALL" >&5
6385echo "${ECHO_T}$INSTALL" >&6
6386
6387# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6388# It thinks the first close brace ends the variable substitution.
6389test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6390
6391test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6392
6393test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6394
6395echo "$as_me:$LINENO: checking whether build environment is sane" >&5
6396echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
6397# Just in case
6398sleep 1
6399echo timestamp > conftest.file
6400# Do `set' in a subshell so we don't clobber the current shell's
6401# arguments. Must try -L first in case configure is actually a
6402# symlink; some systems play weird games with the mod time of symlinks
6403# (eg FreeBSD returns the mod time of the symlink's containing
6404# directory).
6405if (
6406 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
6407 if test "$*" = "X"; then
6408 # -L didn't work.
6409 set X `ls -t $srcdir/configure conftest.file`
6410 fi
6411 rm -f conftest.file
6412 if test "$*" != "X $srcdir/configure conftest.file" \
6413 && test "$*" != "X conftest.file $srcdir/configure"; then
6414
6415 # If neither matched, then we have a broken ls. This can happen
6416 # if, for instance, CONFIG_SHELL is bash and it inherits a
6417 # broken ls alias from the environment. This has actually
6418 # happened. Such a system could not be considered "sane".
6419 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
6420alias in your environment" >&5
6421echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
6422alias in your environment" >&2;}
6423 { (exit 1); exit 1; }; }
6424 fi
6425
6426 test "$2" = conftest.file
6427 )
6428then
6429 # Ok.
6430 :
6431else
6432 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
6433Check your system clock" >&5
6434echo "$as_me: error: newly created file is older than distributed files!
6435Check your system clock" >&2;}
6436 { (exit 1); exit 1; }; }
6437fi
6438echo "$as_me:$LINENO: result: yes" >&5
6439echo "${ECHO_T}yes" >&6
6440test "$program_prefix" != NONE &&
6441 program_transform_name="s,^,$program_prefix,;$program_transform_name"
6442# Use a double $ so make ignores it.
6443test "$program_suffix" != NONE &&
6444 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
6445# Double any \ or $. echo might interpret backslashes.
6446# By default was `s,x,x', remove it if useless.
6447cat <<\_ACEOF >conftest.sed
6448s/[\\$]/&&/g;s/;s,x,x,$//
6449_ACEOF
6450program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
6451rm conftest.sed
6452
6453# expand $ac_aux_dir to an absolute path
6454am_aux_dir=`cd $ac_aux_dir && pwd`
6455
6456test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
6457# Use eval to expand $SHELL
6458if eval "$MISSING --run true"; then
6459 am_missing_run="$MISSING --run "
6460else
6461 am_missing_run=
6462 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
6463echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
6464fi
6465
6466if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
6467 # We used to keeping the `.' as first argument, in order to
6468 # allow $(mkdir_p) to be used without argument. As in
6469 # $(mkdir_p) $(somedir)
6470 # where $(somedir) is conditionally defined. However this is wrong
6471 # for two reasons:
6472 # 1. if the package is installed by a user who cannot write `.'
6473 # make install will fail,
6474 # 2. the above comment should most certainly read
6475 # $(mkdir_p) $(DESTDIR)$(somedir)
6476 # so it does not work when $(somedir) is undefined and
6477 # $(DESTDIR) is not.
6478 # To support the latter case, we have to write
6479 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
6480 # so the `.' trick is pointless.
6481 mkdir_p='mkdir -p --'
6482else
6483 # On NextStep and OpenStep, the `mkdir' command does not
6484 # recognize any option. It will interpret all options as
6485 # directories to create, and then abort because `.' already
6486 # exists.
6487 for d in ./-p ./--version;
6488 do
6489 test -d $d && rmdir $d
6490 done
6491 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
6492 if test -f "$ac_aux_dir/mkinstalldirs"; then
6493 mkdir_p='$(mkinstalldirs)'
6494 else
6495 mkdir_p='$(install_sh) -d'
6496 fi
6497fi
6498
6499for ac_prog in gawk mawk nawk awk
6500do
6501 # Extract the first word of "$ac_prog", so it can be a program name with args.
6502set dummy $ac_prog; ac_word=$2
6503echo "$as_me:$LINENO: checking for $ac_word" >&5
6504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6505if test "${ac_cv_prog_AWK+set}" = set; then
6506 echo $ECHO_N "(cached) $ECHO_C" >&6
6507else
6508 if test -n "$AWK"; then
6509 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6510else
6511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512for as_dir in $PATH
6513do
6514 IFS=$as_save_IFS
6515 test -z "$as_dir" && as_dir=.
6516 for ac_exec_ext in '' $ac_executable_extensions; do
6517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6518 ac_cv_prog_AWK="$ac_prog"
6519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6520 break 2
6521 fi
6522done
6523done
6524
6525fi
6526fi
6527AWK=$ac_cv_prog_AWK
6528if test -n "$AWK"; then
6529 echo "$as_me:$LINENO: result: $AWK" >&5
6530echo "${ECHO_T}$AWK" >&6
6531else
6532 echo "$as_me:$LINENO: result: no" >&5
6533echo "${ECHO_T}no" >&6
6534fi
6535
6536 test -n "$AWK" && break
6537done
6538
6539echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6540echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
6541set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
6542if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
6544else
6545 cat >conftest.make <<\_ACEOF
6546all:
6547 @echo 'ac_maketemp="$(MAKE)"'
6548_ACEOF
6549# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6550eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
6551if test -n "$ac_maketemp"; then
6552 eval ac_cv_prog_make_${ac_make}_set=yes
6553else
6554 eval ac_cv_prog_make_${ac_make}_set=no
6555fi
6556rm -f conftest.make
6557fi
6558if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
6559 echo "$as_me:$LINENO: result: yes" >&5
6560echo "${ECHO_T}yes" >&6
6561 SET_MAKE=
6562else
6563 echo "$as_me:$LINENO: result: no" >&5
6564echo "${ECHO_T}no" >&6
6565 SET_MAKE="MAKE=${MAKE-make}"
6566fi
6567
6568rm -rf .tst 2>/dev/null
6569mkdir .tst 2>/dev/null
6570if test -d .tst; then
6571 am__leading_dot=.
6572else
6573 am__leading_dot=_
6574fi
6575rmdir .tst 2>/dev/null
6576
6577DEPDIR="${am__leading_dot}deps"
6578
6579 ac_config_commands="$ac_config_commands depfiles"
6580
6581
6582am_make=${MAKE-make}
6583cat > confinc << 'END'
6584am__doit:
6585 @echo done
6586.PHONY: am__doit
6587END
6588# If we don't find an include directive, just comment out the code.
6589echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
6590echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
6591am__include="#"
6592am__quote=
6593_am_result=none
6594# First try GNU make style include.
6595echo "include confinc" > confmf
6596# We grep out `Entering directory' and `Leaving directory'
6597# messages which can occur if `w' ends up in MAKEFLAGS.
6598# In particular we don't look at `^make:' because GNU make might
6599# be invoked under some other name (usually "gmake"), in which
6600# case it prints its new name instead of `make'.
6601if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
6602 am__include=include
6603 am__quote=
6604 _am_result=GNU
6605fi
6606# Now try BSD make style include.
6607if test "$am__include" = "#"; then
6608 echo '.include "confinc"' > confmf
6609 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
6610 am__include=.include
6611 am__quote="\""
6612 _am_result=BSD
6613 fi
6614fi
6615
6616
6617echo "$as_me:$LINENO: result: $_am_result" >&5
6618echo "${ECHO_T}$_am_result" >&6
6619rm -f confinc confmf
6620
6621# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
6622if test "${enable_dependency_tracking+set}" = set; then
6623 enableval="$enable_dependency_tracking"
6624
6625fi;
6626if test "x$enable_dependency_tracking" != xno; then
6627 am_depcomp="$ac_aux_dir/depcomp"
6628 AMDEPBACKSLASH='\'
6629fi
6630
6631
6632if test "x$enable_dependency_tracking" != xno; then
6633 AMDEP_TRUE=
6634 AMDEP_FALSE='#'
6635else
6636 AMDEP_TRUE='#'
6637 AMDEP_FALSE=
6638fi
6639
6640
6641
6642# test to see if srcdir already configured
6643if test "`cd $srcdir && pwd`" != "`pwd`" &&
6644 test -f $srcdir/config.status; then
6645 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
6646echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
6647 { (exit 1); exit 1; }; }
6648fi
6649
6650# test whether we have cygpath
6651if test -z "$CYGPATH_W"; then
6652 if (cygpath --version) >/dev/null 2>/dev/null; then
6653 CYGPATH_W='cygpath -w'
6654 else
6655 CYGPATH_W=echo
6656 fi
6657fi
6658
6659
6660# Define the identity of the package.
6661 PACKAGE=gdb
6662 VERSION=UNUSED-VERSION
6663
6664
6665# Some tools Automake needs.
6666
6667ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6668
6669
6670AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6671
6672
6673AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6674
6675
6676AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6677
6678
6679MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6680
6681install_sh=${install_sh-"$am_aux_dir/install-sh"}
6682
6683# Installed binaries are usually stripped using `strip' when the user
6684# run `make install-strip'. However `strip' might not be the right
6685# tool to use in cross-compilation environments, therefore Automake
6686# will honor the `STRIP' environment variable to overrule this program.
6687if test "$cross_compiling" != no; then
6688 if test -n "$ac_tool_prefix"; then
6689 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6690set dummy ${ac_tool_prefix}strip; ac_word=$2
6691echo "$as_me:$LINENO: checking for $ac_word" >&5
6692echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6693if test "${ac_cv_prog_STRIP+set}" = set; then
6694 echo $ECHO_N "(cached) $ECHO_C" >&6
6695else
6696 if test -n "$STRIP"; then
6697 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6698else
6699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700for as_dir in $PATH
6701do
6702 IFS=$as_save_IFS
6703 test -z "$as_dir" && as_dir=.
6704 for ac_exec_ext in '' $ac_executable_extensions; do
6705 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6706 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6708 break 2
6709 fi
6710done
6711done
6712
6713fi
6714fi
6715STRIP=$ac_cv_prog_STRIP
6716if test -n "$STRIP"; then
6717 echo "$as_me:$LINENO: result: $STRIP" >&5
6718echo "${ECHO_T}$STRIP" >&6
6719else
6720 echo "$as_me:$LINENO: result: no" >&5
6721echo "${ECHO_T}no" >&6
6722fi
6723
6724fi
6725if test -z "$ac_cv_prog_STRIP"; then
6726 ac_ct_STRIP=$STRIP
6727 # Extract the first word of "strip", so it can be a program name with args.
6728set dummy strip; ac_word=$2
6729echo "$as_me:$LINENO: checking for $ac_word" >&5
6730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6731if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6733else
6734 if test -n "$ac_ct_STRIP"; then
6735 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6736else
6737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738for as_dir in $PATH
6739do
6740 IFS=$as_save_IFS
6741 test -z "$as_dir" && as_dir=.
6742 for ac_exec_ext in '' $ac_executable_extensions; do
6743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6744 ac_cv_prog_ac_ct_STRIP="strip"
6745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6746 break 2
6747 fi
6748done
6749done
6750
6751 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6752fi
6753fi
6754ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6755if test -n "$ac_ct_STRIP"; then
6756 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6757echo "${ECHO_T}$ac_ct_STRIP" >&6
6758else
6759 echo "$as_me:$LINENO: result: no" >&5
6760echo "${ECHO_T}no" >&6
6761fi
6762
6763 STRIP=$ac_ct_STRIP
6764else
6765 STRIP="$ac_cv_prog_STRIP"
6766fi
6767
6768fi
6769INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
6770
6771# We need awk for the "check" target. The system "awk" is bad on
6772# some platforms.
6773# Always define AMTAR for backward compatibility.
6774
6775AMTAR=${AMTAR-"${am_missing_run}tar"}
6776
6777am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
6778
6779
6780
6781
6782depcc="$CC" am_compiler_list=
6783
6784echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6785echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6786if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
6787 echo $ECHO_N "(cached) $ECHO_C" >&6
6788else
6789 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6790 # We make a subdir and do the tests there. Otherwise we can end up
6791 # making bogus files that we don't know about and never remove. For
6792 # instance it was reported that on HP-UX the gcc test will end up
6793 # making a dummy file named `D' -- because `-MD' means `put the output
6794 # in D'.
6795 mkdir conftest.dir
6796 # Copy depcomp to subdir because otherwise we won't find it if we're
6797 # using a relative directory.
6798 cp "$am_depcomp" conftest.dir
6799 cd conftest.dir
6800 # We will build objects and dependencies in a subdirectory because
6801 # it helps to detect inapplicable dependency modes. For instance
6802 # both Tru64's cc and ICC support -MD to output dependencies as a
6803 # side effect of compilation, but ICC will put the dependencies in
6804 # the current directory while Tru64 will put them in the object
6805 # directory.
6806 mkdir sub
6807
6808 am_cv_CC_dependencies_compiler_type=none
6809 if test "$am_compiler_list" = ""; then
6810 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6811 fi
6812 for depmode in $am_compiler_list; do
6813 # Setup a source with many dependencies, because some compilers
6814 # like to wrap large dependency lists on column 80 (with \), and
6815 # we should not choose a depcomp mode which is confused by this.
6816 #
6817 # We need to recreate these files for each test, as the compiler may
6818 # overwrite some of them when testing with obscure command lines.
6819 # This happens at least with the AIX C compiler.
6820 : > sub/conftest.c
6821 for i in 1 2 3 4 5 6; do
6822 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6823 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6824 # Solaris 8's {/usr,}/bin/sh.
6825 touch sub/conftst$i.h
6826 done
6827 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6828
6829 case $depmode in
6830 nosideeffect)
6831 # after this tag, mechanisms are not by side-effect, so they'll
6832 # only be used when explicitly requested
6833 if test "x$enable_dependency_tracking" = xyes; then
6834 continue
6835 else
6836 break
6837 fi
6838 ;;
6839 none) break ;;
6840 esac
6841 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6842 # mode. It turns out that the SunPro C++ compiler does not properly
6843 # handle `-M -o', and we need to detect this.
6844 if depmode=$depmode \
6845 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6846 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6847 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6848 >/dev/null 2>conftest.err &&
6849 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6850 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6851 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6852 # icc doesn't choke on unknown options, it will just issue warnings
6853 # or remarks (even with -Werror). So we grep stderr for any message
6854 # that says an option was ignored or not supported.
6855 # When given -MP, icc 7.0 and 7.1 complain thusly:
6856 # icc: Command line warning: ignoring option '-M'; no argument required
6857 # The diagnosis changed in icc 8.0:
6858 # icc: Command line remark: option '-MP' not supported
6859 if (grep 'ignoring option' conftest.err ||
6860 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6861 am_cv_CC_dependencies_compiler_type=$depmode
6862 break
6863 fi
6864 fi
6865 done
6866
6867 cd ..
6868 rm -rf conftest.dir
6869else
6870 am_cv_CC_dependencies_compiler_type=none
6871fi
6872
6873fi
6874echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
6875echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
6876CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6877
6878
6879
6880if
6881 test "x$enable_dependency_tracking" != xno \
6882 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6883 am__fastdepCC_TRUE=
6884 am__fastdepCC_FALSE='#'
6885else
6886 am__fastdepCC_TRUE='#'
6887 am__fastdepCC_FALSE=
6888fi
6889
6890
6891
6892
bec39cab
AC
6893debugdir=${libdir}/debug
6894
6895
b4e70030 6896# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
bec39cab 6897if test "${with_separate_debug_dir+set}" = set; then
783e057b
DJ
6898 withval="$with_separate_debug_dir"
6899 debugdir="${withval}"
6900fi;
20e95c23 6901
20e95c23 6902
783e057b
DJ
6903 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
6904 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6905 ac_define_dir=`eval echo $debugdir`
6906 ac_define_dir=`eval echo $ac_define_dir`
20e95c23 6907
783e057b
DJ
6908cat >>confdefs.h <<_ACEOF
6909#define DEBUGDIR "$ac_define_dir"
20e95c23 6910_ACEOF
20e95c23 6911
20e95c23 6912
783e057b 6913#AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
20e95c23 6914
783e057b
DJ
6915if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
6916 if test "x$prefix" = xNONE; then
6917 test_prefix=/usr/local
6918 else
6919 test_prefix=$prefix
6920 fi
20e95c23 6921else
783e057b 6922 test_prefix=$exec_prefix
20e95c23 6923fi
783e057b
DJ
6924case ${debugdir} in
6925"${test_prefix}"|"${test_prefix}/"*|\
6926'${exec_prefix}'|'${exec_prefix}/'*)
20e95c23
DJ
6927
6928cat >>confdefs.h <<\_ACEOF
783e057b 6929#define DEBUGDIR_RELOCATABLE 1
20e95c23
DJ
6930_ACEOF
6931
783e057b
DJ
6932 ;;
6933esac
6934
20e95c23 6935
20e95c23 6936
783e057b 6937subdirs="$subdirs doc testsuite"
20e95c23
DJ
6938
6939
783e057b
DJ
6940# Check whether to support alternative target configurations
6941# Check whether --enable-targets or --disable-targets was given.
6942if test "${enable_targets+set}" = set; then
6943 enableval="$enable_targets"
6944 case "${enableval}" in
6945 yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5
6946echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;}
6947 { (exit 1); exit 1; }; }
6948 ;;
6949 no) enable_targets= ;;
6950 *) enable_targets=$enableval ;;
6951esac
6952fi;
20e95c23 6953
783e057b
DJ
6954# Check whether to enable 64-bit support on 32-bit hosts
6955# Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given.
6956if test "${enable_64_bit_bfd+set}" = set; then
6957 enableval="$enable_64_bit_bfd"
6958 case "${enableval}" in
6959 yes) want64=true ;;
6960 no) want64=false ;;
6961 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5
6962echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;}
6963 { (exit 1); exit 1; }; } ;;
6964esac
6965else
6966 want64=false
6967fi;
6968# Provide defaults for some variables set by the per-host and per-target
6969# configuration.
6970gdb_host_obs=posix-hdep.o
20e95c23 6971
783e057b
DJ
6972if test "${target}" = "${host}"; then
6973 gdb_native=yes
6974else
6975 gdb_native=no
6976fi
20e95c23 6977
783e057b 6978. $srcdir/configure.host
20e95c23 6979
783e057b 6980# Accumulate some settings from configure.tgt over all enabled targets
20e95c23 6981
783e057b
DJ
6982TARGET_OBS=
6983all_targets=
20e95c23 6984
783e057b 6985for targ_alias in `echo $target_alias $enable_targets | sed 's/,/ /g'`
20e95c23 6986do
783e057b
DJ
6987 if test "$targ_alias" = "all"; then
6988 all_targets=true
6989 else
6990 # Canonicalize the secondary target names.
6991 result=`$ac_config_sub $targ_alias 2>/dev/null`
6992 if test -n "$result"; then
6993 targ=$result
6994 else
6995 targ=$targ_alias
6996 fi
20e95c23 6997
783e057b 6998 . ${srcdir}/configure.tgt
20e95c23 6999
783e057b
DJ
7000 # Target-specific object files
7001 for i in ${gdb_target_obs}; do
7002 case " $TARGET_OBS " in
7003 *" ${i} "*) ;;
7004 *)
7005 TARGET_OBS="$TARGET_OBS ${i}"
7006 ;;
7007 esac
7008 done
20e95c23 7009
783e057b
DJ
7010 # Check whether this target needs 64-bit CORE_ADDR
7011 if test x${want64} = xfalse; then
7012 . ${srcdir}/../bfd/config.bfd
7013 fi
7014 fi
20e95c23
DJ
7015done
7016
783e057b
DJ
7017if test x${all_targets} = xtrue; then
7018
7019 # We want all 64-bit targets if we either:
7020 # - run on a 64-bit host or
7021 # - already require 64-bit support for some other target or
7022 # - the --enable-64-bit-bfd option was supplied
7023 # Otherwise we only support all 32-bit targets.
7024 #
7025 # NOTE: This test must be in sync with the corresponding
7026 # tests in BFD!
20e95c23 7027
783e057b
DJ
7028 if test x${want64} = xfalse; then
7029 echo "$as_me:$LINENO: checking for long" >&5
c0993dbe
UW
7030echo $ECHO_N "checking for long... $ECHO_C" >&6
7031if test "${ac_cv_type_long+set}" = set; then
7032 echo $ECHO_N "(cached) $ECHO_C" >&6
7033else
7034 cat >conftest.$ac_ext <<_ACEOF
7035/* confdefs.h. */
7036_ACEOF
7037cat confdefs.h >>conftest.$ac_ext
7038cat >>conftest.$ac_ext <<_ACEOF
7039/* end confdefs.h. */
7040$ac_includes_default
7041int
7042main ()
7043{
7044if ((long *) 0)
7045 return 0;
7046if (sizeof (long))
7047 return 0;
7048 ;
7049 return 0;
7050}
7051_ACEOF
7052rm -f conftest.$ac_objext
7053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7054 (eval $ac_compile) 2>conftest.er1
7055 ac_status=$?
7056 grep -v '^ *+' conftest.er1 >conftest.err
7057 rm -f conftest.er1
7058 cat conftest.err >&5
7059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7060 (exit $ac_status); } &&
7061 { ac_try='test -z "$ac_c_werror_flag"
7062 || test ! -s conftest.err'
7063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7064 (eval $ac_try) 2>&5
7065 ac_status=$?
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); }; } &&
7068 { ac_try='test -s conftest.$ac_objext'
7069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7070 (eval $ac_try) 2>&5
7071 ac_status=$?
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); }; }; then
7074 ac_cv_type_long=yes
7075else
7076 echo "$as_me: failed program was:" >&5
7077sed 's/^/| /' conftest.$ac_ext >&5
7078
7079ac_cv_type_long=no
7080fi
7081rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7082fi
7083echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7084echo "${ECHO_T}$ac_cv_type_long" >&6
7085
7086echo "$as_me:$LINENO: checking size of long" >&5
7087echo $ECHO_N "checking size of long... $ECHO_C" >&6
7088if test "${ac_cv_sizeof_long+set}" = set; then
7089 echo $ECHO_N "(cached) $ECHO_C" >&6
7090else
7091 if test "$ac_cv_type_long" = yes; then
7092 # The cast to unsigned long works around a bug in the HP C Compiler
7093 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7094 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7095 # This bug is HP SR number 8606223364.
7096 if test "$cross_compiling" = yes; then
7097 # Depending upon the size, compute the lo and hi bounds.
7098cat >conftest.$ac_ext <<_ACEOF
7099/* confdefs.h. */
7100_ACEOF
7101cat confdefs.h >>conftest.$ac_ext
7102cat >>conftest.$ac_ext <<_ACEOF
7103/* end confdefs.h. */
7104$ac_includes_default
7105int
7106main ()
7107{
7108static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7109test_array [0] = 0
7110
7111 ;
7112 return 0;
7113}
7114_ACEOF
7115rm -f conftest.$ac_objext
7116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7117 (eval $ac_compile) 2>conftest.er1
7118 ac_status=$?
7119 grep -v '^ *+' conftest.er1 >conftest.err
7120 rm -f conftest.er1
7121 cat conftest.err >&5
7122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); } &&
7124 { ac_try='test -z "$ac_c_werror_flag"
7125 || test ! -s conftest.err'
7126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7127 (eval $ac_try) 2>&5
7128 ac_status=$?
7129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130 (exit $ac_status); }; } &&
7131 { ac_try='test -s conftest.$ac_objext'
7132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7133 (eval $ac_try) 2>&5
7134 ac_status=$?
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); }; }; then
7137 ac_lo=0 ac_mid=0
7138 while :; do
7139 cat >conftest.$ac_ext <<_ACEOF
7140/* confdefs.h. */
7141_ACEOF
7142cat confdefs.h >>conftest.$ac_ext
7143cat >>conftest.$ac_ext <<_ACEOF
7144/* end confdefs.h. */
7145$ac_includes_default
7146int
7147main ()
7148{
7149static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7150test_array [0] = 0
7151
7152 ;
7153 return 0;
7154}
7155_ACEOF
7156rm -f conftest.$ac_objext
7157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7158 (eval $ac_compile) 2>conftest.er1
7159 ac_status=$?
7160 grep -v '^ *+' conftest.er1 >conftest.err
7161 rm -f conftest.er1
7162 cat conftest.err >&5
7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); } &&
7165 { ac_try='test -z "$ac_c_werror_flag"
7166 || test ! -s conftest.err'
7167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7168 (eval $ac_try) 2>&5
7169 ac_status=$?
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); }; } &&
7172 { ac_try='test -s conftest.$ac_objext'
7173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7174 (eval $ac_try) 2>&5
7175 ac_status=$?
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); }; }; then
7178 ac_hi=$ac_mid; break
7179else
7180 echo "$as_me: failed program was:" >&5
7181sed 's/^/| /' conftest.$ac_ext >&5
7182
7183ac_lo=`expr $ac_mid + 1`
7184 if test $ac_lo -le $ac_mid; then
7185 ac_lo= ac_hi=
7186 break
7187 fi
7188 ac_mid=`expr 2 '*' $ac_mid + 1`
7189fi
7190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7191 done
7192else
7193 echo "$as_me: failed program was:" >&5
7194sed 's/^/| /' conftest.$ac_ext >&5
7195
7196cat >conftest.$ac_ext <<_ACEOF
7197/* confdefs.h. */
7198_ACEOF
7199cat confdefs.h >>conftest.$ac_ext
7200cat >>conftest.$ac_ext <<_ACEOF
7201/* end confdefs.h. */
7202$ac_includes_default
7203int
7204main ()
7205{
7206static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7207test_array [0] = 0
7208
7209 ;
7210 return 0;
7211}
7212_ACEOF
7213rm -f conftest.$ac_objext
7214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7215 (eval $ac_compile) 2>conftest.er1
7216 ac_status=$?
7217 grep -v '^ *+' conftest.er1 >conftest.err
7218 rm -f conftest.er1
7219 cat conftest.err >&5
7220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221 (exit $ac_status); } &&
7222 { ac_try='test -z "$ac_c_werror_flag"
7223 || test ! -s conftest.err'
7224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7225 (eval $ac_try) 2>&5
7226 ac_status=$?
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7228 (exit $ac_status); }; } &&
7229 { ac_try='test -s conftest.$ac_objext'
7230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7231 (eval $ac_try) 2>&5
7232 ac_status=$?
7233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234 (exit $ac_status); }; }; then
7235 ac_hi=-1 ac_mid=-1
7236 while :; do
7237 cat >conftest.$ac_ext <<_ACEOF
7238/* confdefs.h. */
7239_ACEOF
7240cat confdefs.h >>conftest.$ac_ext
7241cat >>conftest.$ac_ext <<_ACEOF
7242/* end confdefs.h. */
7243$ac_includes_default
7244int
7245main ()
7246{
7247static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7248test_array [0] = 0
7249
7250 ;
7251 return 0;
7252}
7253_ACEOF
7254rm -f conftest.$ac_objext
7255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7256 (eval $ac_compile) 2>conftest.er1
7257 ac_status=$?
7258 grep -v '^ *+' conftest.er1 >conftest.err
7259 rm -f conftest.er1
7260 cat conftest.err >&5
7261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262 (exit $ac_status); } &&
7263 { ac_try='test -z "$ac_c_werror_flag"
7264 || test ! -s conftest.err'
7265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7266 (eval $ac_try) 2>&5
7267 ac_status=$?
7268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); }; } &&
7270 { ac_try='test -s conftest.$ac_objext'
7271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7272 (eval $ac_try) 2>&5
7273 ac_status=$?
7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); }; }; then
7276 ac_lo=$ac_mid; break
7277else
7278 echo "$as_me: failed program was:" >&5
7279sed 's/^/| /' conftest.$ac_ext >&5
7280
7281ac_hi=`expr '(' $ac_mid ')' - 1`
7282 if test $ac_mid -le $ac_hi; then
7283 ac_lo= ac_hi=
7284 break
7285 fi
7286 ac_mid=`expr 2 '*' $ac_mid`
7287fi
7288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7289 done
7290else
7291 echo "$as_me: failed program was:" >&5
7292sed 's/^/| /' conftest.$ac_ext >&5
7293
7294ac_lo= ac_hi=
7295fi
7296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7297fi
7298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7299# Binary search between lo and hi bounds.
7300while test "x$ac_lo" != "x$ac_hi"; do
7301 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7302 cat >conftest.$ac_ext <<_ACEOF
7303/* confdefs.h. */
7304_ACEOF
7305cat confdefs.h >>conftest.$ac_ext
7306cat >>conftest.$ac_ext <<_ACEOF
7307/* end confdefs.h. */
7308$ac_includes_default
7309int
7310main ()
7311{
7312static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7313test_array [0] = 0
7314
7315 ;
7316 return 0;
7317}
7318_ACEOF
7319rm -f conftest.$ac_objext
7320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7321 (eval $ac_compile) 2>conftest.er1
7322 ac_status=$?
7323 grep -v '^ *+' conftest.er1 >conftest.err
7324 rm -f conftest.er1
7325 cat conftest.err >&5
7326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327 (exit $ac_status); } &&
7328 { ac_try='test -z "$ac_c_werror_flag"
7329 || test ! -s conftest.err'
7330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7331 (eval $ac_try) 2>&5
7332 ac_status=$?
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); }; } &&
7335 { ac_try='test -s conftest.$ac_objext'
7336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7337 (eval $ac_try) 2>&5
7338 ac_status=$?
7339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 (exit $ac_status); }; }; then
7341 ac_hi=$ac_mid
7342else
7343 echo "$as_me: failed program was:" >&5
7344sed 's/^/| /' conftest.$ac_ext >&5
7345
7346ac_lo=`expr '(' $ac_mid ')' + 1`
7347fi
7348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7349done
7350case $ac_lo in
7351?*) ac_cv_sizeof_long=$ac_lo;;
7352'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7353See \`config.log' for more details." >&5
7354echo "$as_me: error: cannot compute sizeof (long), 77
7355See \`config.log' for more details." >&2;}
7356 { (exit 1); exit 1; }; } ;;
7357esac
7358else
7359 if test "$cross_compiling" = yes; then
7360 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7361See \`config.log' for more details." >&5
7362echo "$as_me: error: cannot run test program while cross compiling
7363See \`config.log' for more details." >&2;}
7364 { (exit 1); exit 1; }; }
7365else
7366 cat >conftest.$ac_ext <<_ACEOF
7367/* confdefs.h. */
7368_ACEOF
7369cat confdefs.h >>conftest.$ac_ext
7370cat >>conftest.$ac_ext <<_ACEOF
7371/* end confdefs.h. */
7372$ac_includes_default
7373long longval () { return (long) (sizeof (long)); }
7374unsigned long ulongval () { return (long) (sizeof (long)); }
7375#include <stdio.h>
7376#include <stdlib.h>
7377int
7378main ()
7379{
7380
7381 FILE *f = fopen ("conftest.val", "w");
7382 if (! f)
7383 exit (1);
7384 if (((long) (sizeof (long))) < 0)
7385 {
7386 long i = longval ();
7387 if (i != ((long) (sizeof (long))))
7388 exit (1);
7389 fprintf (f, "%ld\n", i);
7390 }
7391 else
7392 {
7393 unsigned long i = ulongval ();
7394 if (i != ((long) (sizeof (long))))
7395 exit (1);
7396 fprintf (f, "%lu\n", i);
7397 }
7398 exit (ferror (f) || fclose (f) != 0);
7399
7400 ;
7401 return 0;
7402}
7403_ACEOF
7404rm -f conftest$ac_exeext
7405if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7406 (eval $ac_link) 2>&5
7407 ac_status=$?
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7411 (eval $ac_try) 2>&5
7412 ac_status=$?
7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414 (exit $ac_status); }; }; then
7415 ac_cv_sizeof_long=`cat conftest.val`
7416else
7417 echo "$as_me: program exited with status $ac_status" >&5
7418echo "$as_me: failed program was:" >&5
7419sed 's/^/| /' conftest.$ac_ext >&5
7420
7421( exit $ac_status )
7422{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7423See \`config.log' for more details." >&5
7424echo "$as_me: error: cannot compute sizeof (long), 77
7425See \`config.log' for more details." >&2;}
7426 { (exit 1); exit 1; }; }
7427fi
7428rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7429fi
7430fi
7431rm -f conftest.val
7432else
7433 ac_cv_sizeof_long=0
7434fi
7435fi
7436echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7437echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7438cat >>confdefs.h <<_ACEOF
7439#define SIZEOF_LONG $ac_cv_sizeof_long
7440_ACEOF
7441
7442
7443 if test "x${ac_cv_sizeof_long}" = "x8"; then
7444 want64=true
7445 fi
7446 fi
7447 if test x${want64} = xtrue; then
7448 TARGET_OBS='$(ALL_TARGET_OBS) $(ALL_64_TARGET_OBS)'
7449 else
7450 TARGET_OBS='$(ALL_TARGET_OBS)'
7451 fi
7452fi
7453
7454
7455
7456# For other settings, only the main target counts.
7457gdb_sim=
7458gdb_osabi=
7459build_gdbserver=
7460targ=$target; . ${srcdir}/configure.tgt
7461
7462# Fetch the default architecture and default target vector from BFD.
7463targ=$target; . $srcdir/../bfd/config.bfd
7464
7465# We only want the first architecture, so strip off the others if
7466# there is more than one.
7467targ_archs=`echo $targ_archs | sed 's/ .*//'`
7468
7469if test "x$targ_archs" != x; then
7470
7471cat >>confdefs.h <<_ACEOF
7472#define DEFAULT_BFD_ARCH $targ_archs
7473_ACEOF
7474
7475fi
7476if test "x$targ_defvec" != x; then
7477
7478cat >>confdefs.h <<_ACEOF
7479#define DEFAULT_BFD_VEC $targ_defvec
7480_ACEOF
7481
7482fi
7483
c0993dbe
UW
7484# The CLI cannot be disabled yet, but may be in the future.
7485
7486# Enable CLI.
7487# Check whether --enable-gdbcli or --disable-gdbcli was given.
7488if test "${enable_gdbcli+set}" = set; then
7489 enableval="$enable_gdbcli"
7490 case $enableval in
7491 yes)
7492 ;;
7493 no)
7494 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
7495echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
7496 { (exit 1); exit 1; }; } ;;
7497 *)
7498 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
7499echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
7500 { (exit 1); exit 1; }; } ;;
7501 esac
7502else
7503 enable_gdbcli=yes
7504fi;
7505if test x"$enable_gdbcli" = xyes; then
7506 if test -d $srcdir/cli; then
7507 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
7508 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
7509 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
7510 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
7511 fi
7512fi
7513
7514# Enable MI.
7515# Check whether --enable-gdbmi or --disable-gdbmi was given.
7516if test "${enable_gdbmi+set}" = set; then
7517 enableval="$enable_gdbmi"
7518 case $enableval in
7519 yes | no)
7520 ;;
7521 *)
7522 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
7523echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
7524 { (exit 1); exit 1; }; } ;;
7525 esac
7526else
7527 enable_gdbmi=yes
7528fi;
7529if test x"$enable_gdbmi" = xyes; then
7530 if test -d $srcdir/mi; then
7531 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
7532 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
7533 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
7534 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
7535 fi
7536fi
7537
7538# Enable TUI.
7539# Check whether --enable-tui or --disable-tui was given.
7540if test "${enable_tui+set}" = set; then
7541 enableval="$enable_tui"
7542 case $enableval in
7543 yes | no)
7544 ;;
7545 *)
7546 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
7547echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
7548 { (exit 1); exit 1; }; } ;;
7549 esac
7550else
7551 enable_tui=yes
7552fi;
7553
7554# Enable gdbtk.
7555# Check whether --enable-gdbtk or --disable-gdbtk was given.
7556if test "${enable_gdbtk+set}" = set; then
7557 enableval="$enable_gdbtk"
7558 case $enableval in
7559 yes | no)
7560 ;;
7561 *)
7562 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
7563echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
7564 { (exit 1); exit 1; }; } ;;
7565 esac
7566else
7567 if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
7568 enable_gdbtk=yes
7569 else
7570 enable_gdbtk=no
7571 fi
7572fi;
7573# We unconditionally disable gdbtk tests on selected platforms.
7574case $host_os in
7575 go32* | windows*)
7576 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
7577echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
7578 enable_gdbtk=no ;;
7579esac
7580
7581# Libunwind support.
bec39cab 7582
b4e70030 7583# Check whether --with-libunwind or --without-libunwind was given.
bec39cab 7584if test "${with_libunwind+set}" = set; then
b4e70030
JB
7585 withval="$with_libunwind"
7586 case "${withval}" in
bec39cab
AC
7587 yes) enable_libunwind=yes ;;
7588 no) enable_libunwind=no ;;
7589 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
7590echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
7591 { (exit 1); exit 1; }; } ;;
7592esac
7593else
7594
7595
7596for ac_header in libunwind.h
7597do
7598as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7599if eval "test \"\${$as_ac_Header+set}\" = set"; then
7600 echo "$as_me:$LINENO: checking for $ac_header" >&5
7601echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7602if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7603 echo $ECHO_N "(cached) $ECHO_C" >&6
7604fi
b4e70030
JB
7605echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7606echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7607else
7608 # Is the header compilable?
b4e70030
JB
7609echo "$as_me:$LINENO: checking $ac_header usability" >&5
7610echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7611cat >conftest.$ac_ext <<_ACEOF
7612/* confdefs.h. */
7613_ACEOF
7614cat confdefs.h >>conftest.$ac_ext
7615cat >>conftest.$ac_ext <<_ACEOF
7616/* end confdefs.h. */
7617$ac_includes_default
7618#include <$ac_header>
7619_ACEOF
7620rm -f conftest.$ac_objext
7621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7622 (eval $ac_compile) 2>conftest.er1
7623 ac_status=$?
7624 grep -v '^ *+' conftest.er1 >conftest.err
7625 rm -f conftest.er1
7626 cat conftest.err >&5
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); } &&
b4e70030
JB
7629 { ac_try='test -z "$ac_c_werror_flag"
7630 || test ! -s conftest.err'
bec39cab
AC
7631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7632 (eval $ac_try) 2>&5
7633 ac_status=$?
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); }; } &&
7636 { ac_try='test -s conftest.$ac_objext'
7637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7638 (eval $ac_try) 2>&5
7639 ac_status=$?
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); }; }; then
7642 ac_header_compiler=yes
7643else
7644 echo "$as_me: failed program was:" >&5
7645sed 's/^/| /' conftest.$ac_ext >&5
7646
b4e70030 7647ac_header_compiler=no
bec39cab
AC
7648fi
7649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7650echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7651echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7652
7653# Is the header present?
b4e70030
JB
7654echo "$as_me:$LINENO: checking $ac_header presence" >&5
7655echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7656cat >conftest.$ac_ext <<_ACEOF
7657/* confdefs.h. */
7658_ACEOF
7659cat confdefs.h >>conftest.$ac_ext
7660cat >>conftest.$ac_ext <<_ACEOF
7661/* end confdefs.h. */
7662#include <$ac_header>
7663_ACEOF
7664if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7665 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7666 ac_status=$?
7667 grep -v '^ *+' conftest.er1 >conftest.err
7668 rm -f conftest.er1
7669 cat conftest.err >&5
7670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671 (exit $ac_status); } >/dev/null; then
7672 if test -s conftest.err; then
7673 ac_cpp_err=$ac_c_preproc_warn_flag
7674 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7675 else
7676 ac_cpp_err=
7677 fi
7678else
7679 ac_cpp_err=yes
7680fi
7681if test -z "$ac_cpp_err"; then
7682 ac_header_preproc=yes
7683else
7684 echo "$as_me: failed program was:" >&5
7685sed 's/^/| /' conftest.$ac_ext >&5
7686
7687 ac_header_preproc=no
7688fi
7689rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7690echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7691echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
7692
7693# So? What about this header?
7694case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7695 yes:no: )
7696 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7697echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7699echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7700 ac_header_preproc=yes
7701 ;;
7702 no:yes:* )
7703 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7704echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7705 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7706echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7707 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7708echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7709 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7710echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7712echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7713 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7714echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7715 (
7716 cat <<\_ASBOX
7717## ------------------------------------------ ##
7718## Report this to the AC_PACKAGE_NAME lists. ##
7719## ------------------------------------------ ##
7720_ASBOX
7721 ) |
7722 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7723 ;;
7724esac
b4e70030
JB
7725echo "$as_me:$LINENO: checking for $ac_header" >&5
7726echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7727if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7728 echo $ECHO_N "(cached) $ECHO_C" >&6
7729else
7730 eval "$as_ac_Header=\$ac_header_preproc"
7731fi
b4e70030
JB
7732echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7733echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7734
7735fi
7736if test `eval echo '${'$as_ac_Header'}'` = yes; then
7737 cat >>confdefs.h <<_ACEOF
7738#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7739_ACEOF
7740
7741fi
7742
7743done
7744
7745
7746for ac_header in libunwind-ia64.h
7747do
7748as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7749if eval "test \"\${$as_ac_Header+set}\" = set"; then
7750 echo "$as_me:$LINENO: checking for $ac_header" >&5
7751echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7752if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7753 echo $ECHO_N "(cached) $ECHO_C" >&6
7754fi
b4e70030
JB
7755echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7756echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7757else
7758 # Is the header compilable?
b4e70030
JB
7759echo "$as_me:$LINENO: checking $ac_header usability" >&5
7760echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7761cat >conftest.$ac_ext <<_ACEOF
7762/* confdefs.h. */
7763_ACEOF
7764cat confdefs.h >>conftest.$ac_ext
7765cat >>conftest.$ac_ext <<_ACEOF
7766/* end confdefs.h. */
7767$ac_includes_default
7768#include <$ac_header>
7769_ACEOF
7770rm -f conftest.$ac_objext
7771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7772 (eval $ac_compile) 2>conftest.er1
7773 ac_status=$?
7774 grep -v '^ *+' conftest.er1 >conftest.err
7775 rm -f conftest.er1
7776 cat conftest.err >&5
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); } &&
b4e70030
JB
7779 { ac_try='test -z "$ac_c_werror_flag"
7780 || test ! -s conftest.err'
bec39cab
AC
7781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7782 (eval $ac_try) 2>&5
7783 ac_status=$?
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); }; } &&
7786 { ac_try='test -s conftest.$ac_objext'
7787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7788 (eval $ac_try) 2>&5
7789 ac_status=$?
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); }; }; then
7792 ac_header_compiler=yes
7793else
7794 echo "$as_me: failed program was:" >&5
7795sed 's/^/| /' conftest.$ac_ext >&5
7796
b4e70030 7797ac_header_compiler=no
bec39cab
AC
7798fi
7799rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7800echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7801echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7802
7803# Is the header present?
b4e70030
JB
7804echo "$as_me:$LINENO: checking $ac_header presence" >&5
7805echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7806cat >conftest.$ac_ext <<_ACEOF
7807/* confdefs.h. */
7808_ACEOF
7809cat confdefs.h >>conftest.$ac_ext
7810cat >>conftest.$ac_ext <<_ACEOF
7811/* end confdefs.h. */
7812#include <$ac_header>
7813_ACEOF
7814if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7815 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7816 ac_status=$?
7817 grep -v '^ *+' conftest.er1 >conftest.err
7818 rm -f conftest.er1
7819 cat conftest.err >&5
7820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821 (exit $ac_status); } >/dev/null; then
7822 if test -s conftest.err; then
7823 ac_cpp_err=$ac_c_preproc_warn_flag
7824 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7825 else
7826 ac_cpp_err=
7827 fi
7828else
7829 ac_cpp_err=yes
7830fi
7831if test -z "$ac_cpp_err"; then
7832 ac_header_preproc=yes
7833else
7834 echo "$as_me: failed program was:" >&5
7835sed 's/^/| /' conftest.$ac_ext >&5
7836
7837 ac_header_preproc=no
7838fi
7839rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7840echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7841echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
7842
7843# So? What about this header?
7844case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7845 yes:no: )
7846 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7847echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7849echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7850 ac_header_preproc=yes
7851 ;;
7852 no:yes:* )
7853 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7854echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7855 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7856echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7857 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7858echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7859 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7860echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7862echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7863 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7864echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7865 (
7866 cat <<\_ASBOX
7867## ------------------------------------------ ##
7868## Report this to the AC_PACKAGE_NAME lists. ##
7869## ------------------------------------------ ##
7870_ASBOX
7871 ) |
7872 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7873 ;;
7874esac
b4e70030
JB
7875echo "$as_me:$LINENO: checking for $ac_header" >&5
7876echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7877if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7878 echo $ECHO_N "(cached) $ECHO_C" >&6
7879else
7880 eval "$as_ac_Header=\$ac_header_preproc"
7881fi
b4e70030
JB
7882echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7883echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7884
7885fi
7886if test `eval echo '${'$as_ac_Header'}'` = yes; then
7887 cat >>confdefs.h <<_ACEOF
7888#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7889_ACEOF
7890
7891fi
7892
7893done
7894
7895 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
7896 enable_libunwind=yes;
7897 fi
7898
b4e70030 7899fi;
bec39cab
AC
7900
7901if test x"$enable_libunwind" = xyes; then
7902
7903for ac_header in libunwind.h
7904do
7905as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7906if eval "test \"\${$as_ac_Header+set}\" = set"; then
7907 echo "$as_me:$LINENO: checking for $ac_header" >&5
7908echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7909if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7910 echo $ECHO_N "(cached) $ECHO_C" >&6
7911fi
b4e70030
JB
7912echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7913echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7914else
7915 # Is the header compilable?
b4e70030
JB
7916echo "$as_me:$LINENO: checking $ac_header usability" >&5
7917echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7918cat >conftest.$ac_ext <<_ACEOF
7919/* confdefs.h. */
7920_ACEOF
7921cat confdefs.h >>conftest.$ac_ext
7922cat >>conftest.$ac_ext <<_ACEOF
7923/* end confdefs.h. */
7924$ac_includes_default
7925#include <$ac_header>
7926_ACEOF
7927rm -f conftest.$ac_objext
7928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7929 (eval $ac_compile) 2>conftest.er1
7930 ac_status=$?
7931 grep -v '^ *+' conftest.er1 >conftest.err
7932 rm -f conftest.er1
7933 cat conftest.err >&5
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); } &&
b4e70030
JB
7936 { ac_try='test -z "$ac_c_werror_flag"
7937 || test ! -s conftest.err'
bec39cab
AC
7938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7939 (eval $ac_try) 2>&5
7940 ac_status=$?
7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); }; } &&
7943 { ac_try='test -s conftest.$ac_objext'
7944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7945 (eval $ac_try) 2>&5
7946 ac_status=$?
7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); }; }; then
7949 ac_header_compiler=yes
7950else
7951 echo "$as_me: failed program was:" >&5
7952sed 's/^/| /' conftest.$ac_ext >&5
7953
b4e70030 7954ac_header_compiler=no
bec39cab
AC
7955fi
7956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7957echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7958echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7959
7960# Is the header present?
b4e70030
JB
7961echo "$as_me:$LINENO: checking $ac_header presence" >&5
7962echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7963cat >conftest.$ac_ext <<_ACEOF
7964/* confdefs.h. */
7965_ACEOF
7966cat confdefs.h >>conftest.$ac_ext
7967cat >>conftest.$ac_ext <<_ACEOF
7968/* end confdefs.h. */
7969#include <$ac_header>
7970_ACEOF
7971if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7972 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7973 ac_status=$?
7974 grep -v '^ *+' conftest.er1 >conftest.err
7975 rm -f conftest.er1
7976 cat conftest.err >&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); } >/dev/null; then
7979 if test -s conftest.err; then
7980 ac_cpp_err=$ac_c_preproc_warn_flag
7981 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7982 else
7983 ac_cpp_err=
7984 fi
7985else
7986 ac_cpp_err=yes
7987fi
7988if test -z "$ac_cpp_err"; then
7989 ac_header_preproc=yes
7990else
7991 echo "$as_me: failed program was:" >&5
7992sed 's/^/| /' conftest.$ac_ext >&5
7993
7994 ac_header_preproc=no
7995fi
7996rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7997echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7998echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
7999
8000# So? What about this header?
8001case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8002 yes:no: )
8003 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8004echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8005 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8006echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8007 ac_header_preproc=yes
8008 ;;
8009 no:yes:* )
8010 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8011echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8012 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8013echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8014 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8015echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8016 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8017echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8019echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8020 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8021echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8022 (
8023 cat <<\_ASBOX
8024## ------------------------------------------ ##
8025## Report this to the AC_PACKAGE_NAME lists. ##
8026## ------------------------------------------ ##
8027_ASBOX
8028 ) |
8029 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8030 ;;
8031esac
b4e70030
JB
8032echo "$as_me:$LINENO: checking for $ac_header" >&5
8033echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8034if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8035 echo $ECHO_N "(cached) $ECHO_C" >&6
8036else
8037 eval "$as_ac_Header=\$ac_header_preproc"
8038fi
b4e70030
JB
8039echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8040echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8041
8042fi
8043if test `eval echo '${'$as_ac_Header'}'` = yes; then
8044 cat >>confdefs.h <<_ACEOF
8045#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8046_ACEOF
8047
8048fi
8049
8050done
8051
8052
8053for ac_header in libunwind-ia64.h
8054do
8055as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8056if eval "test \"\${$as_ac_Header+set}\" = set"; then
8057 echo "$as_me:$LINENO: checking for $ac_header" >&5
8058echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8059if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8060 echo $ECHO_N "(cached) $ECHO_C" >&6
8061fi
b4e70030
JB
8062echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8063echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8064else
8065 # Is the header compilable?
b4e70030
JB
8066echo "$as_me:$LINENO: checking $ac_header usability" >&5
8067echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8068cat >conftest.$ac_ext <<_ACEOF
8069/* confdefs.h. */
8070_ACEOF
8071cat confdefs.h >>conftest.$ac_ext
8072cat >>conftest.$ac_ext <<_ACEOF
8073/* end confdefs.h. */
8074$ac_includes_default
8075#include <$ac_header>
8076_ACEOF
8077rm -f conftest.$ac_objext
8078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8079 (eval $ac_compile) 2>conftest.er1
8080 ac_status=$?
8081 grep -v '^ *+' conftest.er1 >conftest.err
8082 rm -f conftest.er1
8083 cat conftest.err >&5
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); } &&
b4e70030
JB
8086 { ac_try='test -z "$ac_c_werror_flag"
8087 || test ! -s conftest.err'
bec39cab
AC
8088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8089 (eval $ac_try) 2>&5
8090 ac_status=$?
8091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8092 (exit $ac_status); }; } &&
8093 { ac_try='test -s conftest.$ac_objext'
8094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8095 (eval $ac_try) 2>&5
8096 ac_status=$?
8097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098 (exit $ac_status); }; }; then
8099 ac_header_compiler=yes
8100else
8101 echo "$as_me: failed program was:" >&5
8102sed 's/^/| /' conftest.$ac_ext >&5
8103
b4e70030 8104ac_header_compiler=no
bec39cab
AC
8105fi
8106rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8107echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8108echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8109
8110# Is the header present?
b4e70030
JB
8111echo "$as_me:$LINENO: checking $ac_header presence" >&5
8112echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8113cat >conftest.$ac_ext <<_ACEOF
8114/* confdefs.h. */
8115_ACEOF
8116cat confdefs.h >>conftest.$ac_ext
8117cat >>conftest.$ac_ext <<_ACEOF
8118/* end confdefs.h. */
8119#include <$ac_header>
8120_ACEOF
8121if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8123 ac_status=$?
8124 grep -v '^ *+' conftest.er1 >conftest.err
8125 rm -f conftest.er1
8126 cat conftest.err >&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); } >/dev/null; then
8129 if test -s conftest.err; then
8130 ac_cpp_err=$ac_c_preproc_warn_flag
8131 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8132 else
8133 ac_cpp_err=
8134 fi
8135else
8136 ac_cpp_err=yes
8137fi
8138if test -z "$ac_cpp_err"; then
8139 ac_header_preproc=yes
8140else
8141 echo "$as_me: failed program was:" >&5
8142sed 's/^/| /' conftest.$ac_ext >&5
8143
8144 ac_header_preproc=no
8145fi
8146rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8147echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8148echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8149
8150# So? What about this header?
8151case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8152 yes:no: )
8153 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8154echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8156echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8157 ac_header_preproc=yes
8158 ;;
8159 no:yes:* )
8160 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8161echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8162 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8163echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8164 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8165echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8166 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8167echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8169echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8170 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8171echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8172 (
8173 cat <<\_ASBOX
8174## ------------------------------------------ ##
8175## Report this to the AC_PACKAGE_NAME lists. ##
8176## ------------------------------------------ ##
8177_ASBOX
8178 ) |
8179 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8180 ;;
8181esac
b4e70030
JB
8182echo "$as_me:$LINENO: checking for $ac_header" >&5
8183echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8184if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8185 echo $ECHO_N "(cached) $ECHO_C" >&6
8186else
8187 eval "$as_ac_Header=\$ac_header_preproc"
8188fi
b4e70030
JB
8189echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8190echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8191
8192fi
8193if test `eval echo '${'$as_ac_Header'}'` = yes; then
8194 cat >>confdefs.h <<_ACEOF
8195#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8196_ACEOF
8197
8198fi
8199
8200done
8201
60ca704f
SE
8202
8203cat >>confdefs.h <<\_ACEOF
bec39cab
AC
8204#define HAVE_LIBUNWIND 1
8205_ACEOF
8206
8207 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
8208 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
8209 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
8210fi
8211
8212# Profiling support.
b4e70030 8213# Check whether --enable-profiling or --disable-profiling was given.
bec39cab 8214if test "${enable_profiling+set}" = set; then
b4e70030
JB
8215 enableval="$enable_profiling"
8216 case $enableval in
bec39cab
AC
8217 yes | no)
8218 ;;
8219 *)
8220 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
8221echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
8222 { (exit 1); exit 1; }; } ;;
8223 esac
8224else
8225 enable_profiling=no
b4e70030 8226fi;
bec39cab
AC
8227
8228
8229
8230for ac_func in monstartup _mcleanup
8231do
8232as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
8233echo "$as_me:$LINENO: checking for $ac_func" >&5
8234echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8235if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
8236 echo $ECHO_N "(cached) $ECHO_C" >&6
8237else
8238 cat >conftest.$ac_ext <<_ACEOF
8239/* confdefs.h. */
8240_ACEOF
8241cat confdefs.h >>conftest.$ac_ext
8242cat >>conftest.$ac_ext <<_ACEOF
8243/* end confdefs.h. */
8244/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8246#define $ac_func innocuous_$ac_func
8247
8248/* System header to define __stub macros and hopefully few prototypes,
8249 which can conflict with char $ac_func (); below.
8250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8251 <limits.h> exists even on freestanding compilers. */
8252
8253#ifdef __STDC__
8254# include <limits.h>
8255#else
8256# include <assert.h>
8257#endif
8258
8259#undef $ac_func
8260
b4e70030 8261/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
8262#ifdef __cplusplus
8263extern "C"
b4e70030 8264{
bec39cab 8265#endif
b4e70030
JB
8266/* We use char because int might match the return type of a gcc2
8267 builtin and then its argument prototype would still apply. */
bec39cab
AC
8268char $ac_func ();
8269/* The GNU C library defines this for functions which it implements
8270 to always fail with ENOSYS. Some functions are actually named
8271 something starting with __ and the normal name is an alias. */
b4e70030 8272#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
bec39cab 8273choke me
b4e70030
JB
8274#else
8275char (*f) () = $ac_func;
8276#endif
8277#ifdef __cplusplus
8278}
bec39cab
AC
8279#endif
8280
8281int
8282main ()
8283{
b4e70030 8284return f != $ac_func;
bec39cab
AC
8285 ;
8286 return 0;
8287}
8288_ACEOF
8289rm -f conftest.$ac_objext conftest$ac_exeext
8290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8291 (eval $ac_link) 2>conftest.er1
8292 ac_status=$?
8293 grep -v '^ *+' conftest.er1 >conftest.err
8294 rm -f conftest.er1
8295 cat conftest.err >&5
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); } &&
b4e70030
JB
8298 { ac_try='test -z "$ac_c_werror_flag"
8299 || test ! -s conftest.err'
bec39cab
AC
8300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8301 (eval $ac_try) 2>&5
8302 ac_status=$?
8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); }; } &&
8305 { ac_try='test -s conftest$ac_exeext'
8306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8307 (eval $ac_try) 2>&5
8308 ac_status=$?
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); }; }; then
8311 eval "$as_ac_var=yes"
8312else
8313 echo "$as_me: failed program was:" >&5
8314sed 's/^/| /' conftest.$ac_ext >&5
8315
b4e70030 8316eval "$as_ac_var=no"
bec39cab
AC
8317fi
8318rm -f conftest.err conftest.$ac_objext \
8319 conftest$ac_exeext conftest.$ac_ext
8320fi
b4e70030
JB
8321echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8322echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
8323if test `eval echo '${'$as_ac_var'}'` = yes; then
8324 cat >>confdefs.h <<_ACEOF
8325#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8326_ACEOF
8327
8328fi
8329done
8330
b4e70030
JB
8331echo "$as_me:$LINENO: checking for _etext" >&5
8332echo $ECHO_N "checking for _etext... $ECHO_C" >&6
bec39cab
AC
8333if test "${ac_cv_var__etext+set}" = set; then
8334 echo $ECHO_N "(cached) $ECHO_C" >&6
8335else
8336 cat >conftest.$ac_ext <<_ACEOF
8337/* confdefs.h. */
8338_ACEOF
8339cat confdefs.h >>conftest.$ac_ext
8340cat >>conftest.$ac_ext <<_ACEOF
8341/* end confdefs.h. */
8342#include <stdlib.h>
8343extern char _etext;
8344
8345int
8346main ()
8347{
8348free (&_etext);
8349 ;
8350 return 0;
8351}
8352_ACEOF
8353rm -f conftest.$ac_objext conftest$ac_exeext
8354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8355 (eval $ac_link) 2>conftest.er1
8356 ac_status=$?
8357 grep -v '^ *+' conftest.er1 >conftest.err
8358 rm -f conftest.er1
8359 cat conftest.err >&5
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); } &&
b4e70030
JB
8362 { ac_try='test -z "$ac_c_werror_flag"
8363 || test ! -s conftest.err'
bec39cab
AC
8364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8365 (eval $ac_try) 2>&5
8366 ac_status=$?
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); }; } &&
8369 { ac_try='test -s conftest$ac_exeext'
8370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8371 (eval $ac_try) 2>&5
8372 ac_status=$?
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); }; }; then
8375 ac_cv_var__etext=yes
8376else
8377 echo "$as_me: failed program was:" >&5
8378sed 's/^/| /' conftest.$ac_ext >&5
8379
b4e70030 8380ac_cv_var__etext=no
bec39cab
AC
8381fi
8382rm -f conftest.err conftest.$ac_objext \
8383 conftest$ac_exeext conftest.$ac_ext
8384fi
b4e70030
JB
8385echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
8386echo "${ECHO_T}$ac_cv_var__etext" >&6
bec39cab
AC
8387if test $ac_cv_var__etext = yes; then
8388
8389cat >>confdefs.h <<\_ACEOF
8390#define HAVE__ETEXT 1
8391_ACEOF
8392
01fe12f6
JB
8393fi
8394echo "$as_me:$LINENO: checking for etext" >&5
8395echo $ECHO_N "checking for etext... $ECHO_C" >&6
8396if test "${ac_cv_var_etext+set}" = set; then
8397 echo $ECHO_N "(cached) $ECHO_C" >&6
8398else
8399 cat >conftest.$ac_ext <<_ACEOF
8400/* confdefs.h. */
8401_ACEOF
8402cat confdefs.h >>conftest.$ac_ext
8403cat >>conftest.$ac_ext <<_ACEOF
8404/* end confdefs.h. */
8405#include <stdlib.h>
8406extern char etext;
8407
8408int
8409main ()
8410{
8411free (&etext);
8412 ;
8413 return 0;
8414}
8415_ACEOF
8416rm -f conftest.$ac_objext conftest$ac_exeext
8417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8418 (eval $ac_link) 2>conftest.er1
8419 ac_status=$?
8420 grep -v '^ *+' conftest.er1 >conftest.err
8421 rm -f conftest.er1
8422 cat conftest.err >&5
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); } &&
8425 { ac_try='test -z "$ac_c_werror_flag"
8426 || test ! -s conftest.err'
8427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8428 (eval $ac_try) 2>&5
8429 ac_status=$?
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); }; } &&
8432 { ac_try='test -s conftest$ac_exeext'
8433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8434 (eval $ac_try) 2>&5
8435 ac_status=$?
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); }; }; then
8438 ac_cv_var_etext=yes
8439else
8440 echo "$as_me: failed program was:" >&5
8441sed 's/^/| /' conftest.$ac_ext >&5
8442
8443ac_cv_var_etext=no
8444fi
8445rm -f conftest.err conftest.$ac_objext \
8446 conftest$ac_exeext conftest.$ac_ext
8447fi
8448echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5
8449echo "${ECHO_T}$ac_cv_var_etext" >&6
8450if test $ac_cv_var_etext = yes; then
8451
8452cat >>confdefs.h <<\_ACEOF
8453#define HAVE_ETEXT 1
8454_ACEOF
8455
bec39cab
AC
8456fi
8457if test "$enable_profiling" = yes ; then
8458 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
8459 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
8460echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
8461 { (exit 1); exit 1; }; }
8462 fi
8463 PROFILE_CFLAGS=-pg
8464 OLD_CFLAGS="$CFLAGS"
8465 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
8466
b4e70030
JB
8467 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
8468echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
bec39cab
AC
8469if test "${ac_cv_cc_supports_pg+set}" = set; then
8470 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 8471else
bec39cab
AC
8472 cat >conftest.$ac_ext <<_ACEOF
8473/* confdefs.h. */
8474_ACEOF
8475cat confdefs.h >>conftest.$ac_ext
8476cat >>conftest.$ac_ext <<_ACEOF
8477/* end confdefs.h. */
8478
8479int
8480main ()
8481{
8482int x;
8483 ;
8484 return 0;
8485}
8486_ACEOF
8487rm -f conftest.$ac_objext
8488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8489 (eval $ac_compile) 2>conftest.er1
8490 ac_status=$?
8491 grep -v '^ *+' conftest.er1 >conftest.err
8492 rm -f conftest.er1
8493 cat conftest.err >&5
8494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8495 (exit $ac_status); } &&
b4e70030
JB
8496 { ac_try='test -z "$ac_c_werror_flag"
8497 || test ! -s conftest.err'
bec39cab
AC
8498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8499 (eval $ac_try) 2>&5
8500 ac_status=$?
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); }; } &&
8503 { ac_try='test -s conftest.$ac_objext'
8504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8505 (eval $ac_try) 2>&5
8506 ac_status=$?
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); }; }; then
8509 ac_cv_cc_supports_pg=yes
8510else
8511 echo "$as_me: failed program was:" >&5
8512sed 's/^/| /' conftest.$ac_ext >&5
8513
b4e70030 8514ac_cv_cc_supports_pg=no
bec39cab
AC
8515fi
8516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8517fi
b4e70030
JB
8518echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
8519echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
bec39cab
AC
8520
8521 if test $ac_cv_cc_supports_pg = no; then
8522 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
8523echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
8524 { (exit 1); exit 1; }; }
8525 fi
8526
8527 CFLAGS="$OLD_CFLAGS"
8528fi
8529
c16158bc
JM
8530
8531
8532# Check whether --with-pkgversion or --without-pkgversion was given.
8533if test "${with_pkgversion+set}" = set; then
8534 withval="$with_pkgversion"
8535 case "$withval" in
8536 yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5
8537echo "$as_me: error: package version not specified" >&2;}
8538 { (exit 1); exit 1; }; } ;;
8539 no) PKGVERSION= ;;
8540 *) PKGVERSION="($withval) " ;;
8541 esac
8542else
8543 PKGVERSION="(GDB) "
8544
8545fi;
8546
8547
8548
8549
8550# Check whether --with-bugurl or --without-bugurl was given.
8551if test "${with_bugurl+set}" = set; then
8552 withval="$with_bugurl"
8553 case "$withval" in
8554 yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5
8555echo "$as_me: error: bug URL not specified" >&2;}
8556 { (exit 1); exit 1; }; } ;;
8557 no) BUGURL=
8558 ;;
8559 *) BUGURL="$withval"
8560 ;;
8561 esac
8562else
8563 BUGURL="http://www.gnu.org/software/gdb/bugs/"
8564
8565fi;
8566 case ${BUGURL} in
8567 "")
8568 REPORT_BUGS_TO=
8569 REPORT_BUGS_TEXI=
8570 ;;
8571 *)
8572 REPORT_BUGS_TO="<$BUGURL>"
8573 REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`}
8574 ;;
8575 esac;
8576
8577
8578
8579
8580cat >>confdefs.h <<_ACEOF
8581#define PKGVERSION "$PKGVERSION"
8582_ACEOF
8583
8584
8585cat >>confdefs.h <<_ACEOF
8586#define REPORT_BUGS_TO "$REPORT_BUGS_TO"
8587_ACEOF
8588
8589
bec39cab
AC
8590# --------------------- #
8591# Checks for programs. #
8592# --------------------- #
8593
8594for ac_prog in gawk mawk nawk awk
8595do
8596 # Extract the first word of "$ac_prog", so it can be a program name with args.
8597set dummy $ac_prog; ac_word=$2
b4e70030
JB
8598echo "$as_me:$LINENO: checking for $ac_word" >&5
8599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8600if test "${ac_cv_prog_AWK+set}" = set; then
8601 echo $ECHO_N "(cached) $ECHO_C" >&6
8602else
8603 if test -n "$AWK"; then
8604 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8605else
8606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8607for as_dir in $PATH
8608do
8609 IFS=$as_save_IFS
8610 test -z "$as_dir" && as_dir=.
8611 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8613 ac_cv_prog_AWK="$ac_prog"
8614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8615 break 2
8616 fi
8617done
8618done
8619
8620fi
8621fi
8622AWK=$ac_cv_prog_AWK
8623if test -n "$AWK"; then
b4e70030
JB
8624 echo "$as_me:$LINENO: result: $AWK" >&5
8625echo "${ECHO_T}$AWK" >&6
bec39cab 8626else
b4e70030
JB
8627 echo "$as_me:$LINENO: result: no" >&5
8628echo "${ECHO_T}no" >&6
bec39cab
AC
8629fi
8630
8631 test -n "$AWK" && break
8632done
8633
8634# Find a good install program. We prefer a C program (faster),
8635# so one script is as good as another. But avoid the broken or
8636# incompatible versions:
8637# SysV /etc/install, /usr/sbin/install
8638# SunOS /usr/etc/install
8639# IRIX /sbin/install
8640# AIX /bin/install
8641# AmigaOS /C/install, which installs bootblocks on floppy discs
8642# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8643# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8644# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8645# OS/2's system install, which has a completely different semantic
8646# ./install, which can be erroneously created by make from ./install.sh.
b4e70030
JB
8647echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8648echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
bec39cab
AC
8649if test -z "$INSTALL"; then
8650if test "${ac_cv_path_install+set}" = set; then
8651 echo $ECHO_N "(cached) $ECHO_C" >&6
8652else
8653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8654for as_dir in $PATH
8655do
8656 IFS=$as_save_IFS
8657 test -z "$as_dir" && as_dir=.
8658 # Account for people who put trailing slashes in PATH elements.
8659case $as_dir/ in
8660 ./ | .// | /cC/* | \
8661 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8662 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8663 /usr/ucb/* ) ;;
c906108c 8664 *)
bec39cab
AC
8665 # OSF1 and SCO ODT 3.0 have their own names for install.
8666 # Don't use installbsd from OSF since it installs stuff as root
8667 # by default.
8668 for ac_prog in ginstall scoinst install; do
8669 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8670 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
bec39cab
AC
8671 if test $ac_prog = install &&
8672 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8673 # AIX install. It has an incompatible calling convention.
8674 :
8675 elif test $ac_prog = install &&
8676 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8677 # program-specific install script used by HP pwplus--don't use.
8678 :
8679 else
8680 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8681 break 3
8682 fi
8683 fi
8684 done
8685 done
8686 ;;
c906108c 8687esac
bec39cab
AC
8688done
8689
8690
8691fi
8692 if test "${ac_cv_path_install+set}" = set; then
8693 INSTALL=$ac_cv_path_install
8694 else
b4e70030
JB
8695 # As a last resort, use the slow shell script. We don't cache a
8696 # path for INSTALL within a source directory, because that will
bec39cab 8697 # break other packages using the cache if that directory is
b4e70030 8698 # removed, or if the path is relative.
bec39cab
AC
8699 INSTALL=$ac_install_sh
8700 fi
8701fi
b4e70030
JB
8702echo "$as_me:$LINENO: result: $INSTALL" >&5
8703echo "${ECHO_T}$INSTALL" >&6
bec39cab
AC
8704
8705# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8706# It thinks the first close brace ends the variable substitution.
8707test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8708
8709test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8710
8711test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8712
b4e70030
JB
8713echo "$as_me:$LINENO: checking whether ln -s works" >&5
8714echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
bec39cab
AC
8715LN_S=$as_ln_s
8716if test "$LN_S" = "ln -s"; then
b4e70030
JB
8717 echo "$as_me:$LINENO: result: yes" >&5
8718echo "${ECHO_T}yes" >&6
bec39cab 8719else
b4e70030
JB
8720 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8721echo "${ECHO_T}no, using $LN_S" >&6
bec39cab
AC
8722fi
8723
8724if test -n "$ac_tool_prefix"; then
8725 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8726set dummy ${ac_tool_prefix}ranlib; ac_word=$2
b4e70030
JB
8727echo "$as_me:$LINENO: checking for $ac_word" >&5
8728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8729if test "${ac_cv_prog_RANLIB+set}" = set; then
8730 echo $ECHO_N "(cached) $ECHO_C" >&6
8731else
8732 if test -n "$RANLIB"; then
8733 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8734else
8735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8736for as_dir in $PATH
8737do
8738 IFS=$as_save_IFS
8739 test -z "$as_dir" && as_dir=.
8740 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8741 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8742 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8744 break 2
8745 fi
8746done
8747done
8748
8749fi
8750fi
8751RANLIB=$ac_cv_prog_RANLIB
8752if test -n "$RANLIB"; then
b4e70030
JB
8753 echo "$as_me:$LINENO: result: $RANLIB" >&5
8754echo "${ECHO_T}$RANLIB" >&6
bec39cab 8755else
b4e70030
JB
8756 echo "$as_me:$LINENO: result: no" >&5
8757echo "${ECHO_T}no" >&6
bec39cab
AC
8758fi
8759
8760fi
8761if test -z "$ac_cv_prog_RANLIB"; then
8762 ac_ct_RANLIB=$RANLIB
8763 # Extract the first word of "ranlib", so it can be a program name with args.
8764set dummy ranlib; ac_word=$2
b4e70030
JB
8765echo "$as_me:$LINENO: checking for $ac_word" >&5
8766echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8767if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8768 echo $ECHO_N "(cached) $ECHO_C" >&6
8769else
8770 if test -n "$ac_ct_RANLIB"; then
8771 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8772else
8773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8774for as_dir in $PATH
8775do
8776 IFS=$as_save_IFS
8777 test -z "$as_dir" && as_dir=.
8778 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8780 ac_cv_prog_ac_ct_RANLIB="ranlib"
8781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8782 break 2
8783 fi
8784done
8785done
8786
b4e70030 8787 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
bec39cab
AC
8788fi
8789fi
8790ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8791if test -n "$ac_ct_RANLIB"; then
b4e70030
JB
8792 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8793echo "${ECHO_T}$ac_ct_RANLIB" >&6
bec39cab 8794else
b4e70030
JB
8795 echo "$as_me:$LINENO: result: no" >&5
8796echo "${ECHO_T}no" >&6
bec39cab
AC
8797fi
8798
b4e70030 8799 RANLIB=$ac_ct_RANLIB
bec39cab
AC
8800else
8801 RANLIB="$ac_cv_prog_RANLIB"
8802fi
8803
8804for ac_prog in 'bison -y' byacc
8805do
8806 # Extract the first word of "$ac_prog", so it can be a program name with args.
8807set dummy $ac_prog; ac_word=$2
b4e70030
JB
8808echo "$as_me:$LINENO: checking for $ac_word" >&5
8809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8810if test "${ac_cv_prog_YACC+set}" = set; then
8811 echo $ECHO_N "(cached) $ECHO_C" >&6
8812else
8813 if test -n "$YACC"; then
8814 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8815else
8816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8817for as_dir in $PATH
8818do
8819 IFS=$as_save_IFS
8820 test -z "$as_dir" && as_dir=.
8821 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8823 ac_cv_prog_YACC="$ac_prog"
8824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8825 break 2
8826 fi
8827done
8828done
8829
8830fi
8831fi
8832YACC=$ac_cv_prog_YACC
8833if test -n "$YACC"; then
b4e70030
JB
8834 echo "$as_me:$LINENO: result: $YACC" >&5
8835echo "${ECHO_T}$YACC" >&6
bec39cab 8836else
b4e70030
JB
8837 echo "$as_me:$LINENO: result: no" >&5
8838echo "${ECHO_T}no" >&6
bec39cab
AC
8839fi
8840
8841 test -n "$YACC" && break
8842done
8843test -n "$YACC" || YACC="yacc"
8844
8845
8846if test -n "$ac_tool_prefix"; then
8847 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8848set dummy ${ac_tool_prefix}ar; ac_word=$2
b4e70030
JB
8849echo "$as_me:$LINENO: checking for $ac_word" >&5
8850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8851if test "${ac_cv_prog_AR+set}" = set; then
8852 echo $ECHO_N "(cached) $ECHO_C" >&6
8853else
8854 if test -n "$AR"; then
8855 ac_cv_prog_AR="$AR" # Let the user override the test.
8856else
8857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8858for as_dir in $PATH
8859do
8860 IFS=$as_save_IFS
8861 test -z "$as_dir" && as_dir=.
8862 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8864 ac_cv_prog_AR="${ac_tool_prefix}ar"
8865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8866 break 2
8867 fi
8868done
8869done
8870
8871fi
8872fi
8873AR=$ac_cv_prog_AR
8874if test -n "$AR"; then
b4e70030
JB
8875 echo "$as_me:$LINENO: result: $AR" >&5
8876echo "${ECHO_T}$AR" >&6
bec39cab 8877else
b4e70030
JB
8878 echo "$as_me:$LINENO: result: no" >&5
8879echo "${ECHO_T}no" >&6
bec39cab
AC
8880fi
8881
8882fi
8883if test -z "$ac_cv_prog_AR"; then
8884 ac_ct_AR=$AR
8885 # Extract the first word of "ar", so it can be a program name with args.
8886set dummy ar; ac_word=$2
b4e70030
JB
8887echo "$as_me:$LINENO: checking for $ac_word" >&5
8888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8889if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8890 echo $ECHO_N "(cached) $ECHO_C" >&6
8891else
8892 if test -n "$ac_ct_AR"; then
8893 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8894else
8895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8896for as_dir in $PATH
8897do
8898 IFS=$as_save_IFS
8899 test -z "$as_dir" && as_dir=.
8900 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8902 ac_cv_prog_ac_ct_AR="ar"
8903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8904 break 2
8905 fi
8906done
8907done
8908
8909fi
8910fi
8911ac_ct_AR=$ac_cv_prog_ac_ct_AR
8912if test -n "$ac_ct_AR"; then
b4e70030
JB
8913 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8914echo "${ECHO_T}$ac_ct_AR" >&6
bec39cab 8915else
b4e70030
JB
8916 echo "$as_me:$LINENO: result: no" >&5
8917echo "${ECHO_T}no" >&6
bec39cab
AC
8918fi
8919
b4e70030 8920 AR=$ac_ct_AR
bec39cab
AC
8921else
8922 AR="$ac_cv_prog_AR"
8923fi
8924
8925if test -n "$ac_tool_prefix"; then
8926 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8927set dummy ${ac_tool_prefix}dlltool; ac_word=$2
b4e70030
JB
8928echo "$as_me:$LINENO: checking for $ac_word" >&5
8929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8930if test "${ac_cv_prog_DLLTOOL+set}" = set; then
8931 echo $ECHO_N "(cached) $ECHO_C" >&6
8932else
8933 if test -n "$DLLTOOL"; then
8934 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8935else
8936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8937for as_dir in $PATH
8938do
8939 IFS=$as_save_IFS
8940 test -z "$as_dir" && as_dir=.
8941 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8943 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8945 break 2
8946 fi
8947done
8948done
8949
8950fi
8951fi
8952DLLTOOL=$ac_cv_prog_DLLTOOL
8953if test -n "$DLLTOOL"; then
b4e70030
JB
8954 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
8955echo "${ECHO_T}$DLLTOOL" >&6
bec39cab 8956else
b4e70030
JB
8957 echo "$as_me:$LINENO: result: no" >&5
8958echo "${ECHO_T}no" >&6
bec39cab
AC
8959fi
8960
8961fi
8962if test -z "$ac_cv_prog_DLLTOOL"; then
8963 ac_ct_DLLTOOL=$DLLTOOL
8964 # Extract the first word of "dlltool", so it can be a program name with args.
8965set dummy dlltool; ac_word=$2
b4e70030
JB
8966echo "$as_me:$LINENO: checking for $ac_word" >&5
8967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
8968if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
8969 echo $ECHO_N "(cached) $ECHO_C" >&6
8970else
8971 if test -n "$ac_ct_DLLTOOL"; then
8972 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8973else
8974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8975for as_dir in $PATH
8976do
8977 IFS=$as_save_IFS
8978 test -z "$as_dir" && as_dir=.
8979 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 8980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
8981 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8983 break 2
8984 fi
8985done
8986done
8987
8988fi
8989fi
8990ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8991if test -n "$ac_ct_DLLTOOL"; then
b4e70030
JB
8992 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
8993echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
bec39cab 8994else
b4e70030
JB
8995 echo "$as_me:$LINENO: result: no" >&5
8996echo "${ECHO_T}no" >&6
bec39cab
AC
8997fi
8998
b4e70030 8999 DLLTOOL=$ac_ct_DLLTOOL
bec39cab
AC
9000else
9001 DLLTOOL="$ac_cv_prog_DLLTOOL"
9002fi
9003
9004if test -n "$ac_tool_prefix"; then
9005 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
9006set dummy ${ac_tool_prefix}windres; ac_word=$2
b4e70030
JB
9007echo "$as_me:$LINENO: checking for $ac_word" >&5
9008echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
9009if test "${ac_cv_prog_WINDRES+set}" = set; then
9010 echo $ECHO_N "(cached) $ECHO_C" >&6
9011else
9012 if test -n "$WINDRES"; then
9013 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
9014else
9015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9016for as_dir in $PATH
9017do
9018 IFS=$as_save_IFS
9019 test -z "$as_dir" && as_dir=.
9020 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 9021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
9022 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
9023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9024 break 2
9025 fi
9026done
9027done
9028
9029fi
9030fi
9031WINDRES=$ac_cv_prog_WINDRES
9032if test -n "$WINDRES"; then
b4e70030
JB
9033 echo "$as_me:$LINENO: result: $WINDRES" >&5
9034echo "${ECHO_T}$WINDRES" >&6
bec39cab 9035else
b4e70030
JB
9036 echo "$as_me:$LINENO: result: no" >&5
9037echo "${ECHO_T}no" >&6
bec39cab
AC
9038fi
9039
9040fi
9041if test -z "$ac_cv_prog_WINDRES"; then
9042 ac_ct_WINDRES=$WINDRES
9043 # Extract the first word of "windres", so it can be a program name with args.
9044set dummy windres; ac_word=$2
b4e70030
JB
9045echo "$as_me:$LINENO: checking for $ac_word" >&5
9046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
9047if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
9048 echo $ECHO_N "(cached) $ECHO_C" >&6
9049else
9050 if test -n "$ac_ct_WINDRES"; then
9051 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
9052else
9053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9054for as_dir in $PATH
9055do
9056 IFS=$as_save_IFS
9057 test -z "$as_dir" && as_dir=.
9058 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 9059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
9060 ac_cv_prog_ac_ct_WINDRES="windres"
9061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9062 break 2
9063 fi
9064done
9065done
9066
9067fi
9068fi
9069ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
9070if test -n "$ac_ct_WINDRES"; then
b4e70030
JB
9071 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
9072echo "${ECHO_T}$ac_ct_WINDRES" >&6
bec39cab 9073else
b4e70030
JB
9074 echo "$as_me:$LINENO: result: no" >&5
9075echo "${ECHO_T}no" >&6
c906108c 9076fi
bec39cab 9077
b4e70030 9078 WINDRES=$ac_ct_WINDRES
c906108c 9079else
bec39cab 9080 WINDRES="$ac_cv_prog_WINDRES"
c906108c
SS
9081fi
9082
bec39cab
AC
9083
9084# Needed for GNU/Hurd.
9085if test -n "$ac_tool_prefix"; then
9086 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
9087set dummy ${ac_tool_prefix}mig; ac_word=$2
b4e70030
JB
9088echo "$as_me:$LINENO: checking for $ac_word" >&5
9089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
9090if test "${ac_cv_prog_MIG+set}" = set; then
9091 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 9092else
bec39cab
AC
9093 if test -n "$MIG"; then
9094 ac_cv_prog_MIG="$MIG" # Let the user override the test.
9095else
9096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9097for as_dir in $PATH
9098do
9099 IFS=$as_save_IFS
9100 test -z "$as_dir" && as_dir=.
9101 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 9102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
9103 ac_cv_prog_MIG="${ac_tool_prefix}mig"
9104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9105 break 2
9106 fi
9107done
9108done
9109
c906108c 9110fi
bec39cab
AC
9111fi
9112MIG=$ac_cv_prog_MIG
9113if test -n "$MIG"; then
b4e70030
JB
9114 echo "$as_me:$LINENO: result: $MIG" >&5
9115echo "${ECHO_T}$MIG" >&6
c906108c 9116else
b4e70030
JB
9117 echo "$as_me:$LINENO: result: no" >&5
9118echo "${ECHO_T}no" >&6
c906108c
SS
9119fi
9120
bec39cab
AC
9121fi
9122if test -z "$ac_cv_prog_MIG"; then
9123 ac_ct_MIG=$MIG
9124 # Extract the first word of "mig", so it can be a program name with args.
9125set dummy mig; ac_word=$2
b4e70030
JB
9126echo "$as_me:$LINENO: checking for $ac_word" >&5
9127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
9128if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
9129 echo $ECHO_N "(cached) $ECHO_C" >&6
9130else
9131 if test -n "$ac_ct_MIG"; then
9132 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
9133else
9134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9135for as_dir in $PATH
9136do
9137 IFS=$as_save_IFS
9138 test -z "$as_dir" && as_dir=.
9139 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 9140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
9141 ac_cv_prog_ac_ct_MIG="mig"
9142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9143 break 2
9144 fi
9145done
9146done
c906108c 9147
bec39cab
AC
9148fi
9149fi
9150ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
9151if test -n "$ac_ct_MIG"; then
b4e70030
JB
9152 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
9153echo "${ECHO_T}$ac_ct_MIG" >&6
bec39cab 9154else
b4e70030
JB
9155 echo "$as_me:$LINENO: result: no" >&5
9156echo "${ECHO_T}no" >&6
bec39cab 9157fi
c906108c 9158
b4e70030 9159 MIG=$ac_ct_MIG
bec39cab
AC
9160else
9161 MIG="$ac_cv_prog_MIG"
9162fi
c906108c 9163
c906108c 9164
bec39cab
AC
9165# ---------------------- #
9166# Checks for libraries. #
9167# ---------------------- #
c906108c 9168
bec39cab 9169# We might need to link with -lm; most simulators need it.
c906108c 9170
b4e70030
JB
9171echo "$as_me:$LINENO: checking for main in -lm" >&5
9172echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
bec39cab
AC
9173if test "${ac_cv_lib_m_main+set}" = set; then
9174 echo $ECHO_N "(cached) $ECHO_C" >&6
9175else
9176 ac_check_lib_save_LIBS=$LIBS
9177LIBS="-lm $LIBS"
9178cat >conftest.$ac_ext <<_ACEOF
9179/* confdefs.h. */
9180_ACEOF
9181cat confdefs.h >>conftest.$ac_ext
9182cat >>conftest.$ac_ext <<_ACEOF
9183/* end confdefs.h. */
c906108c 9184
c906108c 9185
bec39cab
AC
9186int
9187main ()
9188{
b4e70030 9189main ();
bec39cab
AC
9190 ;
9191 return 0;
9192}
9193_ACEOF
9194rm -f conftest.$ac_objext conftest$ac_exeext
9195if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9196 (eval $ac_link) 2>conftest.er1
9197 ac_status=$?
9198 grep -v '^ *+' conftest.er1 >conftest.err
9199 rm -f conftest.er1
9200 cat conftest.err >&5
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); } &&
b4e70030
JB
9203 { ac_try='test -z "$ac_c_werror_flag"
9204 || test ! -s conftest.err'
bec39cab
AC
9205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9206 (eval $ac_try) 2>&5
9207 ac_status=$?
9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); }; } &&
9210 { ac_try='test -s conftest$ac_exeext'
9211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9212 (eval $ac_try) 2>&5
9213 ac_status=$?
9214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); }; }; then
9216 ac_cv_lib_m_main=yes
9217else
9218 echo "$as_me: failed program was:" >&5
9219sed 's/^/| /' conftest.$ac_ext >&5
9220
b4e70030 9221ac_cv_lib_m_main=no
bec39cab
AC
9222fi
9223rm -f conftest.err conftest.$ac_objext \
9224 conftest$ac_exeext conftest.$ac_ext
9225LIBS=$ac_check_lib_save_LIBS
9226fi
b4e70030
JB
9227echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
9228echo "${ECHO_T}$ac_cv_lib_m_main" >&6
bec39cab
AC
9229if test $ac_cv_lib_m_main = yes; then
9230 cat >>confdefs.h <<_ACEOF
9231#define HAVE_LIBM 1
9232_ACEOF
9233
9234 LIBS="-lm $LIBS"
c906108c 9235
c906108c 9236fi
bec39cab
AC
9237
9238
9239# We need to link with -lw to get `wctype' on Solaris before Solaris
9240# 2.6. Solaris 2.6 and beyond have this function in libc, and have a
9241# libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
9242# is known to have this problem). Therefore we avoid libw if we can.
b4e70030
JB
9243echo "$as_me:$LINENO: checking for wctype" >&5
9244echo $ECHO_N "checking for wctype... $ECHO_C" >&6
bec39cab
AC
9245if test "${ac_cv_func_wctype+set}" = set; then
9246 echo $ECHO_N "(cached) $ECHO_C" >&6
9247else
9248 cat >conftest.$ac_ext <<_ACEOF
9249/* confdefs.h. */
9250_ACEOF
9251cat confdefs.h >>conftest.$ac_ext
9252cat >>conftest.$ac_ext <<_ACEOF
9253/* end confdefs.h. */
9254/* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
9255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9256#define wctype innocuous_wctype
9257
9258/* System header to define __stub macros and hopefully few prototypes,
9259 which can conflict with char wctype (); below.
9260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9261 <limits.h> exists even on freestanding compilers. */
9262
9263#ifdef __STDC__
9264# include <limits.h>
9265#else
9266# include <assert.h>
9267#endif
9268
9269#undef wctype
9270
b4e70030 9271/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
9272#ifdef __cplusplus
9273extern "C"
b4e70030 9274{
bec39cab 9275#endif
b4e70030
JB
9276/* We use char because int might match the return type of a gcc2
9277 builtin and then its argument prototype would still apply. */
bec39cab
AC
9278char wctype ();
9279/* The GNU C library defines this for functions which it implements
9280 to always fail with ENOSYS. Some functions are actually named
9281 something starting with __ and the normal name is an alias. */
b4e70030 9282#if defined (__stub_wctype) || defined (__stub___wctype)
bec39cab 9283choke me
b4e70030
JB
9284#else
9285char (*f) () = wctype;
9286#endif
9287#ifdef __cplusplus
9288}
bec39cab
AC
9289#endif
9290
9291int
9292main ()
9293{
b4e70030 9294return f != wctype;
bec39cab
AC
9295 ;
9296 return 0;
9297}
9298_ACEOF
9299rm -f conftest.$ac_objext conftest$ac_exeext
9300if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9301 (eval $ac_link) 2>conftest.er1
9302 ac_status=$?
9303 grep -v '^ *+' conftest.er1 >conftest.err
9304 rm -f conftest.er1
9305 cat conftest.err >&5
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); } &&
b4e70030
JB
9308 { ac_try='test -z "$ac_c_werror_flag"
9309 || test ! -s conftest.err'
bec39cab
AC
9310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9311 (eval $ac_try) 2>&5
9312 ac_status=$?
9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 (exit $ac_status); }; } &&
9315 { ac_try='test -s conftest$ac_exeext'
9316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9317 (eval $ac_try) 2>&5
9318 ac_status=$?
9319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9320 (exit $ac_status); }; }; then
9321 ac_cv_func_wctype=yes
9322else
9323 echo "$as_me: failed program was:" >&5
9324sed 's/^/| /' conftest.$ac_ext >&5
9325
b4e70030 9326ac_cv_func_wctype=no
bec39cab
AC
9327fi
9328rm -f conftest.err conftest.$ac_objext \
9329 conftest$ac_exeext conftest.$ac_ext
9330fi
b4e70030
JB
9331echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
9332echo "${ECHO_T}$ac_cv_func_wctype" >&6
bec39cab
AC
9333if test $ac_cv_func_wctype = yes; then
9334 :
c906108c 9335else
c906108c 9336
b4e70030
JB
9337echo "$as_me:$LINENO: checking for wctype in -lw" >&5
9338echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
bec39cab
AC
9339if test "${ac_cv_lib_w_wctype+set}" = set; then
9340 echo $ECHO_N "(cached) $ECHO_C" >&6
9341else
9342 ac_check_lib_save_LIBS=$LIBS
9343LIBS="-lw $LIBS"
9344cat >conftest.$ac_ext <<_ACEOF
9345/* confdefs.h. */
9346_ACEOF
9347cat confdefs.h >>conftest.$ac_ext
9348cat >>conftest.$ac_ext <<_ACEOF
9349/* end confdefs.h. */
c906108c 9350
b4e70030 9351/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
9352#ifdef __cplusplus
9353extern "C"
9354#endif
b4e70030
JB
9355/* We use char because int might match the return type of a gcc2
9356 builtin and then its argument prototype would still apply. */
bec39cab
AC
9357char wctype ();
9358int
9359main ()
9360{
b4e70030 9361wctype ();
bec39cab
AC
9362 ;
9363 return 0;
9364}
9365_ACEOF
9366rm -f conftest.$ac_objext conftest$ac_exeext
9367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9368 (eval $ac_link) 2>conftest.er1
9369 ac_status=$?
9370 grep -v '^ *+' conftest.er1 >conftest.err
9371 rm -f conftest.er1
9372 cat conftest.err >&5
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); } &&
b4e70030
JB
9375 { ac_try='test -z "$ac_c_werror_flag"
9376 || test ! -s conftest.err'
bec39cab
AC
9377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9378 (eval $ac_try) 2>&5
9379 ac_status=$?
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); }; } &&
9382 { ac_try='test -s conftest$ac_exeext'
9383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9384 (eval $ac_try) 2>&5
9385 ac_status=$?
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); }; }; then
9388 ac_cv_lib_w_wctype=yes
9389else
9390 echo "$as_me: failed program was:" >&5
9391sed 's/^/| /' conftest.$ac_ext >&5
9392
b4e70030 9393ac_cv_lib_w_wctype=no
bec39cab
AC
9394fi
9395rm -f conftest.err conftest.$ac_objext \
9396 conftest$ac_exeext conftest.$ac_ext
9397LIBS=$ac_check_lib_save_LIBS
9398fi
b4e70030
JB
9399echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
9400echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
bec39cab
AC
9401if test $ac_cv_lib_w_wctype = yes; then
9402 cat >>confdefs.h <<_ACEOF
9403#define HAVE_LIBW 1
9404_ACEOF
c906108c 9405
bec39cab 9406 LIBS="-lw $LIBS"
c906108c 9407
bec39cab 9408fi
c906108c 9409
bec39cab 9410fi
c906108c 9411
ddc9cd0f 9412
bec39cab 9413# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
b4e70030
JB
9414echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
9415echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
bec39cab
AC
9416if test "${ac_cv_search_gethostbyname+set}" = set; then
9417 echo $ECHO_N "(cached) $ECHO_C" >&6
9418else
9419 ac_func_search_save_LIBS=$LIBS
b4e70030 9420ac_cv_search_gethostbyname=no
bec39cab
AC
9421cat >conftest.$ac_ext <<_ACEOF
9422/* confdefs.h. */
9423_ACEOF
9424cat confdefs.h >>conftest.$ac_ext
9425cat >>conftest.$ac_ext <<_ACEOF
9426/* end confdefs.h. */
ddc9cd0f 9427
b4e70030 9428/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
9429#ifdef __cplusplus
9430extern "C"
9431#endif
b4e70030
JB
9432/* We use char because int might match the return type of a gcc2
9433 builtin and then its argument prototype would still apply. */
bec39cab
AC
9434char gethostbyname ();
9435int
9436main ()
9437{
b4e70030 9438gethostbyname ();
bec39cab
AC
9439 ;
9440 return 0;
9441}
9442_ACEOF
b4e70030 9443rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
9444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9445 (eval $ac_link) 2>conftest.er1
9446 ac_status=$?
9447 grep -v '^ *+' conftest.er1 >conftest.err
9448 rm -f conftest.er1
9449 cat conftest.err >&5
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); } &&
b4e70030
JB
9452 { ac_try='test -z "$ac_c_werror_flag"
9453 || test ! -s conftest.err'
bec39cab
AC
9454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9455 (eval $ac_try) 2>&5
9456 ac_status=$?
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); }; } &&
9459 { ac_try='test -s conftest$ac_exeext'
9460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9461 (eval $ac_try) 2>&5
9462 ac_status=$?
9463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464 (exit $ac_status); }; }; then
b4e70030 9465 ac_cv_search_gethostbyname="none required"
bec39cab
AC
9466else
9467 echo "$as_me: failed program was:" >&5
9468sed 's/^/| /' conftest.$ac_ext >&5
ddc9cd0f 9469
bec39cab
AC
9470fi
9471rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
9472 conftest$ac_exeext conftest.$ac_ext
9473if test "$ac_cv_search_gethostbyname" = no; then
9474 for ac_lib in nsl; do
9475 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9476 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
9477/* confdefs.h. */
9478_ACEOF
9479cat confdefs.h >>conftest.$ac_ext
9480cat >>conftest.$ac_ext <<_ACEOF
9481/* end confdefs.h. */
ddc9cd0f 9482
b4e70030 9483/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
9484#ifdef __cplusplus
9485extern "C"
9486#endif
b4e70030
JB
9487/* We use char because int might match the return type of a gcc2
9488 builtin and then its argument prototype would still apply. */
9489char gethostbyname ();
bec39cab
AC
9490int
9491main ()
9492{
b4e70030 9493gethostbyname ();
bec39cab
AC
9494 ;
9495 return 0;
9496}
9497_ACEOF
b4e70030 9498rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
9499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9500 (eval $ac_link) 2>conftest.er1
9501 ac_status=$?
9502 grep -v '^ *+' conftest.er1 >conftest.err
9503 rm -f conftest.er1
9504 cat conftest.err >&5
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); } &&
b4e70030
JB
9507 { ac_try='test -z "$ac_c_werror_flag"
9508 || test ! -s conftest.err'
bec39cab
AC
9509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9510 (eval $ac_try) 2>&5
9511 ac_status=$?
9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 (exit $ac_status); }; } &&
9514 { ac_try='test -s conftest$ac_exeext'
9515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9516 (eval $ac_try) 2>&5
9517 ac_status=$?
9518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9519 (exit $ac_status); }; }; then
b4e70030
JB
9520 ac_cv_search_gethostbyname="-l$ac_lib"
9521break
bec39cab
AC
9522else
9523 echo "$as_me: failed program was:" >&5
9524sed 's/^/| /' conftest.$ac_ext >&5
9525
9526fi
9527rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
9528 conftest$ac_exeext conftest.$ac_ext
9529 done
bec39cab
AC
9530fi
9531LIBS=$ac_func_search_save_LIBS
9532fi
b4e70030
JB
9533echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
9534echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
9535if test "$ac_cv_search_gethostbyname" != no; then
9536 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
96baa820 9537
bec39cab 9538fi
96baa820 9539
c906108c 9540
b4e70030
JB
9541# Some systems (e.g. Solaris) have `socketpair' in libsocket.
9542echo "$as_me:$LINENO: checking for library containing socketpair" >&5
9543echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
9544if test "${ac_cv_search_socketpair+set}" = set; then
9545 echo $ECHO_N "(cached) $ECHO_C" >&6
9546else
9547 ac_func_search_save_LIBS=$LIBS
9548ac_cv_search_socketpair=no
9549cat >conftest.$ac_ext <<_ACEOF
9550/* confdefs.h. */
9551_ACEOF
9552cat confdefs.h >>conftest.$ac_ext
9553cat >>conftest.$ac_ext <<_ACEOF
9554/* end confdefs.h. */
9555
9556/* Override any gcc2 internal prototype to avoid an error. */
9557#ifdef __cplusplus
9558extern "C"
9559#endif
9560/* We use char because int might match the return type of a gcc2
9561 builtin and then its argument prototype would still apply. */
9562char socketpair ();
9563int
9564main ()
9565{
9566socketpair ();
9567 ;
9568 return 0;
9569}
9570_ACEOF
9571rm -f conftest.$ac_objext conftest$ac_exeext
9572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9573 (eval $ac_link) 2>conftest.er1
9574 ac_status=$?
9575 grep -v '^ *+' conftest.er1 >conftest.err
9576 rm -f conftest.er1
9577 cat conftest.err >&5
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); } &&
9580 { ac_try='test -z "$ac_c_werror_flag"
9581 || test ! -s conftest.err'
9582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9583 (eval $ac_try) 2>&5
9584 ac_status=$?
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); }; } &&
9587 { ac_try='test -s conftest$ac_exeext'
9588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9589 (eval $ac_try) 2>&5
9590 ac_status=$?
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); }; }; then
9593 ac_cv_search_socketpair="none required"
9594else
9595 echo "$as_me: failed program was:" >&5
9596sed 's/^/| /' conftest.$ac_ext >&5
9597
9598fi
9599rm -f conftest.err conftest.$ac_objext \
9600 conftest$ac_exeext conftest.$ac_ext
9601if test "$ac_cv_search_socketpair" = no; then
9602 for ac_lib in socket; do
9603 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9604 cat >conftest.$ac_ext <<_ACEOF
9605/* confdefs.h. */
9606_ACEOF
9607cat confdefs.h >>conftest.$ac_ext
9608cat >>conftest.$ac_ext <<_ACEOF
9609/* end confdefs.h. */
9610
9611/* Override any gcc2 internal prototype to avoid an error. */
9612#ifdef __cplusplus
9613extern "C"
9614#endif
9615/* We use char because int might match the return type of a gcc2
9616 builtin and then its argument prototype would still apply. */
9617char socketpair ();
9618int
9619main ()
9620{
9621socketpair ();
9622 ;
9623 return 0;
9624}
9625_ACEOF
9626rm -f conftest.$ac_objext conftest$ac_exeext
9627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9628 (eval $ac_link) 2>conftest.er1
9629 ac_status=$?
9630 grep -v '^ *+' conftest.er1 >conftest.err
9631 rm -f conftest.er1
9632 cat conftest.err >&5
9633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9634 (exit $ac_status); } &&
9635 { ac_try='test -z "$ac_c_werror_flag"
9636 || test ! -s conftest.err'
9637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9638 (eval $ac_try) 2>&5
9639 ac_status=$?
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); }; } &&
9642 { ac_try='test -s conftest$ac_exeext'
9643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9644 (eval $ac_try) 2>&5
9645 ac_status=$?
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); }; }; then
9648 ac_cv_search_socketpair="-l$ac_lib"
9649break
9650else
9651 echo "$as_me: failed program was:" >&5
9652sed 's/^/| /' conftest.$ac_ext >&5
9653
9654fi
9655rm -f conftest.err conftest.$ac_objext \
9656 conftest$ac_exeext conftest.$ac_ext
9657 done
9658fi
9659LIBS=$ac_func_search_save_LIBS
9660fi
9661echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
9662echo "${ECHO_T}$ac_cv_search_socketpair" >&6
9663if test "$ac_cv_search_socketpair" != no; then
9664 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
9665
9666fi
9667
9668
233a11ab
CS
9669# Link in zlib if we can. This allows us to read compressed debug sections.
9670echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5
9671echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6
9672if test "${ac_cv_search_zlibVersion+set}" = set; then
9673 echo $ECHO_N "(cached) $ECHO_C" >&6
9674else
9675 ac_func_search_save_LIBS=$LIBS
9676ac_cv_search_zlibVersion=no
9677cat >conftest.$ac_ext <<_ACEOF
9678/* confdefs.h. */
9679_ACEOF
9680cat confdefs.h >>conftest.$ac_ext
9681cat >>conftest.$ac_ext <<_ACEOF
9682/* end confdefs.h. */
9683
9684/* Override any gcc2 internal prototype to avoid an error. */
9685#ifdef __cplusplus
9686extern "C"
9687#endif
9688/* We use char because int might match the return type of a gcc2
9689 builtin and then its argument prototype would still apply. */
9690char zlibVersion ();
9691int
9692main ()
9693{
9694zlibVersion ();
9695 ;
9696 return 0;
9697}
9698_ACEOF
9699rm -f conftest.$ac_objext conftest$ac_exeext
9700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9701 (eval $ac_link) 2>conftest.er1
9702 ac_status=$?
9703 grep -v '^ *+' conftest.er1 >conftest.err
9704 rm -f conftest.er1
9705 cat conftest.err >&5
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); } &&
9708 { ac_try='test -z "$ac_c_werror_flag"
9709 || test ! -s conftest.err'
9710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9711 (eval $ac_try) 2>&5
9712 ac_status=$?
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); }; } &&
9715 { ac_try='test -s conftest$ac_exeext'
9716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9717 (eval $ac_try) 2>&5
9718 ac_status=$?
9719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9720 (exit $ac_status); }; }; then
9721 ac_cv_search_zlibVersion="none required"
9722else
9723 echo "$as_me: failed program was:" >&5
9724sed 's/^/| /' conftest.$ac_ext >&5
9725
9726fi
9727rm -f conftest.err conftest.$ac_objext \
9728 conftest$ac_exeext conftest.$ac_ext
9729if test "$ac_cv_search_zlibVersion" = no; then
9730 for ac_lib in z; do
9731 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9732 cat >conftest.$ac_ext <<_ACEOF
9733/* confdefs.h. */
9734_ACEOF
9735cat confdefs.h >>conftest.$ac_ext
9736cat >>conftest.$ac_ext <<_ACEOF
9737/* end confdefs.h. */
9738
9739/* Override any gcc2 internal prototype to avoid an error. */
9740#ifdef __cplusplus
9741extern "C"
9742#endif
9743/* We use char because int might match the return type of a gcc2
9744 builtin and then its argument prototype would still apply. */
9745char zlibVersion ();
9746int
9747main ()
9748{
9749zlibVersion ();
9750 ;
9751 return 0;
9752}
9753_ACEOF
9754rm -f conftest.$ac_objext conftest$ac_exeext
9755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9756 (eval $ac_link) 2>conftest.er1
9757 ac_status=$?
9758 grep -v '^ *+' conftest.er1 >conftest.err
9759 rm -f conftest.er1
9760 cat conftest.err >&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } &&
9763 { ac_try='test -z "$ac_c_werror_flag"
9764 || test ! -s conftest.err'
9765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9766 (eval $ac_try) 2>&5
9767 ac_status=$?
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); }; } &&
9770 { ac_try='test -s conftest$ac_exeext'
9771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9772 (eval $ac_try) 2>&5
9773 ac_status=$?
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); }; }; then
9776 ac_cv_search_zlibVersion="-l$ac_lib"
9777break
9778else
9779 echo "$as_me: failed program was:" >&5
9780sed 's/^/| /' conftest.$ac_ext >&5
9781
9782fi
9783rm -f conftest.err conftest.$ac_objext \
9784 conftest$ac_exeext conftest.$ac_ext
9785 done
9786fi
9787LIBS=$ac_func_search_save_LIBS
9788fi
9789echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5
9790echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6
9791if test "$ac_cv_search_zlibVersion" != no; then
9792 test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS"
9793
9794for ac_header in zlib.h
9795do
9796as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9797if eval "test \"\${$as_ac_Header+set}\" = set"; then
9798 echo "$as_me:$LINENO: checking for $ac_header" >&5
9799echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9800if eval "test \"\${$as_ac_Header+set}\" = set"; then
9801 echo $ECHO_N "(cached) $ECHO_C" >&6
9802fi
9803echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9804echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9805else
9806 # Is the header compilable?
9807echo "$as_me:$LINENO: checking $ac_header usability" >&5
9808echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9809cat >conftest.$ac_ext <<_ACEOF
9810/* confdefs.h. */
9811_ACEOF
9812cat confdefs.h >>conftest.$ac_ext
9813cat >>conftest.$ac_ext <<_ACEOF
9814/* end confdefs.h. */
9815$ac_includes_default
9816#include <$ac_header>
9817_ACEOF
9818rm -f conftest.$ac_objext
9819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9820 (eval $ac_compile) 2>conftest.er1
9821 ac_status=$?
9822 grep -v '^ *+' conftest.er1 >conftest.err
9823 rm -f conftest.er1
9824 cat conftest.err >&5
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826 (exit $ac_status); } &&
9827 { ac_try='test -z "$ac_c_werror_flag"
9828 || test ! -s conftest.err'
9829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9830 (eval $ac_try) 2>&5
9831 ac_status=$?
9832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9833 (exit $ac_status); }; } &&
9834 { ac_try='test -s conftest.$ac_objext'
9835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9836 (eval $ac_try) 2>&5
9837 ac_status=$?
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); }; }; then
9840 ac_header_compiler=yes
9841else
9842 echo "$as_me: failed program was:" >&5
9843sed 's/^/| /' conftest.$ac_ext >&5
9844
9845ac_header_compiler=no
9846fi
9847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9848echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9849echo "${ECHO_T}$ac_header_compiler" >&6
9850
9851# Is the header present?
9852echo "$as_me:$LINENO: checking $ac_header presence" >&5
9853echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9854cat >conftest.$ac_ext <<_ACEOF
9855/* confdefs.h. */
9856_ACEOF
9857cat confdefs.h >>conftest.$ac_ext
9858cat >>conftest.$ac_ext <<_ACEOF
9859/* end confdefs.h. */
9860#include <$ac_header>
9861_ACEOF
9862if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9863 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9864 ac_status=$?
9865 grep -v '^ *+' conftest.er1 >conftest.err
9866 rm -f conftest.er1
9867 cat conftest.err >&5
9868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869 (exit $ac_status); } >/dev/null; then
9870 if test -s conftest.err; then
9871 ac_cpp_err=$ac_c_preproc_warn_flag
9872 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9873 else
9874 ac_cpp_err=
9875 fi
9876else
9877 ac_cpp_err=yes
9878fi
9879if test -z "$ac_cpp_err"; then
9880 ac_header_preproc=yes
9881else
9882 echo "$as_me: failed program was:" >&5
9883sed 's/^/| /' conftest.$ac_ext >&5
9884
9885 ac_header_preproc=no
9886fi
9887rm -f conftest.err conftest.$ac_ext
9888echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9889echo "${ECHO_T}$ac_header_preproc" >&6
9890
9891# So? What about this header?
9892case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9893 yes:no: )
9894 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9895echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9897echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9898 ac_header_preproc=yes
9899 ;;
9900 no:yes:* )
9901 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9902echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9903 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9904echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9905 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9906echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9907 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9908echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9910echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9911 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9912echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9913 (
9914 cat <<\_ASBOX
9915## ------------------------------------------ ##
9916## Report this to the AC_PACKAGE_NAME lists. ##
9917## ------------------------------------------ ##
9918_ASBOX
9919 ) |
9920 sed "s/^/$as_me: WARNING: /" >&2
9921 ;;
9922esac
9923echo "$as_me:$LINENO: checking for $ac_header" >&5
9924echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9925if eval "test \"\${$as_ac_Header+set}\" = set"; then
9926 echo $ECHO_N "(cached) $ECHO_C" >&6
9927else
9928 eval "$as_ac_Header=\$ac_header_preproc"
9929fi
9930echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9931echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9932
9933fi
9934if test `eval echo '${'$as_ac_Header'}'` = yes; then
9935 cat >>confdefs.h <<_ACEOF
9936#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9937_ACEOF
9938
9939fi
9940
9941done
9942
9943fi
9944
9945
b4e70030 9946# For the TUI, we need enhanced curses functionality.
bec39cab
AC
9947#
9948# FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
9949# curses library because the latter might not provide all the
9950# functionality we need. However, this leads to problems on systems
9951# where the linker searches /usr/local/lib, but the compiler doesn't
9952# search /usr/local/include, if ncurses is installed in /usr/local. A
9953# default installation of ncurses on alpha*-dec-osf* will lead to such
9954# a situation.
b4e70030
JB
9955echo "$as_me:$LINENO: checking for library containing waddstr" >&5
9956echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
bec39cab
AC
9957if test "${ac_cv_search_waddstr+set}" = set; then
9958 echo $ECHO_N "(cached) $ECHO_C" >&6
9959else
9960 ac_func_search_save_LIBS=$LIBS
b4e70030 9961ac_cv_search_waddstr=no
bec39cab
AC
9962cat >conftest.$ac_ext <<_ACEOF
9963/* confdefs.h. */
9964_ACEOF
9965cat confdefs.h >>conftest.$ac_ext
9966cat >>conftest.$ac_ext <<_ACEOF
9967/* end confdefs.h. */
c906108c 9968
b4e70030 9969/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
9970#ifdef __cplusplus
9971extern "C"
9972#endif
b4e70030
JB
9973/* We use char because int might match the return type of a gcc2
9974 builtin and then its argument prototype would still apply. */
bec39cab
AC
9975char waddstr ();
9976int
9977main ()
9978{
b4e70030 9979waddstr ();
bec39cab
AC
9980 ;
9981 return 0;
9982}
9983_ACEOF
b4e70030 9984rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
9985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9986 (eval $ac_link) 2>conftest.er1
9987 ac_status=$?
9988 grep -v '^ *+' conftest.er1 >conftest.err
9989 rm -f conftest.er1
9990 cat conftest.err >&5
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); } &&
b4e70030
JB
9993 { ac_try='test -z "$ac_c_werror_flag"
9994 || test ! -s conftest.err'
bec39cab
AC
9995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9996 (eval $ac_try) 2>&5
9997 ac_status=$?
9998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999 (exit $ac_status); }; } &&
10000 { ac_try='test -s conftest$ac_exeext'
10001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10002 (eval $ac_try) 2>&5
10003 ac_status=$?
10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); }; }; then
b4e70030 10006 ac_cv_search_waddstr="none required"
bec39cab
AC
10007else
10008 echo "$as_me: failed program was:" >&5
10009sed 's/^/| /' conftest.$ac_ext >&5
1ba607ad
AC
10010
10011fi
bec39cab 10012rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
10013 conftest$ac_exeext conftest.$ac_ext
10014if test "$ac_cv_search_waddstr" = no; then
10015 for ac_lib in ncurses cursesX curses; do
10016 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10017 cat >conftest.$ac_ext <<_ACEOF
10018/* confdefs.h. */
10019_ACEOF
10020cat confdefs.h >>conftest.$ac_ext
10021cat >>conftest.$ac_ext <<_ACEOF
10022/* end confdefs.h. */
10023
10024/* Override any gcc2 internal prototype to avoid an error. */
10025#ifdef __cplusplus
10026extern "C"
10027#endif
10028/* We use char because int might match the return type of a gcc2
10029 builtin and then its argument prototype would still apply. */
10030char waddstr ();
10031int
10032main ()
10033{
10034waddstr ();
10035 ;
10036 return 0;
10037}
10038_ACEOF
10039rm -f conftest.$ac_objext conftest$ac_exeext
10040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10041 (eval $ac_link) 2>conftest.er1
10042 ac_status=$?
10043 grep -v '^ *+' conftest.er1 >conftest.err
10044 rm -f conftest.er1
10045 cat conftest.err >&5
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); } &&
10048 { ac_try='test -z "$ac_c_werror_flag"
10049 || test ! -s conftest.err'
10050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10051 (eval $ac_try) 2>&5
10052 ac_status=$?
10053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054 (exit $ac_status); }; } &&
10055 { ac_try='test -s conftest$ac_exeext'
10056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10057 (eval $ac_try) 2>&5
10058 ac_status=$?
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); }; }; then
10061 ac_cv_search_waddstr="-l$ac_lib"
10062break
4e8d927d 10063else
b4e70030
JB
10064 echo "$as_me: failed program was:" >&5
10065sed 's/^/| /' conftest.$ac_ext >&5
10066
10067fi
10068rm -f conftest.err conftest.$ac_objext \
10069 conftest$ac_exeext conftest.$ac_ext
10070 done
1ba607ad 10071fi
bec39cab
AC
10072LIBS=$ac_func_search_save_LIBS
10073fi
b4e70030
JB
10074echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
10075echo "${ECHO_T}$ac_cv_search_waddstr" >&6
10076if test "$ac_cv_search_waddstr" != no; then
10077 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
c906108c 10078
8bb2c122 10079fi
8bb2c122 10080
8bb2c122 10081
d542061a
UW
10082# On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
10083echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5
10084echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6
10085if test "${ac_cv_search_dlgetmodinfo+set}" = set; then
10086 echo $ECHO_N "(cached) $ECHO_C" >&6
10087else
10088 ac_func_search_save_LIBS=$LIBS
10089ac_cv_search_dlgetmodinfo=no
10090cat >conftest.$ac_ext <<_ACEOF
10091/* confdefs.h. */
10092_ACEOF
10093cat confdefs.h >>conftest.$ac_ext
10094cat >>conftest.$ac_ext <<_ACEOF
10095/* end confdefs.h. */
10096
10097/* Override any gcc2 internal prototype to avoid an error. */
10098#ifdef __cplusplus
10099extern "C"
10100#endif
10101/* We use char because int might match the return type of a gcc2
10102 builtin and then its argument prototype would still apply. */
10103char dlgetmodinfo ();
10104int
10105main ()
10106{
10107dlgetmodinfo ();
10108 ;
10109 return 0;
10110}
10111_ACEOF
10112rm -f conftest.$ac_objext conftest$ac_exeext
10113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10114 (eval $ac_link) 2>conftest.er1
10115 ac_status=$?
10116 grep -v '^ *+' conftest.er1 >conftest.err
10117 rm -f conftest.er1
10118 cat conftest.err >&5
10119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120 (exit $ac_status); } &&
10121 { ac_try='test -z "$ac_c_werror_flag"
10122 || test ! -s conftest.err'
10123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10124 (eval $ac_try) 2>&5
10125 ac_status=$?
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); }; } &&
10128 { ac_try='test -s conftest$ac_exeext'
10129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10130 (eval $ac_try) 2>&5
10131 ac_status=$?
10132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133 (exit $ac_status); }; }; then
10134 ac_cv_search_dlgetmodinfo="none required"
10135else
10136 echo "$as_me: failed program was:" >&5
10137sed 's/^/| /' conftest.$ac_ext >&5
10138
10139fi
10140rm -f conftest.err conftest.$ac_objext \
10141 conftest$ac_exeext conftest.$ac_ext
10142if test "$ac_cv_search_dlgetmodinfo" = no; then
10143 for ac_lib in dl xpdl; do
10144 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10145 cat >conftest.$ac_ext <<_ACEOF
10146/* confdefs.h. */
10147_ACEOF
10148cat confdefs.h >>conftest.$ac_ext
10149cat >>conftest.$ac_ext <<_ACEOF
10150/* end confdefs.h. */
10151
10152/* Override any gcc2 internal prototype to avoid an error. */
10153#ifdef __cplusplus
10154extern "C"
10155#endif
10156/* We use char because int might match the return type of a gcc2
10157 builtin and then its argument prototype would still apply. */
10158char dlgetmodinfo ();
10159int
10160main ()
10161{
10162dlgetmodinfo ();
10163 ;
10164 return 0;
10165}
10166_ACEOF
10167rm -f conftest.$ac_objext conftest$ac_exeext
10168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10169 (eval $ac_link) 2>conftest.er1
10170 ac_status=$?
10171 grep -v '^ *+' conftest.er1 >conftest.err
10172 rm -f conftest.er1
10173 cat conftest.err >&5
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); } &&
10176 { ac_try='test -z "$ac_c_werror_flag"
10177 || test ! -s conftest.err'
10178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10179 (eval $ac_try) 2>&5
10180 ac_status=$?
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); }; } &&
10183 { ac_try='test -s conftest$ac_exeext'
10184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10185 (eval $ac_try) 2>&5
10186 ac_status=$?
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); }; }; then
10189 ac_cv_search_dlgetmodinfo="-l$ac_lib"
10190break
10191else
10192 echo "$as_me: failed program was:" >&5
10193sed 's/^/| /' conftest.$ac_ext >&5
10194
10195fi
10196rm -f conftest.err conftest.$ac_objext \
10197 conftest$ac_exeext conftest.$ac_ext
10198 done
10199fi
10200LIBS=$ac_func_search_save_LIBS
10201fi
10202echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5
10203echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6
10204if test "$ac_cv_search_dlgetmodinfo" != no; then
10205 test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS="$ac_cv_search_dlgetmodinfo $LIBS"
10206
10207fi
10208
10209
bec39cab
AC
10210# Since GDB uses Readline, we need termcap functionality. In many
10211# cases this will be provided by the curses library, but some systems
10212# have a seperate termcap library, or no curses library at all.
8bb2c122 10213
bec39cab
AC
10214case $host_os in
10215 cygwin*)
10216 if test -d $srcdir/libtermcap; then
10217 LIBS="../libtermcap/libtermcap.a $LIBS"
10218 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
10219 fi ;;
10220 go32* | *djgpp*)
10221 ac_cv_search_tgetent="none required"
10222 ;;
7ef34f2c
MM
10223 *mingw32*)
10224 ac_cv_search_tgetent="none required"
10225 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
10226 ;;
bec39cab 10227esac
627af7ea 10228
bec39cab 10229# These are the libraries checked by Readline.
b4e70030
JB
10230echo "$as_me:$LINENO: checking for library containing tgetent" >&5
10231echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
bec39cab
AC
10232if test "${ac_cv_search_tgetent+set}" = set; then
10233 echo $ECHO_N "(cached) $ECHO_C" >&6
10234else
10235 ac_func_search_save_LIBS=$LIBS
b4e70030 10236ac_cv_search_tgetent=no
bec39cab
AC
10237cat >conftest.$ac_ext <<_ACEOF
10238/* confdefs.h. */
10239_ACEOF
10240cat confdefs.h >>conftest.$ac_ext
10241cat >>conftest.$ac_ext <<_ACEOF
10242/* end confdefs.h. */
10243
b4e70030 10244/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
10245#ifdef __cplusplus
10246extern "C"
10247#endif
b4e70030
JB
10248/* We use char because int might match the return type of a gcc2
10249 builtin and then its argument prototype would still apply. */
bec39cab
AC
10250char tgetent ();
10251int
10252main ()
10253{
b4e70030 10254tgetent ();
bec39cab
AC
10255 ;
10256 return 0;
10257}
10258_ACEOF
b4e70030 10259rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
10260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10261 (eval $ac_link) 2>conftest.er1
10262 ac_status=$?
10263 grep -v '^ *+' conftest.er1 >conftest.err
10264 rm -f conftest.er1
10265 cat conftest.err >&5
10266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10267 (exit $ac_status); } &&
b4e70030
JB
10268 { ac_try='test -z "$ac_c_werror_flag"
10269 || test ! -s conftest.err'
bec39cab
AC
10270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10271 (eval $ac_try) 2>&5
10272 ac_status=$?
10273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274 (exit $ac_status); }; } &&
10275 { ac_try='test -s conftest$ac_exeext'
10276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10277 (eval $ac_try) 2>&5
10278 ac_status=$?
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); }; }; then
b4e70030 10281 ac_cv_search_tgetent="none required"
627af7ea 10282else
bec39cab
AC
10283 echo "$as_me: failed program was:" >&5
10284sed 's/^/| /' conftest.$ac_ext >&5
627af7ea 10285
627af7ea 10286fi
bec39cab 10287rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
10288 conftest$ac_exeext conftest.$ac_ext
10289if test "$ac_cv_search_tgetent" = no; then
10290 for ac_lib in termcap tinfo curses ncurses; do
10291 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10292 cat >conftest.$ac_ext <<_ACEOF
10293/* confdefs.h. */
10294_ACEOF
10295cat confdefs.h >>conftest.$ac_ext
10296cat >>conftest.$ac_ext <<_ACEOF
10297/* end confdefs.h. */
10298
10299/* Override any gcc2 internal prototype to avoid an error. */
10300#ifdef __cplusplus
10301extern "C"
10302#endif
10303/* We use char because int might match the return type of a gcc2
10304 builtin and then its argument prototype would still apply. */
10305char tgetent ();
10306int
10307main ()
10308{
10309tgetent ();
10310 ;
10311 return 0;
10312}
10313_ACEOF
10314rm -f conftest.$ac_objext conftest$ac_exeext
10315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10316 (eval $ac_link) 2>conftest.er1
10317 ac_status=$?
10318 grep -v '^ *+' conftest.er1 >conftest.err
10319 rm -f conftest.er1
10320 cat conftest.err >&5
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); } &&
10323 { ac_try='test -z "$ac_c_werror_flag"
10324 || test ! -s conftest.err'
10325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10326 (eval $ac_try) 2>&5
10327 ac_status=$?
10328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329 (exit $ac_status); }; } &&
10330 { ac_try='test -s conftest$ac_exeext'
10331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10332 (eval $ac_try) 2>&5
10333 ac_status=$?
10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 (exit $ac_status); }; }; then
10336 ac_cv_search_tgetent="-l$ac_lib"
10337break
4e8d927d 10338else
b4e70030
JB
10339 echo "$as_me: failed program was:" >&5
10340sed 's/^/| /' conftest.$ac_ext >&5
10341
10342fi
10343rm -f conftest.err conftest.$ac_objext \
10344 conftest$ac_exeext conftest.$ac_ext
10345 done
bec39cab
AC
10346fi
10347LIBS=$ac_func_search_save_LIBS
10348fi
b4e70030
JB
10349echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
10350echo "${ECHO_T}$ac_cv_search_tgetent" >&6
10351if test "$ac_cv_search_tgetent" != no; then
10352 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
627af7ea 10353
06825bd1
MK
10354fi
10355
06825bd1 10356
bec39cab
AC
10357if test "$ac_cv_search_tgetent" = no; then
10358 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
10359echo "$as_me: error: no termcap library found" >&2;}
10360 { (exit 1); exit 1; }; }
8ee53726
MK
10361fi
10362
3841debe 10363
6a30b0a5
AS
10364# Check whether --with-system-readline or --without-system-readline was given.
10365if test "${with_system_readline+set}" = set; then
10366 withval="$with_system_readline"
10367
10368fi;
10369
10370if test "$with_system_readline" = yes; then
10371 READLINE=-lreadline
10372 READLINE_DEPS=
10373 READLINE_CFLAGS=
10374else
10375 READLINE='$(READLINE_DIR)/libreadline.a'
10376 READLINE_DEPS='$(READLINE)'
10377 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
10378fi
10379
10380
10381
10382
10383
5c39566f
DJ
10384# Check whether --with-expat or --without-expat was given.
10385if test "${with_expat+set}" = set; then
10386 withval="$with_expat"
10387
10388else
10389 with_expat=auto
10390fi;
10391echo "$as_me:$LINENO: checking whether to use expat" >&5
10392echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6
10393echo "$as_me:$LINENO: result: $with_expat" >&5
10394echo "${ECHO_T}$with_expat" >&6
10395
10396if test "${with_expat}" = no; then
10397 { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
10398echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
10399 HAVE_LIBEXPAT=no
10400else
10401
3841debe
DJ
10402 if test "X$prefix" = "XNONE"; then
10403 acl_final_prefix="$ac_default_prefix"
10404 else
10405 acl_final_prefix="$prefix"
10406 fi
10407 if test "X$exec_prefix" = "XNONE"; then
10408 acl_final_exec_prefix='${prefix}'
10409 else
10410 acl_final_exec_prefix="$exec_prefix"
10411 fi
10412 acl_save_prefix="$prefix"
10413 prefix="$acl_final_prefix"
10414 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10415 prefix="$acl_save_prefix"
10416
10417
10418# Check whether --with-gnu-ld or --without-gnu-ld was given.
10419if test "${with_gnu_ld+set}" = set; then
10420 withval="$with_gnu_ld"
10421 test "$withval" = no || with_gnu_ld=yes
10422else
10423 with_gnu_ld=no
10424fi;
10425# Prepare PATH_SEPARATOR.
10426# The user is always right.
10427if test "${PATH_SEPARATOR+set}" != set; then
10428 echo "#! /bin/sh" >conf$$.sh
10429 echo "exit 0" >>conf$$.sh
10430 chmod +x conf$$.sh
10431 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10432 PATH_SEPARATOR=';'
10433 else
10434 PATH_SEPARATOR=:
10435 fi
10436 rm -f conf$$.sh
10437fi
10438ac_prog=ld
10439if test "$GCC" = yes; then
10440 # Check if gcc -print-prog-name=ld gives a path.
10441 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
10442echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
10443 case $host in
10444 *-*-mingw*)
10445 # gcc leaves a trailing carriage return which upsets mingw
10446 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10447 *)
10448 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10449 esac
10450 case $ac_prog in
10451 # Accept absolute paths.
10452 [\\/]* | [A-Za-z]:[\\/]*)
10453 re_direlt='/[^/][^/]*/\.\./'
10454 # Canonicalize the path of ld
10455 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
10456 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10457 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
10458 done
10459 test -z "$LD" && LD="$ac_prog"
10460 ;;
10461 "")
10462 # If it fails, then pretend we aren't using GCC.
10463 ac_prog=ld
10464 ;;
10465 *)
10466 # If it is relative, then search for the first ld in PATH.
10467 with_gnu_ld=unknown
10468 ;;
10469 esac
10470elif test "$with_gnu_ld" = yes; then
10471 echo "$as_me:$LINENO: checking for GNU ld" >&5
10472echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10473else
10474 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10475echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10476fi
10477if test "${acl_cv_path_LD+set}" = set; then
10478 echo $ECHO_N "(cached) $ECHO_C" >&6
10479else
10480 if test -z "$LD"; then
10481 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
10482 for ac_dir in $PATH; do
10483 test -z "$ac_dir" && ac_dir=.
10484 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10485 acl_cv_path_LD="$ac_dir/$ac_prog"
10486 # Check to see if the program is GNU ld. I'd rather use --version,
10487 # but apparently some GNU ld's only accept -v.
10488 # Break only if it was the GNU/non-GNU ld that we prefer.
10489 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
10490 test "$with_gnu_ld" != no && break
10491 else
10492 test "$with_gnu_ld" != yes && break
10493 fi
10494 fi
10495 done
10496 IFS="$ac_save_ifs"
10497else
10498 acl_cv_path_LD="$LD" # Let the user override the test with a path.
10499fi
10500fi
10501
10502LD="$acl_cv_path_LD"
10503if test -n "$LD"; then
10504 echo "$as_me:$LINENO: result: $LD" >&5
10505echo "${ECHO_T}$LD" >&6
10506else
10507 echo "$as_me:$LINENO: result: no" >&5
10508echo "${ECHO_T}no" >&6
10509fi
10510test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10511echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10512 { (exit 1); exit 1; }; }
10513echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10514echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10515if test "${acl_cv_prog_gnu_ld+set}" = set; then
10516 echo $ECHO_N "(cached) $ECHO_C" >&6
10517else
10518 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10519if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
10520 acl_cv_prog_gnu_ld=yes
10521else
10522 acl_cv_prog_gnu_ld=no
10523fi
10524fi
10525echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
10526echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
10527with_gnu_ld=$acl_cv_prog_gnu_ld
10528
10529
10530
10531 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
10532echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
10533if test "${acl_cv_rpath+set}" = set; then
10534 echo $ECHO_N "(cached) $ECHO_C" >&6
10535else
10536
10537 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
10538 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
10539 . ./conftest.sh
10540 rm -f ./conftest.sh
10541 acl_cv_rpath=done
10542
10543fi
10544echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
10545echo "${ECHO_T}$acl_cv_rpath" >&6
10546 wl="$acl_cv_wl"
10547 libext="$acl_cv_libext"
10548 shlibext="$acl_cv_shlibext"
10549 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
10550 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
10551 hardcode_direct="$acl_cv_hardcode_direct"
10552 hardcode_minus_L="$acl_cv_hardcode_minus_L"
10553 # Check whether --enable-rpath or --disable-rpath was given.
10554if test "${enable_rpath+set}" = set; then
10555 enableval="$enable_rpath"
10556 :
10557else
10558 enable_rpath=yes
10559fi;
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569 use_additional=yes
10570
10571 acl_save_prefix="$prefix"
10572 prefix="$acl_final_prefix"
10573 acl_save_exec_prefix="$exec_prefix"
10574 exec_prefix="$acl_final_exec_prefix"
10575
10576 eval additional_includedir=\"$includedir\"
10577 eval additional_libdir=\"$libdir\"
10578
10579 exec_prefix="$acl_save_exec_prefix"
10580 prefix="$acl_save_prefix"
10581
10582
10583# Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
10584if test "${with_libexpat_prefix+set}" = set; then
10585 withval="$with_libexpat_prefix"
10586
10587 if test "X$withval" = "Xno"; then
10588 use_additional=no
10589 else
10590 if test "X$withval" = "X"; then
10591
10592 acl_save_prefix="$prefix"
10593 prefix="$acl_final_prefix"
10594 acl_save_exec_prefix="$exec_prefix"
10595 exec_prefix="$acl_final_exec_prefix"
10596
10597 eval additional_includedir=\"$includedir\"
10598 eval additional_libdir=\"$libdir\"
10599
10600 exec_prefix="$acl_save_exec_prefix"
10601 prefix="$acl_save_prefix"
10602
10603 else
10604 additional_includedir="$withval/include"
10605 additional_libdir="$withval/lib"
10606 fi
10607 fi
10608
10609fi;
10610 LIBEXPAT=
10611 LTLIBEXPAT=
10612 INCEXPAT=
10613 rpathdirs=
10614 ltrpathdirs=
10615 names_already_handled=
10616 names_next_round='expat '
10617 while test -n "$names_next_round"; do
10618 names_this_round="$names_next_round"
10619 names_next_round=
10620 for name in $names_this_round; do
10621 already_handled=
10622 for n in $names_already_handled; do
10623 if test "$n" = "$name"; then
10624 already_handled=yes
10625 break
10626 fi
10627 done
10628 if test -z "$already_handled"; then
10629 names_already_handled="$names_already_handled $name"
10630 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10631 eval value=\"\$HAVE_LIB$uppername\"
10632 if test -n "$value"; then
10633 if test "$value" = yes; then
10634 eval value=\"\$LIB$uppername\"
10635 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
10636 eval value=\"\$LTLIB$uppername\"
10637 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
10638 else
10639 :
10640 fi
10641 else
10642 found_dir=
10643 found_la=
10644 found_so=
10645 found_a=
10646 if test $use_additional = yes; then
10647 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10648 found_dir="$additional_libdir"
10649 found_so="$additional_libdir/lib$name.$shlibext"
10650 if test -f "$additional_libdir/lib$name.la"; then
10651 found_la="$additional_libdir/lib$name.la"
10652 fi
10653 else
10654 if test -f "$additional_libdir/lib$name.$libext"; then
10655 found_dir="$additional_libdir"
10656 found_a="$additional_libdir/lib$name.$libext"
10657 if test -f "$additional_libdir/lib$name.la"; then
10658 found_la="$additional_libdir/lib$name.la"
10659 fi
10660 fi
10661 fi
10662 fi
10663 if test "X$found_dir" = "X"; then
10664 for x in $LDFLAGS $LTLIBEXPAT; do
10665
10666 acl_save_prefix="$prefix"
10667 prefix="$acl_final_prefix"
10668 acl_save_exec_prefix="$exec_prefix"
10669 exec_prefix="$acl_final_exec_prefix"
10670 eval x=\"$x\"
10671 exec_prefix="$acl_save_exec_prefix"
10672 prefix="$acl_save_prefix"
10673
10674 case "$x" in
10675 -L*)
10676 dir=`echo "X$x" | sed -e 's/^X-L//'`
10677 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10678 found_dir="$dir"
10679 found_so="$dir/lib$name.$shlibext"
10680 if test -f "$dir/lib$name.la"; then
10681 found_la="$dir/lib$name.la"
10682 fi
10683 else
10684 if test -f "$dir/lib$name.$libext"; then
10685 found_dir="$dir"
10686 found_a="$dir/lib$name.$libext"
10687 if test -f "$dir/lib$name.la"; then
10688 found_la="$dir/lib$name.la"
10689 fi
10690 fi
10691 fi
10692 ;;
10693 esac
10694 if test "X$found_dir" != "X"; then
10695 break
10696 fi
10697 done
10698 fi
10699 if test "X$found_dir" != "X"; then
10700 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
10701 if test "X$found_so" != "X"; then
10702 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10703 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10704 else
10705 haveit=
10706 for x in $ltrpathdirs; do
10707 if test "X$x" = "X$found_dir"; then
10708 haveit=yes
10709 break
10710 fi
10711 done
10712 if test -z "$haveit"; then
10713 ltrpathdirs="$ltrpathdirs $found_dir"
10714 fi
10715 if test "$hardcode_direct" = yes; then
10716 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10717 else
10718 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10719 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10720 haveit=
10721 for x in $rpathdirs; do
10722 if test "X$x" = "X$found_dir"; then
10723 haveit=yes
10724 break
10725 fi
10726 done
10727 if test -z "$haveit"; then
10728 rpathdirs="$rpathdirs $found_dir"
10729 fi
10730 else
10731 haveit=
10732 for x in $LDFLAGS $LIBEXPAT; do
10733
10734 acl_save_prefix="$prefix"
10735 prefix="$acl_final_prefix"
10736 acl_save_exec_prefix="$exec_prefix"
10737 exec_prefix="$acl_final_exec_prefix"
10738 eval x=\"$x\"
10739 exec_prefix="$acl_save_exec_prefix"
10740 prefix="$acl_save_prefix"
10741
10742 if test "X$x" = "X-L$found_dir"; then
10743 haveit=yes
10744 break
10745 fi
10746 done
10747 if test -z "$haveit"; then
10748 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
10749 fi
10750 if test "$hardcode_minus_L" != no; then
10751 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
10752 else
10753 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10754 fi
10755 fi
10756 fi
10757 fi
10758 else
10759 if test "X$found_a" != "X"; then
10760 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
10761 else
10762 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
10763 fi
10764 fi
10765 additional_includedir=
10766 case "$found_dir" in
10767 */lib | */lib/)
10768 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10769 additional_includedir="$basedir/include"
10770 ;;
10771 esac
10772 if test "X$additional_includedir" != "X"; then
10773 if test "X$additional_includedir" != "X/usr/include"; then
10774 haveit=
10775 if test "X$additional_includedir" = "X/usr/local/include"; then
10776 if test -n "$GCC"; then
10777 case $host_os in
10778 linux*) haveit=yes;;
10779 esac
10780 fi
10781 fi
10782 if test -z "$haveit"; then
10783 for x in $CPPFLAGS $INCEXPAT; do
10784
10785 acl_save_prefix="$prefix"
10786 prefix="$acl_final_prefix"
10787 acl_save_exec_prefix="$exec_prefix"
10788 exec_prefix="$acl_final_exec_prefix"
10789 eval x=\"$x\"
10790 exec_prefix="$acl_save_exec_prefix"
10791 prefix="$acl_save_prefix"
10792
10793 if test "X$x" = "X-I$additional_includedir"; then
10794 haveit=yes
10795 break
10796 fi
10797 done
10798 if test -z "$haveit"; then
10799 if test -d "$additional_includedir"; then
10800 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
10801 fi
10802 fi
10803 fi
10804 fi
10805 fi
10806 if test -n "$found_la"; then
10807 save_libdir="$libdir"
10808 case "$found_la" in
10809 */* | *\\*) . "$found_la" ;;
10810 *) . "./$found_la" ;;
10811 esac
10812 libdir="$save_libdir"
10813 for dep in $dependency_libs; do
10814 case "$dep" in
10815 -L*)
10816 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10817 if test "X$additional_libdir" != "X/usr/lib"; then
10818 haveit=
10819 if test "X$additional_libdir" = "X/usr/local/lib"; then
10820 if test -n "$GCC"; then
10821 case $host_os in
10822 linux*) haveit=yes;;
10823 esac
10824 fi
10825 fi
10826 if test -z "$haveit"; then
10827 haveit=
10828 for x in $LDFLAGS $LIBEXPAT; do
10829
10830 acl_save_prefix="$prefix"
10831 prefix="$acl_final_prefix"
10832 acl_save_exec_prefix="$exec_prefix"
10833 exec_prefix="$acl_final_exec_prefix"
10834 eval x=\"$x\"
10835 exec_prefix="$acl_save_exec_prefix"
10836 prefix="$acl_save_prefix"
10837
10838 if test "X$x" = "X-L$additional_libdir"; then
10839 haveit=yes
10840 break
10841 fi
10842 done
10843 if test -z "$haveit"; then
10844 if test -d "$additional_libdir"; then
10845 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
10846 fi
10847 fi
10848 haveit=
10849 for x in $LDFLAGS $LTLIBEXPAT; do
10850
10851 acl_save_prefix="$prefix"
10852 prefix="$acl_final_prefix"
10853 acl_save_exec_prefix="$exec_prefix"
10854 exec_prefix="$acl_final_exec_prefix"
10855 eval x=\"$x\"
10856 exec_prefix="$acl_save_exec_prefix"
10857 prefix="$acl_save_prefix"
10858
10859 if test "X$x" = "X-L$additional_libdir"; then
10860 haveit=yes
10861 break
10862 fi
10863 done
10864 if test -z "$haveit"; then
10865 if test -d "$additional_libdir"; then
10866 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
10867 fi
10868 fi
10869 fi
10870 fi
10871 ;;
10872 -R*)
10873 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10874 if test "$enable_rpath" != no; then
10875 haveit=
10876 for x in $rpathdirs; do
10877 if test "X$x" = "X$dir"; then
10878 haveit=yes
10879 break
10880 fi
10881 done
10882 if test -z "$haveit"; then
10883 rpathdirs="$rpathdirs $dir"
10884 fi
10885 haveit=
10886 for x in $ltrpathdirs; do
10887 if test "X$x" = "X$dir"; then
10888 haveit=yes
10889 break
10890 fi
10891 done
10892 if test -z "$haveit"; then
10893 ltrpathdirs="$ltrpathdirs $dir"
10894 fi
10895 fi
10896 ;;
10897 -l*)
10898 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10899 ;;
10900 *.la)
10901 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10902 ;;
10903 *)
10904 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
10905 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
10906 ;;
10907 esac
10908 done
10909 fi
10910 else
10911 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
10912 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
10913 fi
10914 fi
10915 fi
10916 done
10917 done
10918 if test "X$rpathdirs" != "X"; then
10919 if test -n "$hardcode_libdir_separator"; then
10920 alldirs=
10921 for found_dir in $rpathdirs; do
10922 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10923 done
10924 acl_save_libdir="$libdir"
10925 libdir="$alldirs"
10926 eval flag=\"$hardcode_libdir_flag_spec\"
10927 libdir="$acl_save_libdir"
10928 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10929 else
10930 for found_dir in $rpathdirs; do
10931 acl_save_libdir="$libdir"
10932 libdir="$found_dir"
10933 eval flag=\"$hardcode_libdir_flag_spec\"
10934 libdir="$acl_save_libdir"
10935 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
10936 done
10937 fi
10938 fi
10939 if test "X$ltrpathdirs" != "X"; then
10940 for found_dir in $ltrpathdirs; do
10941 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
10942 done
10943 fi
10944
10945
10946 ac_save_CPPFLAGS="$CPPFLAGS"
10947
10948 for element in $INCEXPAT; do
10949 haveit=
10950 for x in $CPPFLAGS; do
10951
10952 acl_save_prefix="$prefix"
10953 prefix="$acl_final_prefix"
10954 acl_save_exec_prefix="$exec_prefix"
10955 exec_prefix="$acl_final_exec_prefix"
10956 eval x=\"$x\"
10957 exec_prefix="$acl_save_exec_prefix"
10958 prefix="$acl_save_prefix"
10959
10960 if test "X$x" = "X$element"; then
10961 haveit=yes
10962 break
10963 fi
10964 done
10965 if test -z "$haveit"; then
10966 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10967 fi
10968 done
10969
10970
10971 echo "$as_me:$LINENO: checking for libexpat" >&5
10972echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
10973if test "${ac_cv_libexpat+set}" = set; then
10974 echo $ECHO_N "(cached) $ECHO_C" >&6
10975else
10976
10977 ac_save_LIBS="$LIBS"
10978 LIBS="$LIBS $LIBEXPAT"
10979 cat >conftest.$ac_ext <<_ACEOF
10980/* confdefs.h. */
10981_ACEOF
10982cat confdefs.h >>conftest.$ac_ext
10983cat >>conftest.$ac_ext <<_ACEOF
10984/* end confdefs.h. */
10985#include "expat.h"
10986int
10987main ()
10988{
10989XML_Parser p = XML_ParserCreate (0);
10990 ;
10991 return 0;
10992}
10993_ACEOF
10994rm -f conftest.$ac_objext conftest$ac_exeext
10995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10996 (eval $ac_link) 2>conftest.er1
10997 ac_status=$?
10998 grep -v '^ *+' conftest.er1 >conftest.err
10999 rm -f conftest.er1
11000 cat conftest.err >&5
11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); } &&
11003 { ac_try='test -z "$ac_c_werror_flag"
11004 || test ! -s conftest.err'
11005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11006 (eval $ac_try) 2>&5
11007 ac_status=$?
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); }; } &&
11010 { ac_try='test -s conftest$ac_exeext'
11011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11012 (eval $ac_try) 2>&5
11013 ac_status=$?
11014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); }; }; then
11016 ac_cv_libexpat=yes
11017else
11018 echo "$as_me: failed program was:" >&5
11019sed 's/^/| /' conftest.$ac_ext >&5
11020
11021ac_cv_libexpat=no
11022fi
11023rm -f conftest.err conftest.$ac_objext \
11024 conftest$ac_exeext conftest.$ac_ext
11025 LIBS="$ac_save_LIBS"
11026
11027fi
11028echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
11029echo "${ECHO_T}$ac_cv_libexpat" >&6
11030 if test "$ac_cv_libexpat" = yes; then
11031 HAVE_LIBEXPAT=yes
11032
11033cat >>confdefs.h <<\_ACEOF
11034#define HAVE_LIBEXPAT 1
11035_ACEOF
11036
11037 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
11038echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
11039 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
11040echo "${ECHO_T}$LIBEXPAT" >&6
11041 else
11042 HAVE_LIBEXPAT=no
11043 CPPFLAGS="$ac_save_CPPFLAGS"
11044 LIBEXPAT=
11045 LTLIBEXPAT=
11046 fi
11047
11048
11049
11050
11051
11052
5c39566f
DJ
11053 if test "$HAVE_LIBEXPAT" != yes; then
11054 if test "$with_expat" = yes; then
11055 { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
11056echo "$as_me: error: expat is missing or unusable" >&2;}
11057 { (exit 1); exit 1; }; }
11058 else
11059 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
11060echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
11061 fi
11062 else
11063 save_LIBS=$LIBS
11064 LIBS="$LIBS $LIBEXPAT"
ca4ca11e
DJ
11065
11066for ac_func in XML_StopParser
11067do
11068as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11069echo "$as_me:$LINENO: checking for $ac_func" >&5
11070echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11071if eval "test \"\${$as_ac_var+set}\" = set"; then
11072 echo $ECHO_N "(cached) $ECHO_C" >&6
11073else
11074 cat >conftest.$ac_ext <<_ACEOF
11075/* confdefs.h. */
11076_ACEOF
11077cat confdefs.h >>conftest.$ac_ext
11078cat >>conftest.$ac_ext <<_ACEOF
11079/* end confdefs.h. */
11080/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11082#define $ac_func innocuous_$ac_func
11083
11084/* System header to define __stub macros and hopefully few prototypes,
11085 which can conflict with char $ac_func (); below.
11086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11087 <limits.h> exists even on freestanding compilers. */
11088
11089#ifdef __STDC__
11090# include <limits.h>
11091#else
11092# include <assert.h>
11093#endif
11094
11095#undef $ac_func
11096
11097/* Override any gcc2 internal prototype to avoid an error. */
11098#ifdef __cplusplus
11099extern "C"
11100{
11101#endif
11102/* We use char because int might match the return type of a gcc2
11103 builtin and then its argument prototype would still apply. */
11104char $ac_func ();
11105/* The GNU C library defines this for functions which it implements
11106 to always fail with ENOSYS. Some functions are actually named
11107 something starting with __ and the normal name is an alias. */
11108#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11109choke me
11110#else
11111char (*f) () = $ac_func;
11112#endif
11113#ifdef __cplusplus
11114}
11115#endif
11116
11117int
11118main ()
11119{
11120return f != $ac_func;
11121 ;
11122 return 0;
11123}
11124_ACEOF
11125rm -f conftest.$ac_objext conftest$ac_exeext
11126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11127 (eval $ac_link) 2>conftest.er1
11128 ac_status=$?
11129 grep -v '^ *+' conftest.er1 >conftest.err
11130 rm -f conftest.er1
11131 cat conftest.err >&5
11132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); } &&
11134 { ac_try='test -z "$ac_c_werror_flag"
11135 || test ! -s conftest.err'
11136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11137 (eval $ac_try) 2>&5
11138 ac_status=$?
11139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11140 (exit $ac_status); }; } &&
11141 { ac_try='test -s conftest$ac_exeext'
11142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11143 (eval $ac_try) 2>&5
11144 ac_status=$?
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); }; }; then
11147 eval "$as_ac_var=yes"
11148else
11149 echo "$as_me: failed program was:" >&5
11150sed 's/^/| /' conftest.$ac_ext >&5
11151
11152eval "$as_ac_var=no"
11153fi
11154rm -f conftest.err conftest.$ac_objext \
11155 conftest$ac_exeext conftest.$ac_ext
11156fi
11157echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11158echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11159if test `eval echo '${'$as_ac_var'}'` = yes; then
11160 cat >>confdefs.h <<_ACEOF
11161#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11162_ACEOF
11163
11164fi
11165done
11166
5c39566f
DJ
11167 LIBS=$save_LIBS
11168 fi
3841debe
DJ
11169fi
11170
bec39cab
AC
11171# ------------------------- #
11172# Checks for header files. #
11173# ------------------------- #
8ee53726 11174
0e5d83e3 11175
bec39cab
AC
11176
11177
11178
11179
11180ac_header_dirent=no
11181for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11182 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
b4e70030
JB
11183echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11184echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11185if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11186 echo $ECHO_N "(cached) $ECHO_C" >&6
11187else
11188 cat >conftest.$ac_ext <<_ACEOF
11189/* confdefs.h. */
11190_ACEOF
11191cat confdefs.h >>conftest.$ac_ext
11192cat >>conftest.$ac_ext <<_ACEOF
11193/* end confdefs.h. */
11194#include <sys/types.h>
0e5d83e3 11195#include <$ac_hdr>
bec39cab
AC
11196
11197int
11198main ()
11199{
11200if ((DIR *) 0)
11201return 0;
11202 ;
11203 return 0;
11204}
11205_ACEOF
11206rm -f conftest.$ac_objext
11207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11208 (eval $ac_compile) 2>conftest.er1
11209 ac_status=$?
11210 grep -v '^ *+' conftest.er1 >conftest.err
11211 rm -f conftest.er1
11212 cat conftest.err >&5
11213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11214 (exit $ac_status); } &&
b4e70030
JB
11215 { ac_try='test -z "$ac_c_werror_flag"
11216 || test ! -s conftest.err'
bec39cab
AC
11217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11218 (eval $ac_try) 2>&5
11219 ac_status=$?
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); }; } &&
11222 { ac_try='test -s conftest.$ac_objext'
11223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11224 (eval $ac_try) 2>&5
11225 ac_status=$?
11226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11227 (exit $ac_status); }; }; then
11228 eval "$as_ac_Header=yes"
11229else
11230 echo "$as_me: failed program was:" >&5
11231sed 's/^/| /' conftest.$ac_ext >&5
11232
b4e70030 11233eval "$as_ac_Header=no"
bec39cab
AC
11234fi
11235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11236fi
b4e70030
JB
11237echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11238echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11239if test `eval echo '${'$as_ac_Header'}'` = yes; then
11240 cat >>confdefs.h <<_ACEOF
11241#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11242_ACEOF
11243
11244ac_header_dirent=$ac_hdr; break
0e5d83e3 11245fi
0e5d83e3 11246
bec39cab
AC
11247done
11248# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11249if test $ac_header_dirent = dirent.h; then
b4e70030
JB
11250 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11251echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
bec39cab
AC
11252if test "${ac_cv_search_opendir+set}" = set; then
11253 echo $ECHO_N "(cached) $ECHO_C" >&6
11254else
11255 ac_func_search_save_LIBS=$LIBS
b4e70030 11256ac_cv_search_opendir=no
bec39cab
AC
11257cat >conftest.$ac_ext <<_ACEOF
11258/* confdefs.h. */
11259_ACEOF
11260cat confdefs.h >>conftest.$ac_ext
11261cat >>conftest.$ac_ext <<_ACEOF
11262/* end confdefs.h. */
0e5d83e3 11263
b4e70030 11264/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
11265#ifdef __cplusplus
11266extern "C"
11267#endif
b4e70030
JB
11268/* We use char because int might match the return type of a gcc2
11269 builtin and then its argument prototype would still apply. */
bec39cab
AC
11270char opendir ();
11271int
11272main ()
11273{
b4e70030 11274opendir ();
bec39cab
AC
11275 ;
11276 return 0;
11277}
11278_ACEOF
b4e70030 11279rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
11280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11281 (eval $ac_link) 2>conftest.er1
11282 ac_status=$?
11283 grep -v '^ *+' conftest.er1 >conftest.err
11284 rm -f conftest.er1
11285 cat conftest.err >&5
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); } &&
b4e70030
JB
11288 { ac_try='test -z "$ac_c_werror_flag"
11289 || test ! -s conftest.err'
bec39cab
AC
11290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11291 (eval $ac_try) 2>&5
11292 ac_status=$?
11293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11294 (exit $ac_status); }; } &&
11295 { ac_try='test -s conftest$ac_exeext'
11296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11297 (eval $ac_try) 2>&5
11298 ac_status=$?
11299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300 (exit $ac_status); }; }; then
b4e70030 11301 ac_cv_search_opendir="none required"
bec39cab
AC
11302else
11303 echo "$as_me: failed program was:" >&5
11304sed 's/^/| /' conftest.$ac_ext >&5
11305
11306fi
bec39cab 11307rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
11308 conftest$ac_exeext conftest.$ac_ext
11309if test "$ac_cv_search_opendir" = no; then
11310 for ac_lib in dir; do
11311 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11312 cat >conftest.$ac_ext <<_ACEOF
11313/* confdefs.h. */
11314_ACEOF
11315cat confdefs.h >>conftest.$ac_ext
11316cat >>conftest.$ac_ext <<_ACEOF
11317/* end confdefs.h. */
11318
11319/* Override any gcc2 internal prototype to avoid an error. */
11320#ifdef __cplusplus
11321extern "C"
11322#endif
11323/* We use char because int might match the return type of a gcc2
11324 builtin and then its argument prototype would still apply. */
11325char opendir ();
11326int
11327main ()
11328{
11329opendir ();
11330 ;
11331 return 0;
11332}
11333_ACEOF
11334rm -f conftest.$ac_objext conftest$ac_exeext
11335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11336 (eval $ac_link) 2>conftest.er1
11337 ac_status=$?
11338 grep -v '^ *+' conftest.er1 >conftest.err
11339 rm -f conftest.er1
11340 cat conftest.err >&5
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); } &&
11343 { ac_try='test -z "$ac_c_werror_flag"
11344 || test ! -s conftest.err'
11345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11346 (eval $ac_try) 2>&5
11347 ac_status=$?
11348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11349 (exit $ac_status); }; } &&
11350 { ac_try='test -s conftest$ac_exeext'
11351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11352 (eval $ac_try) 2>&5
11353 ac_status=$?
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); }; }; then
11356 ac_cv_search_opendir="-l$ac_lib"
11357break
4e8d927d 11358else
b4e70030
JB
11359 echo "$as_me: failed program was:" >&5
11360sed 's/^/| /' conftest.$ac_ext >&5
11361
11362fi
11363rm -f conftest.err conftest.$ac_objext \
11364 conftest$ac_exeext conftest.$ac_ext
11365 done
0e5d83e3 11366fi
bec39cab 11367LIBS=$ac_func_search_save_LIBS
0e5d83e3 11368fi
b4e70030
JB
11369echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11370echo "${ECHO_T}$ac_cv_search_opendir" >&6
11371if test "$ac_cv_search_opendir" != no; then
11372 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
0e5d83e3 11373
0e5d83e3
JJ
11374fi
11375
d28f9cdf 11376else
b4e70030
JB
11377 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11378echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
bec39cab
AC
11379if test "${ac_cv_search_opendir+set}" = set; then
11380 echo $ECHO_N "(cached) $ECHO_C" >&6
11381else
11382 ac_func_search_save_LIBS=$LIBS
b4e70030 11383ac_cv_search_opendir=no
bec39cab
AC
11384cat >conftest.$ac_ext <<_ACEOF
11385/* confdefs.h. */
11386_ACEOF
11387cat confdefs.h >>conftest.$ac_ext
11388cat >>conftest.$ac_ext <<_ACEOF
11389/* end confdefs.h. */
d28f9cdf 11390
b4e70030 11391/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
11392#ifdef __cplusplus
11393extern "C"
d28f9cdf 11394#endif
b4e70030
JB
11395/* We use char because int might match the return type of a gcc2
11396 builtin and then its argument prototype would still apply. */
bec39cab
AC
11397char opendir ();
11398int
11399main ()
11400{
b4e70030 11401opendir ();
bec39cab
AC
11402 ;
11403 return 0;
11404}
11405_ACEOF
b4e70030 11406rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
11407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11408 (eval $ac_link) 2>conftest.er1
11409 ac_status=$?
11410 grep -v '^ *+' conftest.er1 >conftest.err
11411 rm -f conftest.er1
11412 cat conftest.err >&5
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); } &&
b4e70030
JB
11415 { ac_try='test -z "$ac_c_werror_flag"
11416 || test ! -s conftest.err'
bec39cab
AC
11417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11418 (eval $ac_try) 2>&5
11419 ac_status=$?
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); }; } &&
11422 { ac_try='test -s conftest$ac_exeext'
11423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11424 (eval $ac_try) 2>&5
11425 ac_status=$?
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); }; }; then
b4e70030 11428 ac_cv_search_opendir="none required"
d28f9cdf 11429else
bec39cab
AC
11430 echo "$as_me: failed program was:" >&5
11431sed 's/^/| /' conftest.$ac_ext >&5
11432
d28f9cdf 11433fi
bec39cab 11434rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
11435 conftest$ac_exeext conftest.$ac_ext
11436if test "$ac_cv_search_opendir" = no; then
11437 for ac_lib in x; do
11438 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11439 cat >conftest.$ac_ext <<_ACEOF
11440/* confdefs.h. */
11441_ACEOF
11442cat confdefs.h >>conftest.$ac_ext
11443cat >>conftest.$ac_ext <<_ACEOF
11444/* end confdefs.h. */
11445
11446/* Override any gcc2 internal prototype to avoid an error. */
11447#ifdef __cplusplus
11448extern "C"
11449#endif
11450/* We use char because int might match the return type of a gcc2
11451 builtin and then its argument prototype would still apply. */
11452char opendir ();
11453int
11454main ()
11455{
11456opendir ();
11457 ;
11458 return 0;
11459}
11460_ACEOF
11461rm -f conftest.$ac_objext conftest$ac_exeext
11462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11463 (eval $ac_link) 2>conftest.er1
11464 ac_status=$?
11465 grep -v '^ *+' conftest.er1 >conftest.err
11466 rm -f conftest.er1
11467 cat conftest.err >&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); } &&
11470 { ac_try='test -z "$ac_c_werror_flag"
11471 || test ! -s conftest.err'
11472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11473 (eval $ac_try) 2>&5
11474 ac_status=$?
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); }; } &&
11477 { ac_try='test -s conftest$ac_exeext'
11478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11479 (eval $ac_try) 2>&5
11480 ac_status=$?
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); }; }; then
11483 ac_cv_search_opendir="-l$ac_lib"
11484break
4e8d927d 11485else
b4e70030
JB
11486 echo "$as_me: failed program was:" >&5
11487sed 's/^/| /' conftest.$ac_ext >&5
11488
11489fi
11490rm -f conftest.err conftest.$ac_objext \
11491 conftest$ac_exeext conftest.$ac_ext
11492 done
bec39cab
AC
11493fi
11494LIBS=$ac_func_search_save_LIBS
d28f9cdf 11495fi
b4e70030
JB
11496echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11497echo "${ECHO_T}$ac_cv_search_opendir" >&6
11498if test "$ac_cv_search_opendir" != no; then
11499 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
d28f9cdf 11500
d28f9cdf
DJ
11501fi
11502
bec39cab 11503fi
b0b1c2c0 11504
b4e70030
JB
11505echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11506echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
bec39cab
AC
11507if test "${ac_cv_header_stat_broken+set}" = set; then
11508 echo $ECHO_N "(cached) $ECHO_C" >&6
b0b1c2c0 11509else
bec39cab
AC
11510 cat >conftest.$ac_ext <<_ACEOF
11511/* confdefs.h. */
11512_ACEOF
11513cat confdefs.h >>conftest.$ac_ext
11514cat >>conftest.$ac_ext <<_ACEOF
11515/* end confdefs.h. */
11516#include <sys/types.h>
11517#include <sys/stat.h>
b0b1c2c0 11518
b4e70030 11519#if defined(S_ISBLK) && defined(S_IFDIR)
bec39cab
AC
11520# if S_ISBLK (S_IFDIR)
11521You lose.
11522# endif
11523#endif
b0b1c2c0 11524
b4e70030 11525#if defined(S_ISBLK) && defined(S_IFCHR)
bec39cab
AC
11526# if S_ISBLK (S_IFCHR)
11527You lose.
11528# endif
11529#endif
d28f9cdf 11530
b4e70030 11531#if defined(S_ISLNK) && defined(S_IFREG)
bec39cab
AC
11532# if S_ISLNK (S_IFREG)
11533You lose.
11534# endif
11535#endif
d28f9cdf 11536
b4e70030 11537#if defined(S_ISSOCK) && defined(S_IFREG)
bec39cab
AC
11538# if S_ISSOCK (S_IFREG)
11539You lose.
11540# endif
11541#endif
11542
11543_ACEOF
11544if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11545 $EGREP "You lose" >/dev/null 2>&1; then
11546 ac_cv_header_stat_broken=yes
d28f9cdf 11547else
bec39cab 11548 ac_cv_header_stat_broken=no
d28f9cdf
DJ
11549fi
11550rm -f conftest*
d28f9cdf 11551
d28f9cdf 11552fi
b4e70030
JB
11553echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11554echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
bec39cab 11555if test $ac_cv_header_stat_broken = yes; then
d28f9cdf 11556
bec39cab
AC
11557cat >>confdefs.h <<\_ACEOF
11558#define STAT_MACROS_BROKEN 1
11559_ACEOF
8bb2c122 11560
7a292a7a 11561fi
bec39cab 11562
b4e70030
JB
11563echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11564echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
bec39cab
AC
11565if test "${ac_cv_header_stdc+set}" = set; then
11566 echo $ECHO_N "(cached) $ECHO_C" >&6
7a292a7a 11567else
bec39cab
AC
11568 cat >conftest.$ac_ext <<_ACEOF
11569/* confdefs.h. */
11570_ACEOF
11571cat confdefs.h >>conftest.$ac_ext
11572cat >>conftest.$ac_ext <<_ACEOF
11573/* end confdefs.h. */
11574#include <stdlib.h>
11575#include <stdarg.h>
11576#include <string.h>
11577#include <float.h>
7a292a7a 11578
bec39cab
AC
11579int
11580main ()
11581{
7a292a7a 11582
bec39cab
AC
11583 ;
11584 return 0;
11585}
11586_ACEOF
11587rm -f conftest.$ac_objext
11588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11589 (eval $ac_compile) 2>conftest.er1
11590 ac_status=$?
11591 grep -v '^ *+' conftest.er1 >conftest.err
11592 rm -f conftest.er1
11593 cat conftest.err >&5
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); } &&
b4e70030
JB
11596 { ac_try='test -z "$ac_c_werror_flag"
11597 || test ! -s conftest.err'
bec39cab
AC
11598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11599 (eval $ac_try) 2>&5
11600 ac_status=$?
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); }; } &&
11603 { ac_try='test -s conftest.$ac_objext'
11604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11605 (eval $ac_try) 2>&5
11606 ac_status=$?
11607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608 (exit $ac_status); }; }; then
11609 ac_cv_header_stdc=yes
c906108c 11610else
bec39cab
AC
11611 echo "$as_me: failed program was:" >&5
11612sed 's/^/| /' conftest.$ac_ext >&5
c906108c 11613
b4e70030 11614ac_cv_header_stdc=no
c906108c 11615fi
bec39cab 11616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 11617
bec39cab
AC
11618if test $ac_cv_header_stdc = yes; then
11619 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11620 cat >conftest.$ac_ext <<_ACEOF
11621/* confdefs.h. */
11622_ACEOF
11623cat confdefs.h >>conftest.$ac_ext
11624cat >>conftest.$ac_ext <<_ACEOF
11625/* end confdefs.h. */
11626#include <string.h>
c906108c 11627
bec39cab
AC
11628_ACEOF
11629if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11630 $EGREP "memchr" >/dev/null 2>&1; then
11631 :
8bb2c122 11632else
bec39cab 11633 ac_cv_header_stdc=no
8bb2c122 11634fi
bec39cab
AC
11635rm -f conftest*
11636
c906108c
SS
11637fi
11638
bec39cab
AC
11639if test $ac_cv_header_stdc = yes; then
11640 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11641 cat >conftest.$ac_ext <<_ACEOF
11642/* confdefs.h. */
11643_ACEOF
11644cat confdefs.h >>conftest.$ac_ext
11645cat >>conftest.$ac_ext <<_ACEOF
11646/* end confdefs.h. */
11647#include <stdlib.h>
11648
11649_ACEOF
11650if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11651 $EGREP "free" >/dev/null 2>&1; then
11652 :
c906108c 11653else
bec39cab 11654 ac_cv_header_stdc=no
c906108c 11655fi
bec39cab
AC
11656rm -f conftest*
11657
c906108c
SS
11658fi
11659
bec39cab
AC
11660if test $ac_cv_header_stdc = yes; then
11661 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11662 if test "$cross_compiling" = yes; then
11663 :
c906108c 11664else
bec39cab
AC
11665 cat >conftest.$ac_ext <<_ACEOF
11666/* confdefs.h. */
11667_ACEOF
11668cat confdefs.h >>conftest.$ac_ext
11669cat >>conftest.$ac_ext <<_ACEOF
11670/* end confdefs.h. */
11671#include <ctype.h>
11672#if ((' ' & 0x0FF) == 0x020)
11673# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11674# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11675#else
11676# define ISLOWER(c) \
11677 (('a' <= (c) && (c) <= 'i') \
11678 || ('j' <= (c) && (c) <= 'r') \
11679 || ('s' <= (c) && (c) <= 'z'))
11680# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11681#endif
11682
11683#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11684int
11685main ()
11686{
11687 int i;
11688 for (i = 0; i < 256; i++)
11689 if (XOR (islower (i), ISLOWER (i))
11690 || toupper (i) != TOUPPER (i))
b4e70030
JB
11691 exit(2);
11692 exit (0);
bec39cab
AC
11693}
11694_ACEOF
11695rm -f conftest$ac_exeext
11696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11697 (eval $ac_link) 2>&5
11698 ac_status=$?
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11702 (eval $ac_try) 2>&5
11703 ac_status=$?
11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705 (exit $ac_status); }; }; then
11706 :
11707else
11708 echo "$as_me: program exited with status $ac_status" >&5
11709echo "$as_me: failed program was:" >&5
11710sed 's/^/| /' conftest.$ac_ext >&5
11711
11712( exit $ac_status )
11713ac_cv_header_stdc=no
c906108c 11714fi
b4e70030 11715rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 11716fi
c906108c 11717fi
bec39cab 11718fi
b4e70030
JB
11719echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11720echo "${ECHO_T}$ac_cv_header_stdc" >&6
bec39cab 11721if test $ac_cv_header_stdc = yes; then
c906108c 11722
bec39cab
AC
11723cat >>confdefs.h <<\_ACEOF
11724#define STDC_HEADERS 1
11725_ACEOF
c906108c 11726
bec39cab 11727fi
8bb2c122 11728
bec39cab 11729
7cb9022a 11730for ac_header in nlist.h
bec39cab
AC
11731do
11732as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11733if eval "test \"\${$as_ac_Header+set}\" = set"; then
11734 echo "$as_me:$LINENO: checking for $ac_header" >&5
11735echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11736if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11737 echo $ECHO_N "(cached) $ECHO_C" >&6
11738fi
b4e70030
JB
11739echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11740echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11741else
11742 # Is the header compilable?
b4e70030
JB
11743echo "$as_me:$LINENO: checking $ac_header usability" >&5
11744echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
11745cat >conftest.$ac_ext <<_ACEOF
11746/* confdefs.h. */
11747_ACEOF
11748cat confdefs.h >>conftest.$ac_ext
11749cat >>conftest.$ac_ext <<_ACEOF
11750/* end confdefs.h. */
11751$ac_includes_default
11752#include <$ac_header>
11753_ACEOF
11754rm -f conftest.$ac_objext
11755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11756 (eval $ac_compile) 2>conftest.er1
11757 ac_status=$?
11758 grep -v '^ *+' conftest.er1 >conftest.err
11759 rm -f conftest.er1
11760 cat conftest.err >&5
11761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11762 (exit $ac_status); } &&
b4e70030
JB
11763 { ac_try='test -z "$ac_c_werror_flag"
11764 || test ! -s conftest.err'
bec39cab
AC
11765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11766 (eval $ac_try) 2>&5
11767 ac_status=$?
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); }; } &&
11770 { ac_try='test -s conftest.$ac_objext'
11771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11772 (eval $ac_try) 2>&5
11773 ac_status=$?
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); }; }; then
11776 ac_header_compiler=yes
11777else
11778 echo "$as_me: failed program was:" >&5
11779sed 's/^/| /' conftest.$ac_ext >&5
11780
b4e70030 11781ac_header_compiler=no
bec39cab
AC
11782fi
11783rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
11784echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11785echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
11786
11787# Is the header present?
b4e70030
JB
11788echo "$as_me:$LINENO: checking $ac_header presence" >&5
11789echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
11790cat >conftest.$ac_ext <<_ACEOF
11791/* confdefs.h. */
11792_ACEOF
11793cat confdefs.h >>conftest.$ac_ext
11794cat >>conftest.$ac_ext <<_ACEOF
11795/* end confdefs.h. */
11796#include <$ac_header>
11797_ACEOF
11798if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11799 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11800 ac_status=$?
11801 grep -v '^ *+' conftest.er1 >conftest.err
11802 rm -f conftest.er1
11803 cat conftest.err >&5
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); } >/dev/null; then
11806 if test -s conftest.err; then
11807 ac_cpp_err=$ac_c_preproc_warn_flag
11808 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11809 else
11810 ac_cpp_err=
11811 fi
c906108c 11812else
bec39cab 11813 ac_cpp_err=yes
c906108c 11814fi
bec39cab
AC
11815if test -z "$ac_cpp_err"; then
11816 ac_header_preproc=yes
c906108c 11817else
bec39cab
AC
11818 echo "$as_me: failed program was:" >&5
11819sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 11820
bec39cab
AC
11821 ac_header_preproc=no
11822fi
11823rm -f conftest.err conftest.$ac_ext
b4e70030
JB
11824echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11825echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 11826
bec39cab
AC
11827# So? What about this header?
11828case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11829 yes:no: )
11830 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11831echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11833echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11834 ac_header_preproc=yes
11835 ;;
11836 no:yes:* )
11837 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11838echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11839 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11840echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11841 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11842echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11843 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11844echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11846echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11847 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11848echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
11849 (
11850 cat <<\_ASBOX
11851## ------------------------------------------ ##
11852## Report this to the AC_PACKAGE_NAME lists. ##
11853## ------------------------------------------ ##
11854_ASBOX
11855 ) |
11856 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
11857 ;;
11858esac
b4e70030
JB
11859echo "$as_me:$LINENO: checking for $ac_header" >&5
11860echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11861if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 11862 echo $ECHO_N "(cached) $ECHO_C" >&6
95ca63c4 11863else
bec39cab 11864 eval "$as_ac_Header=\$ac_header_preproc"
95ca63c4 11865fi
b4e70030
JB
11866echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11867echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 11868
95ca63c4 11869fi
bec39cab
AC
11870if test `eval echo '${'$as_ac_Header'}'` = yes; then
11871 cat >>confdefs.h <<_ACEOF
11872#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11873_ACEOF
11874
95ca63c4
CF
11875fi
11876
bec39cab 11877done
95ca63c4
CF
11878
11879
7cb9022a 11880for ac_header in link.h
bec39cab
AC
11881do
11882as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11883echo "$as_me:$LINENO: checking for $ac_header" >&5
11884echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11885if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 11886 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 11887else
7cb9022a 11888 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
11889/* confdefs.h. */
11890_ACEOF
11891cat confdefs.h >>conftest.$ac_ext
11892cat >>conftest.$ac_ext <<_ACEOF
11893/* end confdefs.h. */
7cb9022a
MK
11894#if HAVE_SYS_TYPES_H
11895# include <sys/types.h>
11896#endif
11897#if HAVE_NLIST_H
11898# include <nlist.h>
11899#endif
11900
11901
bec39cab
AC
11902#include <$ac_header>
11903_ACEOF
11904rm -f conftest.$ac_objext
11905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11906 (eval $ac_compile) 2>conftest.er1
11907 ac_status=$?
11908 grep -v '^ *+' conftest.er1 >conftest.err
11909 rm -f conftest.er1
11910 cat conftest.err >&5
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); } &&
b4e70030
JB
11913 { ac_try='test -z "$ac_c_werror_flag"
11914 || test ! -s conftest.err'
bec39cab
AC
11915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11916 (eval $ac_try) 2>&5
11917 ac_status=$?
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); }; } &&
11920 { ac_try='test -s conftest.$ac_objext'
11921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11922 (eval $ac_try) 2>&5
11923 ac_status=$?
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); }; }; then
7cb9022a 11926 eval "$as_ac_Header=yes"
bec39cab
AC
11927else
11928 echo "$as_me: failed program was:" >&5
11929sed 's/^/| /' conftest.$ac_ext >&5
11930
b4e70030 11931eval "$as_ac_Header=no"
bec39cab
AC
11932fi
11933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 11934fi
b4e70030
JB
11935echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11936echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11937if test `eval echo '${'$as_ac_Header'}'` = yes; then
11938 cat >>confdefs.h <<_ACEOF
11939#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11940_ACEOF
95ca63c4 11941
bec39cab 11942fi
95ca63c4 11943
bec39cab 11944done
95ca63c4 11945
c906108c 11946
7cb9022a 11947for ac_header in machine/reg.h
bec39cab
AC
11948do
11949as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11950if eval "test \"\${$as_ac_Header+set}\" = set"; then
11951 echo "$as_me:$LINENO: checking for $ac_header" >&5
11952echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11953if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11954 echo $ECHO_N "(cached) $ECHO_C" >&6
11955fi
b4e70030
JB
11956echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11957echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11958else
11959 # Is the header compilable?
b4e70030
JB
11960echo "$as_me:$LINENO: checking $ac_header usability" >&5
11961echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
11962cat >conftest.$ac_ext <<_ACEOF
11963/* confdefs.h. */
11964_ACEOF
11965cat confdefs.h >>conftest.$ac_ext
11966cat >>conftest.$ac_ext <<_ACEOF
11967/* end confdefs.h. */
11968$ac_includes_default
11969#include <$ac_header>
11970_ACEOF
11971rm -f conftest.$ac_objext
11972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11973 (eval $ac_compile) 2>conftest.er1
11974 ac_status=$?
11975 grep -v '^ *+' conftest.er1 >conftest.err
11976 rm -f conftest.er1
11977 cat conftest.err >&5
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); } &&
b4e70030
JB
11980 { ac_try='test -z "$ac_c_werror_flag"
11981 || test ! -s conftest.err'
bec39cab
AC
11982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11983 (eval $ac_try) 2>&5
11984 ac_status=$?
11985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); }; } &&
11987 { ac_try='test -s conftest.$ac_objext'
11988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11989 (eval $ac_try) 2>&5
11990 ac_status=$?
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); }; }; then
11993 ac_header_compiler=yes
11994else
11995 echo "$as_me: failed program was:" >&5
11996sed 's/^/| /' conftest.$ac_ext >&5
11997
b4e70030 11998ac_header_compiler=no
bec39cab
AC
11999fi
12000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12001echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12002echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12003
12004# Is the header present?
b4e70030
JB
12005echo "$as_me:$LINENO: checking $ac_header presence" >&5
12006echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12007cat >conftest.$ac_ext <<_ACEOF
12008/* confdefs.h. */
12009_ACEOF
12010cat confdefs.h >>conftest.$ac_ext
12011cat >>conftest.$ac_ext <<_ACEOF
12012/* end confdefs.h. */
12013#include <$ac_header>
12014_ACEOF
12015if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12016 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12017 ac_status=$?
12018 grep -v '^ *+' conftest.er1 >conftest.err
12019 rm -f conftest.er1
12020 cat conftest.err >&5
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); } >/dev/null; then
12023 if test -s conftest.err; then
12024 ac_cpp_err=$ac_c_preproc_warn_flag
12025 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12026 else
12027 ac_cpp_err=
12028 fi
75c6e08a 12029else
bec39cab 12030 ac_cpp_err=yes
75c6e08a 12031fi
bec39cab
AC
12032if test -z "$ac_cpp_err"; then
12033 ac_header_preproc=yes
12034else
12035 echo "$as_me: failed program was:" >&5
12036sed 's/^/| /' conftest.$ac_ext >&5
12037
12038 ac_header_preproc=no
75c6e08a 12039fi
bec39cab 12040rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12041echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12042echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
12043
12044# So? What about this header?
12045case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12046 yes:no: )
12047 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12048echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12049 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12050echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12051 ac_header_preproc=yes
12052 ;;
12053 no:yes:* )
12054 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12055echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12056 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12057echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12058 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12059echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12060 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12061echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12062 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12063echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12064 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12065echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12066 (
12067 cat <<\_ASBOX
12068## ------------------------------------------ ##
12069## Report this to the AC_PACKAGE_NAME lists. ##
12070## ------------------------------------------ ##
12071_ASBOX
12072 ) |
12073 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12074 ;;
12075esac
b4e70030
JB
12076echo "$as_me:$LINENO: checking for $ac_header" >&5
12077echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12078if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 12079 echo $ECHO_N "(cached) $ECHO_C" >&6
75c6e08a 12080else
bec39cab
AC
12081 eval "$as_ac_Header=\$ac_header_preproc"
12082fi
b4e70030
JB
12083echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12084echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 12085
75c6e08a 12086fi
bec39cab
AC
12087if test `eval echo '${'$as_ac_Header'}'` = yes; then
12088 cat >>confdefs.h <<_ACEOF
12089#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12090_ACEOF
75c6e08a 12091
bec39cab 12092fi
75c6e08a 12093
bec39cab 12094done
75c6e08a
MK
12095
12096
9a156167 12097
bec39cab
AC
12098for ac_header in poll.h sys/poll.h
12099do
12100as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12101if eval "test \"\${$as_ac_Header+set}\" = set"; then
12102 echo "$as_me:$LINENO: checking for $ac_header" >&5
12103echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12104if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12105 echo $ECHO_N "(cached) $ECHO_C" >&6
12106fi
b4e70030
JB
12107echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12108echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12109else
12110 # Is the header compilable?
b4e70030
JB
12111echo "$as_me:$LINENO: checking $ac_header usability" >&5
12112echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12113cat >conftest.$ac_ext <<_ACEOF
12114/* confdefs.h. */
12115_ACEOF
12116cat confdefs.h >>conftest.$ac_ext
12117cat >>conftest.$ac_ext <<_ACEOF
12118/* end confdefs.h. */
12119$ac_includes_default
12120#include <$ac_header>
12121_ACEOF
12122rm -f conftest.$ac_objext
12123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12124 (eval $ac_compile) 2>conftest.er1
12125 ac_status=$?
12126 grep -v '^ *+' conftest.er1 >conftest.err
12127 rm -f conftest.er1
12128 cat conftest.err >&5
12129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 (exit $ac_status); } &&
b4e70030
JB
12131 { ac_try='test -z "$ac_c_werror_flag"
12132 || test ! -s conftest.err'
bec39cab
AC
12133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12134 (eval $ac_try) 2>&5
12135 ac_status=$?
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); }; } &&
12138 { ac_try='test -s conftest.$ac_objext'
12139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12140 (eval $ac_try) 2>&5
12141 ac_status=$?
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); }; }; then
12144 ac_header_compiler=yes
12145else
12146 echo "$as_me: failed program was:" >&5
12147sed 's/^/| /' conftest.$ac_ext >&5
12148
b4e70030 12149ac_header_compiler=no
bec39cab
AC
12150fi
12151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12152echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12153echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12154
12155# Is the header present?
b4e70030
JB
12156echo "$as_me:$LINENO: checking $ac_header presence" >&5
12157echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12158cat >conftest.$ac_ext <<_ACEOF
12159/* confdefs.h. */
12160_ACEOF
12161cat confdefs.h >>conftest.$ac_ext
12162cat >>conftest.$ac_ext <<_ACEOF
12163/* end confdefs.h. */
12164#include <$ac_header>
12165_ACEOF
12166if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12167 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12168 ac_status=$?
12169 grep -v '^ *+' conftest.er1 >conftest.err
12170 rm -f conftest.er1
12171 cat conftest.err >&5
12172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); } >/dev/null; then
12174 if test -s conftest.err; then
12175 ac_cpp_err=$ac_c_preproc_warn_flag
12176 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12177 else
12178 ac_cpp_err=
12179 fi
9a156167 12180else
bec39cab 12181 ac_cpp_err=yes
9a156167 12182fi
bec39cab
AC
12183if test -z "$ac_cpp_err"; then
12184 ac_header_preproc=yes
12185else
12186 echo "$as_me: failed program was:" >&5
12187sed 's/^/| /' conftest.$ac_ext >&5
9a156167 12188
bec39cab 12189 ac_header_preproc=no
9a156167 12190fi
bec39cab 12191rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12192echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12193echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 12194
bec39cab
AC
12195# So? What about this header?
12196case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12197 yes:no: )
12198 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12199echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12201echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12202 ac_header_preproc=yes
12203 ;;
12204 no:yes:* )
12205 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12206echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12207 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12208echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12209 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12210echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12211 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12212echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12214echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12215 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12216echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12217 (
12218 cat <<\_ASBOX
12219## ------------------------------------------ ##
12220## Report this to the AC_PACKAGE_NAME lists. ##
12221## ------------------------------------------ ##
12222_ASBOX
12223 ) |
12224 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12225 ;;
12226esac
b4e70030
JB
12227echo "$as_me:$LINENO: checking for $ac_header" >&5
12228echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12229if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 12230 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 12231else
bec39cab 12232 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 12233fi
b4e70030
JB
12234echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12235echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167 12236
bec39cab
AC
12237fi
12238if test `eval echo '${'$as_ac_Header'}'` = yes; then
12239 cat >>confdefs.h <<_ACEOF
12240#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12241_ACEOF
9a156167 12242
bec39cab 12243fi
9a156167 12244
bec39cab 12245done
9a156167 12246
9a156167 12247
9a156167 12248
bec39cab
AC
12249
12250for ac_header in proc_service.h thread_db.h gnu/libc-version.h
12251do
12252as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12253if eval "test \"\${$as_ac_Header+set}\" = set"; then
12254 echo "$as_me:$LINENO: checking for $ac_header" >&5
12255echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12256if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12257 echo $ECHO_N "(cached) $ECHO_C" >&6
12258fi
b4e70030
JB
12259echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12260echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12261else
12262 # Is the header compilable?
b4e70030
JB
12263echo "$as_me:$LINENO: checking $ac_header usability" >&5
12264echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12265cat >conftest.$ac_ext <<_ACEOF
12266/* confdefs.h. */
12267_ACEOF
12268cat confdefs.h >>conftest.$ac_ext
12269cat >>conftest.$ac_ext <<_ACEOF
436868fb
DP
12270/* end confdefs.h. */
12271$ac_includes_default
12272#include <$ac_header>
12273_ACEOF
12274rm -f conftest.$ac_objext
12275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12276 (eval $ac_compile) 2>conftest.er1
12277 ac_status=$?
12278 grep -v '^ *+' conftest.er1 >conftest.err
12279 rm -f conftest.er1
12280 cat conftest.err >&5
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); } &&
12283 { ac_try='test -z "$ac_c_werror_flag"
12284 || test ! -s conftest.err'
12285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12286 (eval $ac_try) 2>&5
12287 ac_status=$?
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); }; } &&
12290 { ac_try='test -s conftest.$ac_objext'
12291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12292 (eval $ac_try) 2>&5
12293 ac_status=$?
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); }; }; then
12296 ac_header_compiler=yes
12297else
12298 echo "$as_me: failed program was:" >&5
12299sed 's/^/| /' conftest.$ac_ext >&5
12300
12301ac_header_compiler=no
12302fi
12303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12304echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12305echo "${ECHO_T}$ac_header_compiler" >&6
12306
12307# Is the header present?
12308echo "$as_me:$LINENO: checking $ac_header presence" >&5
12309echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12310cat >conftest.$ac_ext <<_ACEOF
12311/* confdefs.h. */
12312_ACEOF
12313cat confdefs.h >>conftest.$ac_ext
12314cat >>conftest.$ac_ext <<_ACEOF
12315/* end confdefs.h. */
12316#include <$ac_header>
12317_ACEOF
12318if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12319 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12320 ac_status=$?
12321 grep -v '^ *+' conftest.er1 >conftest.err
12322 rm -f conftest.er1
12323 cat conftest.err >&5
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); } >/dev/null; then
12326 if test -s conftest.err; then
12327 ac_cpp_err=$ac_c_preproc_warn_flag
12328 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12329 else
12330 ac_cpp_err=
12331 fi
12332else
12333 ac_cpp_err=yes
12334fi
12335if test -z "$ac_cpp_err"; then
12336 ac_header_preproc=yes
12337else
12338 echo "$as_me: failed program was:" >&5
12339sed 's/^/| /' conftest.$ac_ext >&5
12340
12341 ac_header_preproc=no
12342fi
12343rm -f conftest.err conftest.$ac_ext
12344echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12345echo "${ECHO_T}$ac_header_preproc" >&6
12346
12347# So? What about this header?
12348case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12349 yes:no: )
12350 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12351echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12353echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12354 ac_header_preproc=yes
12355 ;;
12356 no:yes:* )
12357 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12358echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12359 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12360echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12361 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12362echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12363 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12364echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12366echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12367 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12368echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12369 (
12370 cat <<\_ASBOX
12371## ------------------------------------------ ##
12372## Report this to the AC_PACKAGE_NAME lists. ##
12373## ------------------------------------------ ##
12374_ASBOX
12375 ) |
12376 sed "s/^/$as_me: WARNING: /" >&2
12377 ;;
12378esac
12379echo "$as_me:$LINENO: checking for $ac_header" >&5
12380echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12381if eval "test \"\${$as_ac_Header+set}\" = set"; then
12382 echo $ECHO_N "(cached) $ECHO_C" >&6
12383else
12384 eval "$as_ac_Header=\$ac_header_preproc"
12385fi
12386echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12387echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12388
12389fi
12390if test `eval echo '${'$as_ac_Header'}'` = yes; then
12391 cat >>confdefs.h <<_ACEOF
12392#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12393_ACEOF
12394
12395fi
12396
12397done
12398
12399
12400for ac_header in signal.h
12401do
12402as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12403if eval "test \"\${$as_ac_Header+set}\" = set"; then
12404 echo "$as_me:$LINENO: checking for $ac_header" >&5
12405echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12406if eval "test \"\${$as_ac_Header+set}\" = set"; then
12407 echo $ECHO_N "(cached) $ECHO_C" >&6
12408fi
12409echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12410echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12411else
12412 # Is the header compilable?
12413echo "$as_me:$LINENO: checking $ac_header usability" >&5
12414echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12415cat >conftest.$ac_ext <<_ACEOF
12416/* confdefs.h. */
12417_ACEOF
12418cat confdefs.h >>conftest.$ac_ext
12419cat >>conftest.$ac_ext <<_ACEOF
bec39cab
AC
12420/* end confdefs.h. */
12421$ac_includes_default
12422#include <$ac_header>
12423_ACEOF
12424rm -f conftest.$ac_objext
12425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12426 (eval $ac_compile) 2>conftest.er1
12427 ac_status=$?
12428 grep -v '^ *+' conftest.er1 >conftest.err
12429 rm -f conftest.er1
12430 cat conftest.err >&5
12431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12432 (exit $ac_status); } &&
b4e70030
JB
12433 { ac_try='test -z "$ac_c_werror_flag"
12434 || test ! -s conftest.err'
bec39cab
AC
12435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436 (eval $ac_try) 2>&5
12437 ac_status=$?
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); }; } &&
12440 { ac_try='test -s conftest.$ac_objext'
12441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12442 (eval $ac_try) 2>&5
12443 ac_status=$?
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); }; }; then
12446 ac_header_compiler=yes
12447else
12448 echo "$as_me: failed program was:" >&5
12449sed 's/^/| /' conftest.$ac_ext >&5
12450
b4e70030 12451ac_header_compiler=no
bec39cab
AC
12452fi
12453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12454echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12455echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12456
12457# Is the header present?
b4e70030
JB
12458echo "$as_me:$LINENO: checking $ac_header presence" >&5
12459echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12460cat >conftest.$ac_ext <<_ACEOF
12461/* confdefs.h. */
12462_ACEOF
12463cat confdefs.h >>conftest.$ac_ext
12464cat >>conftest.$ac_ext <<_ACEOF
12465/* end confdefs.h. */
12466#include <$ac_header>
12467_ACEOF
12468if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12469 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12470 ac_status=$?
12471 grep -v '^ *+' conftest.er1 >conftest.err
12472 rm -f conftest.er1
12473 cat conftest.err >&5
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); } >/dev/null; then
12476 if test -s conftest.err; then
12477 ac_cpp_err=$ac_c_preproc_warn_flag
12478 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12479 else
12480 ac_cpp_err=
12481 fi
9a156167 12482else
bec39cab 12483 ac_cpp_err=yes
9a156167 12484fi
bec39cab
AC
12485if test -z "$ac_cpp_err"; then
12486 ac_header_preproc=yes
12487else
12488 echo "$as_me: failed program was:" >&5
12489sed 's/^/| /' conftest.$ac_ext >&5
9a156167 12490
bec39cab 12491 ac_header_preproc=no
9a156167 12492fi
bec39cab 12493rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12494echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12495echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 12496
bec39cab
AC
12497# So? What about this header?
12498case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12499 yes:no: )
12500 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12501echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12503echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12504 ac_header_preproc=yes
12505 ;;
12506 no:yes:* )
12507 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12508echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12509 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12510echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12511 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12512echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12513 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12514echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12516echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12517 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12518echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12519 (
12520 cat <<\_ASBOX
12521## ------------------------------------------ ##
12522## Report this to the AC_PACKAGE_NAME lists. ##
12523## ------------------------------------------ ##
12524_ASBOX
12525 ) |
12526 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12527 ;;
12528esac
b4e70030
JB
12529echo "$as_me:$LINENO: checking for $ac_header" >&5
12530echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12531if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 12532 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 12533else
bec39cab 12534 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 12535fi
b4e70030
JB
12536echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12537echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167
MK
12538
12539fi
bec39cab
AC
12540if test `eval echo '${'$as_ac_Header'}'` = yes; then
12541 cat >>confdefs.h <<_ACEOF
12542#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12543_ACEOF
9a156167 12544
bec39cab
AC
12545fi
12546
12547done
9a156167 12548
c890192f 12549
bec39cab
AC
12550for ac_header in stddef.h
12551do
12552as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12553if eval "test \"\${$as_ac_Header+set}\" = set"; then
12554 echo "$as_me:$LINENO: checking for $ac_header" >&5
12555echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12556if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12557 echo $ECHO_N "(cached) $ECHO_C" >&6
12558fi
b4e70030
JB
12559echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12560echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12561else
12562 # Is the header compilable?
b4e70030
JB
12563echo "$as_me:$LINENO: checking $ac_header usability" >&5
12564echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12565cat >conftest.$ac_ext <<_ACEOF
12566/* confdefs.h. */
12567_ACEOF
12568cat confdefs.h >>conftest.$ac_ext
12569cat >>conftest.$ac_ext <<_ACEOF
12570/* end confdefs.h. */
12571$ac_includes_default
12572#include <$ac_header>
12573_ACEOF
12574rm -f conftest.$ac_objext
12575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12576 (eval $ac_compile) 2>conftest.er1
12577 ac_status=$?
12578 grep -v '^ *+' conftest.er1 >conftest.err
12579 rm -f conftest.er1
12580 cat conftest.err >&5
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); } &&
b4e70030
JB
12583 { ac_try='test -z "$ac_c_werror_flag"
12584 || test ! -s conftest.err'
bec39cab
AC
12585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12586 (eval $ac_try) 2>&5
12587 ac_status=$?
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); }; } &&
12590 { ac_try='test -s conftest.$ac_objext'
12591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12592 (eval $ac_try) 2>&5
12593 ac_status=$?
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); }; }; then
12596 ac_header_compiler=yes
12597else
12598 echo "$as_me: failed program was:" >&5
12599sed 's/^/| /' conftest.$ac_ext >&5
12600
b4e70030 12601ac_header_compiler=no
bec39cab
AC
12602fi
12603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12604echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12605echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12606
12607# Is the header present?
b4e70030
JB
12608echo "$as_me:$LINENO: checking $ac_header presence" >&5
12609echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12610cat >conftest.$ac_ext <<_ACEOF
12611/* confdefs.h. */
12612_ACEOF
12613cat confdefs.h >>conftest.$ac_ext
12614cat >>conftest.$ac_ext <<_ACEOF
12615/* end confdefs.h. */
12616#include <$ac_header>
12617_ACEOF
12618if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12619 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12620 ac_status=$?
12621 grep -v '^ *+' conftest.er1 >conftest.err
12622 rm -f conftest.er1
12623 cat conftest.err >&5
12624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12625 (exit $ac_status); } >/dev/null; then
12626 if test -s conftest.err; then
12627 ac_cpp_err=$ac_c_preproc_warn_flag
12628 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12629 else
12630 ac_cpp_err=
12631 fi
c890192f 12632else
bec39cab
AC
12633 ac_cpp_err=yes
12634fi
12635if test -z "$ac_cpp_err"; then
12636 ac_header_preproc=yes
c890192f 12637else
bec39cab
AC
12638 echo "$as_me: failed program was:" >&5
12639sed 's/^/| /' conftest.$ac_ext >&5
12640
12641 ac_header_preproc=no
c890192f 12642fi
bec39cab 12643rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12644echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12645echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
12646
12647# So? What about this header?
12648case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12649 yes:no: )
12650 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12651echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12653echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12654 ac_header_preproc=yes
12655 ;;
12656 no:yes:* )
12657 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12658echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12659 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12660echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12661 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12662echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12663 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12664echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12666echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12667 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12668echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12669 (
12670 cat <<\_ASBOX
12671## ------------------------------------------ ##
12672## Report this to the AC_PACKAGE_NAME lists. ##
12673## ------------------------------------------ ##
12674_ASBOX
12675 ) |
12676 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12677 ;;
12678esac
b4e70030
JB
12679echo "$as_me:$LINENO: checking for $ac_header" >&5
12680echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12681if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 12682 echo $ECHO_N "(cached) $ECHO_C" >&6
c890192f 12683else
bec39cab 12684 eval "$as_ac_Header=\$ac_header_preproc"
c890192f 12685fi
b4e70030
JB
12686echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12687echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 12688
c890192f 12689fi
bec39cab
AC
12690if test `eval echo '${'$as_ac_Header'}'` = yes; then
12691 cat >>confdefs.h <<_ACEOF
12692#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12693_ACEOF
c890192f 12694
c890192f
MK
12695fi
12696
bec39cab 12697done
9a156167 12698
bec39cab
AC
12699
12700for ac_header in stdlib.h
12701do
12702as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12703if eval "test \"\${$as_ac_Header+set}\" = set"; then
12704 echo "$as_me:$LINENO: checking for $ac_header" >&5
12705echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12706if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12707 echo $ECHO_N "(cached) $ECHO_C" >&6
12708fi
b4e70030
JB
12709echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12710echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12711else
12712 # Is the header compilable?
b4e70030
JB
12713echo "$as_me:$LINENO: checking $ac_header usability" >&5
12714echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12715cat >conftest.$ac_ext <<_ACEOF
12716/* confdefs.h. */
12717_ACEOF
12718cat confdefs.h >>conftest.$ac_ext
12719cat >>conftest.$ac_ext <<_ACEOF
12720/* end confdefs.h. */
12721$ac_includes_default
12722#include <$ac_header>
12723_ACEOF
12724rm -f conftest.$ac_objext
12725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12726 (eval $ac_compile) 2>conftest.er1
12727 ac_status=$?
12728 grep -v '^ *+' conftest.er1 >conftest.err
12729 rm -f conftest.er1
12730 cat conftest.err >&5
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); } &&
b4e70030
JB
12733 { ac_try='test -z "$ac_c_werror_flag"
12734 || test ! -s conftest.err'
bec39cab
AC
12735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12736 (eval $ac_try) 2>&5
12737 ac_status=$?
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); }; } &&
12740 { ac_try='test -s conftest.$ac_objext'
12741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12742 (eval $ac_try) 2>&5
12743 ac_status=$?
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); }; }; then
12746 ac_header_compiler=yes
12747else
12748 echo "$as_me: failed program was:" >&5
12749sed 's/^/| /' conftest.$ac_ext >&5
12750
b4e70030 12751ac_header_compiler=no
bec39cab
AC
12752fi
12753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12754echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12755echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12756
12757# Is the header present?
b4e70030
JB
12758echo "$as_me:$LINENO: checking $ac_header presence" >&5
12759echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12760cat >conftest.$ac_ext <<_ACEOF
12761/* confdefs.h. */
12762_ACEOF
12763cat confdefs.h >>conftest.$ac_ext
12764cat >>conftest.$ac_ext <<_ACEOF
12765/* end confdefs.h. */
12766#include <$ac_header>
12767_ACEOF
12768if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12769 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12770 ac_status=$?
12771 grep -v '^ *+' conftest.er1 >conftest.err
12772 rm -f conftest.er1
12773 cat conftest.err >&5
12774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12775 (exit $ac_status); } >/dev/null; then
12776 if test -s conftest.err; then
12777 ac_cpp_err=$ac_c_preproc_warn_flag
12778 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12779 else
12780 ac_cpp_err=
12781 fi
9a156167 12782else
bec39cab
AC
12783 ac_cpp_err=yes
12784fi
12785if test -z "$ac_cpp_err"; then
12786 ac_header_preproc=yes
9a156167 12787else
bec39cab
AC
12788 echo "$as_me: failed program was:" >&5
12789sed 's/^/| /' conftest.$ac_ext >&5
12790
12791 ac_header_preproc=no
9a156167 12792fi
bec39cab 12793rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12794echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12795echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
12796
12797# So? What about this header?
12798case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12799 yes:no: )
12800 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12801echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12803echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12804 ac_header_preproc=yes
12805 ;;
12806 no:yes:* )
12807 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12808echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12809 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12810echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12811 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12812echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12813 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12814echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12816echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12817 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12818echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12819 (
12820 cat <<\_ASBOX
12821## ------------------------------------------ ##
12822## Report this to the AC_PACKAGE_NAME lists. ##
12823## ------------------------------------------ ##
12824_ASBOX
12825 ) |
12826 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12827 ;;
12828esac
b4e70030
JB
12829echo "$as_me:$LINENO: checking for $ac_header" >&5
12830echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12831if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 12832 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 12833else
bec39cab 12834 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 12835fi
b4e70030
JB
12836echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12837echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 12838
9a156167 12839fi
bec39cab
AC
12840if test `eval echo '${'$as_ac_Header'}'` = yes; then
12841 cat >>confdefs.h <<_ACEOF
12842#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12843_ACEOF
9a156167 12844
9a156167
MK
12845fi
12846
bec39cab
AC
12847done
12848
06825bd1 12849
bec39cab
AC
12850for ac_header in stdint.h
12851do
12852as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
12853if eval "test \"\${$as_ac_Header+set}\" = set"; then
12854 echo "$as_me:$LINENO: checking for $ac_header" >&5
12855echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12856if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
12857 echo $ECHO_N "(cached) $ECHO_C" >&6
12858fi
b4e70030
JB
12859echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12860echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
12861else
12862 # Is the header compilable?
b4e70030
JB
12863echo "$as_me:$LINENO: checking $ac_header usability" >&5
12864echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
12865cat >conftest.$ac_ext <<_ACEOF
12866/* confdefs.h. */
12867_ACEOF
12868cat confdefs.h >>conftest.$ac_ext
12869cat >>conftest.$ac_ext <<_ACEOF
12870/* end confdefs.h. */
12871$ac_includes_default
12872#include <$ac_header>
12873_ACEOF
12874rm -f conftest.$ac_objext
12875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12876 (eval $ac_compile) 2>conftest.er1
12877 ac_status=$?
12878 grep -v '^ *+' conftest.er1 >conftest.err
12879 rm -f conftest.er1
12880 cat conftest.err >&5
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); } &&
b4e70030
JB
12883 { ac_try='test -z "$ac_c_werror_flag"
12884 || test ! -s conftest.err'
bec39cab
AC
12885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12886 (eval $ac_try) 2>&5
12887 ac_status=$?
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); }; } &&
12890 { ac_try='test -s conftest.$ac_objext'
12891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12892 (eval $ac_try) 2>&5
12893 ac_status=$?
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); }; }; then
12896 ac_header_compiler=yes
12897else
12898 echo "$as_me: failed program was:" >&5
12899sed 's/^/| /' conftest.$ac_ext >&5
12900
b4e70030 12901ac_header_compiler=no
bec39cab
AC
12902fi
12903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
12904echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12905echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
12906
12907# Is the header present?
b4e70030
JB
12908echo "$as_me:$LINENO: checking $ac_header presence" >&5
12909echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
12910cat >conftest.$ac_ext <<_ACEOF
12911/* confdefs.h. */
12912_ACEOF
12913cat confdefs.h >>conftest.$ac_ext
12914cat >>conftest.$ac_ext <<_ACEOF
12915/* end confdefs.h. */
12916#include <$ac_header>
12917_ACEOF
12918if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12919 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12920 ac_status=$?
12921 grep -v '^ *+' conftest.er1 >conftest.err
12922 rm -f conftest.er1
12923 cat conftest.err >&5
12924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12925 (exit $ac_status); } >/dev/null; then
12926 if test -s conftest.err; then
12927 ac_cpp_err=$ac_c_preproc_warn_flag
12928 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12929 else
12930 ac_cpp_err=
12931 fi
06825bd1 12932else
bec39cab
AC
12933 ac_cpp_err=yes
12934fi
12935if test -z "$ac_cpp_err"; then
12936 ac_header_preproc=yes
06825bd1 12937else
bec39cab
AC
12938 echo "$as_me: failed program was:" >&5
12939sed 's/^/| /' conftest.$ac_ext >&5
12940
12941 ac_header_preproc=no
06825bd1 12942fi
bec39cab 12943rm -f conftest.err conftest.$ac_ext
b4e70030
JB
12944echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12945echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
12946
12947# So? What about this header?
12948case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12949 yes:no: )
12950 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12951echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12953echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12954 ac_header_preproc=yes
12955 ;;
12956 no:yes:* )
12957 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12958echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12959 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12960echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12961 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12962echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12963 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12964echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12966echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12967 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12968echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
12969 (
12970 cat <<\_ASBOX
12971## ------------------------------------------ ##
12972## Report this to the AC_PACKAGE_NAME lists. ##
12973## ------------------------------------------ ##
12974_ASBOX
12975 ) |
12976 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
12977 ;;
12978esac
b4e70030
JB
12979echo "$as_me:$LINENO: checking for $ac_header" >&5
12980echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12981if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 12982 echo $ECHO_N "(cached) $ECHO_C" >&6
06825bd1 12983else
bec39cab 12984 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 12985fi
b4e70030
JB
12986echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12987echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 12988
06825bd1 12989fi
bec39cab
AC
12990if test `eval echo '${'$as_ac_Header'}'` = yes; then
12991 cat >>confdefs.h <<_ACEOF
12992#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12993_ACEOF
06825bd1 12994
06825bd1 12995fi
4f0be353 12996
bec39cab 12997done
4f0be353 12998
06825bd1 12999
06825bd1 13000
bec39cab
AC
13001
13002for ac_header in string.h memory.h strings.h
13003do
13004as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
13005if eval "test \"\${$as_ac_Header+set}\" = set"; then
13006 echo "$as_me:$LINENO: checking for $ac_header" >&5
13007echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13008if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13009 echo $ECHO_N "(cached) $ECHO_C" >&6
13010fi
b4e70030
JB
13011echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13012echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
13013else
13014 # Is the header compilable?
b4e70030
JB
13015echo "$as_me:$LINENO: checking $ac_header usability" >&5
13016echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
13017cat >conftest.$ac_ext <<_ACEOF
13018/* confdefs.h. */
13019_ACEOF
13020cat confdefs.h >>conftest.$ac_ext
13021cat >>conftest.$ac_ext <<_ACEOF
13022/* end confdefs.h. */
13023$ac_includes_default
13024#include <$ac_header>
13025_ACEOF
13026rm -f conftest.$ac_objext
13027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13028 (eval $ac_compile) 2>conftest.er1
13029 ac_status=$?
13030 grep -v '^ *+' conftest.er1 >conftest.err
13031 rm -f conftest.er1
13032 cat conftest.err >&5
13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); } &&
b4e70030
JB
13035 { ac_try='test -z "$ac_c_werror_flag"
13036 || test ! -s conftest.err'
bec39cab
AC
13037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13038 (eval $ac_try) 2>&5
13039 ac_status=$?
13040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13041 (exit $ac_status); }; } &&
13042 { ac_try='test -s conftest.$ac_objext'
13043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13044 (eval $ac_try) 2>&5
13045 ac_status=$?
13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); }; }; then
13048 ac_header_compiler=yes
13049else
13050 echo "$as_me: failed program was:" >&5
13051sed 's/^/| /' conftest.$ac_ext >&5
13052
b4e70030 13053ac_header_compiler=no
bec39cab
AC
13054fi
13055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
13056echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13057echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
13058
13059# Is the header present?
b4e70030
JB
13060echo "$as_me:$LINENO: checking $ac_header presence" >&5
13061echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
13062cat >conftest.$ac_ext <<_ACEOF
13063/* confdefs.h. */
13064_ACEOF
13065cat confdefs.h >>conftest.$ac_ext
13066cat >>conftest.$ac_ext <<_ACEOF
13067/* end confdefs.h. */
13068#include <$ac_header>
13069_ACEOF
13070if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13072 ac_status=$?
13073 grep -v '^ *+' conftest.er1 >conftest.err
13074 rm -f conftest.er1
13075 cat conftest.err >&5
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); } >/dev/null; then
13078 if test -s conftest.err; then
13079 ac_cpp_err=$ac_c_preproc_warn_flag
13080 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13081 else
13082 ac_cpp_err=
13083 fi
06825bd1 13084else
bec39cab
AC
13085 ac_cpp_err=yes
13086fi
13087if test -z "$ac_cpp_err"; then
13088 ac_header_preproc=yes
06825bd1 13089else
bec39cab
AC
13090 echo "$as_me: failed program was:" >&5
13091sed 's/^/| /' conftest.$ac_ext >&5
13092
13093 ac_header_preproc=no
06825bd1 13094fi
bec39cab 13095rm -f conftest.err conftest.$ac_ext
b4e70030
JB
13096echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13097echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
13098
13099# So? What about this header?
13100case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13101 yes:no: )
13102 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13103echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13104 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13105echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13106 ac_header_preproc=yes
13107 ;;
13108 no:yes:* )
13109 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13110echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13111 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13112echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13113 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13114echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13115 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13116echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13118echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13119 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13120echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
13121 (
13122 cat <<\_ASBOX
13123## ------------------------------------------ ##
13124## Report this to the AC_PACKAGE_NAME lists. ##
13125## ------------------------------------------ ##
13126_ASBOX
13127 ) |
13128 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
13129 ;;
13130esac
b4e70030
JB
13131echo "$as_me:$LINENO: checking for $ac_header" >&5
13132echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13133if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13134 echo $ECHO_N "(cached) $ECHO_C" >&6
13135else
13136 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 13137fi
b4e70030
JB
13138echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13139echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
06825bd1 13140
06825bd1 13141fi
bec39cab
AC
13142if test `eval echo '${'$as_ac_Header'}'` = yes; then
13143 cat >>confdefs.h <<_ACEOF
13144#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13145_ACEOF
06825bd1 13146
06825bd1
MK
13147fi
13148
bec39cab 13149done
5ee754fc 13150
bec39cab
AC
13151
13152for ac_header in sys/fault.h
5ee754fc 13153do
bec39cab 13154as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
13155if eval "test \"\${$as_ac_Header+set}\" = set"; then
13156 echo "$as_me:$LINENO: checking for $ac_header" >&5
13157echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13158if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13159 echo $ECHO_N "(cached) $ECHO_C" >&6
13160fi
b4e70030
JB
13161echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13162echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
13163else
13164 # Is the header compilable?
b4e70030
JB
13165echo "$as_me:$LINENO: checking $ac_header usability" >&5
13166echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
13167cat >conftest.$ac_ext <<_ACEOF
13168/* confdefs.h. */
13169_ACEOF
13170cat confdefs.h >>conftest.$ac_ext
13171cat >>conftest.$ac_ext <<_ACEOF
13172/* end confdefs.h. */
13173$ac_includes_default
13174#include <$ac_header>
13175_ACEOF
13176rm -f conftest.$ac_objext
13177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13178 (eval $ac_compile) 2>conftest.er1
13179 ac_status=$?
13180 grep -v '^ *+' conftest.er1 >conftest.err
13181 rm -f conftest.er1
13182 cat conftest.err >&5
13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); } &&
b4e70030
JB
13185 { ac_try='test -z "$ac_c_werror_flag"
13186 || test ! -s conftest.err'
bec39cab
AC
13187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13188 (eval $ac_try) 2>&5
13189 ac_status=$?
13190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13191 (exit $ac_status); }; } &&
13192 { ac_try='test -s conftest.$ac_objext'
13193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13194 (eval $ac_try) 2>&5
13195 ac_status=$?
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); }; }; then
13198 ac_header_compiler=yes
13199else
13200 echo "$as_me: failed program was:" >&5
13201sed 's/^/| /' conftest.$ac_ext >&5
13202
b4e70030 13203ac_header_compiler=no
bec39cab
AC
13204fi
13205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
13206echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13207echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
13208
13209# Is the header present?
b4e70030
JB
13210echo "$as_me:$LINENO: checking $ac_header presence" >&5
13211echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
13212cat >conftest.$ac_ext <<_ACEOF
13213/* confdefs.h. */
13214_ACEOF
13215cat confdefs.h >>conftest.$ac_ext
13216cat >>conftest.$ac_ext <<_ACEOF
13217/* end confdefs.h. */
13218#include <$ac_header>
13219_ACEOF
13220if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13221 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13222 ac_status=$?
13223 grep -v '^ *+' conftest.er1 >conftest.err
13224 rm -f conftest.er1
13225 cat conftest.err >&5
13226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227 (exit $ac_status); } >/dev/null; then
13228 if test -s conftest.err; then
13229 ac_cpp_err=$ac_c_preproc_warn_flag
13230 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13231 else
13232 ac_cpp_err=
13233 fi
5ee754fc 13234else
bec39cab 13235 ac_cpp_err=yes
5ee754fc 13236fi
bec39cab
AC
13237if test -z "$ac_cpp_err"; then
13238 ac_header_preproc=yes
13239else
13240 echo "$as_me: failed program was:" >&5
13241sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 13242
bec39cab 13243 ac_header_preproc=no
5ee754fc 13244fi
bec39cab 13245rm -f conftest.err conftest.$ac_ext
b4e70030
JB
13246echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13247echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
13248
13249# So? What about this header?
13250case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13251 yes:no: )
13252 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13253echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13255echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13256 ac_header_preproc=yes
13257 ;;
13258 no:yes:* )
13259 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13260echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13261 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13262echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13263 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13264echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13265 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13266echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13268echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13269 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13270echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
13271 (
13272 cat <<\_ASBOX
13273## ------------------------------------------ ##
13274## Report this to the AC_PACKAGE_NAME lists. ##
13275## ------------------------------------------ ##
13276_ASBOX
13277 ) |
13278 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
13279 ;;
13280esac
b4e70030
JB
13281echo "$as_me:$LINENO: checking for $ac_header" >&5
13282echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13283if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 13284 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 13285else
bec39cab 13286 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 13287fi
b4e70030
JB
13288echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13289echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c906108c 13290
5ee754fc 13291fi
bec39cab
AC
13292if test `eval echo '${'$as_ac_Header'}'` = yes; then
13293 cat >>confdefs.h <<_ACEOF
13294#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13295_ACEOF
c906108c 13296
5ee754fc 13297fi
bec39cab
AC
13298
13299done
13300
13301
13302for ac_header in sys/file.h
13303do
13304as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
13305if eval "test \"\${$as_ac_Header+set}\" = set"; then
13306 echo "$as_me:$LINENO: checking for $ac_header" >&5
13307echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13308if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13309 echo $ECHO_N "(cached) $ECHO_C" >&6
13310fi
b4e70030
JB
13311echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13312echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
13313else
13314 # Is the header compilable?
b4e70030
JB
13315echo "$as_me:$LINENO: checking $ac_header usability" >&5
13316echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
13317cat >conftest.$ac_ext <<_ACEOF
13318/* confdefs.h. */
13319_ACEOF
13320cat confdefs.h >>conftest.$ac_ext
13321cat >>conftest.$ac_ext <<_ACEOF
13322/* end confdefs.h. */
13323$ac_includes_default
13324#include <$ac_header>
13325_ACEOF
13326rm -f conftest.$ac_objext
13327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13328 (eval $ac_compile) 2>conftest.er1
13329 ac_status=$?
13330 grep -v '^ *+' conftest.er1 >conftest.err
13331 rm -f conftest.er1
13332 cat conftest.err >&5
13333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334 (exit $ac_status); } &&
b4e70030
JB
13335 { ac_try='test -z "$ac_c_werror_flag"
13336 || test ! -s conftest.err'
bec39cab
AC
13337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13338 (eval $ac_try) 2>&5
13339 ac_status=$?
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); }; } &&
13342 { ac_try='test -s conftest.$ac_objext'
13343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13344 (eval $ac_try) 2>&5
13345 ac_status=$?
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); }; }; then
13348 ac_header_compiler=yes
13349else
13350 echo "$as_me: failed program was:" >&5
13351sed 's/^/| /' conftest.$ac_ext >&5
13352
b4e70030 13353ac_header_compiler=no
bec39cab
AC
13354fi
13355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
13356echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13357echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
13358
13359# Is the header present?
b4e70030
JB
13360echo "$as_me:$LINENO: checking $ac_header presence" >&5
13361echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
13362cat >conftest.$ac_ext <<_ACEOF
13363/* confdefs.h. */
13364_ACEOF
13365cat confdefs.h >>conftest.$ac_ext
13366cat >>conftest.$ac_ext <<_ACEOF
13367/* end confdefs.h. */
13368#include <$ac_header>
13369_ACEOF
13370if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13371 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13372 ac_status=$?
13373 grep -v '^ *+' conftest.er1 >conftest.err
13374 rm -f conftest.er1
13375 cat conftest.err >&5
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); } >/dev/null; then
13378 if test -s conftest.err; then
13379 ac_cpp_err=$ac_c_preproc_warn_flag
13380 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13381 else
13382 ac_cpp_err=
13383 fi
5ee754fc 13384else
bec39cab 13385 ac_cpp_err=yes
5ee754fc 13386fi
bec39cab
AC
13387if test -z "$ac_cpp_err"; then
13388 ac_header_preproc=yes
13389else
13390 echo "$as_me: failed program was:" >&5
13391sed 's/^/| /' conftest.$ac_ext >&5
c906108c 13392
bec39cab 13393 ac_header_preproc=no
5ee754fc 13394fi
bec39cab 13395rm -f conftest.err conftest.$ac_ext
b4e70030
JB
13396echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13397echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 13398
bec39cab
AC
13399# So? What about this header?
13400case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13401 yes:no: )
13402 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13403echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13404 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13405echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13406 ac_header_preproc=yes
13407 ;;
13408 no:yes:* )
13409 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13410echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13411 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13412echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13413 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13414echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13415 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13416echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13418echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13419 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13420echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
13421 (
13422 cat <<\_ASBOX
13423## ------------------------------------------ ##
13424## Report this to the AC_PACKAGE_NAME lists. ##
13425## ------------------------------------------ ##
13426_ASBOX
13427 ) |
13428 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
13429 ;;
13430esac
b4e70030
JB
13431echo "$as_me:$LINENO: checking for $ac_header" >&5
13432echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13433if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 13434 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 13435else
bec39cab
AC
13436 eval "$as_ac_Header=\$ac_header_preproc"
13437fi
b4e70030
JB
13438echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13439echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 13440
bec39cab
AC
13441fi
13442if test `eval echo '${'$as_ac_Header'}'` = yes; then
13443 cat >>confdefs.h <<_ACEOF
13444#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13445_ACEOF
5ee754fc 13446
bec39cab 13447fi
5ee754fc 13448
bec39cab 13449done
5ee754fc 13450
5ee754fc 13451
bec39cab
AC
13452for ac_header in sys/filio.h
13453do
13454as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
13455if eval "test \"\${$as_ac_Header+set}\" = set"; then
13456 echo "$as_me:$LINENO: checking for $ac_header" >&5
13457echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13458if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13459 echo $ECHO_N "(cached) $ECHO_C" >&6
13460fi
b4e70030
JB
13461echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13462echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
13463else
13464 # Is the header compilable?
b4e70030
JB
13465echo "$as_me:$LINENO: checking $ac_header usability" >&5
13466echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
13467cat >conftest.$ac_ext <<_ACEOF
13468/* confdefs.h. */
13469_ACEOF
13470cat confdefs.h >>conftest.$ac_ext
13471cat >>conftest.$ac_ext <<_ACEOF
13472/* end confdefs.h. */
13473$ac_includes_default
13474#include <$ac_header>
13475_ACEOF
13476rm -f conftest.$ac_objext
13477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13478 (eval $ac_compile) 2>conftest.er1
13479 ac_status=$?
13480 grep -v '^ *+' conftest.er1 >conftest.err
13481 rm -f conftest.er1
13482 cat conftest.err >&5
13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); } &&
b4e70030
JB
13485 { ac_try='test -z "$ac_c_werror_flag"
13486 || test ! -s conftest.err'
bec39cab
AC
13487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13488 (eval $ac_try) 2>&5
13489 ac_status=$?
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); }; } &&
13492 { ac_try='test -s conftest.$ac_objext'
13493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13494 (eval $ac_try) 2>&5
13495 ac_status=$?
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); }; }; then
13498 ac_header_compiler=yes
13499else
13500 echo "$as_me: failed program was:" >&5
13501sed 's/^/| /' conftest.$ac_ext >&5
13502
b4e70030 13503ac_header_compiler=no
bec39cab
AC
13504fi
13505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
13506echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13507echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
13508
13509# Is the header present?
b4e70030
JB
13510echo "$as_me:$LINENO: checking $ac_header presence" >&5
13511echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
13512cat >conftest.$ac_ext <<_ACEOF
13513/* confdefs.h. */
13514_ACEOF
13515cat confdefs.h >>conftest.$ac_ext
13516cat >>conftest.$ac_ext <<_ACEOF
13517/* end confdefs.h. */
13518#include <$ac_header>
13519_ACEOF
13520if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13521 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13522 ac_status=$?
13523 grep -v '^ *+' conftest.er1 >conftest.err
13524 rm -f conftest.er1
13525 cat conftest.err >&5
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); } >/dev/null; then
13528 if test -s conftest.err; then
13529 ac_cpp_err=$ac_c_preproc_warn_flag
13530 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13531 else
13532 ac_cpp_err=
13533 fi
5ee754fc 13534else
bec39cab 13535 ac_cpp_err=yes
5ee754fc 13536fi
bec39cab
AC
13537if test -z "$ac_cpp_err"; then
13538 ac_header_preproc=yes
13539else
13540 echo "$as_me: failed program was:" >&5
13541sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 13542
bec39cab 13543 ac_header_preproc=no
5ee754fc 13544fi
bec39cab 13545rm -f conftest.err conftest.$ac_ext
b4e70030
JB
13546echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13547echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 13548
bec39cab
AC
13549# So? What about this header?
13550case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13551 yes:no: )
13552 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13553echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13555echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13556 ac_header_preproc=yes
13557 ;;
13558 no:yes:* )
13559 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13560echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13561 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13562echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13563 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13564echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13565 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13566echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13567 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13568echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13569 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13570echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
13571 (
13572 cat <<\_ASBOX
13573## ------------------------------------------ ##
13574## Report this to the AC_PACKAGE_NAME lists. ##
13575## ------------------------------------------ ##
13576_ASBOX
13577 ) |
13578 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
13579 ;;
13580esac
b4e70030
JB
13581echo "$as_me:$LINENO: checking for $ac_header" >&5
13582echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13583if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 13584 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 13585else
bec39cab 13586 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 13587fi
b4e70030
JB
13588echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13589echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 13590
5ee754fc 13591fi
bec39cab
AC
13592if test `eval echo '${'$as_ac_Header'}'` = yes; then
13593 cat >>confdefs.h <<_ACEOF
13594#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13595_ACEOF
5ee754fc
MK
13596
13597fi
13598
bec39cab
AC
13599done
13600
13601
13602for ac_header in sys/ioctl.h
13603do
13604as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
13605if eval "test \"\${$as_ac_Header+set}\" = set"; then
13606 echo "$as_me:$LINENO: checking for $ac_header" >&5
13607echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13608if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13609 echo $ECHO_N "(cached) $ECHO_C" >&6
13610fi
b4e70030
JB
13611echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13612echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
13613else
13614 # Is the header compilable?
b4e70030
JB
13615echo "$as_me:$LINENO: checking $ac_header usability" >&5
13616echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
13617cat >conftest.$ac_ext <<_ACEOF
13618/* confdefs.h. */
13619_ACEOF
13620cat confdefs.h >>conftest.$ac_ext
13621cat >>conftest.$ac_ext <<_ACEOF
13622/* end confdefs.h. */
13623$ac_includes_default
13624#include <$ac_header>
13625_ACEOF
13626rm -f conftest.$ac_objext
13627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13628 (eval $ac_compile) 2>conftest.er1
13629 ac_status=$?
13630 grep -v '^ *+' conftest.er1 >conftest.err
13631 rm -f conftest.er1
13632 cat conftest.err >&5
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); } &&
b4e70030
JB
13635 { ac_try='test -z "$ac_c_werror_flag"
13636 || test ! -s conftest.err'
bec39cab
AC
13637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13638 (eval $ac_try) 2>&5
13639 ac_status=$?
13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641 (exit $ac_status); }; } &&
13642 { ac_try='test -s conftest.$ac_objext'
13643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13644 (eval $ac_try) 2>&5
13645 ac_status=$?
13646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); }; }; then
13648 ac_header_compiler=yes
13649else
13650 echo "$as_me: failed program was:" >&5
13651sed 's/^/| /' conftest.$ac_ext >&5
13652
b4e70030 13653ac_header_compiler=no
bec39cab
AC
13654fi
13655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
13656echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13657echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
13658
13659# Is the header present?
b4e70030
JB
13660echo "$as_me:$LINENO: checking $ac_header presence" >&5
13661echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
13662cat >conftest.$ac_ext <<_ACEOF
13663/* confdefs.h. */
13664_ACEOF
13665cat confdefs.h >>conftest.$ac_ext
13666cat >>conftest.$ac_ext <<_ACEOF
13667/* end confdefs.h. */
13668#include <$ac_header>
13669_ACEOF
13670if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13671 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13672 ac_status=$?
13673 grep -v '^ *+' conftest.er1 >conftest.err
13674 rm -f conftest.er1
13675 cat conftest.err >&5
13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); } >/dev/null; then
13678 if test -s conftest.err; then
13679 ac_cpp_err=$ac_c_preproc_warn_flag
13680 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13681 else
13682 ac_cpp_err=
13683 fi
5ee754fc 13684else
bec39cab 13685 ac_cpp_err=yes
5ee754fc 13686fi
bec39cab
AC
13687if test -z "$ac_cpp_err"; then
13688 ac_header_preproc=yes
13689else
13690 echo "$as_me: failed program was:" >&5
13691sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 13692
bec39cab 13693 ac_header_preproc=no
5ee754fc 13694fi
bec39cab 13695rm -f conftest.err conftest.$ac_ext
b4e70030
JB
13696echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13697echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 13698
bec39cab
AC
13699# So? What about this header?
13700case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13701 yes:no: )
13702 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13703echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13705echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13706 ac_header_preproc=yes
13707 ;;
13708 no:yes:* )
13709 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13710echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13711 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13712echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13713 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13714echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13715 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13716echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13718echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13719 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13720echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
13721 (
13722 cat <<\_ASBOX
13723## ------------------------------------------ ##
13724## Report this to the AC_PACKAGE_NAME lists. ##
13725## ------------------------------------------ ##
13726_ASBOX
13727 ) |
13728 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
13729 ;;
13730esac
b4e70030
JB
13731echo "$as_me:$LINENO: checking for $ac_header" >&5
13732echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13733if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 13734 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 13735else
bec39cab 13736 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 13737fi
b4e70030
JB
13738echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13739echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc
MK
13740
13741fi
bec39cab
AC
13742if test `eval echo '${'$as_ac_Header'}'` = yes; then
13743 cat >>confdefs.h <<_ACEOF
13744#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13745_ACEOF
13746
5ee754fc
MK
13747fi
13748
bec39cab 13749done
5ee754fc 13750
5ee754fc 13751
bec39cab 13752for ac_header in sys/param.h
5ee754fc 13753do
bec39cab 13754as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
13755if eval "test \"\${$as_ac_Header+set}\" = set"; then
13756 echo "$as_me:$LINENO: checking for $ac_header" >&5
13757echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13758if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
13759 echo $ECHO_N "(cached) $ECHO_C" >&6
13760fi
b4e70030
JB
13761echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13762echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
13763else
13764 # Is the header compilable?
b4e70030
JB
13765echo "$as_me:$LINENO: checking $ac_header usability" >&5
13766echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
13767cat >conftest.$ac_ext <<_ACEOF
13768/* confdefs.h. */
13769_ACEOF
13770cat confdefs.h >>conftest.$ac_ext
13771cat >>conftest.$ac_ext <<_ACEOF
13772/* end confdefs.h. */
13773$ac_includes_default
13774#include <$ac_header>
13775_ACEOF
13776rm -f conftest.$ac_objext
13777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13778 (eval $ac_compile) 2>conftest.er1
13779 ac_status=$?
13780 grep -v '^ *+' conftest.er1 >conftest.err
13781 rm -f conftest.er1
13782 cat conftest.err >&5
13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); } &&
b4e70030
JB
13785 { ac_try='test -z "$ac_c_werror_flag"
13786 || test ! -s conftest.err'
bec39cab
AC
13787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13788 (eval $ac_try) 2>&5
13789 ac_status=$?
13790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); }; } &&
13792 { ac_try='test -s conftest.$ac_objext'
13793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13794 (eval $ac_try) 2>&5
13795 ac_status=$?
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); }; }; then
13798 ac_header_compiler=yes
13799else
13800 echo "$as_me: failed program was:" >&5
13801sed 's/^/| /' conftest.$ac_ext >&5
13802
b4e70030 13803ac_header_compiler=no
bec39cab
AC
13804fi
13805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
13806echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13807echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
13808
13809# Is the header present?
b4e70030
JB
13810echo "$as_me:$LINENO: checking $ac_header presence" >&5
13811echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
13812cat >conftest.$ac_ext <<_ACEOF
13813/* confdefs.h. */
13814_ACEOF
13815cat confdefs.h >>conftest.$ac_ext
13816cat >>conftest.$ac_ext <<_ACEOF
13817/* end confdefs.h. */
13818#include <$ac_header>
13819_ACEOF
13820if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13821 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13822 ac_status=$?
13823 grep -v '^ *+' conftest.er1 >conftest.err
13824 rm -f conftest.er1
13825 cat conftest.err >&5
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); } >/dev/null; then
13828 if test -s conftest.err; then
13829 ac_cpp_err=$ac_c_preproc_warn_flag
13830 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13831 else
13832 ac_cpp_err=
13833 fi
5ee754fc 13834else
bec39cab 13835 ac_cpp_err=yes
5ee754fc 13836fi
bec39cab
AC
13837if test -z "$ac_cpp_err"; then
13838 ac_header_preproc=yes
13839else
13840 echo "$as_me: failed program was:" >&5
13841sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 13842
bec39cab 13843 ac_header_preproc=no
5ee754fc 13844fi
bec39cab 13845rm -f conftest.err conftest.$ac_ext
b4e70030
JB
13846echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13847echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
13848
13849# So? What about this header?
13850case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13851 yes:no: )
13852 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13853echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13854 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13855echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13856 ac_header_preproc=yes
13857 ;;
13858 no:yes:* )
13859 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13860echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13861 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13862echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13863 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13864echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13865 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13866echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13868echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13869 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13870echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
13871 (
13872 cat <<\_ASBOX
13873## ------------------------------------------ ##
13874## Report this to the AC_PACKAGE_NAME lists. ##
13875## ------------------------------------------ ##
13876_ASBOX
13877 ) |
13878 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
13879 ;;
13880esac
b4e70030
JB
13881echo "$as_me:$LINENO: checking for $ac_header" >&5
13882echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13883if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 13884 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 13885else
bec39cab 13886 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 13887fi
b4e70030
JB
13888echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13889echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 13890
5ee754fc 13891fi
bec39cab
AC
13892if test `eval echo '${'$as_ac_Header'}'` = yes; then
13893 cat >>confdefs.h <<_ACEOF
13894#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13895_ACEOF
13896
5ee754fc 13897fi
bec39cab 13898
5ee754fc
MK
13899done
13900
bec39cab 13901
7eb368b3
NR
13902for ac_header in sys/resource.h
13903do
13904as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13905if eval "test \"\${$as_ac_Header+set}\" = set"; then
13906 echo "$as_me:$LINENO: checking for $ac_header" >&5
13907echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13908if eval "test \"\${$as_ac_Header+set}\" = set"; then
13909 echo $ECHO_N "(cached) $ECHO_C" >&6
13910fi
13911echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13912echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13913else
13914 # Is the header compilable?
13915echo "$as_me:$LINENO: checking $ac_header usability" >&5
13916echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13917cat >conftest.$ac_ext <<_ACEOF
13918/* confdefs.h. */
13919_ACEOF
13920cat confdefs.h >>conftest.$ac_ext
13921cat >>conftest.$ac_ext <<_ACEOF
13922/* end confdefs.h. */
13923$ac_includes_default
13924#include <$ac_header>
13925_ACEOF
13926rm -f conftest.$ac_objext
13927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13928 (eval $ac_compile) 2>conftest.er1
13929 ac_status=$?
13930 grep -v '^ *+' conftest.er1 >conftest.err
13931 rm -f conftest.er1
13932 cat conftest.err >&5
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); } &&
13935 { ac_try='test -z "$ac_c_werror_flag"
13936 || test ! -s conftest.err'
13937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13938 (eval $ac_try) 2>&5
13939 ac_status=$?
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); }; } &&
13942 { ac_try='test -s conftest.$ac_objext'
13943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13944 (eval $ac_try) 2>&5
13945 ac_status=$?
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); }; }; then
13948 ac_header_compiler=yes
13949else
13950 echo "$as_me: failed program was:" >&5
13951sed 's/^/| /' conftest.$ac_ext >&5
13952
13953ac_header_compiler=no
13954fi
13955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13956echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13957echo "${ECHO_T}$ac_header_compiler" >&6
13958
13959# Is the header present?
13960echo "$as_me:$LINENO: checking $ac_header presence" >&5
13961echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13962cat >conftest.$ac_ext <<_ACEOF
13963/* confdefs.h. */
13964_ACEOF
13965cat confdefs.h >>conftest.$ac_ext
13966cat >>conftest.$ac_ext <<_ACEOF
13967/* end confdefs.h. */
13968#include <$ac_header>
13969_ACEOF
13970if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13971 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13972 ac_status=$?
13973 grep -v '^ *+' conftest.er1 >conftest.err
13974 rm -f conftest.er1
13975 cat conftest.err >&5
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); } >/dev/null; then
13978 if test -s conftest.err; then
13979 ac_cpp_err=$ac_c_preproc_warn_flag
13980 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13981 else
13982 ac_cpp_err=
13983 fi
13984else
13985 ac_cpp_err=yes
13986fi
13987if test -z "$ac_cpp_err"; then
13988 ac_header_preproc=yes
13989else
13990 echo "$as_me: failed program was:" >&5
13991sed 's/^/| /' conftest.$ac_ext >&5
13992
13993 ac_header_preproc=no
13994fi
13995rm -f conftest.err conftest.$ac_ext
13996echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13997echo "${ECHO_T}$ac_header_preproc" >&6
13998
13999# So? What about this header?
14000case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14001 yes:no: )
14002 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14003echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14005echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14006 ac_header_preproc=yes
14007 ;;
14008 no:yes:* )
14009 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14010echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14011 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14012echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14013 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14014echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14015 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14016echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14018echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14019 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14020echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14021 (
14022 cat <<\_ASBOX
14023## ------------------------------------------ ##
14024## Report this to the AC_PACKAGE_NAME lists. ##
14025## ------------------------------------------ ##
14026_ASBOX
14027 ) |
14028 sed "s/^/$as_me: WARNING: /" >&2
14029 ;;
14030esac
14031echo "$as_me:$LINENO: checking for $ac_header" >&5
14032echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14033if eval "test \"\${$as_ac_Header+set}\" = set"; then
14034 echo $ECHO_N "(cached) $ECHO_C" >&6
14035else
14036 eval "$as_ac_Header=\$ac_header_preproc"
14037fi
14038echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14039echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14040
14041fi
14042if test `eval echo '${'$as_ac_Header'}'` = yes; then
14043 cat >>confdefs.h <<_ACEOF
14044#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14045_ACEOF
14046
14047fi
14048
14049done
14050
14051
bec39cab 14052for ac_header in sys/proc.h
5ee754fc 14053do
bec39cab 14054as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14055echo "$as_me:$LINENO: checking for $ac_header" >&5
14056echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14057if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 14058 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 14059else
7cb9022a 14060 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
14061/* confdefs.h. */
14062_ACEOF
14063cat confdefs.h >>conftest.$ac_ext
14064cat >>conftest.$ac_ext <<_ACEOF
14065/* end confdefs.h. */
7cb9022a
MK
14066#if HAVE_SYS_PARAM_H
14067# include <sys/param.h>
14068#endif
14069
14070
bec39cab
AC
14071#include <$ac_header>
14072_ACEOF
14073rm -f conftest.$ac_objext
14074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14075 (eval $ac_compile) 2>conftest.er1
14076 ac_status=$?
14077 grep -v '^ *+' conftest.er1 >conftest.err
14078 rm -f conftest.er1
14079 cat conftest.err >&5
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); } &&
b4e70030
JB
14082 { ac_try='test -z "$ac_c_werror_flag"
14083 || test ! -s conftest.err'
bec39cab
AC
14084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14085 (eval $ac_try) 2>&5
14086 ac_status=$?
14087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088 (exit $ac_status); }; } &&
14089 { ac_try='test -s conftest.$ac_objext'
14090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14091 (eval $ac_try) 2>&5
14092 ac_status=$?
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); }; }; then
7cb9022a 14095 eval "$as_ac_Header=yes"
bec39cab
AC
14096else
14097 echo "$as_me: failed program was:" >&5
14098sed 's/^/| /' conftest.$ac_ext >&5
14099
b4e70030 14100eval "$as_ac_Header=no"
bec39cab
AC
14101fi
14102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 14103fi
b4e70030
JB
14104echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14105echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14106if test `eval echo '${'$as_ac_Header'}'` = yes; then
14107 cat >>confdefs.h <<_ACEOF
14108#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14109_ACEOF
14110
5ee754fc 14111fi
bec39cab 14112
5ee754fc
MK
14113done
14114
bec39cab
AC
14115
14116for ac_header in sys/procfs.h
5ee754fc 14117do
bec39cab 14118as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14119if eval "test \"\${$as_ac_Header+set}\" = set"; then
14120 echo "$as_me:$LINENO: checking for $ac_header" >&5
14121echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14122if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14123 echo $ECHO_N "(cached) $ECHO_C" >&6
14124fi
b4e70030
JB
14125echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14126echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14127else
14128 # Is the header compilable?
b4e70030
JB
14129echo "$as_me:$LINENO: checking $ac_header usability" >&5
14130echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
14131cat >conftest.$ac_ext <<_ACEOF
14132/* confdefs.h. */
14133_ACEOF
14134cat confdefs.h >>conftest.$ac_ext
14135cat >>conftest.$ac_ext <<_ACEOF
14136/* end confdefs.h. */
14137$ac_includes_default
14138#include <$ac_header>
14139_ACEOF
14140rm -f conftest.$ac_objext
14141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14142 (eval $ac_compile) 2>conftest.er1
14143 ac_status=$?
14144 grep -v '^ *+' conftest.er1 >conftest.err
14145 rm -f conftest.er1
14146 cat conftest.err >&5
14147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148 (exit $ac_status); } &&
b4e70030
JB
14149 { ac_try='test -z "$ac_c_werror_flag"
14150 || test ! -s conftest.err'
bec39cab
AC
14151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14152 (eval $ac_try) 2>&5
14153 ac_status=$?
14154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155 (exit $ac_status); }; } &&
14156 { ac_try='test -s conftest.$ac_objext'
14157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14158 (eval $ac_try) 2>&5
14159 ac_status=$?
14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); }; }; then
14162 ac_header_compiler=yes
14163else
14164 echo "$as_me: failed program was:" >&5
14165sed 's/^/| /' conftest.$ac_ext >&5
14166
b4e70030 14167ac_header_compiler=no
bec39cab
AC
14168fi
14169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
14170echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14171echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
14172
14173# Is the header present?
b4e70030
JB
14174echo "$as_me:$LINENO: checking $ac_header presence" >&5
14175echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
14176cat >conftest.$ac_ext <<_ACEOF
14177/* confdefs.h. */
14178_ACEOF
14179cat confdefs.h >>conftest.$ac_ext
14180cat >>conftest.$ac_ext <<_ACEOF
14181/* end confdefs.h. */
14182#include <$ac_header>
14183_ACEOF
14184if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14185 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14186 ac_status=$?
14187 grep -v '^ *+' conftest.er1 >conftest.err
14188 rm -f conftest.er1
14189 cat conftest.err >&5
14190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191 (exit $ac_status); } >/dev/null; then
14192 if test -s conftest.err; then
14193 ac_cpp_err=$ac_c_preproc_warn_flag
14194 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14195 else
14196 ac_cpp_err=
14197 fi
14198else
14199 ac_cpp_err=yes
5ee754fc 14200fi
bec39cab
AC
14201if test -z "$ac_cpp_err"; then
14202 ac_header_preproc=yes
5ee754fc 14203else
bec39cab
AC
14204 echo "$as_me: failed program was:" >&5
14205sed 's/^/| /' conftest.$ac_ext >&5
14206
14207 ac_header_preproc=no
5ee754fc 14208fi
bec39cab 14209rm -f conftest.err conftest.$ac_ext
b4e70030
JB
14210echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14211echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 14212
bec39cab
AC
14213# So? What about this header?
14214case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14215 yes:no: )
14216 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14217echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14219echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14220 ac_header_preproc=yes
14221 ;;
14222 no:yes:* )
14223 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14224echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14225 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14226echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14227 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14228echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14229 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14230echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14232echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14233 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14234echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
14235 (
14236 cat <<\_ASBOX
14237## ------------------------------------------ ##
14238## Report this to the AC_PACKAGE_NAME lists. ##
14239## ------------------------------------------ ##
14240_ASBOX
14241 ) |
14242 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
14243 ;;
14244esac
b4e70030
JB
14245echo "$as_me:$LINENO: checking for $ac_header" >&5
14246echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14247if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14248 echo $ECHO_N "(cached) $ECHO_C" >&6
14249else
14250 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 14251fi
b4e70030
JB
14252echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14253echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 14254
5ee754fc 14255fi
bec39cab
AC
14256if test `eval echo '${'$as_ac_Header'}'` = yes; then
14257 cat >>confdefs.h <<_ACEOF
14258#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14259_ACEOF
14260
5ee754fc 14261fi
bec39cab 14262
5ee754fc
MK
14263done
14264
bec39cab
AC
14265
14266
14267for ac_header in sys/ptrace.h ptrace.h
5ee754fc 14268do
bec39cab 14269as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14270if eval "test \"\${$as_ac_Header+set}\" = set"; then
14271 echo "$as_me:$LINENO: checking for $ac_header" >&5
14272echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14273if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14274 echo $ECHO_N "(cached) $ECHO_C" >&6
14275fi
b4e70030
JB
14276echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14277echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14278else
14279 # Is the header compilable?
b4e70030
JB
14280echo "$as_me:$LINENO: checking $ac_header usability" >&5
14281echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
14282cat >conftest.$ac_ext <<_ACEOF
14283/* confdefs.h. */
14284_ACEOF
14285cat confdefs.h >>conftest.$ac_ext
14286cat >>conftest.$ac_ext <<_ACEOF
14287/* end confdefs.h. */
14288$ac_includes_default
14289#include <$ac_header>
14290_ACEOF
14291rm -f conftest.$ac_objext
14292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14293 (eval $ac_compile) 2>conftest.er1
14294 ac_status=$?
14295 grep -v '^ *+' conftest.er1 >conftest.err
14296 rm -f conftest.er1
14297 cat conftest.err >&5
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); } &&
b4e70030
JB
14300 { ac_try='test -z "$ac_c_werror_flag"
14301 || test ! -s conftest.err'
bec39cab
AC
14302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14303 (eval $ac_try) 2>&5
14304 ac_status=$?
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); }; } &&
14307 { ac_try='test -s conftest.$ac_objext'
14308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14309 (eval $ac_try) 2>&5
14310 ac_status=$?
14311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14312 (exit $ac_status); }; }; then
14313 ac_header_compiler=yes
14314else
14315 echo "$as_me: failed program was:" >&5
14316sed 's/^/| /' conftest.$ac_ext >&5
14317
b4e70030 14318ac_header_compiler=no
bec39cab
AC
14319fi
14320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
14321echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14322echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
14323
14324# Is the header present?
b4e70030
JB
14325echo "$as_me:$LINENO: checking $ac_header presence" >&5
14326echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
14327cat >conftest.$ac_ext <<_ACEOF
14328/* confdefs.h. */
14329_ACEOF
14330cat confdefs.h >>conftest.$ac_ext
14331cat >>conftest.$ac_ext <<_ACEOF
14332/* end confdefs.h. */
14333#include <$ac_header>
14334_ACEOF
14335if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14336 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14337 ac_status=$?
14338 grep -v '^ *+' conftest.er1 >conftest.err
14339 rm -f conftest.er1
14340 cat conftest.err >&5
14341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 (exit $ac_status); } >/dev/null; then
14343 if test -s conftest.err; then
14344 ac_cpp_err=$ac_c_preproc_warn_flag
14345 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14346 else
14347 ac_cpp_err=
14348 fi
14349else
14350 ac_cpp_err=yes
5ee754fc 14351fi
bec39cab
AC
14352if test -z "$ac_cpp_err"; then
14353 ac_header_preproc=yes
5ee754fc 14354else
bec39cab
AC
14355 echo "$as_me: failed program was:" >&5
14356sed 's/^/| /' conftest.$ac_ext >&5
14357
14358 ac_header_preproc=no
5ee754fc 14359fi
bec39cab 14360rm -f conftest.err conftest.$ac_ext
b4e70030
JB
14361echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14362echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 14363
bec39cab
AC
14364# So? What about this header?
14365case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14366 yes:no: )
14367 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14368echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14370echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14371 ac_header_preproc=yes
14372 ;;
14373 no:yes:* )
14374 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14375echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14376 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14377echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14378 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14379echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14380 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14381echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14383echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14384 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14385echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
14386 (
14387 cat <<\_ASBOX
14388## ------------------------------------------ ##
14389## Report this to the AC_PACKAGE_NAME lists. ##
14390## ------------------------------------------ ##
14391_ASBOX
14392 ) |
14393 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
14394 ;;
14395esac
b4e70030
JB
14396echo "$as_me:$LINENO: checking for $ac_header" >&5
14397echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14398if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14399 echo $ECHO_N "(cached) $ECHO_C" >&6
14400else
14401 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 14402fi
b4e70030
JB
14403echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14404echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 14405
5ee754fc 14406fi
bec39cab
AC
14407if test `eval echo '${'$as_ac_Header'}'` = yes; then
14408 cat >>confdefs.h <<_ACEOF
14409#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14410_ACEOF
14411
5ee754fc 14412fi
bec39cab 14413
5ee754fc
MK
14414done
14415
bec39cab
AC
14416
14417
14418for ac_header in sys/reg.h sys/debugreg.h
5ee754fc 14419do
bec39cab 14420as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14421if eval "test \"\${$as_ac_Header+set}\" = set"; then
14422 echo "$as_me:$LINENO: checking for $ac_header" >&5
14423echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14424if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14425 echo $ECHO_N "(cached) $ECHO_C" >&6
14426fi
b4e70030
JB
14427echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14428echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14429else
14430 # Is the header compilable?
b4e70030
JB
14431echo "$as_me:$LINENO: checking $ac_header usability" >&5
14432echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
14433cat >conftest.$ac_ext <<_ACEOF
14434/* confdefs.h. */
14435_ACEOF
14436cat confdefs.h >>conftest.$ac_ext
14437cat >>conftest.$ac_ext <<_ACEOF
14438/* end confdefs.h. */
14439$ac_includes_default
14440#include <$ac_header>
14441_ACEOF
14442rm -f conftest.$ac_objext
14443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14444 (eval $ac_compile) 2>conftest.er1
14445 ac_status=$?
14446 grep -v '^ *+' conftest.er1 >conftest.err
14447 rm -f conftest.er1
14448 cat conftest.err >&5
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); } &&
b4e70030
JB
14451 { ac_try='test -z "$ac_c_werror_flag"
14452 || test ! -s conftest.err'
bec39cab
AC
14453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14454 (eval $ac_try) 2>&5
14455 ac_status=$?
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); }; } &&
14458 { ac_try='test -s conftest.$ac_objext'
14459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14460 (eval $ac_try) 2>&5
14461 ac_status=$?
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); }; }; then
14464 ac_header_compiler=yes
14465else
14466 echo "$as_me: failed program was:" >&5
14467sed 's/^/| /' conftest.$ac_ext >&5
14468
b4e70030 14469ac_header_compiler=no
bec39cab
AC
14470fi
14471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
14472echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14473echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
14474
14475# Is the header present?
b4e70030
JB
14476echo "$as_me:$LINENO: checking $ac_header presence" >&5
14477echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
14478cat >conftest.$ac_ext <<_ACEOF
14479/* confdefs.h. */
14480_ACEOF
14481cat confdefs.h >>conftest.$ac_ext
14482cat >>conftest.$ac_ext <<_ACEOF
14483/* end confdefs.h. */
14484#include <$ac_header>
14485_ACEOF
14486if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14487 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14488 ac_status=$?
14489 grep -v '^ *+' conftest.er1 >conftest.err
14490 rm -f conftest.er1
14491 cat conftest.err >&5
14492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); } >/dev/null; then
14494 if test -s conftest.err; then
14495 ac_cpp_err=$ac_c_preproc_warn_flag
14496 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14497 else
14498 ac_cpp_err=
14499 fi
14500else
14501 ac_cpp_err=yes
5ee754fc 14502fi
bec39cab
AC
14503if test -z "$ac_cpp_err"; then
14504 ac_header_preproc=yes
5ee754fc 14505else
bec39cab
AC
14506 echo "$as_me: failed program was:" >&5
14507sed 's/^/| /' conftest.$ac_ext >&5
14508
14509 ac_header_preproc=no
5ee754fc 14510fi
bec39cab 14511rm -f conftest.err conftest.$ac_ext
b4e70030
JB
14512echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14513echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 14514
bec39cab
AC
14515# So? What about this header?
14516case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14517 yes:no: )
14518 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14519echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14521echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14522 ac_header_preproc=yes
14523 ;;
14524 no:yes:* )
14525 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14526echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14527 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14528echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14529 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14530echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14531 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14532echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14534echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14535 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14536echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
14537 (
14538 cat <<\_ASBOX
14539## ------------------------------------------ ##
14540## Report this to the AC_PACKAGE_NAME lists. ##
14541## ------------------------------------------ ##
14542_ASBOX
14543 ) |
14544 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
14545 ;;
14546esac
b4e70030
JB
14547echo "$as_me:$LINENO: checking for $ac_header" >&5
14548echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14549if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14550 echo $ECHO_N "(cached) $ECHO_C" >&6
14551else
14552 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 14553fi
b4e70030
JB
14554echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14555echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 14556
5ee754fc 14557fi
bec39cab
AC
14558if test `eval echo '${'$as_ac_Header'}'` = yes; then
14559 cat >>confdefs.h <<_ACEOF
14560#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14561_ACEOF
14562
5ee754fc 14563fi
bec39cab 14564
5ee754fc
MK
14565done
14566
bec39cab
AC
14567
14568for ac_header in sys/select.h
5ee754fc 14569do
bec39cab 14570as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14571if eval "test \"\${$as_ac_Header+set}\" = set"; then
14572 echo "$as_me:$LINENO: checking for $ac_header" >&5
14573echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14574if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14575 echo $ECHO_N "(cached) $ECHO_C" >&6
14576fi
b4e70030
JB
14577echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14578echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14579else
14580 # Is the header compilable?
b4e70030
JB
14581echo "$as_me:$LINENO: checking $ac_header usability" >&5
14582echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
14583cat >conftest.$ac_ext <<_ACEOF
14584/* confdefs.h. */
14585_ACEOF
14586cat confdefs.h >>conftest.$ac_ext
14587cat >>conftest.$ac_ext <<_ACEOF
14588/* end confdefs.h. */
14589$ac_includes_default
14590#include <$ac_header>
14591_ACEOF
14592rm -f conftest.$ac_objext
14593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14594 (eval $ac_compile) 2>conftest.er1
14595 ac_status=$?
14596 grep -v '^ *+' conftest.er1 >conftest.err
14597 rm -f conftest.er1
14598 cat conftest.err >&5
14599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600 (exit $ac_status); } &&
b4e70030
JB
14601 { ac_try='test -z "$ac_c_werror_flag"
14602 || test ! -s conftest.err'
bec39cab
AC
14603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14604 (eval $ac_try) 2>&5
14605 ac_status=$?
14606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607 (exit $ac_status); }; } &&
14608 { ac_try='test -s conftest.$ac_objext'
14609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14610 (eval $ac_try) 2>&5
14611 ac_status=$?
14612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14613 (exit $ac_status); }; }; then
14614 ac_header_compiler=yes
14615else
14616 echo "$as_me: failed program was:" >&5
14617sed 's/^/| /' conftest.$ac_ext >&5
14618
b4e70030 14619ac_header_compiler=no
bec39cab
AC
14620fi
14621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
14622echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14623echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
14624
14625# Is the header present?
b4e70030
JB
14626echo "$as_me:$LINENO: checking $ac_header presence" >&5
14627echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
14628cat >conftest.$ac_ext <<_ACEOF
14629/* confdefs.h. */
14630_ACEOF
14631cat confdefs.h >>conftest.$ac_ext
14632cat >>conftest.$ac_ext <<_ACEOF
14633/* end confdefs.h. */
14634#include <$ac_header>
14635_ACEOF
14636if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14637 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14638 ac_status=$?
14639 grep -v '^ *+' conftest.er1 >conftest.err
14640 rm -f conftest.er1
14641 cat conftest.err >&5
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); } >/dev/null; then
14644 if test -s conftest.err; then
14645 ac_cpp_err=$ac_c_preproc_warn_flag
14646 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14647 else
14648 ac_cpp_err=
14649 fi
14650else
14651 ac_cpp_err=yes
5ee754fc 14652fi
bec39cab
AC
14653if test -z "$ac_cpp_err"; then
14654 ac_header_preproc=yes
5ee754fc 14655else
bec39cab
AC
14656 echo "$as_me: failed program was:" >&5
14657sed 's/^/| /' conftest.$ac_ext >&5
14658
14659 ac_header_preproc=no
5ee754fc 14660fi
bec39cab 14661rm -f conftest.err conftest.$ac_ext
b4e70030
JB
14662echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14663echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 14664
bec39cab
AC
14665# So? What about this header?
14666case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14667 yes:no: )
14668 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14669echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14671echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14672 ac_header_preproc=yes
14673 ;;
14674 no:yes:* )
14675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14676echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14678echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14679 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14680echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14681 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14682echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14684echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14685 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14686echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
14687 (
14688 cat <<\_ASBOX
14689## ------------------------------------------ ##
14690## Report this to the AC_PACKAGE_NAME lists. ##
14691## ------------------------------------------ ##
14692_ASBOX
14693 ) |
14694 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
14695 ;;
14696esac
b4e70030
JB
14697echo "$as_me:$LINENO: checking for $ac_header" >&5
14698echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14699if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14700 echo $ECHO_N "(cached) $ECHO_C" >&6
14701else
14702 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 14703fi
b4e70030
JB
14704echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14705echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 14706
5ee754fc 14707fi
bec39cab
AC
14708if test `eval echo '${'$as_ac_Header'}'` = yes; then
14709 cat >>confdefs.h <<_ACEOF
14710#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14711_ACEOF
14712
5ee754fc 14713fi
bec39cab 14714
5ee754fc
MK
14715done
14716
bec39cab
AC
14717
14718for ac_header in sys/syscall.h
5ee754fc 14719do
bec39cab 14720as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14721if eval "test \"\${$as_ac_Header+set}\" = set"; then
14722 echo "$as_me:$LINENO: checking for $ac_header" >&5
14723echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14724if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14725 echo $ECHO_N "(cached) $ECHO_C" >&6
14726fi
b4e70030
JB
14727echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14728echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14729else
14730 # Is the header compilable?
b4e70030
JB
14731echo "$as_me:$LINENO: checking $ac_header usability" >&5
14732echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
14733cat >conftest.$ac_ext <<_ACEOF
14734/* confdefs.h. */
14735_ACEOF
14736cat confdefs.h >>conftest.$ac_ext
14737cat >>conftest.$ac_ext <<_ACEOF
14738/* end confdefs.h. */
14739$ac_includes_default
14740#include <$ac_header>
14741_ACEOF
14742rm -f conftest.$ac_objext
14743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14744 (eval $ac_compile) 2>conftest.er1
14745 ac_status=$?
14746 grep -v '^ *+' conftest.er1 >conftest.err
14747 rm -f conftest.er1
14748 cat conftest.err >&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); } &&
b4e70030
JB
14751 { ac_try='test -z "$ac_c_werror_flag"
14752 || test ! -s conftest.err'
bec39cab
AC
14753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14754 (eval $ac_try) 2>&5
14755 ac_status=$?
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); }; } &&
14758 { ac_try='test -s conftest.$ac_objext'
14759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14760 (eval $ac_try) 2>&5
14761 ac_status=$?
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); }; }; then
14764 ac_header_compiler=yes
14765else
14766 echo "$as_me: failed program was:" >&5
14767sed 's/^/| /' conftest.$ac_ext >&5
14768
b4e70030 14769ac_header_compiler=no
bec39cab
AC
14770fi
14771rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
14772echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14773echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
14774
14775# Is the header present?
b4e70030
JB
14776echo "$as_me:$LINENO: checking $ac_header presence" >&5
14777echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
14778cat >conftest.$ac_ext <<_ACEOF
14779/* confdefs.h. */
14780_ACEOF
14781cat confdefs.h >>conftest.$ac_ext
14782cat >>conftest.$ac_ext <<_ACEOF
14783/* end confdefs.h. */
14784#include <$ac_header>
14785_ACEOF
14786if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14787 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14788 ac_status=$?
14789 grep -v '^ *+' conftest.er1 >conftest.err
14790 rm -f conftest.er1
14791 cat conftest.err >&5
14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 (exit $ac_status); } >/dev/null; then
14794 if test -s conftest.err; then
14795 ac_cpp_err=$ac_c_preproc_warn_flag
14796 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14797 else
14798 ac_cpp_err=
14799 fi
14800else
14801 ac_cpp_err=yes
5ee754fc 14802fi
bec39cab
AC
14803if test -z "$ac_cpp_err"; then
14804 ac_header_preproc=yes
5ee754fc 14805else
bec39cab
AC
14806 echo "$as_me: failed program was:" >&5
14807sed 's/^/| /' conftest.$ac_ext >&5
14808
14809 ac_header_preproc=no
5ee754fc 14810fi
bec39cab 14811rm -f conftest.err conftest.$ac_ext
b4e70030
JB
14812echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14813echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 14814
bec39cab
AC
14815# So? What about this header?
14816case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14817 yes:no: )
14818 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14819echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14821echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14822 ac_header_preproc=yes
14823 ;;
14824 no:yes:* )
14825 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14826echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14827 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14828echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14829 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14830echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14831 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14832echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14834echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14835 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14836echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
14837 (
14838 cat <<\_ASBOX
14839## ------------------------------------------ ##
14840## Report this to the AC_PACKAGE_NAME lists. ##
14841## ------------------------------------------ ##
14842_ASBOX
14843 ) |
14844 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
14845 ;;
14846esac
b4e70030
JB
14847echo "$as_me:$LINENO: checking for $ac_header" >&5
14848echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14849if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14850 echo $ECHO_N "(cached) $ECHO_C" >&6
14851else
14852 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 14853fi
b4e70030
JB
14854echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14855echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 14856
5ee754fc 14857fi
bec39cab
AC
14858if test `eval echo '${'$as_ac_Header'}'` = yes; then
14859 cat >>confdefs.h <<_ACEOF
14860#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14861_ACEOF
14862
5ee754fc 14863fi
bec39cab 14864
5ee754fc
MK
14865done
14866
bec39cab
AC
14867
14868for ac_header in sys/types.h
5ee754fc 14869do
bec39cab 14870as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
14871if eval "test \"\${$as_ac_Header+set}\" = set"; then
14872 echo "$as_me:$LINENO: checking for $ac_header" >&5
14873echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14874if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
14875 echo $ECHO_N "(cached) $ECHO_C" >&6
14876fi
b4e70030
JB
14877echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14878echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
14879else
14880 # Is the header compilable?
b4e70030
JB
14881echo "$as_me:$LINENO: checking $ac_header usability" >&5
14882echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
14883cat >conftest.$ac_ext <<_ACEOF
14884/* confdefs.h. */
14885_ACEOF
14886cat confdefs.h >>conftest.$ac_ext
14887cat >>conftest.$ac_ext <<_ACEOF
14888/* end confdefs.h. */
14889$ac_includes_default
14890#include <$ac_header>
14891_ACEOF
14892rm -f conftest.$ac_objext
14893if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14894 (eval $ac_compile) 2>conftest.er1
14895 ac_status=$?
14896 grep -v '^ *+' conftest.er1 >conftest.err
14897 rm -f conftest.er1
14898 cat conftest.err >&5
14899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); } &&
b4e70030
JB
14901 { ac_try='test -z "$ac_c_werror_flag"
14902 || test ! -s conftest.err'
bec39cab
AC
14903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14904 (eval $ac_try) 2>&5
14905 ac_status=$?
14906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14907 (exit $ac_status); }; } &&
14908 { ac_try='test -s conftest.$ac_objext'
14909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14910 (eval $ac_try) 2>&5
14911 ac_status=$?
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); }; }; then
14914 ac_header_compiler=yes
14915else
14916 echo "$as_me: failed program was:" >&5
14917sed 's/^/| /' conftest.$ac_ext >&5
14918
b4e70030 14919ac_header_compiler=no
bec39cab
AC
14920fi
14921rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
14922echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14923echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
14924
14925# Is the header present?
b4e70030
JB
14926echo "$as_me:$LINENO: checking $ac_header presence" >&5
14927echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
14928cat >conftest.$ac_ext <<_ACEOF
14929/* confdefs.h. */
14930_ACEOF
14931cat confdefs.h >>conftest.$ac_ext
14932cat >>conftest.$ac_ext <<_ACEOF
14933/* end confdefs.h. */
14934#include <$ac_header>
14935_ACEOF
14936if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14937 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14938 ac_status=$?
14939 grep -v '^ *+' conftest.er1 >conftest.err
14940 rm -f conftest.er1
14941 cat conftest.err >&5
14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943 (exit $ac_status); } >/dev/null; then
14944 if test -s conftest.err; then
14945 ac_cpp_err=$ac_c_preproc_warn_flag
14946 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14947 else
14948 ac_cpp_err=
14949 fi
14950else
14951 ac_cpp_err=yes
5ee754fc 14952fi
bec39cab
AC
14953if test -z "$ac_cpp_err"; then
14954 ac_header_preproc=yes
5ee754fc 14955else
bec39cab
AC
14956 echo "$as_me: failed program was:" >&5
14957sed 's/^/| /' conftest.$ac_ext >&5
14958
14959 ac_header_preproc=no
5ee754fc 14960fi
bec39cab 14961rm -f conftest.err conftest.$ac_ext
b4e70030
JB
14962echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14963echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 14964
bec39cab
AC
14965# So? What about this header?
14966case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14967 yes:no: )
14968 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14969echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14971echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14972 ac_header_preproc=yes
14973 ;;
14974 no:yes:* )
14975 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14976echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14977 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14978echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14979 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14980echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14981 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14982echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14983 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14984echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14985 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14986echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
14987 (
14988 cat <<\_ASBOX
14989## ------------------------------------------ ##
14990## Report this to the AC_PACKAGE_NAME lists. ##
14991## ------------------------------------------ ##
14992_ASBOX
14993 ) |
14994 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
14995 ;;
14996esac
b4e70030
JB
14997echo "$as_me:$LINENO: checking for $ac_header" >&5
14998echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14999if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15000 echo $ECHO_N "(cached) $ECHO_C" >&6
15001else
15002 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 15003fi
b4e70030
JB
15004echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15005echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 15006
5ee754fc 15007fi
bec39cab
AC
15008if test `eval echo '${'$as_ac_Header'}'` = yes; then
15009 cat >>confdefs.h <<_ACEOF
15010#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15011_ACEOF
15012
5ee754fc 15013fi
bec39cab 15014
5ee754fc
MK
15015done
15016
bec39cab
AC
15017
15018for ac_header in sys/user.h
5ee754fc 15019do
bec39cab 15020as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15021echo "$as_me:$LINENO: checking for $ac_header" >&5
15022echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15023if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 15024 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 15025else
7cb9022a 15026 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
15027/* confdefs.h. */
15028_ACEOF
15029cat confdefs.h >>conftest.$ac_ext
15030cat >>conftest.$ac_ext <<_ACEOF
15031/* end confdefs.h. */
7cb9022a
MK
15032#if HAVE_SYS_PARAM_H
15033# include <sys/param.h>
15034#endif
15035
15036
bec39cab
AC
15037#include <$ac_header>
15038_ACEOF
15039rm -f conftest.$ac_objext
15040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15041 (eval $ac_compile) 2>conftest.er1
15042 ac_status=$?
15043 grep -v '^ *+' conftest.er1 >conftest.err
15044 rm -f conftest.er1
15045 cat conftest.err >&5
15046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15047 (exit $ac_status); } &&
b4e70030
JB
15048 { ac_try='test -z "$ac_c_werror_flag"
15049 || test ! -s conftest.err'
bec39cab
AC
15050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15051 (eval $ac_try) 2>&5
15052 ac_status=$?
15053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054 (exit $ac_status); }; } &&
15055 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
7cb9022a 15061 eval "$as_ac_Header=yes"
bec39cab
AC
15062else
15063 echo "$as_me: failed program was:" >&5
15064sed 's/^/| /' conftest.$ac_ext >&5
15065
b4e70030 15066eval "$as_ac_Header=no"
bec39cab
AC
15067fi
15068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 15069fi
b4e70030
JB
15070echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15071echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15072if test `eval echo '${'$as_ac_Header'}'` = yes; then
15073 cat >>confdefs.h <<_ACEOF
15074#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15075_ACEOF
15076
5ee754fc 15077fi
bec39cab 15078
5ee754fc
MK
15079done
15080
bec39cab
AC
15081
15082
15083for ac_header in sys/wait.h wait.h
5ee754fc 15084do
bec39cab 15085as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15086if eval "test \"\${$as_ac_Header+set}\" = set"; then
15087 echo "$as_me:$LINENO: checking for $ac_header" >&5
15088echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15089if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15090 echo $ECHO_N "(cached) $ECHO_C" >&6
15091fi
b4e70030
JB
15092echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15093echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15094else
15095 # Is the header compilable?
b4e70030
JB
15096echo "$as_me:$LINENO: checking $ac_header usability" >&5
15097echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
15098cat >conftest.$ac_ext <<_ACEOF
15099/* confdefs.h. */
15100_ACEOF
15101cat confdefs.h >>conftest.$ac_ext
15102cat >>conftest.$ac_ext <<_ACEOF
15103/* end confdefs.h. */
15104$ac_includes_default
15105#include <$ac_header>
15106_ACEOF
15107rm -f conftest.$ac_objext
15108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15109 (eval $ac_compile) 2>conftest.er1
15110 ac_status=$?
15111 grep -v '^ *+' conftest.er1 >conftest.err
15112 rm -f conftest.er1
15113 cat conftest.err >&5
15114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115 (exit $ac_status); } &&
b4e70030
JB
15116 { ac_try='test -z "$ac_c_werror_flag"
15117 || test ! -s conftest.err'
bec39cab
AC
15118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15119 (eval $ac_try) 2>&5
15120 ac_status=$?
15121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15122 (exit $ac_status); }; } &&
15123 { ac_try='test -s conftest.$ac_objext'
15124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15125 (eval $ac_try) 2>&5
15126 ac_status=$?
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); }; }; then
15129 ac_header_compiler=yes
15130else
15131 echo "$as_me: failed program was:" >&5
15132sed 's/^/| /' conftest.$ac_ext >&5
15133
b4e70030 15134ac_header_compiler=no
bec39cab
AC
15135fi
15136rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15137echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15138echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15139
15140# Is the header present?
b4e70030
JB
15141echo "$as_me:$LINENO: checking $ac_header presence" >&5
15142echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15143cat >conftest.$ac_ext <<_ACEOF
15144/* confdefs.h. */
15145_ACEOF
15146cat confdefs.h >>conftest.$ac_ext
15147cat >>conftest.$ac_ext <<_ACEOF
15148/* end confdefs.h. */
15149#include <$ac_header>
15150_ACEOF
15151if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15152 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15153 ac_status=$?
15154 grep -v '^ *+' conftest.er1 >conftest.err
15155 rm -f conftest.er1
15156 cat conftest.err >&5
15157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158 (exit $ac_status); } >/dev/null; then
15159 if test -s conftest.err; then
15160 ac_cpp_err=$ac_c_preproc_warn_flag
15161 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15162 else
15163 ac_cpp_err=
15164 fi
15165else
15166 ac_cpp_err=yes
5ee754fc 15167fi
bec39cab
AC
15168if test -z "$ac_cpp_err"; then
15169 ac_header_preproc=yes
5ee754fc 15170else
bec39cab
AC
15171 echo "$as_me: failed program was:" >&5
15172sed 's/^/| /' conftest.$ac_ext >&5
15173
15174 ac_header_preproc=no
5ee754fc 15175fi
bec39cab 15176rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15177echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15178echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 15179
bec39cab
AC
15180# So? What about this header?
15181case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15182 yes:no: )
15183 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15184echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15186echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15187 ac_header_preproc=yes
15188 ;;
15189 no:yes:* )
15190 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15191echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15192 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15193echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15194 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15195echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15196 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15197echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15199echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15200 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15201echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15202 (
15203 cat <<\_ASBOX
15204## ------------------------------------------ ##
15205## Report this to the AC_PACKAGE_NAME lists. ##
15206## ------------------------------------------ ##
15207_ASBOX
15208 ) |
15209 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
15210 ;;
15211esac
b4e70030
JB
15212echo "$as_me:$LINENO: checking for $ac_header" >&5
15213echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15214if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15215 echo $ECHO_N "(cached) $ECHO_C" >&6
15216else
15217 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 15218fi
b4e70030
JB
15219echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15220echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 15221
9608ab8b 15222fi
bec39cab
AC
15223if test `eval echo '${'$as_ac_Header'}'` = yes; then
15224 cat >>confdefs.h <<_ACEOF
15225#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15226_ACEOF
15227
9608ab8b 15228fi
bec39cab 15229
9608ab8b 15230done
5ee754fc 15231
bec39cab
AC
15232
15233
15234
15235for ac_header in termios.h termio.h sgtty.h
5ee754fc 15236do
bec39cab 15237as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15238if eval "test \"\${$as_ac_Header+set}\" = set"; then
15239 echo "$as_me:$LINENO: checking for $ac_header" >&5
15240echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15241if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15242 echo $ECHO_N "(cached) $ECHO_C" >&6
15243fi
b4e70030
JB
15244echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15245echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15246else
15247 # Is the header compilable?
b4e70030
JB
15248echo "$as_me:$LINENO: checking $ac_header usability" >&5
15249echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
15250cat >conftest.$ac_ext <<_ACEOF
15251/* confdefs.h. */
15252_ACEOF
15253cat confdefs.h >>conftest.$ac_ext
15254cat >>conftest.$ac_ext <<_ACEOF
15255/* end confdefs.h. */
15256$ac_includes_default
15257#include <$ac_header>
15258_ACEOF
15259rm -f conftest.$ac_objext
15260if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15261 (eval $ac_compile) 2>conftest.er1
15262 ac_status=$?
15263 grep -v '^ *+' conftest.er1 >conftest.err
15264 rm -f conftest.er1
15265 cat conftest.err >&5
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); } &&
b4e70030
JB
15268 { ac_try='test -z "$ac_c_werror_flag"
15269 || test ! -s conftest.err'
bec39cab
AC
15270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15271 (eval $ac_try) 2>&5
15272 ac_status=$?
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); }; } &&
15275 { ac_try='test -s conftest.$ac_objext'
15276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15277 (eval $ac_try) 2>&5
15278 ac_status=$?
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); }; }; then
15281 ac_header_compiler=yes
15282else
15283 echo "$as_me: failed program was:" >&5
15284sed 's/^/| /' conftest.$ac_ext >&5
15285
b4e70030 15286ac_header_compiler=no
bec39cab
AC
15287fi
15288rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15289echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15290echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15291
15292# Is the header present?
b4e70030
JB
15293echo "$as_me:$LINENO: checking $ac_header presence" >&5
15294echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15295cat >conftest.$ac_ext <<_ACEOF
15296/* confdefs.h. */
15297_ACEOF
15298cat confdefs.h >>conftest.$ac_ext
15299cat >>conftest.$ac_ext <<_ACEOF
15300/* end confdefs.h. */
15301#include <$ac_header>
15302_ACEOF
15303if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15304 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15305 ac_status=$?
15306 grep -v '^ *+' conftest.er1 >conftest.err
15307 rm -f conftest.er1
15308 cat conftest.err >&5
15309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); } >/dev/null; then
15311 if test -s conftest.err; then
15312 ac_cpp_err=$ac_c_preproc_warn_flag
15313 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15314 else
15315 ac_cpp_err=
15316 fi
15317else
15318 ac_cpp_err=yes
9608ab8b 15319fi
bec39cab
AC
15320if test -z "$ac_cpp_err"; then
15321 ac_header_preproc=yes
9608ab8b 15322else
bec39cab
AC
15323 echo "$as_me: failed program was:" >&5
15324sed 's/^/| /' conftest.$ac_ext >&5
15325
15326 ac_header_preproc=no
9608ab8b 15327fi
bec39cab 15328rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15329echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15330echo "${ECHO_T}$ac_header_preproc" >&6
9608ab8b 15331
bec39cab
AC
15332# So? What about this header?
15333case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15334 yes:no: )
15335 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15336echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15338echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15339 ac_header_preproc=yes
15340 ;;
15341 no:yes:* )
15342 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15343echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15344 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15345echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15346 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15347echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15348 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15349echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15351echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15352 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15353echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15354 (
15355 cat <<\_ASBOX
15356## ------------------------------------------ ##
15357## Report this to the AC_PACKAGE_NAME lists. ##
15358## ------------------------------------------ ##
15359_ASBOX
15360 ) |
15361 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
15362 ;;
15363esac
b4e70030
JB
15364echo "$as_me:$LINENO: checking for $ac_header" >&5
15365echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15366if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15367 echo $ECHO_N "(cached) $ECHO_C" >&6
15368else
15369 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 15370fi
b4e70030
JB
15371echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15372echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 15373
9608ab8b 15374fi
bec39cab
AC
15375if test `eval echo '${'$as_ac_Header'}'` = yes; then
15376 cat >>confdefs.h <<_ACEOF
15377#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15378_ACEOF
15379
9608ab8b 15380fi
bec39cab 15381
5ee754fc 15382done
9608ab8b 15383
bec39cab
AC
15384
15385for ac_header in unistd.h
78434e59 15386do
bec39cab 15387as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15388if eval "test \"\${$as_ac_Header+set}\" = set"; then
15389 echo "$as_me:$LINENO: checking for $ac_header" >&5
15390echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15391if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15392 echo $ECHO_N "(cached) $ECHO_C" >&6
15393fi
b4e70030
JB
15394echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15395echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15396else
15397 # Is the header compilable?
b4e70030
JB
15398echo "$as_me:$LINENO: checking $ac_header usability" >&5
15399echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
15400cat >conftest.$ac_ext <<_ACEOF
15401/* confdefs.h. */
15402_ACEOF
15403cat confdefs.h >>conftest.$ac_ext
15404cat >>conftest.$ac_ext <<_ACEOF
15405/* end confdefs.h. */
15406$ac_includes_default
15407#include <$ac_header>
15408_ACEOF
15409rm -f conftest.$ac_objext
15410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15411 (eval $ac_compile) 2>conftest.er1
15412 ac_status=$?
15413 grep -v '^ *+' conftest.er1 >conftest.err
15414 rm -f conftest.er1
15415 cat conftest.err >&5
15416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417 (exit $ac_status); } &&
b4e70030
JB
15418 { ac_try='test -z "$ac_c_werror_flag"
15419 || test ! -s conftest.err'
bec39cab
AC
15420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15421 (eval $ac_try) 2>&5
15422 ac_status=$?
15423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 (exit $ac_status); }; } &&
15425 { ac_try='test -s conftest.$ac_objext'
15426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15427 (eval $ac_try) 2>&5
15428 ac_status=$?
15429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430 (exit $ac_status); }; }; then
15431 ac_header_compiler=yes
15432else
15433 echo "$as_me: failed program was:" >&5
15434sed 's/^/| /' conftest.$ac_ext >&5
15435
b4e70030 15436ac_header_compiler=no
bec39cab
AC
15437fi
15438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15439echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15440echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15441
15442# Is the header present?
b4e70030
JB
15443echo "$as_me:$LINENO: checking $ac_header presence" >&5
15444echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15445cat >conftest.$ac_ext <<_ACEOF
15446/* confdefs.h. */
15447_ACEOF
15448cat confdefs.h >>conftest.$ac_ext
15449cat >>conftest.$ac_ext <<_ACEOF
15450/* end confdefs.h. */
15451#include <$ac_header>
15452_ACEOF
15453if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15454 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15455 ac_status=$?
15456 grep -v '^ *+' conftest.er1 >conftest.err
15457 rm -f conftest.er1
15458 cat conftest.err >&5
15459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460 (exit $ac_status); } >/dev/null; then
15461 if test -s conftest.err; then
15462 ac_cpp_err=$ac_c_preproc_warn_flag
15463 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15464 else
15465 ac_cpp_err=
15466 fi
15467else
15468 ac_cpp_err=yes
78434e59 15469fi
bec39cab
AC
15470if test -z "$ac_cpp_err"; then
15471 ac_header_preproc=yes
78434e59 15472else
bec39cab
AC
15473 echo "$as_me: failed program was:" >&5
15474sed 's/^/| /' conftest.$ac_ext >&5
15475
15476 ac_header_preproc=no
78434e59 15477fi
bec39cab 15478rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15479echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15480echo "${ECHO_T}$ac_header_preproc" >&6
78434e59 15481
bec39cab
AC
15482# So? What about this header?
15483case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15484 yes:no: )
15485 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15486echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15488echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15489 ac_header_preproc=yes
15490 ;;
15491 no:yes:* )
15492 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15493echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15494 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15495echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15496 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15497echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15498 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15499echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15501echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15502 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15503echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15504 (
15505 cat <<\_ASBOX
15506## ------------------------------------------ ##
15507## Report this to the AC_PACKAGE_NAME lists. ##
15508## ------------------------------------------ ##
15509_ASBOX
15510 ) |
15511 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
15512 ;;
15513esac
b4e70030
JB
15514echo "$as_me:$LINENO: checking for $ac_header" >&5
15515echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15516if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15517 echo $ECHO_N "(cached) $ECHO_C" >&6
15518else
15519 eval "$as_ac_Header=\$ac_header_preproc"
086ec9eb 15520fi
b4e70030
JB
15521echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15522echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 15523
086ec9eb 15524fi
bec39cab
AC
15525if test `eval echo '${'$as_ac_Header'}'` = yes; then
15526 cat >>confdefs.h <<_ACEOF
15527#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15528_ACEOF
15529
086ec9eb 15530fi
bec39cab 15531
086ec9eb
MK
15532done
15533
9608ab8b 15534
b1d19a62 15535# On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
5ee754fc
MK
15536# between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
15537# think that we don't have <curses.h> if we're using GCC.
15538case $host_os in
b1d19a62 15539 solaris2.[789])
5ee754fc 15540 if test "$GCC" = yes; then
bec39cab
AC
15541
15542cat >>confdefs.h <<\_ACEOF
5ee754fc 15543#define _MSE_INT_H 1
bec39cab 15544_ACEOF
5ee754fc
MK
15545
15546 fi ;;
15547esac
bec39cab
AC
15548
15549
15550
15551
15552for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
5ee754fc 15553do
bec39cab 15554as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15555if eval "test \"\${$as_ac_Header+set}\" = set"; then
15556 echo "$as_me:$LINENO: checking for $ac_header" >&5
15557echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15558if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15559 echo $ECHO_N "(cached) $ECHO_C" >&6
15560fi
b4e70030
JB
15561echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15562echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15563else
15564 # Is the header compilable?
b4e70030
JB
15565echo "$as_me:$LINENO: checking $ac_header usability" >&5
15566echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
15567cat >conftest.$ac_ext <<_ACEOF
15568/* confdefs.h. */
15569_ACEOF
15570cat confdefs.h >>conftest.$ac_ext
15571cat >>conftest.$ac_ext <<_ACEOF
15572/* end confdefs.h. */
15573$ac_includes_default
15574#include <$ac_header>
15575_ACEOF
15576rm -f conftest.$ac_objext
15577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15578 (eval $ac_compile) 2>conftest.er1
15579 ac_status=$?
15580 grep -v '^ *+' conftest.er1 >conftest.err
15581 rm -f conftest.er1
15582 cat conftest.err >&5
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); } &&
b4e70030
JB
15585 { ac_try='test -z "$ac_c_werror_flag"
15586 || test ! -s conftest.err'
bec39cab
AC
15587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15588 (eval $ac_try) 2>&5
15589 ac_status=$?
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); }; } &&
15592 { ac_try='test -s conftest.$ac_objext'
15593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15594 (eval $ac_try) 2>&5
15595 ac_status=$?
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); }; }; then
15598 ac_header_compiler=yes
15599else
15600 echo "$as_me: failed program was:" >&5
15601sed 's/^/| /' conftest.$ac_ext >&5
15602
b4e70030 15603ac_header_compiler=no
bec39cab
AC
15604fi
15605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15606echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15607echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15608
15609# Is the header present?
b4e70030
JB
15610echo "$as_me:$LINENO: checking $ac_header presence" >&5
15611echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15612cat >conftest.$ac_ext <<_ACEOF
15613/* confdefs.h. */
15614_ACEOF
15615cat confdefs.h >>conftest.$ac_ext
15616cat >>conftest.$ac_ext <<_ACEOF
15617/* end confdefs.h. */
15618#include <$ac_header>
15619_ACEOF
15620if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15621 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15622 ac_status=$?
15623 grep -v '^ *+' conftest.er1 >conftest.err
15624 rm -f conftest.er1
15625 cat conftest.err >&5
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); } >/dev/null; then
15628 if test -s conftest.err; then
15629 ac_cpp_err=$ac_c_preproc_warn_flag
15630 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15631 else
15632 ac_cpp_err=
15633 fi
15634else
15635 ac_cpp_err=yes
c906108c 15636fi
bec39cab
AC
15637if test -z "$ac_cpp_err"; then
15638 ac_header_preproc=yes
15639else
15640 echo "$as_me: failed program was:" >&5
15641sed 's/^/| /' conftest.$ac_ext >&5
15642
15643 ac_header_preproc=no
c906108c 15644fi
bec39cab 15645rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15646echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15647echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
15648
15649# So? What about this header?
15650case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15651 yes:no: )
15652 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15653echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15655echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15656 ac_header_preproc=yes
15657 ;;
15658 no:yes:* )
15659 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15660echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15661 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15662echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15663 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15664echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15665 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15666echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15668echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15669 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15670echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15671 (
15672 cat <<\_ASBOX
15673## ------------------------------------------ ##
15674## Report this to the AC_PACKAGE_NAME lists. ##
15675## ------------------------------------------ ##
15676_ASBOX
15677 ) |
15678 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
15679 ;;
15680esac
b4e70030
JB
15681echo "$as_me:$LINENO: checking for $ac_header" >&5
15682echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15683if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 15684 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 15685else
bec39cab 15686 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 15687fi
b4e70030
JB
15688echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15689echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15690
15691fi
15692if test `eval echo '${'$as_ac_Header'}'` = yes; then
15693 cat >>confdefs.h <<_ACEOF
15694#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15695_ACEOF
15696
15697fi
15698
5ee754fc 15699done
c906108c 15700
bec39cab 15701
065a1afc 15702for ac_header in ncurses/term.h
3b78cdbb 15703do
bec39cab 15704as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15705if eval "test \"\${$as_ac_Header+set}\" = set"; then
15706 echo "$as_me:$LINENO: checking for $ac_header" >&5
15707echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15708if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
15709 echo $ECHO_N "(cached) $ECHO_C" >&6
15710fi
b4e70030
JB
15711echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15712echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15713else
15714 # Is the header compilable?
b4e70030
JB
15715echo "$as_me:$LINENO: checking $ac_header usability" >&5
15716echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
15717cat >conftest.$ac_ext <<_ACEOF
15718/* confdefs.h. */
15719_ACEOF
15720cat confdefs.h >>conftest.$ac_ext
15721cat >>conftest.$ac_ext <<_ACEOF
15722/* end confdefs.h. */
15723$ac_includes_default
15724#include <$ac_header>
15725_ACEOF
15726rm -f conftest.$ac_objext
15727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15728 (eval $ac_compile) 2>conftest.er1
15729 ac_status=$?
15730 grep -v '^ *+' conftest.er1 >conftest.err
15731 rm -f conftest.er1
15732 cat conftest.err >&5
15733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734 (exit $ac_status); } &&
b4e70030
JB
15735 { ac_try='test -z "$ac_c_werror_flag"
15736 || test ! -s conftest.err'
bec39cab
AC
15737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15738 (eval $ac_try) 2>&5
15739 ac_status=$?
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); }; } &&
15742 { ac_try='test -s conftest.$ac_objext'
15743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15744 (eval $ac_try) 2>&5
15745 ac_status=$?
15746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747 (exit $ac_status); }; }; then
15748 ac_header_compiler=yes
15749else
15750 echo "$as_me: failed program was:" >&5
15751sed 's/^/| /' conftest.$ac_ext >&5
15752
b4e70030 15753ac_header_compiler=no
bec39cab
AC
15754fi
15755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15756echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15757echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15758
15759# Is the header present?
b4e70030
JB
15760echo "$as_me:$LINENO: checking $ac_header presence" >&5
15761echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15762cat >conftest.$ac_ext <<_ACEOF
15763/* confdefs.h. */
15764_ACEOF
15765cat confdefs.h >>conftest.$ac_ext
15766cat >>conftest.$ac_ext <<_ACEOF
15767/* end confdefs.h. */
15768#include <$ac_header>
15769_ACEOF
15770if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15771 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15772 ac_status=$?
15773 grep -v '^ *+' conftest.er1 >conftest.err
15774 rm -f conftest.er1
15775 cat conftest.err >&5
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); } >/dev/null; then
15778 if test -s conftest.err; then
15779 ac_cpp_err=$ac_c_preproc_warn_flag
15780 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15781 else
15782 ac_cpp_err=
15783 fi
15784else
15785 ac_cpp_err=yes
3b78cdbb 15786fi
bec39cab
AC
15787if test -z "$ac_cpp_err"; then
15788 ac_header_preproc=yes
15789else
15790 echo "$as_me: failed program was:" >&5
15791sed 's/^/| /' conftest.$ac_ext >&5
15792
15793 ac_header_preproc=no
3b78cdbb 15794fi
bec39cab 15795rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15796echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15797echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
15798
15799# So? What about this header?
15800case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15801 yes:no: )
15802 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15803echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15805echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15806 ac_header_preproc=yes
15807 ;;
15808 no:yes:* )
15809 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15810echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15811 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15812echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15813 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15814echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15815 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15816echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15818echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15819 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15820echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15821 (
15822 cat <<\_ASBOX
15823## ------------------------------------------ ##
15824## Report this to the AC_PACKAGE_NAME lists. ##
15825## ------------------------------------------ ##
15826_ASBOX
15827 ) |
15828 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
15829 ;;
15830esac
b4e70030
JB
15831echo "$as_me:$LINENO: checking for $ac_header" >&5
15832echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15833if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 15834 echo $ECHO_N "(cached) $ECHO_C" >&6
3b78cdbb 15835else
bec39cab
AC
15836 eval "$as_ac_Header=\$ac_header_preproc"
15837fi
b4e70030
JB
15838echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15839echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 15840
3b78cdbb 15841fi
bec39cab
AC
15842if test `eval echo '${'$as_ac_Header'}'` = yes; then
15843 cat >>confdefs.h <<_ACEOF
15844#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15845_ACEOF
15846
15847fi
15848
3b78cdbb
DA
15849done
15850
c906108c 15851
065a1afc
JB
15852for ac_header in term.h
15853do
15854as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15855echo "$as_me:$LINENO: checking for $ac_header" >&5
15856echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15857if eval "test \"\${$as_ac_Header+set}\" = set"; then
065a1afc
JB
15858 echo $ECHO_N "(cached) $ECHO_C" >&6
15859else
15860 cat >conftest.$ac_ext <<_ACEOF
15861/* confdefs.h. */
15862_ACEOF
15863cat confdefs.h >>conftest.$ac_ext
15864cat >>conftest.$ac_ext <<_ACEOF
15865/* end confdefs.h. */
15866#if HAVE_CURSES_H
15867# include <curses.h>
15868#endif
15869
15870
15871#include <$ac_header>
15872_ACEOF
15873rm -f conftest.$ac_objext
15874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15875 (eval $ac_compile) 2>conftest.er1
15876 ac_status=$?
15877 grep -v '^ *+' conftest.er1 >conftest.err
15878 rm -f conftest.er1
15879 cat conftest.err >&5
15880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881 (exit $ac_status); } &&
b4e70030
JB
15882 { ac_try='test -z "$ac_c_werror_flag"
15883 || test ! -s conftest.err'
065a1afc
JB
15884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15885 (eval $ac_try) 2>&5
15886 ac_status=$?
15887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 (exit $ac_status); }; } &&
15889 { ac_try='test -s conftest.$ac_objext'
15890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15891 (eval $ac_try) 2>&5
15892 ac_status=$?
15893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894 (exit $ac_status); }; }; then
15895 eval "$as_ac_Header=yes"
15896else
15897 echo "$as_me: failed program was:" >&5
15898sed 's/^/| /' conftest.$ac_ext >&5
15899
b4e70030 15900eval "$as_ac_Header=no"
065a1afc
JB
15901fi
15902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15903fi
b4e70030
JB
15904echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15905echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
065a1afc
JB
15906if test `eval echo '${'$as_ac_Header'}'` = yes; then
15907 cat >>confdefs.h <<_ACEOF
15908#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15909_ACEOF
15910
15911fi
15912
15913done
15914
15915
d542061a
UW
15916# Check for HP/UX 64-bit shared library support
15917
15918for ac_header in elf_hp.h
15919do
15920as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15921if eval "test \"\${$as_ac_Header+set}\" = set"; then
15922 echo "$as_me:$LINENO: checking for $ac_header" >&5
15923echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15924if eval "test \"\${$as_ac_Header+set}\" = set"; then
15925 echo $ECHO_N "(cached) $ECHO_C" >&6
15926fi
15927echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15928echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15929else
15930 # Is the header compilable?
15931echo "$as_me:$LINENO: checking $ac_header usability" >&5
15932echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15933cat >conftest.$ac_ext <<_ACEOF
15934/* confdefs.h. */
15935_ACEOF
15936cat confdefs.h >>conftest.$ac_ext
15937cat >>conftest.$ac_ext <<_ACEOF
15938/* end confdefs.h. */
15939$ac_includes_default
15940#include <$ac_header>
15941_ACEOF
15942rm -f conftest.$ac_objext
15943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15944 (eval $ac_compile) 2>conftest.er1
15945 ac_status=$?
15946 grep -v '^ *+' conftest.er1 >conftest.err
15947 rm -f conftest.er1
15948 cat conftest.err >&5
15949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); } &&
15951 { ac_try='test -z "$ac_c_werror_flag"
15952 || test ! -s conftest.err'
15953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15954 (eval $ac_try) 2>&5
15955 ac_status=$?
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); }; } &&
15958 { ac_try='test -s conftest.$ac_objext'
15959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15960 (eval $ac_try) 2>&5
15961 ac_status=$?
15962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15963 (exit $ac_status); }; }; then
15964 ac_header_compiler=yes
15965else
15966 echo "$as_me: failed program was:" >&5
15967sed 's/^/| /' conftest.$ac_ext >&5
15968
15969ac_header_compiler=no
15970fi
15971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15972echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15973echo "${ECHO_T}$ac_header_compiler" >&6
15974
15975# Is the header present?
15976echo "$as_me:$LINENO: checking $ac_header presence" >&5
15977echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15978cat >conftest.$ac_ext <<_ACEOF
15979/* confdefs.h. */
15980_ACEOF
15981cat confdefs.h >>conftest.$ac_ext
15982cat >>conftest.$ac_ext <<_ACEOF
15983/* end confdefs.h. */
15984#include <$ac_header>
15985_ACEOF
15986if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15988 ac_status=$?
15989 grep -v '^ *+' conftest.er1 >conftest.err
15990 rm -f conftest.er1
15991 cat conftest.err >&5
15992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15993 (exit $ac_status); } >/dev/null; then
15994 if test -s conftest.err; then
15995 ac_cpp_err=$ac_c_preproc_warn_flag
15996 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15997 else
15998 ac_cpp_err=
15999 fi
16000else
16001 ac_cpp_err=yes
16002fi
16003if test -z "$ac_cpp_err"; then
16004 ac_header_preproc=yes
16005else
16006 echo "$as_me: failed program was:" >&5
16007sed 's/^/| /' conftest.$ac_ext >&5
16008
16009 ac_header_preproc=no
16010fi
16011rm -f conftest.err conftest.$ac_ext
16012echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16013echo "${ECHO_T}$ac_header_preproc" >&6
16014
16015# So? What about this header?
16016case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16017 yes:no: )
16018 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16019echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16021echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16022 ac_header_preproc=yes
16023 ;;
16024 no:yes:* )
16025 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16026echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16027 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16028echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16029 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16030echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16031 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16032echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16034echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16035 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16036echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16037 (
16038 cat <<\_ASBOX
16039## ------------------------------------------ ##
16040## Report this to the AC_PACKAGE_NAME lists. ##
16041## ------------------------------------------ ##
16042_ASBOX
16043 ) |
16044 sed "s/^/$as_me: WARNING: /" >&2
16045 ;;
16046esac
16047echo "$as_me:$LINENO: checking for $ac_header" >&5
16048echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16049if eval "test \"\${$as_ac_Header+set}\" = set"; then
16050 echo $ECHO_N "(cached) $ECHO_C" >&6
16051else
16052 eval "$as_ac_Header=\$ac_header_preproc"
16053fi
16054echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16055echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16056
16057fi
16058if test `eval echo '${'$as_ac_Header'}'` = yes; then
16059 cat >>confdefs.h <<_ACEOF
16060#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16061_ACEOF
16062
16063fi
16064
16065done
16066
16067
5ee754fc
MK
16068# FIXME: kettenis/20030102: In most cases we include these
16069# unconditionally, so what's the point in checking these?
bec39cab
AC
16070
16071
16072for ac_header in ctype.h time.h
c906108c 16073do
bec39cab 16074as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
16075if eval "test \"\${$as_ac_Header+set}\" = set"; then
16076 echo "$as_me:$LINENO: checking for $ac_header" >&5
16077echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16078if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
16079 echo $ECHO_N "(cached) $ECHO_C" >&6
16080fi
b4e70030
JB
16081echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16082echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
16083else
16084 # Is the header compilable?
b4e70030
JB
16085echo "$as_me:$LINENO: checking $ac_header usability" >&5
16086echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
16087cat >conftest.$ac_ext <<_ACEOF
16088/* confdefs.h. */
16089_ACEOF
16090cat confdefs.h >>conftest.$ac_ext
16091cat >>conftest.$ac_ext <<_ACEOF
16092/* end confdefs.h. */
16093$ac_includes_default
16094#include <$ac_header>
16095_ACEOF
16096rm -f conftest.$ac_objext
16097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16098 (eval $ac_compile) 2>conftest.er1
16099 ac_status=$?
16100 grep -v '^ *+' conftest.er1 >conftest.err
16101 rm -f conftest.er1
16102 cat conftest.err >&5
16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 (exit $ac_status); } &&
b4e70030
JB
16105 { ac_try='test -z "$ac_c_werror_flag"
16106 || test ! -s conftest.err'
bec39cab
AC
16107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16108 (eval $ac_try) 2>&5
16109 ac_status=$?
16110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16111 (exit $ac_status); }; } &&
16112 { ac_try='test -s conftest.$ac_objext'
16113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16114 (eval $ac_try) 2>&5
16115 ac_status=$?
16116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117 (exit $ac_status); }; }; then
16118 ac_header_compiler=yes
16119else
16120 echo "$as_me: failed program was:" >&5
16121sed 's/^/| /' conftest.$ac_ext >&5
16122
b4e70030 16123ac_header_compiler=no
bec39cab
AC
16124fi
16125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
16126echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16127echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
16128
16129# Is the header present?
b4e70030
JB
16130echo "$as_me:$LINENO: checking $ac_header presence" >&5
16131echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
16132cat >conftest.$ac_ext <<_ACEOF
16133/* confdefs.h. */
16134_ACEOF
16135cat confdefs.h >>conftest.$ac_ext
16136cat >>conftest.$ac_ext <<_ACEOF
16137/* end confdefs.h. */
16138#include <$ac_header>
16139_ACEOF
16140if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16141 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16142 ac_status=$?
16143 grep -v '^ *+' conftest.er1 >conftest.err
16144 rm -f conftest.er1
16145 cat conftest.err >&5
16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 (exit $ac_status); } >/dev/null; then
16148 if test -s conftest.err; then
16149 ac_cpp_err=$ac_c_preproc_warn_flag
16150 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16151 else
16152 ac_cpp_err=
16153 fi
16154else
16155 ac_cpp_err=yes
c906108c 16156fi
bec39cab
AC
16157if test -z "$ac_cpp_err"; then
16158 ac_header_preproc=yes
16159else
16160 echo "$as_me: failed program was:" >&5
16161sed 's/^/| /' conftest.$ac_ext >&5
16162
16163 ac_header_preproc=no
c906108c 16164fi
bec39cab 16165rm -f conftest.err conftest.$ac_ext
b4e70030
JB
16166echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16167echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
16168
16169# So? What about this header?
16170case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16171 yes:no: )
16172 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16173echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16175echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16176 ac_header_preproc=yes
16177 ;;
16178 no:yes:* )
16179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16180echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16182echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16183 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16184echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16185 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16186echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16188echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16189 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16190echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
16191 (
16192 cat <<\_ASBOX
16193## ------------------------------------------ ##
16194## Report this to the AC_PACKAGE_NAME lists. ##
16195## ------------------------------------------ ##
16196_ASBOX
16197 ) |
16198 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
16199 ;;
16200esac
b4e70030
JB
16201echo "$as_me:$LINENO: checking for $ac_header" >&5
16202echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16203if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 16204 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 16205else
bec39cab
AC
16206 eval "$as_ac_Header=\$ac_header_preproc"
16207fi
b4e70030
JB
16208echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16209echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
16210
16211fi
16212if test `eval echo '${'$as_ac_Header'}'` = yes; then
16213 cat >>confdefs.h <<_ACEOF
16214#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16215_ACEOF
16216
c906108c 16217fi
bec39cab 16218
c906108c
SS
16219done
16220
5ee754fc 16221
4e8d927d 16222# Create a header we can use portably to get the standard integer types.
666ec76f 16223
4e8d927d
DJ
16224
16225inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
16226
16227acx_cv_header_stdint=stddef.h
16228acx_cv_header_stdint_kind="(already complete)"
16229for i in stdint.h $inttype_headers; do
16230 unset ac_cv_type_uintptr_t
16231 unset ac_cv_type_uintmax_t
16232 unset ac_cv_type_int_least32_t
16233 unset ac_cv_type_int_fast32_t
16234 unset ac_cv_type_uint64_t
16235 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
b4e70030
JB
16236 echo "$as_me:$LINENO: checking for uintmax_t" >&5
16237echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
4e8d927d 16238if test "${ac_cv_type_uintmax_t+set}" = set; then
bec39cab 16239 echo $ECHO_N "(cached) $ECHO_C" >&6
40a7debc 16240else
bec39cab
AC
16241 cat >conftest.$ac_ext <<_ACEOF
16242/* confdefs.h. */
16243_ACEOF
16244cat confdefs.h >>conftest.$ac_ext
16245cat >>conftest.$ac_ext <<_ACEOF
16246/* end confdefs.h. */
4e8d927d
DJ
16247#include <sys/types.h>
16248#include <$i>
16249
bec39cab
AC
16250int
16251main ()
16252{
b4e70030 16253if ((uintmax_t *) 0)
4e8d927d 16254 return 0;
b4e70030 16255if (sizeof (uintmax_t))
4e8d927d
DJ
16256 return 0;
16257 ;
bec39cab
AC
16258 return 0;
16259}
16260_ACEOF
16261rm -f conftest.$ac_objext
16262if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16263 (eval $ac_compile) 2>conftest.er1
16264 ac_status=$?
16265 grep -v '^ *+' conftest.er1 >conftest.err
16266 rm -f conftest.er1
16267 cat conftest.err >&5
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); } &&
b4e70030
JB
16270 { ac_try='test -z "$ac_c_werror_flag"
16271 || test ! -s conftest.err'
bec39cab
AC
16272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16273 (eval $ac_try) 2>&5
16274 ac_status=$?
16275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276 (exit $ac_status); }; } &&
16277 { ac_try='test -s conftest.$ac_objext'
16278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16279 (eval $ac_try) 2>&5
16280 ac_status=$?
16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); }; }; then
4e8d927d 16283 ac_cv_type_uintmax_t=yes
40a7debc 16284else
bec39cab
AC
16285 echo "$as_me: failed program was:" >&5
16286sed 's/^/| /' conftest.$ac_ext >&5
16287
b4e70030 16288ac_cv_type_uintmax_t=no
40a7debc 16289fi
bec39cab 16290rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40a7debc 16291fi
b4e70030
JB
16292echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
16293echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
4e8d927d
DJ
16294if test $ac_cv_type_uintmax_t = yes; then
16295 acx_cv_header_stdint=$i
666ec76f 16296else
4e8d927d 16297 continue
666ec76f 16298fi
4e8d927d 16299
b4e70030
JB
16300 echo "$as_me:$LINENO: checking for uintptr_t" >&5
16301echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4e8d927d 16302if test "${ac_cv_type_uintptr_t+set}" = set; then
bec39cab
AC
16303 echo $ECHO_N "(cached) $ECHO_C" >&6
16304else
16305 cat >conftest.$ac_ext <<_ACEOF
16306/* confdefs.h. */
16307_ACEOF
16308cat confdefs.h >>conftest.$ac_ext
16309cat >>conftest.$ac_ext <<_ACEOF
16310/* end confdefs.h. */
4e8d927d
DJ
16311#include <sys/types.h>
16312#include <$i>
16313
666ec76f
MK
16314int
16315main ()
16316{
b4e70030 16317if ((uintptr_t *) 0)
4e8d927d 16318 return 0;
b4e70030 16319if (sizeof (uintptr_t))
4e8d927d 16320 return 0;
666ec76f
MK
16321 ;
16322 return 0;
16323}
16324_ACEOF
16325rm -f conftest.$ac_objext
16326if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16327 (eval $ac_compile) 2>conftest.er1
16328 ac_status=$?
16329 grep -v '^ *+' conftest.er1 >conftest.err
16330 rm -f conftest.er1
16331 cat conftest.err >&5
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); } &&
b4e70030
JB
16334 { ac_try='test -z "$ac_c_werror_flag"
16335 || test ! -s conftest.err'
666ec76f
MK
16336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16337 (eval $ac_try) 2>&5
16338 ac_status=$?
16339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16340 (exit $ac_status); }; } &&
16341 { ac_try='test -s conftest.$ac_objext'
16342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16343 (eval $ac_try) 2>&5
16344 ac_status=$?
16345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346 (exit $ac_status); }; }; then
4e8d927d 16347 ac_cv_type_uintptr_t=yes
666ec76f
MK
16348else
16349 echo "$as_me: failed program was:" >&5
16350sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 16351
b4e70030 16352ac_cv_type_uintptr_t=no
a3828db0
MK
16353fi
16354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16355fi
b4e70030
JB
16356echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
16357echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4e8d927d
DJ
16358if test $ac_cv_type_uintptr_t = yes; then
16359 :
a3828db0 16360else
4e8d927d 16361 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 16362fi
4e8d927d 16363
b4e70030
JB
16364 echo "$as_me:$LINENO: checking for int_least32_t" >&5
16365echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
4e8d927d 16366if test "${ac_cv_type_int_least32_t+set}" = set; then
a3828db0
MK
16367 echo $ECHO_N "(cached) $ECHO_C" >&6
16368else
16369 cat >conftest.$ac_ext <<_ACEOF
666ec76f
MK
16370/* confdefs.h. */
16371_ACEOF
16372cat confdefs.h >>conftest.$ac_ext
16373cat >>conftest.$ac_ext <<_ACEOF
16374/* end confdefs.h. */
4e8d927d
DJ
16375#include <sys/types.h>
16376#include <$i>
16377
bec39cab
AC
16378int
16379main ()
16380{
b4e70030 16381if ((int_least32_t *) 0)
4e8d927d 16382 return 0;
b4e70030 16383if (sizeof (int_least32_t))
4e8d927d 16384 return 0;
bec39cab
AC
16385 ;
16386 return 0;
16387}
16388_ACEOF
16389rm -f conftest.$ac_objext
16390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16391 (eval $ac_compile) 2>conftest.er1
16392 ac_status=$?
16393 grep -v '^ *+' conftest.er1 >conftest.err
16394 rm -f conftest.er1
16395 cat conftest.err >&5
16396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 (exit $ac_status); } &&
b4e70030
JB
16398 { ac_try='test -z "$ac_c_werror_flag"
16399 || test ! -s conftest.err'
bec39cab
AC
16400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16401 (eval $ac_try) 2>&5
16402 ac_status=$?
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); }; } &&
16405 { ac_try='test -s conftest.$ac_objext'
16406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16407 (eval $ac_try) 2>&5
16408 ac_status=$?
16409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410 (exit $ac_status); }; }; then
4e8d927d 16411 ac_cv_type_int_least32_t=yes
b9362cc7 16412else
bec39cab
AC
16413 echo "$as_me: failed program was:" >&5
16414sed 's/^/| /' conftest.$ac_ext >&5
16415
b4e70030 16416ac_cv_type_int_least32_t=no
b9362cc7 16417fi
bec39cab 16418rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b9362cc7 16419fi
b4e70030
JB
16420echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
16421echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
4e8d927d
DJ
16422if test $ac_cv_type_int_least32_t = yes; then
16423 :
a3828db0 16424else
4e8d927d 16425 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 16426fi
5ee754fc 16427
b4e70030
JB
16428 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
16429echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
4e8d927d 16430if test "${ac_cv_type_int_fast32_t+set}" = set; then
bec39cab
AC
16431 echo $ECHO_N "(cached) $ECHO_C" >&6
16432else
16433 cat >conftest.$ac_ext <<_ACEOF
16434/* confdefs.h. */
16435_ACEOF
16436cat confdefs.h >>conftest.$ac_ext
16437cat >>conftest.$ac_ext <<_ACEOF
16438/* end confdefs.h. */
4e8d927d
DJ
16439#include <sys/types.h>
16440#include <$i>
16441
bec39cab
AC
16442int
16443main ()
16444{
b4e70030 16445if ((int_fast32_t *) 0)
4e8d927d 16446 return 0;
b4e70030 16447if (sizeof (int_fast32_t))
4e8d927d 16448 return 0;
bec39cab
AC
16449 ;
16450 return 0;
16451}
16452_ACEOF
16453rm -f conftest.$ac_objext
16454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16455 (eval $ac_compile) 2>conftest.er1
16456 ac_status=$?
16457 grep -v '^ *+' conftest.er1 >conftest.err
16458 rm -f conftest.er1
16459 cat conftest.err >&5
16460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461 (exit $ac_status); } &&
b4e70030
JB
16462 { ac_try='test -z "$ac_c_werror_flag"
16463 || test ! -s conftest.err'
bec39cab
AC
16464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16465 (eval $ac_try) 2>&5
16466 ac_status=$?
16467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468 (exit $ac_status); }; } &&
16469 { ac_try='test -s conftest.$ac_objext'
16470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16471 (eval $ac_try) 2>&5
16472 ac_status=$?
16473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474 (exit $ac_status); }; }; then
4e8d927d 16475 ac_cv_type_int_fast32_t=yes
c906108c 16476else
bec39cab
AC
16477 echo "$as_me: failed program was:" >&5
16478sed 's/^/| /' conftest.$ac_ext >&5
16479
b4e70030 16480ac_cv_type_int_fast32_t=no
c906108c 16481fi
bec39cab 16482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 16483fi
b4e70030
JB
16484echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
16485echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
4e8d927d
DJ
16486if test $ac_cv_type_int_fast32_t = yes; then
16487 :
a3828db0 16488else
4e8d927d 16489 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 16490fi
4e8d927d 16491
b4e70030
JB
16492 echo "$as_me:$LINENO: checking for uint64_t" >&5
16493echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
4e8d927d 16494if test "${ac_cv_type_uint64_t+set}" = set; then
bec39cab
AC
16495 echo $ECHO_N "(cached) $ECHO_C" >&6
16496else
16497 cat >conftest.$ac_ext <<_ACEOF
16498/* confdefs.h. */
16499_ACEOF
16500cat confdefs.h >>conftest.$ac_ext
16501cat >>conftest.$ac_ext <<_ACEOF
16502/* end confdefs.h. */
4e8d927d
DJ
16503#include <sys/types.h>
16504#include <$i>
16505
bec39cab
AC
16506int
16507main ()
16508{
b4e70030 16509if ((uint64_t *) 0)
4e8d927d 16510 return 0;
b4e70030 16511if (sizeof (uint64_t))
4e8d927d 16512 return 0;
bec39cab
AC
16513 ;
16514 return 0;
16515}
16516_ACEOF
16517rm -f conftest.$ac_objext
16518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16519 (eval $ac_compile) 2>conftest.er1
16520 ac_status=$?
16521 grep -v '^ *+' conftest.er1 >conftest.err
16522 rm -f conftest.er1
16523 cat conftest.err >&5
16524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16525 (exit $ac_status); } &&
b4e70030
JB
16526 { ac_try='test -z "$ac_c_werror_flag"
16527 || test ! -s conftest.err'
bec39cab
AC
16528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16529 (eval $ac_try) 2>&5
16530 ac_status=$?
16531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532 (exit $ac_status); }; } &&
16533 { ac_try='test -s conftest.$ac_objext'
16534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16535 (eval $ac_try) 2>&5
16536 ac_status=$?
16537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538 (exit $ac_status); }; }; then
4e8d927d 16539 ac_cv_type_uint64_t=yes
c906108c 16540else
bec39cab
AC
16541 echo "$as_me: failed program was:" >&5
16542sed 's/^/| /' conftest.$ac_ext >&5
16543
b4e70030 16544ac_cv_type_uint64_t=no
c906108c 16545fi
bec39cab 16546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 16547fi
b4e70030
JB
16548echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16549echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
4e8d927d
DJ
16550if test $ac_cv_type_uint64_t = yes; then
16551 :
a3828db0 16552else
4e8d927d 16553 acx_cv_header_stdint_kind="(lacks uint64_t)"
c906108c
SS
16554fi
16555
4e8d927d
DJ
16556 break
16557done
16558if test "$acx_cv_header_stdint" = stddef.h; then
3841debe 16559 acx_cv_header_stdint_kind="(lacks uintmax_t)"
4e8d927d 16560 for i in stdint.h $inttype_headers; do
3841debe 16561 unset ac_cv_type_uintptr_t
4e8d927d
DJ
16562 unset ac_cv_type_uint32_t
16563 unset ac_cv_type_uint64_t
16564 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
b4e70030
JB
16565 echo "$as_me:$LINENO: checking for uint32_t" >&5
16566echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
4e8d927d 16567if test "${ac_cv_type_uint32_t+set}" = set; then
bec39cab 16568 echo $ECHO_N "(cached) $ECHO_C" >&6
bce58c09 16569else
bec39cab
AC
16570 cat >conftest.$ac_ext <<_ACEOF
16571/* confdefs.h. */
16572_ACEOF
16573cat confdefs.h >>conftest.$ac_ext
16574cat >>conftest.$ac_ext <<_ACEOF
16575/* end confdefs.h. */
4e8d927d
DJ
16576#include <sys/types.h>
16577#include <$i>
16578
a3828db0
MK
16579int
16580main ()
16581{
b4e70030 16582if ((uint32_t *) 0)
4e8d927d 16583 return 0;
b4e70030 16584if (sizeof (uint32_t))
4e8d927d 16585 return 0;
a3828db0
MK
16586 ;
16587 return 0;
16588}
bec39cab
AC
16589_ACEOF
16590rm -f conftest.$ac_objext
16591if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16592 (eval $ac_compile) 2>conftest.er1
16593 ac_status=$?
16594 grep -v '^ *+' conftest.er1 >conftest.err
16595 rm -f conftest.er1
16596 cat conftest.err >&5
16597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598 (exit $ac_status); } &&
b4e70030
JB
16599 { ac_try='test -z "$ac_c_werror_flag"
16600 || test ! -s conftest.err'
bec39cab
AC
16601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16602 (eval $ac_try) 2>&5
16603 ac_status=$?
16604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605 (exit $ac_status); }; } &&
16606 { ac_try='test -s conftest.$ac_objext'
16607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16608 (eval $ac_try) 2>&5
16609 ac_status=$?
16610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16611 (exit $ac_status); }; }; then
4e8d927d 16612 ac_cv_type_uint32_t=yes
bce58c09 16613else
bec39cab
AC
16614 echo "$as_me: failed program was:" >&5
16615sed 's/^/| /' conftest.$ac_ext >&5
16616
b4e70030 16617ac_cv_type_uint32_t=no
bce58c09 16618fi
bec39cab 16619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bce58c09 16620fi
b4e70030
JB
16621echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
16622echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
4e8d927d
DJ
16623if test $ac_cv_type_uint32_t = yes; then
16624 acx_cv_header_stdint=$i
a3828db0 16625else
4e8d927d 16626 continue
e5a7de23 16627fi
4e8d927d 16628
b4e70030
JB
16629 echo "$as_me:$LINENO: checking for uint64_t" >&5
16630echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
4e8d927d 16631if test "${ac_cv_type_uint64_t+set}" = set; then
e5a7de23
EZ
16632 echo $ECHO_N "(cached) $ECHO_C" >&6
16633else
16634 cat >conftest.$ac_ext <<_ACEOF
16635/* confdefs.h. */
16636_ACEOF
16637cat confdefs.h >>conftest.$ac_ext
16638cat >>conftest.$ac_ext <<_ACEOF
16639/* end confdefs.h. */
4e8d927d
DJ
16640#include <sys/types.h>
16641#include <$i>
16642
e5a7de23
EZ
16643int
16644main ()
16645{
b4e70030 16646if ((uint64_t *) 0)
4e8d927d 16647 return 0;
b4e70030 16648if (sizeof (uint64_t))
4e8d927d 16649 return 0;
e5a7de23
EZ
16650 ;
16651 return 0;
16652}
16653_ACEOF
16654rm -f conftest.$ac_objext
16655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16656 (eval $ac_compile) 2>conftest.er1
16657 ac_status=$?
16658 grep -v '^ *+' conftest.er1 >conftest.err
16659 rm -f conftest.er1
16660 cat conftest.err >&5
16661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662 (exit $ac_status); } &&
b4e70030
JB
16663 { ac_try='test -z "$ac_c_werror_flag"
16664 || test ! -s conftest.err'
e5a7de23
EZ
16665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16666 (eval $ac_try) 2>&5
16667 ac_status=$?
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); }; } &&
16670 { ac_try='test -s conftest.$ac_objext'
16671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16672 (eval $ac_try) 2>&5
16673 ac_status=$?
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); }; }; then
4e8d927d 16676 ac_cv_type_uint64_t=yes
e5a7de23
EZ
16677else
16678 echo "$as_me: failed program was:" >&5
16679sed 's/^/| /' conftest.$ac_ext >&5
16680
b4e70030 16681ac_cv_type_uint64_t=no
e5a7de23
EZ
16682fi
16683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16684fi
b4e70030
JB
16685echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16686echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
3841debe
DJ
16687
16688 echo "$as_me:$LINENO: checking for uintptr_t" >&5
16689echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
16690if test "${ac_cv_type_uintptr_t+set}" = set; then
16691 echo $ECHO_N "(cached) $ECHO_C" >&6
16692else
16693 cat >conftest.$ac_ext <<_ACEOF
16694/* confdefs.h. */
16695_ACEOF
16696cat confdefs.h >>conftest.$ac_ext
16697cat >>conftest.$ac_ext <<_ACEOF
16698/* end confdefs.h. */
16699#include <sys/types.h>
16700#include <$i>
16701
16702int
16703main ()
16704{
16705if ((uintptr_t *) 0)
16706 return 0;
16707if (sizeof (uintptr_t))
16708 return 0;
16709 ;
16710 return 0;
16711}
16712_ACEOF
16713rm -f conftest.$ac_objext
16714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16715 (eval $ac_compile) 2>conftest.er1
16716 ac_status=$?
16717 grep -v '^ *+' conftest.er1 >conftest.err
16718 rm -f conftest.er1
16719 cat conftest.err >&5
16720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 (exit $ac_status); } &&
16722 { ac_try='test -z "$ac_c_werror_flag"
16723 || test ! -s conftest.err'
16724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16725 (eval $ac_try) 2>&5
16726 ac_status=$?
16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); }; } &&
16729 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16735 ac_cv_type_uintptr_t=yes
e5a7de23 16736else
3841debe
DJ
16737 echo "$as_me: failed program was:" >&5
16738sed 's/^/| /' conftest.$ac_ext >&5
16739
16740ac_cv_type_uintptr_t=no
4e8d927d 16741fi
3841debe
DJ
16742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16743fi
16744echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
16745echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
e5a7de23 16746
4e8d927d
DJ
16747 break
16748 done
e5a7de23 16749fi
4e8d927d
DJ
16750if test "$acx_cv_header_stdint" = stddef.h; then
16751 acx_cv_header_stdint_kind="(u_intXX_t style)"
16752 for i in sys/types.h $inttype_headers; do
16753 unset ac_cv_type_u_int32_t
16754 unset ac_cv_type_u_int64_t
16755 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
b4e70030
JB
16756 echo "$as_me:$LINENO: checking for u_int32_t" >&5
16757echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
4e8d927d 16758if test "${ac_cv_type_u_int32_t+set}" = set; then
e5a7de23
EZ
16759 echo $ECHO_N "(cached) $ECHO_C" >&6
16760else
16761 cat >conftest.$ac_ext <<_ACEOF
16762/* confdefs.h. */
16763_ACEOF
16764cat confdefs.h >>conftest.$ac_ext
16765cat >>conftest.$ac_ext <<_ACEOF
16766/* end confdefs.h. */
4e8d927d
DJ
16767#include <sys/types.h>
16768#include <$i>
16769
e5a7de23
EZ
16770int
16771main ()
16772{
b4e70030 16773if ((u_int32_t *) 0)
4e8d927d 16774 return 0;
b4e70030 16775if (sizeof (u_int32_t))
4e8d927d 16776 return 0;
e5a7de23
EZ
16777 ;
16778 return 0;
16779}
16780_ACEOF
16781rm -f conftest.$ac_objext
16782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16783 (eval $ac_compile) 2>conftest.er1
16784 ac_status=$?
16785 grep -v '^ *+' conftest.er1 >conftest.err
16786 rm -f conftest.er1
16787 cat conftest.err >&5
16788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16789 (exit $ac_status); } &&
b4e70030
JB
16790 { ac_try='test -z "$ac_c_werror_flag"
16791 || test ! -s conftest.err'
e5a7de23
EZ
16792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16793 (eval $ac_try) 2>&5
16794 ac_status=$?
16795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16796 (exit $ac_status); }; } &&
16797 { ac_try='test -s conftest.$ac_objext'
16798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16799 (eval $ac_try) 2>&5
16800 ac_status=$?
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); }; }; then
4e8d927d 16803 ac_cv_type_u_int32_t=yes
e5a7de23
EZ
16804else
16805 echo "$as_me: failed program was:" >&5
16806sed 's/^/| /' conftest.$ac_ext >&5
16807
b4e70030 16808ac_cv_type_u_int32_t=no
e5a7de23
EZ
16809fi
16810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16811fi
b4e70030
JB
16812echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
16813echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
4e8d927d
DJ
16814if test $ac_cv_type_u_int32_t = yes; then
16815 acx_cv_header_stdint=$i
e5a7de23 16816else
4e8d927d 16817 continue
a3828db0 16818fi
5ee754fc 16819
b4e70030
JB
16820 echo "$as_me:$LINENO: checking for u_int64_t" >&5
16821echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
4e8d927d 16822if test "${ac_cv_type_u_int64_t+set}" = set; then
bec39cab
AC
16823 echo $ECHO_N "(cached) $ECHO_C" >&6
16824else
16825 cat >conftest.$ac_ext <<_ACEOF
16826/* confdefs.h. */
16827_ACEOF
16828cat confdefs.h >>conftest.$ac_ext
16829cat >>conftest.$ac_ext <<_ACEOF
16830/* end confdefs.h. */
4e8d927d
DJ
16831#include <sys/types.h>
16832#include <$i>
16833
bec39cab
AC
16834int
16835main ()
16836{
b4e70030 16837if ((u_int64_t *) 0)
4e8d927d 16838 return 0;
b4e70030 16839if (sizeof (u_int64_t))
4e8d927d 16840 return 0;
bec39cab
AC
16841 ;
16842 return 0;
16843}
16844_ACEOF
a3828db0
MK
16845rm -f conftest.$ac_objext
16846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16847 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
16848 ac_status=$?
16849 grep -v '^ *+' conftest.er1 >conftest.err
16850 rm -f conftest.er1
16851 cat conftest.err >&5
16852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); } &&
b4e70030
JB
16854 { ac_try='test -z "$ac_c_werror_flag"
16855 || test ! -s conftest.err'
bec39cab
AC
16856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16857 (eval $ac_try) 2>&5
16858 ac_status=$?
16859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860 (exit $ac_status); }; } &&
a3828db0 16861 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
16862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16863 (eval $ac_try) 2>&5
16864 ac_status=$?
16865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16866 (exit $ac_status); }; }; then
4e8d927d 16867 ac_cv_type_u_int64_t=yes
bec39cab
AC
16868else
16869 echo "$as_me: failed program was:" >&5
16870sed 's/^/| /' conftest.$ac_ext >&5
16871
b4e70030 16872ac_cv_type_u_int64_t=no
4e8d927d 16873fi
4e8d927d
DJ
16874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16875fi
b4e70030
JB
16876echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16877echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
4e8d927d
DJ
16878
16879 break
16880 done
16881fi
16882if test "$acx_cv_header_stdint" = stddef.h; then
16883 acx_cv_header_stdint_kind="(using manual detection)"
16884fi
16885
16886test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16887test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16888test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16889test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16890test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
16891
16892# ----------------- Summarize what we found so far
16893
b4e70030
JB
16894echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5
16895echo $ECHO_N "checking what to include in gdb_stdint.h... $ECHO_C" >&6
4e8d927d 16896
b4e70030 16897case `$as_basename gdb_stdint.h ||
4e8d927d
DJ
16898$as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
16899 Xgdb_stdint.h : 'X\(//\)$' \| \
b4e70030
JB
16900 Xgdb_stdint.h : 'X\(/\)$' \| \
16901 . : '\(.\)' 2>/dev/null ||
4e8d927d 16902echo X/gdb_stdint.h |
b4e70030
JB
16903 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16904 /^X\/\(\/\/\)$/{ s//\1/; q; }
16905 /^X\/\(\/\).*/{ s//\1/; q; }
16906 s/.*/./; q'` in
4e8d927d
DJ
16907 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
16908echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16909 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
16910echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16911 *) ;;
16912esac
16913
b4e70030
JB
16914echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16915echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
4e8d927d
DJ
16916
16917# ----------------- done included file, check C basic types --------
16918
16919# Lacking an uintptr_t? Test size of void *
16920case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
b4e70030
JB
16921 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
16922echo $ECHO_N "checking for void *... $ECHO_C" >&6
4e8d927d
DJ
16923if test "${ac_cv_type_void_p+set}" = set; then
16924 echo $ECHO_N "(cached) $ECHO_C" >&6
16925else
16926 cat >conftest.$ac_ext <<_ACEOF
a3828db0 16927/* confdefs.h. */
bec39cab
AC
16928_ACEOF
16929cat confdefs.h >>conftest.$ac_ext
16930cat >>conftest.$ac_ext <<_ACEOF
16931/* end confdefs.h. */
a3828db0 16932$ac_includes_default
bec39cab
AC
16933int
16934main ()
16935{
b4e70030 16936if ((void * *) 0)
4e8d927d 16937 return 0;
b4e70030 16938if (sizeof (void *))
4e8d927d 16939 return 0;
bec39cab
AC
16940 ;
16941 return 0;
16942}
16943_ACEOF
a3828db0
MK
16944rm -f conftest.$ac_objext
16945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16946 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
16947 ac_status=$?
16948 grep -v '^ *+' conftest.er1 >conftest.err
16949 rm -f conftest.er1
16950 cat conftest.err >&5
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); } &&
b4e70030
JB
16953 { ac_try='test -z "$ac_c_werror_flag"
16954 || test ! -s conftest.err'
bec39cab
AC
16955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16956 (eval $ac_try) 2>&5
16957 ac_status=$?
16958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); }; } &&
a3828db0 16960 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
16961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16962 (eval $ac_try) 2>&5
16963 ac_status=$?
16964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16965 (exit $ac_status); }; }; then
4e8d927d 16966 ac_cv_type_void_p=yes
46711df8 16967else
bec39cab
AC
16968 echo "$as_me: failed program was:" >&5
16969sed 's/^/| /' conftest.$ac_ext >&5
16970
b4e70030 16971ac_cv_type_void_p=no
a3828db0 16972fi
4e8d927d 16973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d3ea6809 16974fi
b4e70030
JB
16975echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
16976echo "${ECHO_T}$ac_cv_type_void_p" >&6
d3ea6809 16977
b4e70030
JB
16978echo "$as_me:$LINENO: checking size of void *" >&5
16979echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4e8d927d 16980if test "${ac_cv_sizeof_void_p+set}" = set; then
d3ea6809
MM
16981 echo $ECHO_N "(cached) $ECHO_C" >&6
16982else
4e8d927d 16983 if test "$ac_cv_type_void_p" = yes; then
b4e70030 16984 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
16985 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16986 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16987 # This bug is HP SR number 8606223364.
16988 if test "$cross_compiling" = yes; then
16989 # Depending upon the size, compute the lo and hi bounds.
16990cat >conftest.$ac_ext <<_ACEOF
d3ea6809
MM
16991/* confdefs.h. */
16992_ACEOF
16993cat confdefs.h >>conftest.$ac_ext
16994cat >>conftest.$ac_ext <<_ACEOF
16995/* end confdefs.h. */
16996$ac_includes_default
16997int
16998main ()
16999{
b4e70030 17000static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4e8d927d
DJ
17001test_array [0] = 0
17002
d3ea6809
MM
17003 ;
17004 return 0;
17005}
17006_ACEOF
17007rm -f conftest.$ac_objext
17008if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17009 (eval $ac_compile) 2>conftest.er1
17010 ac_status=$?
17011 grep -v '^ *+' conftest.er1 >conftest.err
17012 rm -f conftest.er1
17013 cat conftest.err >&5
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); } &&
b4e70030
JB
17016 { ac_try='test -z "$ac_c_werror_flag"
17017 || test ! -s conftest.err'
d3ea6809
MM
17018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17019 (eval $ac_try) 2>&5
17020 ac_status=$?
17021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022 (exit $ac_status); }; } &&
17023 { ac_try='test -s conftest.$ac_objext'
17024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17025 (eval $ac_try) 2>&5
17026 ac_status=$?
17027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17028 (exit $ac_status); }; }; then
4e8d927d
DJ
17029 ac_lo=0 ac_mid=0
17030 while :; do
17031 cat >conftest.$ac_ext <<_ACEOF
d3ea6809
MM
17032/* confdefs.h. */
17033_ACEOF
17034cat confdefs.h >>conftest.$ac_ext
17035cat >>conftest.$ac_ext <<_ACEOF
17036/* end confdefs.h. */
17037$ac_includes_default
17038int
17039main ()
17040{
b4e70030 17041static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4e8d927d
DJ
17042test_array [0] = 0
17043
d3ea6809
MM
17044 ;
17045 return 0;
17046}
17047_ACEOF
17048rm -f conftest.$ac_objext
17049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17050 (eval $ac_compile) 2>conftest.er1
17051 ac_status=$?
17052 grep -v '^ *+' conftest.er1 >conftest.err
17053 rm -f conftest.er1
17054 cat conftest.err >&5
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); } &&
b4e70030
JB
17057 { ac_try='test -z "$ac_c_werror_flag"
17058 || test ! -s conftest.err'
d3ea6809
MM
17059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17060 (eval $ac_try) 2>&5
17061 ac_status=$?
17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); }; } &&
17064 { ac_try='test -s conftest.$ac_objext'
17065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17066 (eval $ac_try) 2>&5
17067 ac_status=$?
17068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); }; }; then
4e8d927d 17070 ac_hi=$ac_mid; break
d3ea6809
MM
17071else
17072 echo "$as_me: failed program was:" >&5
17073sed 's/^/| /' conftest.$ac_ext >&5
17074
b4e70030
JB
17075ac_lo=`expr $ac_mid + 1`
17076 if test $ac_lo -le $ac_mid; then
17077 ac_lo= ac_hi=
17078 break
17079 fi
17080 ac_mid=`expr 2 '*' $ac_mid + 1`
a3828db0 17081fi
4e8d927d
DJ
17082rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17083 done
bec39cab 17084else
4e8d927d
DJ
17085 echo "$as_me: failed program was:" >&5
17086sed 's/^/| /' conftest.$ac_ext >&5
17087
b4e70030 17088cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
17089/* confdefs.h. */
17090_ACEOF
17091cat confdefs.h >>conftest.$ac_ext
17092cat >>conftest.$ac_ext <<_ACEOF
17093/* end confdefs.h. */
4e8d927d 17094$ac_includes_default
bec39cab
AC
17095int
17096main ()
17097{
b4e70030 17098static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4e8d927d
DJ
17099test_array [0] = 0
17100
bec39cab
AC
17101 ;
17102 return 0;
17103}
17104_ACEOF
a3828db0
MK
17105rm -f conftest.$ac_objext
17106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17107 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
17108 ac_status=$?
17109 grep -v '^ *+' conftest.er1 >conftest.err
17110 rm -f conftest.er1
17111 cat conftest.err >&5
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); } &&
b4e70030
JB
17114 { ac_try='test -z "$ac_c_werror_flag"
17115 || test ! -s conftest.err'
bec39cab
AC
17116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17117 (eval $ac_try) 2>&5
17118 ac_status=$?
17119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17120 (exit $ac_status); }; } &&
a3828db0 17121 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
17122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17123 (eval $ac_try) 2>&5
17124 ac_status=$?
17125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17126 (exit $ac_status); }; }; then
4e8d927d
DJ
17127 ac_hi=-1 ac_mid=-1
17128 while :; do
17129 cat >conftest.$ac_ext <<_ACEOF
f9f87d2c
MK
17130/* confdefs.h. */
17131_ACEOF
17132cat confdefs.h >>conftest.$ac_ext
17133cat >>conftest.$ac_ext <<_ACEOF
17134/* end confdefs.h. */
4e8d927d 17135$ac_includes_default
f9f87d2c
MK
17136int
17137main ()
17138{
b4e70030 17139static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4e8d927d
DJ
17140test_array [0] = 0
17141
f9f87d2c
MK
17142 ;
17143 return 0;
17144}
17145_ACEOF
17146rm -f conftest.$ac_objext
17147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17148 (eval $ac_compile) 2>conftest.er1
17149 ac_status=$?
17150 grep -v '^ *+' conftest.er1 >conftest.err
17151 rm -f conftest.er1
17152 cat conftest.err >&5
17153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154 (exit $ac_status); } &&
b4e70030
JB
17155 { ac_try='test -z "$ac_c_werror_flag"
17156 || test ! -s conftest.err'
f9f87d2c
MK
17157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17158 (eval $ac_try) 2>&5
17159 ac_status=$?
17160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); }; } &&
17162 { ac_try='test -s conftest.$ac_objext'
17163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17164 (eval $ac_try) 2>&5
17165 ac_status=$?
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); }; }; then
4e8d927d 17168 ac_lo=$ac_mid; break
f9f87d2c
MK
17169else
17170 echo "$as_me: failed program was:" >&5
17171sed 's/^/| /' conftest.$ac_ext >&5
17172
b4e70030
JB
17173ac_hi=`expr '(' $ac_mid ')' - 1`
17174 if test $ac_mid -le $ac_hi; then
17175 ac_lo= ac_hi=
17176 break
17177 fi
17178 ac_mid=`expr 2 '*' $ac_mid`
f9f87d2c 17179fi
4e8d927d
DJ
17180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17181 done
17182else
17183 echo "$as_me: failed program was:" >&5
17184sed 's/^/| /' conftest.$ac_ext >&5
f9f87d2c 17185
b4e70030 17186ac_lo= ac_hi=
4e8d927d 17187fi
4e8d927d 17188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3be60c3d 17189fi
4e8d927d
DJ
17190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17191# Binary search between lo and hi bounds.
17192while test "x$ac_lo" != "x$ac_hi"; do
17193 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3be60c3d
MK
17194 cat >conftest.$ac_ext <<_ACEOF
17195/* confdefs.h. */
17196_ACEOF
17197cat confdefs.h >>conftest.$ac_ext
17198cat >>conftest.$ac_ext <<_ACEOF
17199/* end confdefs.h. */
4e8d927d 17200$ac_includes_default
3be60c3d
MK
17201int
17202main ()
17203{
b4e70030 17204static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4e8d927d
DJ
17205test_array [0] = 0
17206
3be60c3d
MK
17207 ;
17208 return 0;
17209}
17210_ACEOF
17211rm -f conftest.$ac_objext
17212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17213 (eval $ac_compile) 2>conftest.er1
17214 ac_status=$?
17215 grep -v '^ *+' conftest.er1 >conftest.err
17216 rm -f conftest.er1
17217 cat conftest.err >&5
17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); } &&
b4e70030
JB
17220 { ac_try='test -z "$ac_c_werror_flag"
17221 || test ! -s conftest.err'
3be60c3d
MK
17222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17223 (eval $ac_try) 2>&5
17224 ac_status=$?
17225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17226 (exit $ac_status); }; } &&
17227 { ac_try='test -s conftest.$ac_objext'
17228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17229 (eval $ac_try) 2>&5
17230 ac_status=$?
17231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232 (exit $ac_status); }; }; then
4e8d927d 17233 ac_hi=$ac_mid
3be60c3d
MK
17234else
17235 echo "$as_me: failed program was:" >&5
17236sed 's/^/| /' conftest.$ac_ext >&5
17237
b4e70030 17238ac_lo=`expr '(' $ac_mid ')' + 1`
3be60c3d 17239fi
4e8d927d
DJ
17240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17241done
17242case $ac_lo in
17243?*) ac_cv_sizeof_void_p=$ac_lo;;
b4e70030 17244'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4e8d927d 17245See \`config.log' for more details." >&5
b4e70030 17246echo "$as_me: error: cannot compute sizeof (void *), 77
4e8d927d 17247See \`config.log' for more details." >&2;}
b4e70030 17248 { (exit 1); exit 1; }; } ;;
4e8d927d 17249esac
b4e70030
JB
17250else
17251 if test "$cross_compiling" = yes; then
17252 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17253See \`config.log' for more details." >&5
17254echo "$as_me: error: cannot run test program while cross compiling
17255See \`config.log' for more details." >&2;}
17256 { (exit 1); exit 1; }; }
4e8d927d
DJ
17257else
17258 cat >conftest.$ac_ext <<_ACEOF
17259/* confdefs.h. */
3be60c3d 17260_ACEOF
4e8d927d
DJ
17261cat confdefs.h >>conftest.$ac_ext
17262cat >>conftest.$ac_ext <<_ACEOF
17263/* end confdefs.h. */
17264$ac_includes_default
b4e70030
JB
17265long longval () { return (long) (sizeof (void *)); }
17266unsigned long ulongval () { return (long) (sizeof (void *)); }
4e8d927d
DJ
17267#include <stdio.h>
17268#include <stdlib.h>
17269int
17270main ()
17271{
17272
17273 FILE *f = fopen ("conftest.val", "w");
17274 if (! f)
b4e70030
JB
17275 exit (1);
17276 if (((long) (sizeof (void *))) < 0)
4e8d927d 17277 {
b4e70030
JB
17278 long i = longval ();
17279 if (i != ((long) (sizeof (void *))))
17280 exit (1);
4e8d927d
DJ
17281 fprintf (f, "%ld\n", i);
17282 }
17283 else
17284 {
b4e70030
JB
17285 unsigned long i = ulongval ();
17286 if (i != ((long) (sizeof (void *))))
17287 exit (1);
4e8d927d
DJ
17288 fprintf (f, "%lu\n", i);
17289 }
b4e70030 17290 exit (ferror (f) || fclose (f) != 0);
3be60c3d 17291
4e8d927d
DJ
17292 ;
17293 return 0;
17294}
17295_ACEOF
17296rm -f conftest$ac_exeext
17297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17298 (eval $ac_link) 2>&5
17299 ac_status=$?
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17303 (eval $ac_try) 2>&5
17304 ac_status=$?
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); }; }; then
17307 ac_cv_sizeof_void_p=`cat conftest.val`
17308else
17309 echo "$as_me: program exited with status $ac_status" >&5
17310echo "$as_me: failed program was:" >&5
17311sed 's/^/| /' conftest.$ac_ext >&5
3be60c3d 17312
4e8d927d 17313( exit $ac_status )
b4e70030 17314{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4e8d927d 17315See \`config.log' for more details." >&5
b4e70030 17316echo "$as_me: error: cannot compute sizeof (void *), 77
4e8d927d 17317See \`config.log' for more details." >&2;}
b4e70030
JB
17318 { (exit 1); exit 1; }; }
17319fi
17320rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f9f87d2c 17321fi
4e8d927d
DJ
17322fi
17323rm -f conftest.val
17324else
17325 ac_cv_sizeof_void_p=0
17326fi
17327fi
b4e70030
JB
17328echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
17329echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4e8d927d
DJ
17330cat >>confdefs.h <<_ACEOF
17331#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17332_ACEOF
f9f87d2c 17333
4e8d927d
DJ
17334 ;;
17335esac
46711df8 17336
4e8d927d
DJ
17337# Lacking an uint64_t? Test size of long
17338case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
b4e70030
JB
17339 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
17340echo $ECHO_N "checking for long... $ECHO_C" >&6
4e8d927d 17341if test "${ac_cv_type_long+set}" = set; then
bec39cab 17342 echo $ECHO_N "(cached) $ECHO_C" >&6
46711df8 17343else
bec39cab
AC
17344 cat >conftest.$ac_ext <<_ACEOF
17345/* confdefs.h. */
17346_ACEOF
17347cat confdefs.h >>conftest.$ac_ext
17348cat >>conftest.$ac_ext <<_ACEOF
17349/* end confdefs.h. */
4e8d927d 17350$ac_includes_default
bec39cab 17351int
46711df8
MK
17352main ()
17353{
b4e70030 17354if ((long *) 0)
4e8d927d 17355 return 0;
b4e70030 17356if (sizeof (long))
4e8d927d 17357 return 0;
a3828db0
MK
17358 ;
17359 return 0;
46711df8 17360}
bec39cab 17361_ACEOF
a3828db0
MK
17362rm -f conftest.$ac_objext
17363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17364 (eval $ac_compile) 2>conftest.er1
17365 ac_status=$?
17366 grep -v '^ *+' conftest.er1 >conftest.err
17367 rm -f conftest.er1
17368 cat conftest.err >&5
17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370 (exit $ac_status); } &&
b4e70030
JB
17371 { ac_try='test -z "$ac_c_werror_flag"
17372 || test ! -s conftest.err'
a3828db0
MK
17373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17374 (eval $ac_try) 2>&5
bec39cab
AC
17375 ac_status=$?
17376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0
MK
17377 (exit $ac_status); }; } &&
17378 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
17379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17380 (eval $ac_try) 2>&5
17381 ac_status=$?
17382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17383 (exit $ac_status); }; }; then
4e8d927d 17384 ac_cv_type_long=yes
46711df8 17385else
a3828db0 17386 echo "$as_me: failed program was:" >&5
bec39cab
AC
17387sed 's/^/| /' conftest.$ac_ext >&5
17388
b4e70030 17389ac_cv_type_long=no
46711df8 17390fi
4e8d927d 17391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46711df8 17392fi
b4e70030
JB
17393echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
17394echo "${ECHO_T}$ac_cv_type_long" >&6
46711df8 17395
b4e70030
JB
17396echo "$as_me:$LINENO: checking size of long" >&5
17397echo $ECHO_N "checking size of long... $ECHO_C" >&6
4e8d927d 17398if test "${ac_cv_sizeof_long+set}" = set; then
bec39cab 17399 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 17400else
4e8d927d 17401 if test "$ac_cv_type_long" = yes; then
b4e70030 17402 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
17403 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17404 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17405 # This bug is HP SR number 8606223364.
17406 if test "$cross_compiling" = yes; then
17407 # Depending upon the size, compute the lo and hi bounds.
17408cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
17409/* confdefs.h. */
17410_ACEOF
17411cat confdefs.h >>conftest.$ac_ext
17412cat >>conftest.$ac_ext <<_ACEOF
17413/* end confdefs.h. */
4e8d927d 17414$ac_includes_default
4e8d927d
DJ
17415int
17416main ()
17417{
b4e70030 17418static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4e8d927d 17419test_array [0] = 0
a3828db0 17420
4e8d927d
DJ
17421 ;
17422 return 0;
17423}
bec39cab
AC
17424_ACEOF
17425rm -f conftest.$ac_objext
17426if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17427 (eval $ac_compile) 2>conftest.er1
17428 ac_status=$?
17429 grep -v '^ *+' conftest.er1 >conftest.err
17430 rm -f conftest.er1
17431 cat conftest.err >&5
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); } &&
b4e70030
JB
17434 { ac_try='test -z "$ac_c_werror_flag"
17435 || test ! -s conftest.err'
bec39cab
AC
17436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17437 (eval $ac_try) 2>&5
17438 ac_status=$?
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); }; } &&
17441 { ac_try='test -s conftest.$ac_objext'
17442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17443 (eval $ac_try) 2>&5
17444 ac_status=$?
17445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17446 (exit $ac_status); }; }; then
4e8d927d
DJ
17447 ac_lo=0 ac_mid=0
17448 while :; do
17449 cat >conftest.$ac_ext <<_ACEOF
17450/* confdefs.h. */
17451_ACEOF
17452cat confdefs.h >>conftest.$ac_ext
17453cat >>conftest.$ac_ext <<_ACEOF
17454/* end confdefs.h. */
17455$ac_includes_default
4e8d927d
DJ
17456int
17457main ()
17458{
b4e70030 17459static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4e8d927d
DJ
17460test_array [0] = 0
17461
17462 ;
17463 return 0;
17464}
17465_ACEOF
17466rm -f conftest.$ac_objext
17467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17468 (eval $ac_compile) 2>conftest.er1
17469 ac_status=$?
17470 grep -v '^ *+' conftest.er1 >conftest.err
17471 rm -f conftest.er1
17472 cat conftest.err >&5
17473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474 (exit $ac_status); } &&
b4e70030
JB
17475 { ac_try='test -z "$ac_c_werror_flag"
17476 || test ! -s conftest.err'
4e8d927d
DJ
17477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17478 (eval $ac_try) 2>&5
17479 ac_status=$?
17480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481 (exit $ac_status); }; } &&
17482 { ac_try='test -s conftest.$ac_objext'
17483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17484 (eval $ac_try) 2>&5
17485 ac_status=$?
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); }; }; then
17488 ac_hi=$ac_mid; break
17489else
17490 echo "$as_me: failed program was:" >&5
17491sed 's/^/| /' conftest.$ac_ext >&5
17492
b4e70030
JB
17493ac_lo=`expr $ac_mid + 1`
17494 if test $ac_lo -le $ac_mid; then
17495 ac_lo= ac_hi=
17496 break
17497 fi
17498 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 17499fi
4e8d927d
DJ
17500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17501 done
17502else
17503 echo "$as_me: failed program was:" >&5
17504sed 's/^/| /' conftest.$ac_ext >&5
17505
b4e70030 17506cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
17507/* confdefs.h. */
17508_ACEOF
17509cat confdefs.h >>conftest.$ac_ext
17510cat >>conftest.$ac_ext <<_ACEOF
17511/* end confdefs.h. */
17512$ac_includes_default
4e8d927d
DJ
17513int
17514main ()
17515{
b4e70030 17516static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4e8d927d
DJ
17517test_array [0] = 0
17518
17519 ;
17520 return 0;
17521}
17522_ACEOF
17523rm -f conftest.$ac_objext
17524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17525 (eval $ac_compile) 2>conftest.er1
17526 ac_status=$?
17527 grep -v '^ *+' conftest.er1 >conftest.err
17528 rm -f conftest.er1
17529 cat conftest.err >&5
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); } &&
b4e70030
JB
17532 { ac_try='test -z "$ac_c_werror_flag"
17533 || test ! -s conftest.err'
4e8d927d
DJ
17534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17535 (eval $ac_try) 2>&5
17536 ac_status=$?
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); }; } &&
17539 { ac_try='test -s conftest.$ac_objext'
17540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17541 (eval $ac_try) 2>&5
17542 ac_status=$?
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); }; }; then
17545 ac_hi=-1 ac_mid=-1
17546 while :; do
17547 cat >conftest.$ac_ext <<_ACEOF
17548/* confdefs.h. */
17549_ACEOF
17550cat confdefs.h >>conftest.$ac_ext
17551cat >>conftest.$ac_ext <<_ACEOF
17552/* end confdefs.h. */
17553$ac_includes_default
4e8d927d
DJ
17554int
17555main ()
17556{
b4e70030 17557static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4e8d927d
DJ
17558test_array [0] = 0
17559
17560 ;
17561 return 0;
17562}
17563_ACEOF
17564rm -f conftest.$ac_objext
17565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17566 (eval $ac_compile) 2>conftest.er1
17567 ac_status=$?
17568 grep -v '^ *+' conftest.er1 >conftest.err
17569 rm -f conftest.er1
17570 cat conftest.err >&5
17571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572 (exit $ac_status); } &&
b4e70030
JB
17573 { ac_try='test -z "$ac_c_werror_flag"
17574 || test ! -s conftest.err'
4e8d927d
DJ
17575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17576 (eval $ac_try) 2>&5
17577 ac_status=$?
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); }; } &&
17580 { ac_try='test -s conftest.$ac_objext'
17581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17582 (eval $ac_try) 2>&5
17583 ac_status=$?
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); }; }; then
17586 ac_lo=$ac_mid; break
17587else
17588 echo "$as_me: failed program was:" >&5
17589sed 's/^/| /' conftest.$ac_ext >&5
17590
b4e70030
JB
17591ac_hi=`expr '(' $ac_mid ')' - 1`
17592 if test $ac_mid -le $ac_hi; then
17593 ac_lo= ac_hi=
17594 break
17595 fi
17596 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 17597fi
4e8d927d
DJ
17598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17599 done
17600else
17601 echo "$as_me: failed program was:" >&5
17602sed 's/^/| /' conftest.$ac_ext >&5
17603
b4e70030 17604ac_lo= ac_hi=
4e8d927d 17605fi
4e8d927d
DJ
17606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17607fi
4e8d927d
DJ
17608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17609# Binary search between lo and hi bounds.
17610while test "x$ac_lo" != "x$ac_hi"; do
17611 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17612 cat >conftest.$ac_ext <<_ACEOF
17613/* confdefs.h. */
17614_ACEOF
17615cat confdefs.h >>conftest.$ac_ext
17616cat >>conftest.$ac_ext <<_ACEOF
17617/* end confdefs.h. */
17618$ac_includes_default
4e8d927d
DJ
17619int
17620main ()
17621{
b4e70030 17622static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4e8d927d
DJ
17623test_array [0] = 0
17624
17625 ;
17626 return 0;
17627}
17628_ACEOF
17629rm -f conftest.$ac_objext
17630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17631 (eval $ac_compile) 2>conftest.er1
17632 ac_status=$?
17633 grep -v '^ *+' conftest.er1 >conftest.err
17634 rm -f conftest.er1
17635 cat conftest.err >&5
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); } &&
b4e70030
JB
17638 { ac_try='test -z "$ac_c_werror_flag"
17639 || test ! -s conftest.err'
4e8d927d
DJ
17640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17641 (eval $ac_try) 2>&5
17642 ac_status=$?
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); }; } &&
17645 { ac_try='test -s conftest.$ac_objext'
17646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17647 (eval $ac_try) 2>&5
17648 ac_status=$?
17649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650 (exit $ac_status); }; }; then
17651 ac_hi=$ac_mid
17652else
17653 echo "$as_me: failed program was:" >&5
17654sed 's/^/| /' conftest.$ac_ext >&5
17655
b4e70030 17656ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 17657fi
4e8d927d
DJ
17658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17659done
17660case $ac_lo in
17661?*) ac_cv_sizeof_long=$ac_lo;;
b4e70030 17662'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4e8d927d 17663See \`config.log' for more details." >&5
b4e70030 17664echo "$as_me: error: cannot compute sizeof (long), 77
4e8d927d 17665See \`config.log' for more details." >&2;}
b4e70030 17666 { (exit 1); exit 1; }; } ;;
4e8d927d 17667esac
b4e70030
JB
17668else
17669 if test "$cross_compiling" = yes; then
17670 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17671See \`config.log' for more details." >&5
17672echo "$as_me: error: cannot run test program while cross compiling
17673See \`config.log' for more details." >&2;}
17674 { (exit 1); exit 1; }; }
4e8d927d
DJ
17675else
17676 cat >conftest.$ac_ext <<_ACEOF
17677/* confdefs.h. */
17678_ACEOF
17679cat confdefs.h >>conftest.$ac_ext
17680cat >>conftest.$ac_ext <<_ACEOF
17681/* end confdefs.h. */
17682$ac_includes_default
b4e70030
JB
17683long longval () { return (long) (sizeof (long)); }
17684unsigned long ulongval () { return (long) (sizeof (long)); }
4e8d927d
DJ
17685#include <stdio.h>
17686#include <stdlib.h>
17687int
17688main ()
17689{
17690
17691 FILE *f = fopen ("conftest.val", "w");
17692 if (! f)
b4e70030
JB
17693 exit (1);
17694 if (((long) (sizeof (long))) < 0)
4e8d927d 17695 {
b4e70030
JB
17696 long i = longval ();
17697 if (i != ((long) (sizeof (long))))
17698 exit (1);
4e8d927d
DJ
17699 fprintf (f, "%ld\n", i);
17700 }
17701 else
17702 {
b4e70030
JB
17703 unsigned long i = ulongval ();
17704 if (i != ((long) (sizeof (long))))
17705 exit (1);
4e8d927d
DJ
17706 fprintf (f, "%lu\n", i);
17707 }
b4e70030 17708 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
17709
17710 ;
17711 return 0;
17712}
17713_ACEOF
17714rm -f conftest$ac_exeext
17715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17716 (eval $ac_link) 2>&5
17717 ac_status=$?
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17721 (eval $ac_try) 2>&5
17722 ac_status=$?
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); }; }; then
17725 ac_cv_sizeof_long=`cat conftest.val`
17726else
17727 echo "$as_me: program exited with status $ac_status" >&5
17728echo "$as_me: failed program was:" >&5
17729sed 's/^/| /' conftest.$ac_ext >&5
17730
17731( exit $ac_status )
b4e70030 17732{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4e8d927d 17733See \`config.log' for more details." >&5
b4e70030 17734echo "$as_me: error: cannot compute sizeof (long), 77
4e8d927d 17735See \`config.log' for more details." >&2;}
b4e70030
JB
17736 { (exit 1); exit 1; }; }
17737fi
17738rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 17739fi
4e8d927d
DJ
17740fi
17741rm -f conftest.val
17742else
17743 ac_cv_sizeof_long=0
17744fi
17745fi
b4e70030
JB
17746echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
17747echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4e8d927d
DJ
17748cat >>confdefs.h <<_ACEOF
17749#define SIZEOF_LONG $ac_cv_sizeof_long
17750_ACEOF
17751
17752 ;;
17753esac
17754
17755if test $acx_cv_header_stdint = stddef.h; then
17756 # Lacking a good header? Test size of everything and deduce all types.
b4e70030
JB
17757 echo "$as_me:$LINENO: checking for int" >&5
17758echo $ECHO_N "checking for int... $ECHO_C" >&6
4e8d927d
DJ
17759if test "${ac_cv_type_int+set}" = set; then
17760 echo $ECHO_N "(cached) $ECHO_C" >&6
17761else
17762 cat >conftest.$ac_ext <<_ACEOF
17763/* confdefs.h. */
17764_ACEOF
17765cat confdefs.h >>conftest.$ac_ext
17766cat >>conftest.$ac_ext <<_ACEOF
17767/* end confdefs.h. */
17768$ac_includes_default
4e8d927d
DJ
17769int
17770main ()
17771{
b4e70030 17772if ((int *) 0)
4e8d927d 17773 return 0;
b4e70030 17774if (sizeof (int))
4e8d927d
DJ
17775 return 0;
17776 ;
17777 return 0;
17778}
17779_ACEOF
17780rm -f conftest.$ac_objext
17781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17782 (eval $ac_compile) 2>conftest.er1
17783 ac_status=$?
17784 grep -v '^ *+' conftest.er1 >conftest.err
17785 rm -f conftest.er1
17786 cat conftest.err >&5
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); } &&
b4e70030
JB
17789 { ac_try='test -z "$ac_c_werror_flag"
17790 || test ! -s conftest.err'
4e8d927d
DJ
17791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17792 (eval $ac_try) 2>&5
17793 ac_status=$?
17794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795 (exit $ac_status); }; } &&
17796 { ac_try='test -s conftest.$ac_objext'
17797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17798 (eval $ac_try) 2>&5
17799 ac_status=$?
17800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801 (exit $ac_status); }; }; then
17802 ac_cv_type_int=yes
17803else
17804 echo "$as_me: failed program was:" >&5
17805sed 's/^/| /' conftest.$ac_ext >&5
17806
b4e70030 17807ac_cv_type_int=no
4e8d927d 17808fi
4e8d927d
DJ
17809rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17810fi
b4e70030
JB
17811echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
17812echo "${ECHO_T}$ac_cv_type_int" >&6
4e8d927d 17813
b4e70030
JB
17814echo "$as_me:$LINENO: checking size of int" >&5
17815echo $ECHO_N "checking size of int... $ECHO_C" >&6
4e8d927d
DJ
17816if test "${ac_cv_sizeof_int+set}" = set; then
17817 echo $ECHO_N "(cached) $ECHO_C" >&6
17818else
17819 if test "$ac_cv_type_int" = yes; then
b4e70030 17820 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
17821 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17822 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17823 # This bug is HP SR number 8606223364.
17824 if test "$cross_compiling" = yes; then
17825 # Depending upon the size, compute the lo and hi bounds.
17826cat >conftest.$ac_ext <<_ACEOF
17827/* confdefs.h. */
17828_ACEOF
17829cat confdefs.h >>conftest.$ac_ext
17830cat >>conftest.$ac_ext <<_ACEOF
17831/* end confdefs.h. */
17832$ac_includes_default
4e8d927d
DJ
17833int
17834main ()
17835{
b4e70030 17836static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4e8d927d
DJ
17837test_array [0] = 0
17838
17839 ;
17840 return 0;
17841}
17842_ACEOF
17843rm -f conftest.$ac_objext
17844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17845 (eval $ac_compile) 2>conftest.er1
17846 ac_status=$?
17847 grep -v '^ *+' conftest.er1 >conftest.err
17848 rm -f conftest.er1
17849 cat conftest.err >&5
17850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17851 (exit $ac_status); } &&
b4e70030
JB
17852 { ac_try='test -z "$ac_c_werror_flag"
17853 || test ! -s conftest.err'
4e8d927d
DJ
17854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17855 (eval $ac_try) 2>&5
17856 ac_status=$?
17857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858 (exit $ac_status); }; } &&
17859 { ac_try='test -s conftest.$ac_objext'
17860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17861 (eval $ac_try) 2>&5
17862 ac_status=$?
17863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17864 (exit $ac_status); }; }; then
17865 ac_lo=0 ac_mid=0
17866 while :; do
17867 cat >conftest.$ac_ext <<_ACEOF
17868/* confdefs.h. */
17869_ACEOF
17870cat confdefs.h >>conftest.$ac_ext
17871cat >>conftest.$ac_ext <<_ACEOF
17872/* end confdefs.h. */
17873$ac_includes_default
4e8d927d
DJ
17874int
17875main ()
17876{
b4e70030 17877static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4e8d927d
DJ
17878test_array [0] = 0
17879
17880 ;
17881 return 0;
17882}
17883_ACEOF
17884rm -f conftest.$ac_objext
17885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17886 (eval $ac_compile) 2>conftest.er1
17887 ac_status=$?
17888 grep -v '^ *+' conftest.er1 >conftest.err
17889 rm -f conftest.er1
17890 cat conftest.err >&5
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); } &&
b4e70030
JB
17893 { ac_try='test -z "$ac_c_werror_flag"
17894 || test ! -s conftest.err'
4e8d927d
DJ
17895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17896 (eval $ac_try) 2>&5
17897 ac_status=$?
17898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); }; } &&
17900 { ac_try='test -s conftest.$ac_objext'
17901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17902 (eval $ac_try) 2>&5
17903 ac_status=$?
17904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17905 (exit $ac_status); }; }; then
17906 ac_hi=$ac_mid; break
17907else
17908 echo "$as_me: failed program was:" >&5
17909sed 's/^/| /' conftest.$ac_ext >&5
17910
b4e70030
JB
17911ac_lo=`expr $ac_mid + 1`
17912 if test $ac_lo -le $ac_mid; then
17913 ac_lo= ac_hi=
17914 break
17915 fi
17916 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 17917fi
4e8d927d
DJ
17918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17919 done
17920else
17921 echo "$as_me: failed program was:" >&5
17922sed 's/^/| /' conftest.$ac_ext >&5
17923
b4e70030 17924cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
17925/* confdefs.h. */
17926_ACEOF
17927cat confdefs.h >>conftest.$ac_ext
17928cat >>conftest.$ac_ext <<_ACEOF
17929/* end confdefs.h. */
17930$ac_includes_default
4e8d927d
DJ
17931int
17932main ()
17933{
b4e70030 17934static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4e8d927d
DJ
17935test_array [0] = 0
17936
17937 ;
17938 return 0;
17939}
17940_ACEOF
17941rm -f conftest.$ac_objext
17942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17943 (eval $ac_compile) 2>conftest.er1
17944 ac_status=$?
17945 grep -v '^ *+' conftest.er1 >conftest.err
17946 rm -f conftest.er1
17947 cat conftest.err >&5
17948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17949 (exit $ac_status); } &&
b4e70030
JB
17950 { ac_try='test -z "$ac_c_werror_flag"
17951 || test ! -s conftest.err'
4e8d927d
DJ
17952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17953 (eval $ac_try) 2>&5
17954 ac_status=$?
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); }; } &&
17957 { ac_try='test -s conftest.$ac_objext'
17958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17959 (eval $ac_try) 2>&5
17960 ac_status=$?
17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962 (exit $ac_status); }; }; then
17963 ac_hi=-1 ac_mid=-1
17964 while :; do
17965 cat >conftest.$ac_ext <<_ACEOF
17966/* confdefs.h. */
17967_ACEOF
17968cat confdefs.h >>conftest.$ac_ext
17969cat >>conftest.$ac_ext <<_ACEOF
17970/* end confdefs.h. */
17971$ac_includes_default
4e8d927d
DJ
17972int
17973main ()
17974{
b4e70030 17975static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4e8d927d
DJ
17976test_array [0] = 0
17977
17978 ;
17979 return 0;
17980}
17981_ACEOF
17982rm -f conftest.$ac_objext
17983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17984 (eval $ac_compile) 2>conftest.er1
17985 ac_status=$?
17986 grep -v '^ *+' conftest.er1 >conftest.err
17987 rm -f conftest.er1
17988 cat conftest.err >&5
17989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); } &&
b4e70030
JB
17991 { ac_try='test -z "$ac_c_werror_flag"
17992 || test ! -s conftest.err'
4e8d927d
DJ
17993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17994 (eval $ac_try) 2>&5
17995 ac_status=$?
17996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997 (exit $ac_status); }; } &&
17998 { ac_try='test -s conftest.$ac_objext'
17999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18000 (eval $ac_try) 2>&5
18001 ac_status=$?
18002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003 (exit $ac_status); }; }; then
18004 ac_lo=$ac_mid; break
18005else
18006 echo "$as_me: failed program was:" >&5
18007sed 's/^/| /' conftest.$ac_ext >&5
18008
b4e70030
JB
18009ac_hi=`expr '(' $ac_mid ')' - 1`
18010 if test $ac_mid -le $ac_hi; then
18011 ac_lo= ac_hi=
18012 break
18013 fi
18014 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 18015fi
4e8d927d
DJ
18016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18017 done
18018else
18019 echo "$as_me: failed program was:" >&5
18020sed 's/^/| /' conftest.$ac_ext >&5
18021
b4e70030 18022ac_lo= ac_hi=
4e8d927d 18023fi
4e8d927d
DJ
18024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18025fi
4e8d927d
DJ
18026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18027# Binary search between lo and hi bounds.
18028while test "x$ac_lo" != "x$ac_hi"; do
18029 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18030 cat >conftest.$ac_ext <<_ACEOF
18031/* confdefs.h. */
18032_ACEOF
18033cat confdefs.h >>conftest.$ac_ext
18034cat >>conftest.$ac_ext <<_ACEOF
18035/* end confdefs.h. */
18036$ac_includes_default
4e8d927d
DJ
18037int
18038main ()
18039{
b4e70030 18040static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4e8d927d
DJ
18041test_array [0] = 0
18042
18043 ;
18044 return 0;
18045}
18046_ACEOF
18047rm -f conftest.$ac_objext
18048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18049 (eval $ac_compile) 2>conftest.er1
18050 ac_status=$?
18051 grep -v '^ *+' conftest.er1 >conftest.err
18052 rm -f conftest.er1
18053 cat conftest.err >&5
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); } &&
b4e70030
JB
18056 { ac_try='test -z "$ac_c_werror_flag"
18057 || test ! -s conftest.err'
4e8d927d
DJ
18058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18059 (eval $ac_try) 2>&5
18060 ac_status=$?
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); }; } &&
18063 { ac_try='test -s conftest.$ac_objext'
18064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18065 (eval $ac_try) 2>&5
18066 ac_status=$?
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); }; }; then
18069 ac_hi=$ac_mid
18070else
18071 echo "$as_me: failed program was:" >&5
18072sed 's/^/| /' conftest.$ac_ext >&5
18073
b4e70030 18074ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 18075fi
4e8d927d
DJ
18076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18077done
18078case $ac_lo in
18079?*) ac_cv_sizeof_int=$ac_lo;;
b4e70030 18080'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4e8d927d 18081See \`config.log' for more details." >&5
b4e70030 18082echo "$as_me: error: cannot compute sizeof (int), 77
4e8d927d 18083See \`config.log' for more details." >&2;}
b4e70030 18084 { (exit 1); exit 1; }; } ;;
4e8d927d 18085esac
b4e70030
JB
18086else
18087 if test "$cross_compiling" = yes; then
18088 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18089See \`config.log' for more details." >&5
18090echo "$as_me: error: cannot run test program while cross compiling
18091See \`config.log' for more details." >&2;}
18092 { (exit 1); exit 1; }; }
4e8d927d
DJ
18093else
18094 cat >conftest.$ac_ext <<_ACEOF
18095/* confdefs.h. */
18096_ACEOF
18097cat confdefs.h >>conftest.$ac_ext
18098cat >>conftest.$ac_ext <<_ACEOF
18099/* end confdefs.h. */
18100$ac_includes_default
b4e70030
JB
18101long longval () { return (long) (sizeof (int)); }
18102unsigned long ulongval () { return (long) (sizeof (int)); }
4e8d927d
DJ
18103#include <stdio.h>
18104#include <stdlib.h>
18105int
18106main ()
18107{
18108
18109 FILE *f = fopen ("conftest.val", "w");
18110 if (! f)
b4e70030
JB
18111 exit (1);
18112 if (((long) (sizeof (int))) < 0)
4e8d927d 18113 {
b4e70030
JB
18114 long i = longval ();
18115 if (i != ((long) (sizeof (int))))
18116 exit (1);
4e8d927d
DJ
18117 fprintf (f, "%ld\n", i);
18118 }
18119 else
18120 {
b4e70030
JB
18121 unsigned long i = ulongval ();
18122 if (i != ((long) (sizeof (int))))
18123 exit (1);
4e8d927d
DJ
18124 fprintf (f, "%lu\n", i);
18125 }
b4e70030 18126 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
18127
18128 ;
18129 return 0;
18130}
18131_ACEOF
18132rm -f conftest$ac_exeext
18133if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18134 (eval $ac_link) 2>&5
18135 ac_status=$?
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18139 (eval $ac_try) 2>&5
18140 ac_status=$?
18141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18142 (exit $ac_status); }; }; then
18143 ac_cv_sizeof_int=`cat conftest.val`
18144else
18145 echo "$as_me: program exited with status $ac_status" >&5
18146echo "$as_me: failed program was:" >&5
18147sed 's/^/| /' conftest.$ac_ext >&5
18148
18149( exit $ac_status )
b4e70030 18150{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4e8d927d 18151See \`config.log' for more details." >&5
b4e70030 18152echo "$as_me: error: cannot compute sizeof (int), 77
4e8d927d 18153See \`config.log' for more details." >&2;}
b4e70030
JB
18154 { (exit 1); exit 1; }; }
18155fi
18156rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 18157fi
4e8d927d
DJ
18158fi
18159rm -f conftest.val
18160else
18161 ac_cv_sizeof_int=0
18162fi
18163fi
b4e70030
JB
18164echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
18165echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4e8d927d
DJ
18166cat >>confdefs.h <<_ACEOF
18167#define SIZEOF_INT $ac_cv_sizeof_int
18168_ACEOF
18169
18170
b4e70030
JB
18171 echo "$as_me:$LINENO: checking for short" >&5
18172echo $ECHO_N "checking for short... $ECHO_C" >&6
4e8d927d
DJ
18173if test "${ac_cv_type_short+set}" = set; then
18174 echo $ECHO_N "(cached) $ECHO_C" >&6
18175else
18176 cat >conftest.$ac_ext <<_ACEOF
18177/* confdefs.h. */
18178_ACEOF
18179cat confdefs.h >>conftest.$ac_ext
18180cat >>conftest.$ac_ext <<_ACEOF
18181/* end confdefs.h. */
18182$ac_includes_default
4e8d927d
DJ
18183int
18184main ()
18185{
b4e70030 18186if ((short *) 0)
4e8d927d 18187 return 0;
b4e70030 18188if (sizeof (short))
4e8d927d
DJ
18189 return 0;
18190 ;
18191 return 0;
18192}
18193_ACEOF
18194rm -f conftest.$ac_objext
18195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18196 (eval $ac_compile) 2>conftest.er1
18197 ac_status=$?
18198 grep -v '^ *+' conftest.er1 >conftest.err
18199 rm -f conftest.er1
18200 cat conftest.err >&5
18201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18202 (exit $ac_status); } &&
b4e70030
JB
18203 { ac_try='test -z "$ac_c_werror_flag"
18204 || test ! -s conftest.err'
4e8d927d
DJ
18205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18206 (eval $ac_try) 2>&5
18207 ac_status=$?
18208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18209 (exit $ac_status); }; } &&
18210 { ac_try='test -s conftest.$ac_objext'
18211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18212 (eval $ac_try) 2>&5
18213 ac_status=$?
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); }; }; then
18216 ac_cv_type_short=yes
18217else
18218 echo "$as_me: failed program was:" >&5
18219sed 's/^/| /' conftest.$ac_ext >&5
18220
b4e70030 18221ac_cv_type_short=no
4e8d927d 18222fi
4e8d927d
DJ
18223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18224fi
b4e70030
JB
18225echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
18226echo "${ECHO_T}$ac_cv_type_short" >&6
4e8d927d 18227
b4e70030
JB
18228echo "$as_me:$LINENO: checking size of short" >&5
18229echo $ECHO_N "checking size of short... $ECHO_C" >&6
4e8d927d
DJ
18230if test "${ac_cv_sizeof_short+set}" = set; then
18231 echo $ECHO_N "(cached) $ECHO_C" >&6
18232else
18233 if test "$ac_cv_type_short" = yes; then
b4e70030 18234 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
18235 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18236 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18237 # This bug is HP SR number 8606223364.
18238 if test "$cross_compiling" = yes; then
18239 # Depending upon the size, compute the lo and hi bounds.
18240cat >conftest.$ac_ext <<_ACEOF
18241/* confdefs.h. */
18242_ACEOF
18243cat confdefs.h >>conftest.$ac_ext
18244cat >>conftest.$ac_ext <<_ACEOF
18245/* end confdefs.h. */
18246$ac_includes_default
4e8d927d
DJ
18247int
18248main ()
18249{
b4e70030 18250static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4e8d927d
DJ
18251test_array [0] = 0
18252
18253 ;
18254 return 0;
18255}
18256_ACEOF
18257rm -f conftest.$ac_objext
18258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18259 (eval $ac_compile) 2>conftest.er1
18260 ac_status=$?
18261 grep -v '^ *+' conftest.er1 >conftest.err
18262 rm -f conftest.er1
18263 cat conftest.err >&5
18264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18265 (exit $ac_status); } &&
b4e70030
JB
18266 { ac_try='test -z "$ac_c_werror_flag"
18267 || test ! -s conftest.err'
4e8d927d
DJ
18268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18269 (eval $ac_try) 2>&5
18270 ac_status=$?
18271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); }; } &&
18273 { ac_try='test -s conftest.$ac_objext'
18274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18275 (eval $ac_try) 2>&5
18276 ac_status=$?
18277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18278 (exit $ac_status); }; }; then
18279 ac_lo=0 ac_mid=0
18280 while :; do
18281 cat >conftest.$ac_ext <<_ACEOF
18282/* confdefs.h. */
18283_ACEOF
18284cat confdefs.h >>conftest.$ac_ext
18285cat >>conftest.$ac_ext <<_ACEOF
18286/* end confdefs.h. */
18287$ac_includes_default
4e8d927d
DJ
18288int
18289main ()
18290{
b4e70030 18291static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4e8d927d
DJ
18292test_array [0] = 0
18293
18294 ;
18295 return 0;
18296}
18297_ACEOF
18298rm -f conftest.$ac_objext
18299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18300 (eval $ac_compile) 2>conftest.er1
18301 ac_status=$?
18302 grep -v '^ *+' conftest.er1 >conftest.err
18303 rm -f conftest.er1
18304 cat conftest.err >&5
18305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18306 (exit $ac_status); } &&
b4e70030
JB
18307 { ac_try='test -z "$ac_c_werror_flag"
18308 || test ! -s conftest.err'
4e8d927d
DJ
18309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18310 (eval $ac_try) 2>&5
18311 ac_status=$?
18312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18313 (exit $ac_status); }; } &&
18314 { ac_try='test -s conftest.$ac_objext'
18315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18316 (eval $ac_try) 2>&5
18317 ac_status=$?
18318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319 (exit $ac_status); }; }; then
18320 ac_hi=$ac_mid; break
18321else
18322 echo "$as_me: failed program was:" >&5
18323sed 's/^/| /' conftest.$ac_ext >&5
18324
b4e70030
JB
18325ac_lo=`expr $ac_mid + 1`
18326 if test $ac_lo -le $ac_mid; then
18327 ac_lo= ac_hi=
18328 break
18329 fi
18330 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 18331fi
4e8d927d
DJ
18332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18333 done
18334else
18335 echo "$as_me: failed program was:" >&5
18336sed 's/^/| /' conftest.$ac_ext >&5
18337
b4e70030 18338cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
18339/* confdefs.h. */
18340_ACEOF
18341cat confdefs.h >>conftest.$ac_ext
18342cat >>conftest.$ac_ext <<_ACEOF
18343/* end confdefs.h. */
18344$ac_includes_default
4e8d927d
DJ
18345int
18346main ()
18347{
b4e70030 18348static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4e8d927d
DJ
18349test_array [0] = 0
18350
18351 ;
18352 return 0;
18353}
18354_ACEOF
18355rm -f conftest.$ac_objext
18356if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18357 (eval $ac_compile) 2>conftest.er1
18358 ac_status=$?
18359 grep -v '^ *+' conftest.er1 >conftest.err
18360 rm -f conftest.er1
18361 cat conftest.err >&5
18362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363 (exit $ac_status); } &&
b4e70030
JB
18364 { ac_try='test -z "$ac_c_werror_flag"
18365 || test ! -s conftest.err'
4e8d927d
DJ
18366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18367 (eval $ac_try) 2>&5
18368 ac_status=$?
18369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18370 (exit $ac_status); }; } &&
18371 { ac_try='test -s conftest.$ac_objext'
18372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18373 (eval $ac_try) 2>&5
18374 ac_status=$?
18375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376 (exit $ac_status); }; }; then
18377 ac_hi=-1 ac_mid=-1
18378 while :; do
18379 cat >conftest.$ac_ext <<_ACEOF
18380/* confdefs.h. */
18381_ACEOF
18382cat confdefs.h >>conftest.$ac_ext
18383cat >>conftest.$ac_ext <<_ACEOF
18384/* end confdefs.h. */
18385$ac_includes_default
4e8d927d
DJ
18386int
18387main ()
18388{
b4e70030 18389static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4e8d927d
DJ
18390test_array [0] = 0
18391
18392 ;
18393 return 0;
18394}
18395_ACEOF
18396rm -f conftest.$ac_objext
18397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18398 (eval $ac_compile) 2>conftest.er1
18399 ac_status=$?
18400 grep -v '^ *+' conftest.er1 >conftest.err
18401 rm -f conftest.er1
18402 cat conftest.err >&5
18403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404 (exit $ac_status); } &&
b4e70030
JB
18405 { ac_try='test -z "$ac_c_werror_flag"
18406 || test ! -s conftest.err'
4e8d927d
DJ
18407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18408 (eval $ac_try) 2>&5
18409 ac_status=$?
18410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18411 (exit $ac_status); }; } &&
18412 { ac_try='test -s conftest.$ac_objext'
18413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18414 (eval $ac_try) 2>&5
18415 ac_status=$?
18416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); }; }; then
18418 ac_lo=$ac_mid; break
18419else
18420 echo "$as_me: failed program was:" >&5
18421sed 's/^/| /' conftest.$ac_ext >&5
18422
b4e70030
JB
18423ac_hi=`expr '(' $ac_mid ')' - 1`
18424 if test $ac_mid -le $ac_hi; then
18425 ac_lo= ac_hi=
18426 break
18427 fi
18428 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 18429fi
4e8d927d
DJ
18430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18431 done
18432else
18433 echo "$as_me: failed program was:" >&5
18434sed 's/^/| /' conftest.$ac_ext >&5
18435
b4e70030 18436ac_lo= ac_hi=
4e8d927d 18437fi
4e8d927d
DJ
18438rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18439fi
4e8d927d
DJ
18440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18441# Binary search between lo and hi bounds.
18442while test "x$ac_lo" != "x$ac_hi"; do
18443 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18444 cat >conftest.$ac_ext <<_ACEOF
18445/* confdefs.h. */
18446_ACEOF
18447cat confdefs.h >>conftest.$ac_ext
18448cat >>conftest.$ac_ext <<_ACEOF
18449/* end confdefs.h. */
18450$ac_includes_default
4e8d927d
DJ
18451int
18452main ()
18453{
b4e70030 18454static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4e8d927d
DJ
18455test_array [0] = 0
18456
18457 ;
18458 return 0;
18459}
18460_ACEOF
18461rm -f conftest.$ac_objext
18462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18463 (eval $ac_compile) 2>conftest.er1
18464 ac_status=$?
18465 grep -v '^ *+' conftest.er1 >conftest.err
18466 rm -f conftest.er1
18467 cat conftest.err >&5
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); } &&
b4e70030
JB
18470 { ac_try='test -z "$ac_c_werror_flag"
18471 || test ! -s conftest.err'
4e8d927d
DJ
18472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18473 (eval $ac_try) 2>&5
18474 ac_status=$?
18475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476 (exit $ac_status); }; } &&
18477 { ac_try='test -s conftest.$ac_objext'
18478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18479 (eval $ac_try) 2>&5
18480 ac_status=$?
18481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482 (exit $ac_status); }; }; then
18483 ac_hi=$ac_mid
18484else
18485 echo "$as_me: failed program was:" >&5
18486sed 's/^/| /' conftest.$ac_ext >&5
18487
b4e70030 18488ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 18489fi
4e8d927d
DJ
18490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18491done
18492case $ac_lo in
18493?*) ac_cv_sizeof_short=$ac_lo;;
b4e70030 18494'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4e8d927d 18495See \`config.log' for more details." >&5
b4e70030 18496echo "$as_me: error: cannot compute sizeof (short), 77
4e8d927d 18497See \`config.log' for more details." >&2;}
b4e70030 18498 { (exit 1); exit 1; }; } ;;
4e8d927d 18499esac
b4e70030
JB
18500else
18501 if test "$cross_compiling" = yes; then
18502 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18503See \`config.log' for more details." >&5
18504echo "$as_me: error: cannot run test program while cross compiling
18505See \`config.log' for more details." >&2;}
18506 { (exit 1); exit 1; }; }
4e8d927d
DJ
18507else
18508 cat >conftest.$ac_ext <<_ACEOF
18509/* confdefs.h. */
18510_ACEOF
18511cat confdefs.h >>conftest.$ac_ext
18512cat >>conftest.$ac_ext <<_ACEOF
18513/* end confdefs.h. */
18514$ac_includes_default
b4e70030
JB
18515long longval () { return (long) (sizeof (short)); }
18516unsigned long ulongval () { return (long) (sizeof (short)); }
4e8d927d
DJ
18517#include <stdio.h>
18518#include <stdlib.h>
18519int
18520main ()
18521{
18522
18523 FILE *f = fopen ("conftest.val", "w");
18524 if (! f)
b4e70030
JB
18525 exit (1);
18526 if (((long) (sizeof (short))) < 0)
4e8d927d 18527 {
b4e70030
JB
18528 long i = longval ();
18529 if (i != ((long) (sizeof (short))))
18530 exit (1);
4e8d927d
DJ
18531 fprintf (f, "%ld\n", i);
18532 }
18533 else
18534 {
b4e70030
JB
18535 unsigned long i = ulongval ();
18536 if (i != ((long) (sizeof (short))))
18537 exit (1);
4e8d927d
DJ
18538 fprintf (f, "%lu\n", i);
18539 }
b4e70030 18540 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
18541
18542 ;
18543 return 0;
18544}
18545_ACEOF
18546rm -f conftest$ac_exeext
18547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18548 (eval $ac_link) 2>&5
18549 ac_status=$?
18550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18553 (eval $ac_try) 2>&5
18554 ac_status=$?
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); }; }; then
18557 ac_cv_sizeof_short=`cat conftest.val`
18558else
18559 echo "$as_me: program exited with status $ac_status" >&5
18560echo "$as_me: failed program was:" >&5
18561sed 's/^/| /' conftest.$ac_ext >&5
18562
18563( exit $ac_status )
b4e70030 18564{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4e8d927d 18565See \`config.log' for more details." >&5
b4e70030 18566echo "$as_me: error: cannot compute sizeof (short), 77
4e8d927d 18567See \`config.log' for more details." >&2;}
b4e70030
JB
18568 { (exit 1); exit 1; }; }
18569fi
18570rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 18571fi
4e8d927d
DJ
18572fi
18573rm -f conftest.val
18574else
18575 ac_cv_sizeof_short=0
18576fi
18577fi
b4e70030
JB
18578echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
18579echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4e8d927d
DJ
18580cat >>confdefs.h <<_ACEOF
18581#define SIZEOF_SHORT $ac_cv_sizeof_short
18582_ACEOF
18583
18584
b4e70030
JB
18585 echo "$as_me:$LINENO: checking for char" >&5
18586echo $ECHO_N "checking for char... $ECHO_C" >&6
4e8d927d
DJ
18587if test "${ac_cv_type_char+set}" = set; then
18588 echo $ECHO_N "(cached) $ECHO_C" >&6
18589else
18590 cat >conftest.$ac_ext <<_ACEOF
18591/* confdefs.h. */
18592_ACEOF
18593cat confdefs.h >>conftest.$ac_ext
18594cat >>conftest.$ac_ext <<_ACEOF
18595/* end confdefs.h. */
18596$ac_includes_default
4e8d927d
DJ
18597int
18598main ()
18599{
b4e70030 18600if ((char *) 0)
4e8d927d 18601 return 0;
b4e70030 18602if (sizeof (char))
4e8d927d
DJ
18603 return 0;
18604 ;
18605 return 0;
18606}
18607_ACEOF
18608rm -f conftest.$ac_objext
18609if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18610 (eval $ac_compile) 2>conftest.er1
18611 ac_status=$?
18612 grep -v '^ *+' conftest.er1 >conftest.err
18613 rm -f conftest.er1
18614 cat conftest.err >&5
18615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); } &&
b4e70030
JB
18617 { ac_try='test -z "$ac_c_werror_flag"
18618 || test ! -s conftest.err'
4e8d927d
DJ
18619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18620 (eval $ac_try) 2>&5
18621 ac_status=$?
18622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); }; } &&
18624 { ac_try='test -s conftest.$ac_objext'
18625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18626 (eval $ac_try) 2>&5
18627 ac_status=$?
18628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18629 (exit $ac_status); }; }; then
18630 ac_cv_type_char=yes
18631else
18632 echo "$as_me: failed program was:" >&5
18633sed 's/^/| /' conftest.$ac_ext >&5
18634
b4e70030 18635ac_cv_type_char=no
4e8d927d 18636fi
4e8d927d
DJ
18637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18638fi
b4e70030
JB
18639echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
18640echo "${ECHO_T}$ac_cv_type_char" >&6
4e8d927d 18641
b4e70030
JB
18642echo "$as_me:$LINENO: checking size of char" >&5
18643echo $ECHO_N "checking size of char... $ECHO_C" >&6
4e8d927d
DJ
18644if test "${ac_cv_sizeof_char+set}" = set; then
18645 echo $ECHO_N "(cached) $ECHO_C" >&6
18646else
18647 if test "$ac_cv_type_char" = yes; then
b4e70030 18648 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
18649 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18650 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18651 # This bug is HP SR number 8606223364.
18652 if test "$cross_compiling" = yes; then
18653 # Depending upon the size, compute the lo and hi bounds.
18654cat >conftest.$ac_ext <<_ACEOF
18655/* confdefs.h. */
18656_ACEOF
18657cat confdefs.h >>conftest.$ac_ext
18658cat >>conftest.$ac_ext <<_ACEOF
18659/* end confdefs.h. */
18660$ac_includes_default
4e8d927d
DJ
18661int
18662main ()
18663{
b4e70030 18664static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4e8d927d
DJ
18665test_array [0] = 0
18666
18667 ;
18668 return 0;
18669}
18670_ACEOF
18671rm -f conftest.$ac_objext
18672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18673 (eval $ac_compile) 2>conftest.er1
18674 ac_status=$?
18675 grep -v '^ *+' conftest.er1 >conftest.err
18676 rm -f conftest.er1
18677 cat conftest.err >&5
18678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679 (exit $ac_status); } &&
b4e70030
JB
18680 { ac_try='test -z "$ac_c_werror_flag"
18681 || test ! -s conftest.err'
4e8d927d
DJ
18682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18683 (eval $ac_try) 2>&5
18684 ac_status=$?
18685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18686 (exit $ac_status); }; } &&
18687 { ac_try='test -s conftest.$ac_objext'
18688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18689 (eval $ac_try) 2>&5
18690 ac_status=$?
18691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692 (exit $ac_status); }; }; then
18693 ac_lo=0 ac_mid=0
18694 while :; do
18695 cat >conftest.$ac_ext <<_ACEOF
18696/* confdefs.h. */
18697_ACEOF
18698cat confdefs.h >>conftest.$ac_ext
18699cat >>conftest.$ac_ext <<_ACEOF
18700/* end confdefs.h. */
18701$ac_includes_default
4e8d927d
DJ
18702int
18703main ()
18704{
b4e70030 18705static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4e8d927d
DJ
18706test_array [0] = 0
18707
18708 ;
18709 return 0;
18710}
18711_ACEOF
18712rm -f conftest.$ac_objext
18713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18714 (eval $ac_compile) 2>conftest.er1
18715 ac_status=$?
18716 grep -v '^ *+' conftest.er1 >conftest.err
18717 rm -f conftest.er1
18718 cat conftest.err >&5
18719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720 (exit $ac_status); } &&
b4e70030
JB
18721 { ac_try='test -z "$ac_c_werror_flag"
18722 || test ! -s conftest.err'
4e8d927d
DJ
18723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18724 (eval $ac_try) 2>&5
18725 ac_status=$?
18726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727 (exit $ac_status); }; } &&
18728 { ac_try='test -s conftest.$ac_objext'
18729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18730 (eval $ac_try) 2>&5
18731 ac_status=$?
18732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733 (exit $ac_status); }; }; then
18734 ac_hi=$ac_mid; break
18735else
18736 echo "$as_me: failed program was:" >&5
18737sed 's/^/| /' conftest.$ac_ext >&5
18738
b4e70030
JB
18739ac_lo=`expr $ac_mid + 1`
18740 if test $ac_lo -le $ac_mid; then
18741 ac_lo= ac_hi=
18742 break
18743 fi
18744 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 18745fi
4e8d927d
DJ
18746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18747 done
18748else
18749 echo "$as_me: failed program was:" >&5
18750sed 's/^/| /' conftest.$ac_ext >&5
18751
b4e70030 18752cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
18753/* confdefs.h. */
18754_ACEOF
18755cat confdefs.h >>conftest.$ac_ext
18756cat >>conftest.$ac_ext <<_ACEOF
18757/* end confdefs.h. */
18758$ac_includes_default
4e8d927d
DJ
18759int
18760main ()
18761{
b4e70030 18762static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4e8d927d
DJ
18763test_array [0] = 0
18764
18765 ;
18766 return 0;
18767}
18768_ACEOF
18769rm -f conftest.$ac_objext
18770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18771 (eval $ac_compile) 2>conftest.er1
18772 ac_status=$?
18773 grep -v '^ *+' conftest.er1 >conftest.err
18774 rm -f conftest.er1
18775 cat conftest.err >&5
18776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777 (exit $ac_status); } &&
b4e70030
JB
18778 { ac_try='test -z "$ac_c_werror_flag"
18779 || test ! -s conftest.err'
4e8d927d
DJ
18780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18781 (eval $ac_try) 2>&5
18782 ac_status=$?
18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); }; } &&
18785 { ac_try='test -s conftest.$ac_objext'
18786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18787 (eval $ac_try) 2>&5
18788 ac_status=$?
18789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790 (exit $ac_status); }; }; then
18791 ac_hi=-1 ac_mid=-1
18792 while :; do
18793 cat >conftest.$ac_ext <<_ACEOF
18794/* confdefs.h. */
18795_ACEOF
18796cat confdefs.h >>conftest.$ac_ext
18797cat >>conftest.$ac_ext <<_ACEOF
18798/* end confdefs.h. */
18799$ac_includes_default
4e8d927d
DJ
18800int
18801main ()
18802{
b4e70030 18803static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4e8d927d
DJ
18804test_array [0] = 0
18805
18806 ;
18807 return 0;
18808}
18809_ACEOF
18810rm -f conftest.$ac_objext
18811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18812 (eval $ac_compile) 2>conftest.er1
18813 ac_status=$?
18814 grep -v '^ *+' conftest.er1 >conftest.err
18815 rm -f conftest.er1
18816 cat conftest.err >&5
18817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18818 (exit $ac_status); } &&
b4e70030
JB
18819 { ac_try='test -z "$ac_c_werror_flag"
18820 || test ! -s conftest.err'
4e8d927d
DJ
18821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18822 (eval $ac_try) 2>&5
18823 ac_status=$?
18824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825 (exit $ac_status); }; } &&
18826 { ac_try='test -s conftest.$ac_objext'
18827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18828 (eval $ac_try) 2>&5
18829 ac_status=$?
18830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18831 (exit $ac_status); }; }; then
18832 ac_lo=$ac_mid; break
18833else
18834 echo "$as_me: failed program was:" >&5
18835sed 's/^/| /' conftest.$ac_ext >&5
18836
b4e70030
JB
18837ac_hi=`expr '(' $ac_mid ')' - 1`
18838 if test $ac_mid -le $ac_hi; then
18839 ac_lo= ac_hi=
18840 break
18841 fi
18842 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 18843fi
4e8d927d
DJ
18844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18845 done
18846else
18847 echo "$as_me: failed program was:" >&5
18848sed 's/^/| /' conftest.$ac_ext >&5
18849
b4e70030 18850ac_lo= ac_hi=
4e8d927d 18851fi
4e8d927d
DJ
18852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18853fi
4e8d927d
DJ
18854rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18855# Binary search between lo and hi bounds.
18856while test "x$ac_lo" != "x$ac_hi"; do
18857 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
18858 cat >conftest.$ac_ext <<_ACEOF
18859/* confdefs.h. */
18860_ACEOF
18861cat confdefs.h >>conftest.$ac_ext
18862cat >>conftest.$ac_ext <<_ACEOF
18863/* end confdefs.h. */
18864$ac_includes_default
4e8d927d
DJ
18865int
18866main ()
18867{
b4e70030 18868static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4e8d927d
DJ
18869test_array [0] = 0
18870
18871 ;
18872 return 0;
18873}
18874_ACEOF
18875rm -f conftest.$ac_objext
18876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18877 (eval $ac_compile) 2>conftest.er1
18878 ac_status=$?
18879 grep -v '^ *+' conftest.er1 >conftest.err
18880 rm -f conftest.er1
18881 cat conftest.err >&5
18882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18883 (exit $ac_status); } &&
b4e70030
JB
18884 { ac_try='test -z "$ac_c_werror_flag"
18885 || test ! -s conftest.err'
4e8d927d
DJ
18886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18887 (eval $ac_try) 2>&5
18888 ac_status=$?
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); }; } &&
18891 { ac_try='test -s conftest.$ac_objext'
18892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18893 (eval $ac_try) 2>&5
18894 ac_status=$?
18895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18896 (exit $ac_status); }; }; then
18897 ac_hi=$ac_mid
18898else
18899 echo "$as_me: failed program was:" >&5
18900sed 's/^/| /' conftest.$ac_ext >&5
18901
b4e70030 18902ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 18903fi
4e8d927d
DJ
18904rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18905done
18906case $ac_lo in
18907?*) ac_cv_sizeof_char=$ac_lo;;
b4e70030 18908'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4e8d927d 18909See \`config.log' for more details." >&5
b4e70030 18910echo "$as_me: error: cannot compute sizeof (char), 77
4e8d927d 18911See \`config.log' for more details." >&2;}
b4e70030 18912 { (exit 1); exit 1; }; } ;;
4e8d927d 18913esac
b4e70030
JB
18914else
18915 if test "$cross_compiling" = yes; then
18916 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18917See \`config.log' for more details." >&5
18918echo "$as_me: error: cannot run test program while cross compiling
18919See \`config.log' for more details." >&2;}
18920 { (exit 1); exit 1; }; }
4e8d927d
DJ
18921else
18922 cat >conftest.$ac_ext <<_ACEOF
18923/* confdefs.h. */
18924_ACEOF
18925cat confdefs.h >>conftest.$ac_ext
18926cat >>conftest.$ac_ext <<_ACEOF
18927/* end confdefs.h. */
18928$ac_includes_default
b4e70030
JB
18929long longval () { return (long) (sizeof (char)); }
18930unsigned long ulongval () { return (long) (sizeof (char)); }
4e8d927d
DJ
18931#include <stdio.h>
18932#include <stdlib.h>
18933int
18934main ()
18935{
18936
18937 FILE *f = fopen ("conftest.val", "w");
18938 if (! f)
b4e70030
JB
18939 exit (1);
18940 if (((long) (sizeof (char))) < 0)
4e8d927d 18941 {
b4e70030
JB
18942 long i = longval ();
18943 if (i != ((long) (sizeof (char))))
18944 exit (1);
4e8d927d
DJ
18945 fprintf (f, "%ld\n", i);
18946 }
18947 else
18948 {
b4e70030
JB
18949 unsigned long i = ulongval ();
18950 if (i != ((long) (sizeof (char))))
18951 exit (1);
4e8d927d
DJ
18952 fprintf (f, "%lu\n", i);
18953 }
b4e70030 18954 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
18955
18956 ;
18957 return 0;
18958}
18959_ACEOF
18960rm -f conftest$ac_exeext
18961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18962 (eval $ac_link) 2>&5
18963 ac_status=$?
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18967 (eval $ac_try) 2>&5
18968 ac_status=$?
18969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970 (exit $ac_status); }; }; then
18971 ac_cv_sizeof_char=`cat conftest.val`
18972else
18973 echo "$as_me: program exited with status $ac_status" >&5
18974echo "$as_me: failed program was:" >&5
18975sed 's/^/| /' conftest.$ac_ext >&5
18976
18977( exit $ac_status )
b4e70030 18978{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4e8d927d 18979See \`config.log' for more details." >&5
b4e70030 18980echo "$as_me: error: cannot compute sizeof (char), 77
4e8d927d 18981See \`config.log' for more details." >&2;}
b4e70030
JB
18982 { (exit 1); exit 1; }; }
18983fi
18984rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 18985fi
4e8d927d
DJ
18986fi
18987rm -f conftest.val
18988else
18989 ac_cv_sizeof_char=0
18990fi
18991fi
b4e70030
JB
18992echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
18993echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4e8d927d
DJ
18994cat >>confdefs.h <<_ACEOF
18995#define SIZEOF_CHAR $ac_cv_sizeof_char
18996_ACEOF
18997
18998
18999
b4e70030
JB
19000 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
19001echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
4e8d927d
DJ
19002 case "$ac_cv_sizeof_char" in
19003 1) acx_cv_type_int8_t=char ;;
19004 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
19005echo "$as_me: error: no 8-bit type" >&2;}
19006 { (exit please report a bug); exit please report a bug; }; }
19007 esac
b4e70030
JB
19008 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
19009echo "${ECHO_T}$acx_cv_type_int8_t" >&6
4e8d927d 19010
b4e70030
JB
19011 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
19012echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
4e8d927d
DJ
19013 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
19014 2:*) acx_cv_type_int16_t=int ;;
19015 *:2) acx_cv_type_int16_t=short ;;
19016 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
19017echo "$as_me: error: no 16-bit type" >&2;}
19018 { (exit please report a bug); exit please report a bug; }; }
19019 esac
b4e70030
JB
19020 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
19021echo "${ECHO_T}$acx_cv_type_int16_t" >&6
4e8d927d 19022
b4e70030
JB
19023 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
19024echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
4e8d927d
DJ
19025 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
19026 4:*) acx_cv_type_int32_t=int ;;
19027 *:4) acx_cv_type_int32_t=long ;;
19028 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
19029echo "$as_me: error: no 32-bit type" >&2;}
19030 { (exit please report a bug); exit please report a bug; }; }
19031 esac
b4e70030
JB
19032 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
19033echo "${ECHO_T}$acx_cv_type_int32_t" >&6
4e8d927d
DJ
19034fi
19035
19036# These tests are here to make the output prettier
19037
19038if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
19039 case "$ac_cv_sizeof_long" in
19040 8) acx_cv_type_int64_t=long ;;
19041 esac
b4e70030
JB
19042 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
19043echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
19044 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
19045echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
4e8d927d
DJ
19046fi
19047
19048# Now we can use the above types
19049
19050if test "$ac_cv_type_uintptr_t" != yes; then
b4e70030
JB
19051 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
19052echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
4e8d927d
DJ
19053 case $ac_cv_sizeof_void_p in
19054 2) acx_cv_type_intptr_t=int16_t ;;
19055 4) acx_cv_type_intptr_t=int32_t ;;
19056 8) acx_cv_type_intptr_t=int64_t ;;
19057 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
19058echo "$as_me: error: no equivalent for intptr_t" >&2;}
19059 { (exit please report a bug); exit please report a bug; }; }
19060 esac
b4e70030
JB
19061 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
19062echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
4e8d927d
DJ
19063fi
19064
19065# ----------------- done all checks, emit header -------------
b4e70030 19066 ac_config_commands="$ac_config_commands gdb_stdint.h"
4e8d927d
DJ
19067
19068
19069
19070
19071# ------------------------- #
19072# Checks for declarations. #
19073# ------------------------- #
19074
b4e70030
JB
19075echo "$as_me:$LINENO: checking whether free is declared" >&5
19076echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
4e8d927d
DJ
19077if test "${ac_cv_have_decl_free+set}" = set; then
19078 echo $ECHO_N "(cached) $ECHO_C" >&6
19079else
19080 cat >conftest.$ac_ext <<_ACEOF
19081/* confdefs.h. */
19082_ACEOF
19083cat confdefs.h >>conftest.$ac_ext
19084cat >>conftest.$ac_ext <<_ACEOF
19085/* end confdefs.h. */
19086$ac_includes_default
19087int
19088main ()
19089{
19090#ifndef free
19091 char *p = (char *) free;
4e8d927d
DJ
19092#endif
19093
19094 ;
19095 return 0;
19096}
19097_ACEOF
19098rm -f conftest.$ac_objext
19099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19100 (eval $ac_compile) 2>conftest.er1
19101 ac_status=$?
19102 grep -v '^ *+' conftest.er1 >conftest.err
19103 rm -f conftest.er1
19104 cat conftest.err >&5
19105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106 (exit $ac_status); } &&
b4e70030
JB
19107 { ac_try='test -z "$ac_c_werror_flag"
19108 || test ! -s conftest.err'
4e8d927d
DJ
19109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19110 (eval $ac_try) 2>&5
19111 ac_status=$?
19112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113 (exit $ac_status); }; } &&
19114 { ac_try='test -s conftest.$ac_objext'
19115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19116 (eval $ac_try) 2>&5
19117 ac_status=$?
19118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); }; }; then
19120 ac_cv_have_decl_free=yes
19121else
19122 echo "$as_me: failed program was:" >&5
19123sed 's/^/| /' conftest.$ac_ext >&5
19124
b4e70030 19125ac_cv_have_decl_free=no
4e8d927d 19126fi
4e8d927d
DJ
19127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19128fi
b4e70030
JB
19129echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
19130echo "${ECHO_T}$ac_cv_have_decl_free" >&6
4e8d927d
DJ
19131if test $ac_cv_have_decl_free = yes; then
19132
19133cat >>confdefs.h <<_ACEOF
19134#define HAVE_DECL_FREE 1
19135_ACEOF
19136
19137
19138else
19139 cat >>confdefs.h <<_ACEOF
19140#define HAVE_DECL_FREE 0
19141_ACEOF
19142
19143
19144fi
b4e70030
JB
19145echo "$as_me:$LINENO: checking whether malloc is declared" >&5
19146echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
4e8d927d
DJ
19147if test "${ac_cv_have_decl_malloc+set}" = set; then
19148 echo $ECHO_N "(cached) $ECHO_C" >&6
19149else
19150 cat >conftest.$ac_ext <<_ACEOF
19151/* confdefs.h. */
19152_ACEOF
19153cat confdefs.h >>conftest.$ac_ext
19154cat >>conftest.$ac_ext <<_ACEOF
19155/* end confdefs.h. */
19156$ac_includes_default
19157int
19158main ()
19159{
19160#ifndef malloc
19161 char *p = (char *) malloc;
4e8d927d
DJ
19162#endif
19163
19164 ;
19165 return 0;
19166}
19167_ACEOF
19168rm -f conftest.$ac_objext
19169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19170 (eval $ac_compile) 2>conftest.er1
19171 ac_status=$?
19172 grep -v '^ *+' conftest.er1 >conftest.err
19173 rm -f conftest.er1
19174 cat conftest.err >&5
19175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176 (exit $ac_status); } &&
b4e70030
JB
19177 { ac_try='test -z "$ac_c_werror_flag"
19178 || test ! -s conftest.err'
4e8d927d
DJ
19179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19180 (eval $ac_try) 2>&5
19181 ac_status=$?
19182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183 (exit $ac_status); }; } &&
19184 { ac_try='test -s conftest.$ac_objext'
19185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19186 (eval $ac_try) 2>&5
19187 ac_status=$?
19188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189 (exit $ac_status); }; }; then
19190 ac_cv_have_decl_malloc=yes
19191else
19192 echo "$as_me: failed program was:" >&5
19193sed 's/^/| /' conftest.$ac_ext >&5
19194
b4e70030 19195ac_cv_have_decl_malloc=no
4e8d927d 19196fi
4e8d927d
DJ
19197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19198fi
b4e70030
JB
19199echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
19200echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
4e8d927d
DJ
19201if test $ac_cv_have_decl_malloc = yes; then
19202
19203cat >>confdefs.h <<_ACEOF
19204#define HAVE_DECL_MALLOC 1
19205_ACEOF
19206
19207
19208else
19209 cat >>confdefs.h <<_ACEOF
19210#define HAVE_DECL_MALLOC 0
19211_ACEOF
19212
19213
19214fi
b4e70030
JB
19215echo "$as_me:$LINENO: checking whether realloc is declared" >&5
19216echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
4e8d927d
DJ
19217if test "${ac_cv_have_decl_realloc+set}" = set; then
19218 echo $ECHO_N "(cached) $ECHO_C" >&6
19219else
19220 cat >conftest.$ac_ext <<_ACEOF
19221/* confdefs.h. */
19222_ACEOF
19223cat confdefs.h >>conftest.$ac_ext
19224cat >>conftest.$ac_ext <<_ACEOF
19225/* end confdefs.h. */
19226$ac_includes_default
19227int
19228main ()
19229{
19230#ifndef realloc
19231 char *p = (char *) realloc;
4e8d927d
DJ
19232#endif
19233
19234 ;
19235 return 0;
19236}
19237_ACEOF
19238rm -f conftest.$ac_objext
19239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19240 (eval $ac_compile) 2>conftest.er1
19241 ac_status=$?
19242 grep -v '^ *+' conftest.er1 >conftest.err
19243 rm -f conftest.er1
19244 cat conftest.err >&5
19245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246 (exit $ac_status); } &&
b4e70030
JB
19247 { ac_try='test -z "$ac_c_werror_flag"
19248 || test ! -s conftest.err'
4e8d927d
DJ
19249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19250 (eval $ac_try) 2>&5
19251 ac_status=$?
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); }; } &&
19254 { ac_try='test -s conftest.$ac_objext'
19255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19256 (eval $ac_try) 2>&5
19257 ac_status=$?
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); }; }; then
19260 ac_cv_have_decl_realloc=yes
19261else
19262 echo "$as_me: failed program was:" >&5
19263sed 's/^/| /' conftest.$ac_ext >&5
19264
b4e70030 19265ac_cv_have_decl_realloc=no
4e8d927d 19266fi
4e8d927d
DJ
19267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19268fi
b4e70030
JB
19269echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
19270echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
4e8d927d
DJ
19271if test $ac_cv_have_decl_realloc = yes; then
19272
19273cat >>confdefs.h <<_ACEOF
19274#define HAVE_DECL_REALLOC 1
19275_ACEOF
19276
19277
19278else
19279 cat >>confdefs.h <<_ACEOF
19280#define HAVE_DECL_REALLOC 0
19281_ACEOF
19282
19283
19284fi
19285
19286
b4e70030
JB
19287echo "$as_me:$LINENO: checking whether strerror is declared" >&5
19288echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
4e8d927d
DJ
19289if test "${ac_cv_have_decl_strerror+set}" = set; then
19290 echo $ECHO_N "(cached) $ECHO_C" >&6
19291else
19292 cat >conftest.$ac_ext <<_ACEOF
19293/* confdefs.h. */
19294_ACEOF
19295cat confdefs.h >>conftest.$ac_ext
19296cat >>conftest.$ac_ext <<_ACEOF
19297/* end confdefs.h. */
19298$ac_includes_default
19299int
19300main ()
19301{
19302#ifndef strerror
19303 char *p = (char *) strerror;
4e8d927d
DJ
19304#endif
19305
19306 ;
19307 return 0;
19308}
19309_ACEOF
19310rm -f conftest.$ac_objext
19311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19312 (eval $ac_compile) 2>conftest.er1
19313 ac_status=$?
19314 grep -v '^ *+' conftest.er1 >conftest.err
19315 rm -f conftest.er1
19316 cat conftest.err >&5
19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318 (exit $ac_status); } &&
b4e70030
JB
19319 { ac_try='test -z "$ac_c_werror_flag"
19320 || test ! -s conftest.err'
4e8d927d
DJ
19321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19322 (eval $ac_try) 2>&5
19323 ac_status=$?
19324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325 (exit $ac_status); }; } &&
19326 { ac_try='test -s conftest.$ac_objext'
19327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19328 (eval $ac_try) 2>&5
19329 ac_status=$?
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); }; }; then
19332 ac_cv_have_decl_strerror=yes
19333else
19334 echo "$as_me: failed program was:" >&5
19335sed 's/^/| /' conftest.$ac_ext >&5
19336
b4e70030 19337ac_cv_have_decl_strerror=no
4e8d927d 19338fi
4e8d927d
DJ
19339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19340fi
b4e70030
JB
19341echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
19342echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
4e8d927d
DJ
19343if test $ac_cv_have_decl_strerror = yes; then
19344
19345cat >>confdefs.h <<_ACEOF
19346#define HAVE_DECL_STRERROR 1
19347_ACEOF
19348
19349
19350else
19351 cat >>confdefs.h <<_ACEOF
19352#define HAVE_DECL_STRERROR 0
19353_ACEOF
19354
19355
19356fi
b4e70030
JB
19357echo "$as_me:$LINENO: checking whether strstr is declared" >&5
19358echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
4e8d927d
DJ
19359if test "${ac_cv_have_decl_strstr+set}" = set; then
19360 echo $ECHO_N "(cached) $ECHO_C" >&6
19361else
19362 cat >conftest.$ac_ext <<_ACEOF
19363/* confdefs.h. */
19364_ACEOF
19365cat confdefs.h >>conftest.$ac_ext
19366cat >>conftest.$ac_ext <<_ACEOF
19367/* end confdefs.h. */
19368$ac_includes_default
19369int
19370main ()
19371{
19372#ifndef strstr
19373 char *p = (char *) strstr;
4e8d927d
DJ
19374#endif
19375
19376 ;
19377 return 0;
19378}
19379_ACEOF
19380rm -f conftest.$ac_objext
19381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19382 (eval $ac_compile) 2>conftest.er1
19383 ac_status=$?
19384 grep -v '^ *+' conftest.er1 >conftest.err
19385 rm -f conftest.er1
19386 cat conftest.err >&5
19387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19388 (exit $ac_status); } &&
b4e70030
JB
19389 { ac_try='test -z "$ac_c_werror_flag"
19390 || test ! -s conftest.err'
4e8d927d
DJ
19391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19392 (eval $ac_try) 2>&5
19393 ac_status=$?
19394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19395 (exit $ac_status); }; } &&
19396 { ac_try='test -s conftest.$ac_objext'
19397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19398 (eval $ac_try) 2>&5
19399 ac_status=$?
19400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401 (exit $ac_status); }; }; then
19402 ac_cv_have_decl_strstr=yes
19403else
19404 echo "$as_me: failed program was:" >&5
19405sed 's/^/| /' conftest.$ac_ext >&5
19406
b4e70030 19407ac_cv_have_decl_strstr=no
4e8d927d 19408fi
4e8d927d
DJ
19409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19410fi
b4e70030
JB
19411echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
19412echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
4e8d927d
DJ
19413if test $ac_cv_have_decl_strstr = yes; then
19414
19415cat >>confdefs.h <<_ACEOF
19416#define HAVE_DECL_STRSTR 1
19417_ACEOF
19418
19419
19420else
19421 cat >>confdefs.h <<_ACEOF
19422#define HAVE_DECL_STRSTR 0
19423_ACEOF
19424
19425
19426fi
19427
19428
b4e70030
JB
19429echo "$as_me:$LINENO: checking whether getopt is declared" >&5
19430echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
4e8d927d
DJ
19431if test "${ac_cv_have_decl_getopt+set}" = set; then
19432 echo $ECHO_N "(cached) $ECHO_C" >&6
19433else
19434 cat >conftest.$ac_ext <<_ACEOF
19435/* confdefs.h. */
19436_ACEOF
19437cat confdefs.h >>conftest.$ac_ext
19438cat >>conftest.$ac_ext <<_ACEOF
19439/* end confdefs.h. */
19440$ac_includes_default
19441int
19442main ()
19443{
19444#ifndef getopt
19445 char *p = (char *) getopt;
4e8d927d
DJ
19446#endif
19447
19448 ;
19449 return 0;
19450}
19451_ACEOF
19452rm -f conftest.$ac_objext
19453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19454 (eval $ac_compile) 2>conftest.er1
19455 ac_status=$?
19456 grep -v '^ *+' conftest.er1 >conftest.err
19457 rm -f conftest.er1
19458 cat conftest.err >&5
19459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460 (exit $ac_status); } &&
b4e70030
JB
19461 { ac_try='test -z "$ac_c_werror_flag"
19462 || test ! -s conftest.err'
4e8d927d
DJ
19463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19464 (eval $ac_try) 2>&5
19465 ac_status=$?
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); }; } &&
19468 { ac_try='test -s conftest.$ac_objext'
19469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19470 (eval $ac_try) 2>&5
19471 ac_status=$?
19472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473 (exit $ac_status); }; }; then
19474 ac_cv_have_decl_getopt=yes
19475else
19476 echo "$as_me: failed program was:" >&5
19477sed 's/^/| /' conftest.$ac_ext >&5
19478
b4e70030 19479ac_cv_have_decl_getopt=no
4e8d927d 19480fi
4e8d927d
DJ
19481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19482fi
b4e70030
JB
19483echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
19484echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
4e8d927d
DJ
19485if test $ac_cv_have_decl_getopt = yes; then
19486
19487cat >>confdefs.h <<_ACEOF
19488#define HAVE_DECL_GETOPT 1
19489_ACEOF
19490
19491
19492else
19493 cat >>confdefs.h <<_ACEOF
19494#define HAVE_DECL_GETOPT 0
19495_ACEOF
19496
19497
19498fi
b4e70030
JB
19499echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
19500echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
4e8d927d
DJ
19501if test "${ac_cv_have_decl_snprintf+set}" = set; then
19502 echo $ECHO_N "(cached) $ECHO_C" >&6
19503else
19504 cat >conftest.$ac_ext <<_ACEOF
19505/* confdefs.h. */
19506_ACEOF
19507cat confdefs.h >>conftest.$ac_ext
19508cat >>conftest.$ac_ext <<_ACEOF
19509/* end confdefs.h. */
19510$ac_includes_default
19511int
19512main ()
19513{
19514#ifndef snprintf
19515 char *p = (char *) snprintf;
4e8d927d
DJ
19516#endif
19517
19518 ;
19519 return 0;
19520}
19521_ACEOF
19522rm -f conftest.$ac_objext
19523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19524 (eval $ac_compile) 2>conftest.er1
19525 ac_status=$?
19526 grep -v '^ *+' conftest.er1 >conftest.err
19527 rm -f conftest.er1
19528 cat conftest.err >&5
19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); } &&
b4e70030
JB
19531 { ac_try='test -z "$ac_c_werror_flag"
19532 || test ! -s conftest.err'
4e8d927d
DJ
19533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19534 (eval $ac_try) 2>&5
19535 ac_status=$?
19536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537 (exit $ac_status); }; } &&
19538 { ac_try='test -s conftest.$ac_objext'
19539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19540 (eval $ac_try) 2>&5
19541 ac_status=$?
19542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543 (exit $ac_status); }; }; then
19544 ac_cv_have_decl_snprintf=yes
19545else
19546 echo "$as_me: failed program was:" >&5
19547sed 's/^/| /' conftest.$ac_ext >&5
19548
b4e70030 19549ac_cv_have_decl_snprintf=no
4e8d927d 19550fi
4e8d927d
DJ
19551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19552fi
b4e70030
JB
19553echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
19554echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
4e8d927d
DJ
19555if test $ac_cv_have_decl_snprintf = yes; then
19556
19557cat >>confdefs.h <<_ACEOF
19558#define HAVE_DECL_SNPRINTF 1
19559_ACEOF
19560
19561
19562else
19563 cat >>confdefs.h <<_ACEOF
19564#define HAVE_DECL_SNPRINTF 0
19565_ACEOF
19566
19567
19568fi
b4e70030
JB
19569echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
19570echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
4e8d927d
DJ
19571if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
19572 echo $ECHO_N "(cached) $ECHO_C" >&6
19573else
19574 cat >conftest.$ac_ext <<_ACEOF
19575/* confdefs.h. */
19576_ACEOF
19577cat confdefs.h >>conftest.$ac_ext
19578cat >>conftest.$ac_ext <<_ACEOF
19579/* end confdefs.h. */
19580$ac_includes_default
19581int
19582main ()
19583{
19584#ifndef vsnprintf
19585 char *p = (char *) vsnprintf;
4e8d927d
DJ
19586#endif
19587
19588 ;
19589 return 0;
19590}
19591_ACEOF
19592rm -f conftest.$ac_objext
19593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19594 (eval $ac_compile) 2>conftest.er1
19595 ac_status=$?
19596 grep -v '^ *+' conftest.er1 >conftest.err
19597 rm -f conftest.er1
19598 cat conftest.err >&5
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); } &&
b4e70030
JB
19601 { ac_try='test -z "$ac_c_werror_flag"
19602 || test ! -s conftest.err'
4e8d927d
DJ
19603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19604 (eval $ac_try) 2>&5
19605 ac_status=$?
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); }; } &&
19608 { ac_try='test -s conftest.$ac_objext'
19609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19610 (eval $ac_try) 2>&5
19611 ac_status=$?
19612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19613 (exit $ac_status); }; }; then
19614 ac_cv_have_decl_vsnprintf=yes
19615else
19616 echo "$as_me: failed program was:" >&5
19617sed 's/^/| /' conftest.$ac_ext >&5
19618
b4e70030 19619ac_cv_have_decl_vsnprintf=no
4e8d927d 19620fi
4e8d927d
DJ
19621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19622fi
b4e70030
JB
19623echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
19624echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
4e8d927d
DJ
19625if test $ac_cv_have_decl_vsnprintf = yes; then
19626
19627cat >>confdefs.h <<_ACEOF
19628#define HAVE_DECL_VSNPRINTF 1
19629_ACEOF
19630
19631
19632else
19633 cat >>confdefs.h <<_ACEOF
19634#define HAVE_DECL_VSNPRINTF 0
19635_ACEOF
19636
19637
19638fi
19639
19640
19641
19642# ----------------------- #
19643# Checks for structures. #
19644# ----------------------- #
19645
b4e70030
JB
19646echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19647echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
4e8d927d
DJ
19648if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19649 echo $ECHO_N "(cached) $ECHO_C" >&6
19650else
19651 cat >conftest.$ac_ext <<_ACEOF
19652/* confdefs.h. */
19653_ACEOF
19654cat confdefs.h >>conftest.$ac_ext
19655cat >>conftest.$ac_ext <<_ACEOF
19656/* end confdefs.h. */
19657$ac_includes_default
19658int
19659main ()
19660{
19661static struct stat ac_aggr;
19662if (ac_aggr.st_blocks)
19663return 0;
19664 ;
19665 return 0;
19666}
19667_ACEOF
19668rm -f conftest.$ac_objext
19669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19670 (eval $ac_compile) 2>conftest.er1
19671 ac_status=$?
19672 grep -v '^ *+' conftest.er1 >conftest.err
19673 rm -f conftest.er1
19674 cat conftest.err >&5
19675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676 (exit $ac_status); } &&
b4e70030
JB
19677 { ac_try='test -z "$ac_c_werror_flag"
19678 || test ! -s conftest.err'
4e8d927d
DJ
19679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19680 (eval $ac_try) 2>&5
19681 ac_status=$?
19682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683 (exit $ac_status); }; } &&
19684 { ac_try='test -s conftest.$ac_objext'
19685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19686 (eval $ac_try) 2>&5
19687 ac_status=$?
19688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689 (exit $ac_status); }; }; then
19690 ac_cv_member_struct_stat_st_blocks=yes
19691else
19692 echo "$as_me: failed program was:" >&5
19693sed 's/^/| /' conftest.$ac_ext >&5
19694
b4e70030 19695cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
19696/* confdefs.h. */
19697_ACEOF
19698cat confdefs.h >>conftest.$ac_ext
19699cat >>conftest.$ac_ext <<_ACEOF
19700/* end confdefs.h. */
19701$ac_includes_default
19702int
19703main ()
19704{
19705static struct stat ac_aggr;
19706if (sizeof ac_aggr.st_blocks)
19707return 0;
19708 ;
19709 return 0;
19710}
19711_ACEOF
19712rm -f conftest.$ac_objext
19713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19714 (eval $ac_compile) 2>conftest.er1
19715 ac_status=$?
19716 grep -v '^ *+' conftest.er1 >conftest.err
19717 rm -f conftest.er1
19718 cat conftest.err >&5
19719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720 (exit $ac_status); } &&
b4e70030
JB
19721 { ac_try='test -z "$ac_c_werror_flag"
19722 || test ! -s conftest.err'
4e8d927d
DJ
19723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19724 (eval $ac_try) 2>&5
19725 ac_status=$?
19726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727 (exit $ac_status); }; } &&
19728 { ac_try='test -s conftest.$ac_objext'
19729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19730 (eval $ac_try) 2>&5
19731 ac_status=$?
19732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733 (exit $ac_status); }; }; then
19734 ac_cv_member_struct_stat_st_blocks=yes
19735else
19736 echo "$as_me: failed program was:" >&5
19737sed 's/^/| /' conftest.$ac_ext >&5
19738
b4e70030 19739ac_cv_member_struct_stat_st_blocks=no
4e8d927d 19740fi
4e8d927d
DJ
19741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19742fi
4e8d927d
DJ
19743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19744fi
b4e70030
JB
19745echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19746echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
4e8d927d
DJ
19747if test $ac_cv_member_struct_stat_st_blocks = yes; then
19748
19749cat >>confdefs.h <<_ACEOF
19750#define HAVE_STRUCT_STAT_ST_BLOCKS 1
19751_ACEOF
19752
19753
19754fi
19755
b4e70030
JB
19756echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
19757echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
4e8d927d
DJ
19758if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
19759 echo $ECHO_N "(cached) $ECHO_C" >&6
19760else
19761 cat >conftest.$ac_ext <<_ACEOF
19762/* confdefs.h. */
19763_ACEOF
19764cat confdefs.h >>conftest.$ac_ext
19765cat >>conftest.$ac_ext <<_ACEOF
19766/* end confdefs.h. */
19767$ac_includes_default
19768int
19769main ()
19770{
19771static struct stat ac_aggr;
19772if (ac_aggr.st_blksize)
19773return 0;
19774 ;
19775 return 0;
19776}
19777_ACEOF
19778rm -f conftest.$ac_objext
19779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19780 (eval $ac_compile) 2>conftest.er1
19781 ac_status=$?
19782 grep -v '^ *+' conftest.er1 >conftest.err
19783 rm -f conftest.er1
19784 cat conftest.err >&5
19785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19786 (exit $ac_status); } &&
b4e70030
JB
19787 { ac_try='test -z "$ac_c_werror_flag"
19788 || test ! -s conftest.err'
4e8d927d
DJ
19789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19790 (eval $ac_try) 2>&5
19791 ac_status=$?
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); }; } &&
19794 { ac_try='test -s conftest.$ac_objext'
19795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19796 (eval $ac_try) 2>&5
19797 ac_status=$?
19798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799 (exit $ac_status); }; }; then
19800 ac_cv_member_struct_stat_st_blksize=yes
19801else
19802 echo "$as_me: failed program was:" >&5
19803sed 's/^/| /' conftest.$ac_ext >&5
19804
b4e70030 19805cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
19806/* confdefs.h. */
19807_ACEOF
19808cat confdefs.h >>conftest.$ac_ext
19809cat >>conftest.$ac_ext <<_ACEOF
19810/* end confdefs.h. */
19811$ac_includes_default
19812int
19813main ()
19814{
19815static struct stat ac_aggr;
19816if (sizeof ac_aggr.st_blksize)
19817return 0;
19818 ;
19819 return 0;
19820}
19821_ACEOF
19822rm -f conftest.$ac_objext
19823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19824 (eval $ac_compile) 2>conftest.er1
19825 ac_status=$?
19826 grep -v '^ *+' conftest.er1 >conftest.err
19827 rm -f conftest.er1
19828 cat conftest.err >&5
19829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830 (exit $ac_status); } &&
b4e70030
JB
19831 { ac_try='test -z "$ac_c_werror_flag"
19832 || test ! -s conftest.err'
4e8d927d
DJ
19833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19834 (eval $ac_try) 2>&5
19835 ac_status=$?
19836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837 (exit $ac_status); }; } &&
19838 { ac_try='test -s conftest.$ac_objext'
19839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19840 (eval $ac_try) 2>&5
19841 ac_status=$?
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); }; }; then
19844 ac_cv_member_struct_stat_st_blksize=yes
19845else
19846 echo "$as_me: failed program was:" >&5
19847sed 's/^/| /' conftest.$ac_ext >&5
19848
b4e70030 19849ac_cv_member_struct_stat_st_blksize=no
4e8d927d 19850fi
4e8d927d
DJ
19851rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19852fi
4e8d927d
DJ
19853rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19854fi
b4e70030
JB
19855echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
19856echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
4e8d927d
DJ
19857if test $ac_cv_member_struct_stat_st_blksize = yes; then
19858
19859cat >>confdefs.h <<_ACEOF
19860#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
19861_ACEOF
19862
19863
19864fi
19865
19866
19867# ------------------ #
19868# Checks for types. #
19869# ------------------ #
19870
b4e70030
JB
19871echo "$as_me:$LINENO: checking return type of signal handlers" >&5
19872echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4e8d927d
DJ
19873if test "${ac_cv_type_signal+set}" = set; then
19874 echo $ECHO_N "(cached) $ECHO_C" >&6
19875else
19876 cat >conftest.$ac_ext <<_ACEOF
19877/* confdefs.h. */
19878_ACEOF
19879cat confdefs.h >>conftest.$ac_ext
19880cat >>conftest.$ac_ext <<_ACEOF
19881/* end confdefs.h. */
19882#include <sys/types.h>
19883#include <signal.h>
b4e70030
JB
19884#ifdef signal
19885# undef signal
19886#endif
19887#ifdef __cplusplus
19888extern "C" void (*signal (int, void (*)(int)))(int);
19889#else
19890void (*signal ()) ();
19891#endif
4e8d927d
DJ
19892
19893int
19894main ()
19895{
b4e70030 19896int i;
4e8d927d
DJ
19897 ;
19898 return 0;
19899}
19900_ACEOF
19901rm -f conftest.$ac_objext
19902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19903 (eval $ac_compile) 2>conftest.er1
19904 ac_status=$?
19905 grep -v '^ *+' conftest.er1 >conftest.err
19906 rm -f conftest.er1
19907 cat conftest.err >&5
19908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19909 (exit $ac_status); } &&
b4e70030
JB
19910 { ac_try='test -z "$ac_c_werror_flag"
19911 || test ! -s conftest.err'
4e8d927d
DJ
19912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19913 (eval $ac_try) 2>&5
19914 ac_status=$?
19915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916 (exit $ac_status); }; } &&
19917 { ac_try='test -s conftest.$ac_objext'
19918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19919 (eval $ac_try) 2>&5
19920 ac_status=$?
19921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922 (exit $ac_status); }; }; then
b4e70030 19923 ac_cv_type_signal=void
4e8d927d
DJ
19924else
19925 echo "$as_me: failed program was:" >&5
19926sed 's/^/| /' conftest.$ac_ext >&5
19927
b4e70030 19928ac_cv_type_signal=int
4e8d927d 19929fi
4e8d927d
DJ
19930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19931fi
b4e70030
JB
19932echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
19933echo "${ECHO_T}$ac_cv_type_signal" >&6
4e8d927d
DJ
19934
19935cat >>confdefs.h <<_ACEOF
19936#define RETSIGTYPE $ac_cv_type_signal
19937_ACEOF
19938
19939
b4e70030
JB
19940echo "$as_me:$LINENO: checking for socklen_t" >&5
19941echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
4e8d927d
DJ
19942if test "${ac_cv_type_socklen_t+set}" = set; then
19943 echo $ECHO_N "(cached) $ECHO_C" >&6
19944else
19945 cat >conftest.$ac_ext <<_ACEOF
19946/* confdefs.h. */
19947_ACEOF
19948cat confdefs.h >>conftest.$ac_ext
19949cat >>conftest.$ac_ext <<_ACEOF
19950/* end confdefs.h. */
19951#include <sys/types.h>
19952#include <sys/socket.h>
19953
19954
4e8d927d
DJ
19955int
19956main ()
19957{
b4e70030 19958if ((socklen_t *) 0)
4e8d927d 19959 return 0;
b4e70030 19960if (sizeof (socklen_t))
4e8d927d
DJ
19961 return 0;
19962 ;
19963 return 0;
19964}
19965_ACEOF
19966rm -f conftest.$ac_objext
19967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19968 (eval $ac_compile) 2>conftest.er1
19969 ac_status=$?
19970 grep -v '^ *+' conftest.er1 >conftest.err
19971 rm -f conftest.er1
19972 cat conftest.err >&5
19973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19974 (exit $ac_status); } &&
b4e70030
JB
19975 { ac_try='test -z "$ac_c_werror_flag"
19976 || test ! -s conftest.err'
4e8d927d
DJ
19977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19978 (eval $ac_try) 2>&5
19979 ac_status=$?
19980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981 (exit $ac_status); }; } &&
19982 { ac_try='test -s conftest.$ac_objext'
19983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19984 (eval $ac_try) 2>&5
19985 ac_status=$?
19986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19987 (exit $ac_status); }; }; then
19988 ac_cv_type_socklen_t=yes
19989else
19990 echo "$as_me: failed program was:" >&5
19991sed 's/^/| /' conftest.$ac_ext >&5
19992
b4e70030 19993ac_cv_type_socklen_t=no
4e8d927d 19994fi
4e8d927d
DJ
19995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19996fi
b4e70030
JB
19997echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
19998echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
4e8d927d
DJ
19999if test $ac_cv_type_socklen_t = yes; then
20000
20001cat >>confdefs.h <<_ACEOF
20002#define HAVE_SOCKLEN_T 1
20003_ACEOF
20004
20005
20006fi
20007
b4e70030
JB
20008echo "$as_me:$LINENO: checking for uintptr_t" >&5
20009echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4e8d927d
DJ
20010if test "${ac_cv_type_uintptr_t+set}" = set; then
20011 echo $ECHO_N "(cached) $ECHO_C" >&6
20012else
20013 cat >conftest.$ac_ext <<_ACEOF
20014/* confdefs.h. */
20015_ACEOF
20016cat confdefs.h >>conftest.$ac_ext
20017cat >>conftest.$ac_ext <<_ACEOF
20018/* end confdefs.h. */
20019#include <stdint.h>
20020
4e8d927d
DJ
20021int
20022main ()
20023{
b4e70030 20024if ((uintptr_t *) 0)
4e8d927d 20025 return 0;
b4e70030 20026if (sizeof (uintptr_t))
4e8d927d
DJ
20027 return 0;
20028 ;
20029 return 0;
20030}
20031_ACEOF
20032rm -f conftest.$ac_objext
20033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20034 (eval $ac_compile) 2>conftest.er1
20035 ac_status=$?
20036 grep -v '^ *+' conftest.er1 >conftest.err
20037 rm -f conftest.er1
20038 cat conftest.err >&5
20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040 (exit $ac_status); } &&
b4e70030
JB
20041 { ac_try='test -z "$ac_c_werror_flag"
20042 || test ! -s conftest.err'
4e8d927d
DJ
20043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20044 (eval $ac_try) 2>&5
20045 ac_status=$?
20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); }; } &&
20048 { ac_try='test -s conftest.$ac_objext'
20049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20050 (eval $ac_try) 2>&5
20051 ac_status=$?
20052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053 (exit $ac_status); }; }; then
20054 ac_cv_type_uintptr_t=yes
20055else
20056 echo "$as_me: failed program was:" >&5
20057sed 's/^/| /' conftest.$ac_ext >&5
20058
b4e70030 20059ac_cv_type_uintptr_t=no
4e8d927d 20060fi
4e8d927d
DJ
20061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20062fi
b4e70030
JB
20063echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
20064echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4e8d927d
DJ
20065if test $ac_cv_type_uintptr_t = yes; then
20066
20067cat >>confdefs.h <<_ACEOF
20068#define HAVE_UINTPTR_T 1
20069_ACEOF
20070
20071
20072fi
20073
20074
20075# ------------------------------------- #
20076# Checks for compiler characteristics. #
20077# ------------------------------------- #
20078
b4e70030
JB
20079echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20080echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4e8d927d
DJ
20081if test "${ac_cv_c_const+set}" = set; then
20082 echo $ECHO_N "(cached) $ECHO_C" >&6
20083else
20084 cat >conftest.$ac_ext <<_ACEOF
20085/* confdefs.h. */
20086_ACEOF
20087cat confdefs.h >>conftest.$ac_ext
20088cat >>conftest.$ac_ext <<_ACEOF
20089/* end confdefs.h. */
20090
20091int
20092main ()
20093{
20094/* FIXME: Include the comments suggested by Paul. */
20095#ifndef __cplusplus
20096 /* Ultrix mips cc rejects this. */
20097 typedef int charset[2];
20098 const charset x;
20099 /* SunOS 4.1.1 cc rejects this. */
20100 char const *const *ccp;
20101 char **p;
20102 /* NEC SVR4.0.2 mips cc rejects this. */
20103 struct point {int x, y;};
20104 static struct point const zero = {0,0};
20105 /* AIX XL C 1.02.0.0 rejects this.
20106 It does not let you subtract one const X* pointer from another in
20107 an arm of an if-expression whose if-part is not a constant
20108 expression */
20109 const char *g = "string";
20110 ccp = &g + (g ? g-g : 0);
20111 /* HPUX 7.0 cc rejects these. */
20112 ++ccp;
20113 p = (char**) ccp;
20114 ccp = (char const *const *) p;
20115 { /* SCO 3.2v4 cc rejects this. */
20116 char *t;
20117 char const *s = 0 ? (char *) 0 : (char const *) 0;
20118
20119 *t++ = 0;
4e8d927d
DJ
20120 }
20121 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20122 int x[] = {25, 17};
20123 const int *foo = &x[0];
20124 ++foo;
20125 }
20126 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20127 typedef const int *iptr;
20128 iptr p = 0;
20129 ++p;
20130 }
20131 { /* AIX XL C 1.02.0.0 rejects this saying
20132 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20133 struct s { int j; const int *ap[3]; };
20134 struct s *b; b->j = 5;
20135 }
20136 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20137 const int foo = 10;
4e8d927d 20138 }
4e8d927d
DJ
20139#endif
20140
20141 ;
20142 return 0;
20143}
20144_ACEOF
20145rm -f conftest.$ac_objext
20146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20147 (eval $ac_compile) 2>conftest.er1
20148 ac_status=$?
20149 grep -v '^ *+' conftest.er1 >conftest.err
20150 rm -f conftest.er1
20151 cat conftest.err >&5
20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); } &&
b4e70030
JB
20154 { ac_try='test -z "$ac_c_werror_flag"
20155 || test ! -s conftest.err'
4e8d927d
DJ
20156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20157 (eval $ac_try) 2>&5
20158 ac_status=$?
20159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160 (exit $ac_status); }; } &&
20161 { ac_try='test -s conftest.$ac_objext'
20162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20163 (eval $ac_try) 2>&5
20164 ac_status=$?
20165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166 (exit $ac_status); }; }; then
20167 ac_cv_c_const=yes
20168else
20169 echo "$as_me: failed program was:" >&5
20170sed 's/^/| /' conftest.$ac_ext >&5
20171
b4e70030 20172ac_cv_c_const=no
4e8d927d 20173fi
4e8d927d
DJ
20174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20175fi
b4e70030
JB
20176echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20177echo "${ECHO_T}$ac_cv_c_const" >&6
4e8d927d
DJ
20178if test $ac_cv_c_const = no; then
20179
20180cat >>confdefs.h <<\_ACEOF
20181#define const
20182_ACEOF
20183
20184fi
20185
b4e70030
JB
20186echo "$as_me:$LINENO: checking for inline" >&5
20187echo $ECHO_N "checking for inline... $ECHO_C" >&6
4e8d927d
DJ
20188if test "${ac_cv_c_inline+set}" = set; then
20189 echo $ECHO_N "(cached) $ECHO_C" >&6
20190else
20191 ac_cv_c_inline=no
20192for ac_kw in inline __inline__ __inline; do
20193 cat >conftest.$ac_ext <<_ACEOF
20194/* confdefs.h. */
20195_ACEOF
20196cat confdefs.h >>conftest.$ac_ext
20197cat >>conftest.$ac_ext <<_ACEOF
20198/* end confdefs.h. */
20199#ifndef __cplusplus
20200typedef int foo_t;
20201static $ac_kw foo_t static_foo () {return 0; }
20202$ac_kw foo_t foo () {return 0; }
20203#endif
20204
20205_ACEOF
20206rm -f conftest.$ac_objext
20207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20208 (eval $ac_compile) 2>conftest.er1
20209 ac_status=$?
20210 grep -v '^ *+' conftest.er1 >conftest.err
20211 rm -f conftest.er1
20212 cat conftest.err >&5
20213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20214 (exit $ac_status); } &&
b4e70030
JB
20215 { ac_try='test -z "$ac_c_werror_flag"
20216 || test ! -s conftest.err'
4e8d927d
DJ
20217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20218 (eval $ac_try) 2>&5
20219 ac_status=$?
20220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221 (exit $ac_status); }; } &&
20222 { ac_try='test -s conftest.$ac_objext'
20223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20224 (eval $ac_try) 2>&5
20225 ac_status=$?
20226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227 (exit $ac_status); }; }; then
b4e70030 20228 ac_cv_c_inline=$ac_kw; break
4e8d927d
DJ
20229else
20230 echo "$as_me: failed program was:" >&5
20231sed 's/^/| /' conftest.$ac_ext >&5
20232
4e8d927d 20233fi
4e8d927d 20234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
20235done
20236
20237fi
b4e70030
JB
20238echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20239echo "${ECHO_T}$ac_cv_c_inline" >&6
bec39cab 20240
bec39cab 20241
a3828db0
MK
20242case $ac_cv_c_inline in
20243 inline | yes) ;;
20244 *)
20245 case $ac_cv_c_inline in
20246 no) ac_val=;;
20247 *) ac_val=$ac_cv_c_inline;;
20248 esac
20249 cat >>confdefs.h <<_ACEOF
20250#ifndef __cplusplus
20251#define inline $ac_val
20252#endif
20253_ACEOF
bec39cab
AC
20254 ;;
20255esac
bec39cab 20256
9b913628
TJB
20257echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20258echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20259if test "${ac_cv_c_bigendian+set}" = set; then
20260 echo $ECHO_N "(cached) $ECHO_C" >&6
20261else
20262 # See if sys/param.h defines the BYTE_ORDER macro.
20263cat >conftest.$ac_ext <<_ACEOF
20264/* confdefs.h. */
20265_ACEOF
20266cat confdefs.h >>conftest.$ac_ext
20267cat >>conftest.$ac_ext <<_ACEOF
20268/* end confdefs.h. */
20269#include <sys/types.h>
20270#include <sys/param.h>
20271
20272int
20273main ()
20274{
20275#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20276 bogus endian macros
20277#endif
20278
20279 ;
20280 return 0;
20281}
20282_ACEOF
20283rm -f conftest.$ac_objext
20284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20285 (eval $ac_compile) 2>conftest.er1
20286 ac_status=$?
20287 grep -v '^ *+' conftest.er1 >conftest.err
20288 rm -f conftest.er1
20289 cat conftest.err >&5
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); } &&
20292 { ac_try='test -z "$ac_c_werror_flag"
20293 || test ! -s conftest.err'
20294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20295 (eval $ac_try) 2>&5
20296 ac_status=$?
20297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298 (exit $ac_status); }; } &&
20299 { ac_try='test -s conftest.$ac_objext'
20300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20301 (eval $ac_try) 2>&5
20302 ac_status=$?
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 (exit $ac_status); }; }; then
20305 # It does; now see whether it defined to BIG_ENDIAN or not.
20306cat >conftest.$ac_ext <<_ACEOF
20307/* confdefs.h. */
20308_ACEOF
20309cat confdefs.h >>conftest.$ac_ext
20310cat >>conftest.$ac_ext <<_ACEOF
20311/* end confdefs.h. */
20312#include <sys/types.h>
20313#include <sys/param.h>
20314
20315int
20316main ()
20317{
20318#if BYTE_ORDER != BIG_ENDIAN
20319 not big endian
20320#endif
20321
20322 ;
20323 return 0;
20324}
20325_ACEOF
20326rm -f conftest.$ac_objext
20327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20328 (eval $ac_compile) 2>conftest.er1
20329 ac_status=$?
20330 grep -v '^ *+' conftest.er1 >conftest.err
20331 rm -f conftest.er1
20332 cat conftest.err >&5
20333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334 (exit $ac_status); } &&
20335 { ac_try='test -z "$ac_c_werror_flag"
20336 || test ! -s conftest.err'
20337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20338 (eval $ac_try) 2>&5
20339 ac_status=$?
20340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341 (exit $ac_status); }; } &&
20342 { ac_try='test -s conftest.$ac_objext'
20343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20344 (eval $ac_try) 2>&5
20345 ac_status=$?
20346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347 (exit $ac_status); }; }; then
20348 ac_cv_c_bigendian=yes
20349else
20350 echo "$as_me: failed program was:" >&5
20351sed 's/^/| /' conftest.$ac_ext >&5
20352
20353ac_cv_c_bigendian=no
20354fi
20355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20356else
20357 echo "$as_me: failed program was:" >&5
20358sed 's/^/| /' conftest.$ac_ext >&5
20359
20360# It does not; compile a test program.
20361if test "$cross_compiling" = yes; then
20362 # try to guess the endianness by grepping values into an object file
20363 ac_cv_c_bigendian=unknown
20364 cat >conftest.$ac_ext <<_ACEOF
20365/* confdefs.h. */
20366_ACEOF
20367cat confdefs.h >>conftest.$ac_ext
20368cat >>conftest.$ac_ext <<_ACEOF
20369/* end confdefs.h. */
20370short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20371short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20372void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20373short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20374short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20375void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20376int
20377main ()
20378{
20379 _ascii (); _ebcdic ();
20380 ;
20381 return 0;
20382}
20383_ACEOF
20384rm -f conftest.$ac_objext
20385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20386 (eval $ac_compile) 2>conftest.er1
20387 ac_status=$?
20388 grep -v '^ *+' conftest.er1 >conftest.err
20389 rm -f conftest.er1
20390 cat conftest.err >&5
20391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392 (exit $ac_status); } &&
20393 { ac_try='test -z "$ac_c_werror_flag"
20394 || test ! -s conftest.err'
20395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20396 (eval $ac_try) 2>&5
20397 ac_status=$?
20398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399 (exit $ac_status); }; } &&
20400 { ac_try='test -s conftest.$ac_objext'
20401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20402 (eval $ac_try) 2>&5
20403 ac_status=$?
20404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20405 (exit $ac_status); }; }; then
20406 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20407 ac_cv_c_bigendian=yes
20408fi
20409if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20410 if test "$ac_cv_c_bigendian" = unknown; then
20411 ac_cv_c_bigendian=no
20412 else
20413 # finding both strings is unlikely to happen, but who knows?
20414 ac_cv_c_bigendian=unknown
20415 fi
20416fi
20417else
20418 echo "$as_me: failed program was:" >&5
20419sed 's/^/| /' conftest.$ac_ext >&5
20420
20421fi
20422rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20423else
20424 cat >conftest.$ac_ext <<_ACEOF
20425/* confdefs.h. */
20426_ACEOF
20427cat confdefs.h >>conftest.$ac_ext
20428cat >>conftest.$ac_ext <<_ACEOF
20429/* end confdefs.h. */
20430int
20431main ()
20432{
20433 /* Are we little or big endian? From Harbison&Steele. */
20434 union
20435 {
20436 long l;
20437 char c[sizeof (long)];
20438 } u;
20439 u.l = 1;
20440 exit (u.c[sizeof (long) - 1] == 1);
20441}
20442_ACEOF
20443rm -f conftest$ac_exeext
20444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20445 (eval $ac_link) 2>&5
20446 ac_status=$?
20447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20450 (eval $ac_try) 2>&5
20451 ac_status=$?
20452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453 (exit $ac_status); }; }; then
20454 ac_cv_c_bigendian=no
20455else
20456 echo "$as_me: program exited with status $ac_status" >&5
20457echo "$as_me: failed program was:" >&5
20458sed 's/^/| /' conftest.$ac_ext >&5
20459
20460( exit $ac_status )
20461ac_cv_c_bigendian=yes
20462fi
20463rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20464fi
20465fi
20466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20467fi
20468echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20469echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20470case $ac_cv_c_bigendian in
20471 yes)
20472
20473cat >>confdefs.h <<\_ACEOF
20474#define WORDS_BIGENDIAN 1
20475_ACEOF
20476 ;;
20477 no)
20478 ;;
20479 *)
20480 { { echo "$as_me:$LINENO: error: unknown endianness
20481presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20482echo "$as_me: error: unknown endianness
20483presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20484 { (exit 1); exit 1; }; } ;;
20485esac
20486
74c1b268 20487
a3828db0
MK
20488# ------------------------------ #
20489# Checks for library functions. #
20490# ------------------------------ #
bec39cab 20491
a3828db0
MK
20492# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20493# for constant arguments. Useless!
b4e70030
JB
20494echo "$as_me:$LINENO: checking for working alloca.h" >&5
20495echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
a3828db0 20496if test "${ac_cv_working_alloca_h+set}" = set; then
bec39cab
AC
20497 echo $ECHO_N "(cached) $ECHO_C" >&6
20498else
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 20505#include <alloca.h>
bec39cab
AC
20506int
20507main ()
20508{
a3828db0 20509char *p = (char *) alloca (2 * sizeof (int));
bec39cab
AC
20510 ;
20511 return 0;
20512}
20513_ACEOF
20514rm -f conftest.$ac_objext conftest$ac_exeext
20515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20516 (eval $ac_link) 2>conftest.er1
20517 ac_status=$?
20518 grep -v '^ *+' conftest.er1 >conftest.err
20519 rm -f conftest.er1
20520 cat conftest.err >&5
20521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20522 (exit $ac_status); } &&
b4e70030
JB
20523 { ac_try='test -z "$ac_c_werror_flag"
20524 || test ! -s conftest.err'
bec39cab
AC
20525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20526 (eval $ac_try) 2>&5
20527 ac_status=$?
20528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529 (exit $ac_status); }; } &&
20530 { ac_try='test -s conftest$ac_exeext'
20531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20532 (eval $ac_try) 2>&5
20533 ac_status=$?
20534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 (exit $ac_status); }; }; then
a3828db0 20536 ac_cv_working_alloca_h=yes
bec39cab
AC
20537else
20538 echo "$as_me: failed program was:" >&5
20539sed 's/^/| /' conftest.$ac_ext >&5
20540
b4e70030 20541ac_cv_working_alloca_h=no
bec39cab
AC
20542fi
20543rm -f conftest.err conftest.$ac_objext \
20544 conftest$ac_exeext conftest.$ac_ext
20545fi
b4e70030
JB
20546echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
20547echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
a3828db0
MK
20548if test $ac_cv_working_alloca_h = yes; then
20549
20550cat >>confdefs.h <<\_ACEOF
20551#define HAVE_ALLOCA_H 1
bec39cab 20552_ACEOF
74c1b268 20553
74c1b268
AC
20554fi
20555
b4e70030
JB
20556echo "$as_me:$LINENO: checking for alloca" >&5
20557echo $ECHO_N "checking for alloca... $ECHO_C" >&6
a3828db0 20558if test "${ac_cv_func_alloca_works+set}" = set; then
bec39cab 20559 echo $ECHO_N "(cached) $ECHO_C" >&6
74c1b268 20560else
bec39cab
AC
20561 cat >conftest.$ac_ext <<_ACEOF
20562/* confdefs.h. */
20563_ACEOF
20564cat confdefs.h >>conftest.$ac_ext
20565cat >>conftest.$ac_ext <<_ACEOF
20566/* end confdefs.h. */
a3828db0
MK
20567#ifdef __GNUC__
20568# define alloca __builtin_alloca
20569#else
20570# ifdef _MSC_VER
20571# include <malloc.h>
20572# define alloca _alloca
20573# else
20574# if HAVE_ALLOCA_H
20575# include <alloca.h>
20576# else
20577# ifdef _AIX
20578 #pragma alloca
20579# else
20580# ifndef alloca /* predefined by HP cc +Olibcalls */
20581char *alloca ();
20582# endif
20583# endif
20584# endif
97bf5e38 20585# endif
a3828db0 20586#endif
97bf5e38 20587
bec39cab
AC
20588int
20589main ()
20590{
a3828db0 20591char *p = (char *) alloca (1);
bec39cab
AC
20592 ;
20593 return 0;
20594}
20595_ACEOF
a3828db0
MK
20596rm -f conftest.$ac_objext conftest$ac_exeext
20597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20598 (eval $ac_link) 2>conftest.er1
bec39cab
AC
20599 ac_status=$?
20600 grep -v '^ *+' conftest.er1 >conftest.err
20601 rm -f conftest.er1
20602 cat conftest.err >&5
20603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604 (exit $ac_status); } &&
b4e70030
JB
20605 { ac_try='test -z "$ac_c_werror_flag"
20606 || test ! -s conftest.err'
bec39cab
AC
20607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20608 (eval $ac_try) 2>&5
20609 ac_status=$?
20610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20611 (exit $ac_status); }; } &&
a3828db0 20612 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
20613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20614 (eval $ac_try) 2>&5
20615 ac_status=$?
20616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20617 (exit $ac_status); }; }; then
a3828db0 20618 ac_cv_func_alloca_works=yes
0200359f 20619else
bec39cab
AC
20620 echo "$as_me: failed program was:" >&5
20621sed 's/^/| /' conftest.$ac_ext >&5
0200359f 20622
b4e70030 20623ac_cv_func_alloca_works=no
0200359f 20624fi
a3828db0
MK
20625rm -f conftest.err conftest.$ac_objext \
20626 conftest$ac_exeext conftest.$ac_ext
72473524 20627fi
b4e70030
JB
20628echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
20629echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
bec39cab 20630
a3828db0
MK
20631if test $ac_cv_func_alloca_works = yes; then
20632
20633cat >>confdefs.h <<\_ACEOF
20634#define HAVE_ALLOCA 1
bec39cab
AC
20635_ACEOF
20636
a3828db0
MK
20637else
20638 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20639# that cause trouble. Some versions do not even contain alloca or
20640# contain a buggy version. If you still want to use their alloca,
20641# use ar to extract alloca.o from them instead of compiling alloca.c.
72473524 20642
b4e70030 20643ALLOCA=alloca.$ac_objext
bec39cab 20644
a3828db0
MK
20645cat >>confdefs.h <<\_ACEOF
20646#define C_ALLOCA 1
20647_ACEOF
bec39cab 20648
a3828db0 20649
b4e70030
JB
20650echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
20651echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
a3828db0 20652if test "${ac_cv_os_cray+set}" = set; then
bec39cab 20653 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 20654else
a3828db0 20655 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
20656/* confdefs.h. */
20657_ACEOF
20658cat confdefs.h >>conftest.$ac_ext
20659cat >>conftest.$ac_ext <<_ACEOF
20660/* end confdefs.h. */
b4e70030 20661#if defined(CRAY) && ! defined(CRAY2)
a3828db0
MK
20662webecray
20663#else
20664wenotbecray
20665#endif
20666
20667_ACEOF
20668if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20669 $EGREP "webecray" >/dev/null 2>&1; then
20670 ac_cv_os_cray=yes
20671else
20672 ac_cv_os_cray=no
20673fi
20674rm -f conftest*
20675
20676fi
b4e70030
JB
20677echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
20678echo "${ECHO_T}$ac_cv_os_cray" >&6
a3828db0
MK
20679if test $ac_cv_os_cray = yes; then
20680 for ac_func in _getb67 GETB67 getb67; do
20681 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
20682echo "$as_me:$LINENO: checking for $ac_func" >&5
20683echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20684if eval "test \"\${$as_ac_var+set}\" = set"; then
a3828db0
MK
20685 echo $ECHO_N "(cached) $ECHO_C" >&6
20686else
20687 cat >conftest.$ac_ext <<_ACEOF
20688/* confdefs.h. */
20689_ACEOF
20690cat confdefs.h >>conftest.$ac_ext
20691cat >>conftest.$ac_ext <<_ACEOF
20692/* end confdefs.h. */
20693/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20695#define $ac_func innocuous_$ac_func
20696
20697/* System header to define __stub macros and hopefully few prototypes,
20698 which can conflict with char $ac_func (); below.
20699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20700 <limits.h> exists even on freestanding compilers. */
20701
20702#ifdef __STDC__
20703# include <limits.h>
20704#else
20705# include <assert.h>
20706#endif
20707
20708#undef $ac_func
20709
b4e70030 20710/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
20711#ifdef __cplusplus
20712extern "C"
b4e70030 20713{
a3828db0 20714#endif
b4e70030
JB
20715/* We use char because int might match the return type of a gcc2
20716 builtin and then its argument prototype would still apply. */
a3828db0
MK
20717char $ac_func ();
20718/* The GNU C library defines this for functions which it implements
20719 to always fail with ENOSYS. Some functions are actually named
20720 something starting with __ and the normal name is an alias. */
b4e70030 20721#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 20722choke me
b4e70030
JB
20723#else
20724char (*f) () = $ac_func;
20725#endif
20726#ifdef __cplusplus
20727}
a3828db0
MK
20728#endif
20729
20730int
20731main ()
20732{
b4e70030 20733return f != $ac_func;
a3828db0
MK
20734 ;
20735 return 0;
20736}
20737_ACEOF
20738rm -f conftest.$ac_objext conftest$ac_exeext
20739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20740 (eval $ac_link) 2>conftest.er1
20741 ac_status=$?
20742 grep -v '^ *+' conftest.er1 >conftest.err
20743 rm -f conftest.er1
20744 cat conftest.err >&5
20745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746 (exit $ac_status); } &&
b4e70030
JB
20747 { ac_try='test -z "$ac_c_werror_flag"
20748 || test ! -s conftest.err'
a3828db0
MK
20749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20750 (eval $ac_try) 2>&5
20751 ac_status=$?
20752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753 (exit $ac_status); }; } &&
20754 { ac_try='test -s conftest$ac_exeext'
20755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20756 (eval $ac_try) 2>&5
20757 ac_status=$?
20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); }; }; then
20760 eval "$as_ac_var=yes"
20761else
20762 echo "$as_me: failed program was:" >&5
20763sed 's/^/| /' conftest.$ac_ext >&5
20764
b4e70030 20765eval "$as_ac_var=no"
a3828db0
MK
20766fi
20767rm -f conftest.err conftest.$ac_objext \
20768 conftest$ac_exeext conftest.$ac_ext
20769fi
b4e70030
JB
20770echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20771echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
20772if test `eval echo '${'$as_ac_var'}'` = yes; then
20773
20774cat >>confdefs.h <<_ACEOF
20775#define CRAY_STACKSEG_END $ac_func
20776_ACEOF
20777
20778 break
20779fi
20780
20781 done
20782fi
20783
b4e70030
JB
20784echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
20785echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
a3828db0
MK
20786if test "${ac_cv_c_stack_direction+set}" = set; then
20787 echo $ECHO_N "(cached) $ECHO_C" >&6
20788else
20789 if test "$cross_compiling" = yes; then
20790 ac_cv_c_stack_direction=0
20791else
20792 cat >conftest.$ac_ext <<_ACEOF
20793/* confdefs.h. */
20794_ACEOF
20795cat confdefs.h >>conftest.$ac_ext
20796cat >>conftest.$ac_ext <<_ACEOF
20797/* end confdefs.h. */
20798int
20799find_stack_direction ()
20800{
20801 static char *addr = 0;
20802 auto char dummy;
20803 if (addr == 0)
20804 {
20805 addr = &dummy;
20806 return find_stack_direction ();
20807 }
20808 else
20809 return (&dummy > addr) ? 1 : -1;
20810}
20811
20812int
20813main ()
20814{
b4e70030 20815 exit (find_stack_direction () < 0);
a3828db0
MK
20816}
20817_ACEOF
20818rm -f conftest$ac_exeext
20819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20820 (eval $ac_link) 2>&5
20821 ac_status=$?
20822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20825 (eval $ac_try) 2>&5
20826 ac_status=$?
20827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20828 (exit $ac_status); }; }; then
20829 ac_cv_c_stack_direction=1
20830else
20831 echo "$as_me: program exited with status $ac_status" >&5
20832echo "$as_me: failed program was:" >&5
20833sed 's/^/| /' conftest.$ac_ext >&5
20834
20835( exit $ac_status )
20836ac_cv_c_stack_direction=-1
20837fi
b4e70030 20838rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
20839fi
20840fi
b4e70030
JB
20841echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
20842echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
a3828db0
MK
20843
20844cat >>confdefs.h <<_ACEOF
20845#define STACK_DIRECTION $ac_cv_c_stack_direction
20846_ACEOF
20847
20848
20849fi
20850
20851
20852
20853for ac_header in stdlib.h unistd.h
20854do
20855as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
20856if eval "test \"\${$as_ac_Header+set}\" = set"; then
20857 echo "$as_me:$LINENO: checking for $ac_header" >&5
20858echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20859if eval "test \"\${$as_ac_Header+set}\" = set"; then
a3828db0
MK
20860 echo $ECHO_N "(cached) $ECHO_C" >&6
20861fi
b4e70030
JB
20862echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20863echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a3828db0
MK
20864else
20865 # Is the header compilable?
b4e70030
JB
20866echo "$as_me:$LINENO: checking $ac_header usability" >&5
20867echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a3828db0
MK
20868cat >conftest.$ac_ext <<_ACEOF
20869/* confdefs.h. */
20870_ACEOF
20871cat confdefs.h >>conftest.$ac_ext
20872cat >>conftest.$ac_ext <<_ACEOF
20873/* end confdefs.h. */
20874$ac_includes_default
20875#include <$ac_header>
20876_ACEOF
20877rm -f conftest.$ac_objext
20878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20879 (eval $ac_compile) 2>conftest.er1
20880 ac_status=$?
bec39cab
AC
20881 grep -v '^ *+' conftest.er1 >conftest.err
20882 rm -f conftest.er1
20883 cat conftest.err >&5
20884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885 (exit $ac_status); } &&
b4e70030
JB
20886 { ac_try='test -z "$ac_c_werror_flag"
20887 || test ! -s conftest.err'
bec39cab
AC
20888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20889 (eval $ac_try) 2>&5
20890 ac_status=$?
20891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892 (exit $ac_status); }; } &&
20893 { ac_try='test -s conftest.$ac_objext'
20894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20895 (eval $ac_try) 2>&5
20896 ac_status=$?
20897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); }; }; then
20899 ac_header_compiler=yes
20900else
20901 echo "$as_me: failed program was:" >&5
20902sed 's/^/| /' conftest.$ac_ext >&5
20903
b4e70030 20904ac_header_compiler=no
bec39cab
AC
20905fi
20906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
20907echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20908echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
20909
20910# Is the header present?
b4e70030
JB
20911echo "$as_me:$LINENO: checking $ac_header presence" >&5
20912echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
20913cat >conftest.$ac_ext <<_ACEOF
20914/* confdefs.h. */
20915_ACEOF
20916cat confdefs.h >>conftest.$ac_ext
20917cat >>conftest.$ac_ext <<_ACEOF
20918/* end confdefs.h. */
20919#include <$ac_header>
20920_ACEOF
20921if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20923 ac_status=$?
20924 grep -v '^ *+' conftest.er1 >conftest.err
20925 rm -f conftest.er1
20926 cat conftest.err >&5
20927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20928 (exit $ac_status); } >/dev/null; then
20929 if test -s conftest.err; then
20930 ac_cpp_err=$ac_c_preproc_warn_flag
20931 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20932 else
20933 ac_cpp_err=
20934 fi
20935else
20936 ac_cpp_err=yes
20937fi
20938if test -z "$ac_cpp_err"; then
20939 ac_header_preproc=yes
97bf5e38 20940else
bec39cab
AC
20941 echo "$as_me: failed program was:" >&5
20942sed 's/^/| /' conftest.$ac_ext >&5
20943
20944 ac_header_preproc=no
72473524 20945fi
bec39cab 20946rm -f conftest.err conftest.$ac_ext
b4e70030
JB
20947echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20948echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 20949
bec39cab
AC
20950# So? What about this header?
20951case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20952 yes:no: )
20953 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20954echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20956echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20957 ac_header_preproc=yes
20958 ;;
20959 no:yes:* )
20960 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20961echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20962 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20963echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20964 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20965echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20966 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20967echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20969echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20970 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20971echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
20972 (
20973 cat <<\_ASBOX
20974## ------------------------------------------ ##
20975## Report this to the AC_PACKAGE_NAME lists. ##
20976## ------------------------------------------ ##
20977_ASBOX
20978 ) |
20979 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
20980 ;;
20981esac
b4e70030
JB
20982echo "$as_me:$LINENO: checking for $ac_header" >&5
20983echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20984if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 20985 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 20986else
bec39cab
AC
20987 eval "$as_ac_Header=\$ac_header_preproc"
20988fi
b4e70030
JB
20989echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20990echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
20991
20992fi
20993if test `eval echo '${'$as_ac_Header'}'` = yes; then
20994 cat >>confdefs.h <<_ACEOF
20995#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20996_ACEOF
20997
20998fi
20999
21000done
21001
21002
a3828db0 21003for ac_func in getpagesize
bec39cab
AC
21004do
21005as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
21006echo "$as_me:$LINENO: checking for $ac_func" >&5
21007echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21008if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
21009 echo $ECHO_N "(cached) $ECHO_C" >&6
21010else
21011 cat >conftest.$ac_ext <<_ACEOF
21012/* confdefs.h. */
21013_ACEOF
21014cat confdefs.h >>conftest.$ac_ext
21015cat >>conftest.$ac_ext <<_ACEOF
21016/* end confdefs.h. */
21017/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21019#define $ac_func innocuous_$ac_func
21020
97bf5e38 21021/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
21022 which can conflict with char $ac_func (); below.
21023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21024 <limits.h> exists even on freestanding compilers. */
2b2d558c 21025
bec39cab
AC
21026#ifdef __STDC__
21027# include <limits.h>
21028#else
21029# include <assert.h>
21030#endif
97bf5e38 21031
bec39cab
AC
21032#undef $ac_func
21033
b4e70030 21034/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
21035#ifdef __cplusplus
21036extern "C"
b4e70030 21037{
bec39cab 21038#endif
b4e70030
JB
21039/* We use char because int might match the return type of a gcc2
21040 builtin and then its argument prototype would still apply. */
bec39cab 21041char $ac_func ();
97bf5e38
MK
21042/* The GNU C library defines this for functions which it implements
21043 to always fail with ENOSYS. Some functions are actually named
21044 something starting with __ and the normal name is an alias. */
b4e70030 21045#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 21046choke me
b4e70030
JB
21047#else
21048char (*f) () = $ac_func;
21049#endif
21050#ifdef __cplusplus
21051}
97bf5e38
MK
21052#endif
21053
bec39cab
AC
21054int
21055main ()
21056{
b4e70030 21057return f != $ac_func;
bec39cab
AC
21058 ;
21059 return 0;
21060}
21061_ACEOF
21062rm -f conftest.$ac_objext conftest$ac_exeext
21063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21064 (eval $ac_link) 2>conftest.er1
21065 ac_status=$?
21066 grep -v '^ *+' conftest.er1 >conftest.err
21067 rm -f conftest.er1
21068 cat conftest.err >&5
21069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21070 (exit $ac_status); } &&
b4e70030
JB
21071 { ac_try='test -z "$ac_c_werror_flag"
21072 || test ! -s conftest.err'
bec39cab
AC
21073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21074 (eval $ac_try) 2>&5
21075 ac_status=$?
21076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21077 (exit $ac_status); }; } &&
21078 { ac_try='test -s conftest$ac_exeext'
21079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21080 (eval $ac_try) 2>&5
21081 ac_status=$?
21082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083 (exit $ac_status); }; }; then
21084 eval "$as_ac_var=yes"
21085else
21086 echo "$as_me: failed program was:" >&5
21087sed 's/^/| /' conftest.$ac_ext >&5
21088
b4e70030 21089eval "$as_ac_var=no"
bec39cab
AC
21090fi
21091rm -f conftest.err conftest.$ac_objext \
21092 conftest$ac_exeext conftest.$ac_ext
21093fi
b4e70030
JB
21094echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21095echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
21096if test `eval echo '${'$as_ac_var'}'` = yes; then
21097 cat >>confdefs.h <<_ACEOF
21098#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21099_ACEOF
21100
2b2d558c 21101fi
bec39cab 21102done
2b2d558c 21103
b4e70030
JB
21104echo "$as_me:$LINENO: checking for working mmap" >&5
21105echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
a3828db0 21106if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
bec39cab 21107 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 21108else
bec39cab 21109 if test "$cross_compiling" = yes; then
a3828db0 21110 ac_cv_func_mmap_fixed_mapped=no
bec39cab
AC
21111else
21112 cat >conftest.$ac_ext <<_ACEOF
a3828db0 21113/* confdefs.h. */
bec39cab
AC
21114_ACEOF
21115cat confdefs.h >>conftest.$ac_ext
21116cat >>conftest.$ac_ext <<_ACEOF
21117/* end confdefs.h. */
a3828db0
MK
21118$ac_includes_default
21119/* malloc might have been renamed as rpl_malloc. */
21120#undef malloc
bec39cab 21121
a3828db0
MK
21122/* Thanks to Mike Haertel and Jim Avera for this test.
21123 Here is a matrix of mmap possibilities:
21124 mmap private not fixed
21125 mmap private fixed at somewhere currently unmapped
21126 mmap private fixed at somewhere already mapped
21127 mmap shared not fixed
21128 mmap shared fixed at somewhere currently unmapped
21129 mmap shared fixed at somewhere already mapped
21130 For private mappings, we should verify that changes cannot be read()
21131 back from the file, nor mmap's back from the file at a different
21132 address. (There have been systems where private was not correctly
21133 implemented like the infamous i386 svr4.0, and systems where the
21134 VM page cache was not coherent with the file system buffer cache
21135 like early versions of FreeBSD and possibly contemporary NetBSD.)
21136 For shared mappings, we should conversely verify that changes get
21137 propagated back to all the places they're supposed to be.
7dfa765c 21138
a3828db0
MK
21139 Grep wants private fixed already mapped.
21140 The main things grep needs to know about mmap are:
21141 * does it exist and is it safe to write into the mmap'd area
21142 * how to use it (BSD variants) */
7dfa765c 21143
a3828db0
MK
21144#include <fcntl.h>
21145#include <sys/mman.h>
7dfa765c 21146
a3828db0
MK
21147#if !STDC_HEADERS && !HAVE_STDLIB_H
21148char *malloc ();
21149#endif
7dfa765c 21150
a3828db0
MK
21151/* This mess was copied from the GNU getpagesize.h. */
21152#if !HAVE_GETPAGESIZE
21153/* Assume that all systems that can run configure have sys/param.h. */
21154# if !HAVE_SYS_PARAM_H
21155# define HAVE_SYS_PARAM_H 1
21156# endif
64bb1671 21157
a3828db0
MK
21158# ifdef _SC_PAGESIZE
21159# define getpagesize() sysconf(_SC_PAGESIZE)
21160# else /* no _SC_PAGESIZE */
21161# if HAVE_SYS_PARAM_H
21162# include <sys/param.h>
21163# ifdef EXEC_PAGESIZE
21164# define getpagesize() EXEC_PAGESIZE
21165# else /* no EXEC_PAGESIZE */
21166# ifdef NBPG
21167# define getpagesize() NBPG * CLSIZE
21168# ifndef CLSIZE
21169# define CLSIZE 1
21170# endif /* no CLSIZE */
21171# else /* no NBPG */
21172# ifdef NBPC
21173# define getpagesize() NBPC
21174# else /* no NBPC */
21175# ifdef PAGESIZE
21176# define getpagesize() PAGESIZE
21177# endif /* PAGESIZE */
21178# endif /* no NBPC */
21179# endif /* no NBPG */
21180# endif /* no EXEC_PAGESIZE */
21181# else /* no HAVE_SYS_PARAM_H */
21182# define getpagesize() 8192 /* punt totally */
21183# endif /* no HAVE_SYS_PARAM_H */
21184# endif /* no _SC_PAGESIZE */
64bb1671 21185
a3828db0 21186#endif /* no HAVE_GETPAGESIZE */
64bb1671 21187
a3828db0
MK
21188int
21189main ()
21190{
21191 char *data, *data2, *data3;
21192 int i, pagesize;
21193 int fd;
97bf5e38 21194
a3828db0
MK
21195 pagesize = getpagesize ();
21196
21197 /* First, make a file with some known garbage in it. */
21198 data = (char *) malloc (pagesize);
21199 if (!data)
b4e70030 21200 exit (1);
a3828db0
MK
21201 for (i = 0; i < pagesize; ++i)
21202 *(data + i) = rand ();
21203 umask (0);
21204 fd = creat ("conftest.mmap", 0600);
21205 if (fd < 0)
b4e70030 21206 exit (1);
a3828db0 21207 if (write (fd, data, pagesize) != pagesize)
b4e70030 21208 exit (1);
a3828db0
MK
21209 close (fd);
21210
21211 /* Next, try to mmap the file at a fixed address which already has
21212 something else allocated at it. If we can, also make sure that
21213 we see the same garbage. */
21214 fd = open ("conftest.mmap", O_RDWR);
21215 if (fd < 0)
b4e70030 21216 exit (1);
a3828db0
MK
21217 data2 = (char *) malloc (2 * pagesize);
21218 if (!data2)
b4e70030
JB
21219 exit (1);
21220 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
a3828db0
MK
21221 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21222 MAP_PRIVATE | MAP_FIXED, fd, 0L))
b4e70030 21223 exit (1);
a3828db0
MK
21224 for (i = 0; i < pagesize; ++i)
21225 if (*(data + i) != *(data2 + i))
b4e70030 21226 exit (1);
a3828db0
MK
21227
21228 /* Finally, make sure that changes to the mapped area do not
21229 percolate back to the file as seen by read(). (This is a bug on
21230 some variants of i386 svr4.0.) */
21231 for (i = 0; i < pagesize; ++i)
21232 *(data2 + i) = *(data2 + i) + 1;
21233 data3 = (char *) malloc (pagesize);
21234 if (!data3)
b4e70030 21235 exit (1);
a3828db0 21236 if (read (fd, data3, pagesize) != pagesize)
b4e70030 21237 exit (1);
a3828db0
MK
21238 for (i = 0; i < pagesize; ++i)
21239 if (*(data + i) != *(data3 + i))
b4e70030 21240 exit (1);
a3828db0 21241 close (fd);
b4e70030 21242 exit (0);
97bf5e38 21243}
bec39cab
AC
21244_ACEOF
21245rm -f conftest$ac_exeext
21246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21247 (eval $ac_link) 2>&5
21248 ac_status=$?
21249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
a3828db0 21256 ac_cv_func_mmap_fixed_mapped=yes
5c44784c 21257else
bec39cab
AC
21258 echo "$as_me: program exited with status $ac_status" >&5
21259echo "$as_me: failed program was:" >&5
21260sed 's/^/| /' conftest.$ac_ext >&5
21261
21262( exit $ac_status )
a3828db0 21263ac_cv_func_mmap_fixed_mapped=no
0afdd437 21264fi
b4e70030 21265rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bec39cab 21266fi
a3828db0 21267fi
b4e70030
JB
21268echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
21269echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
a3828db0 21270if test $ac_cv_func_mmap_fixed_mapped = yes; then
bec39cab
AC
21271
21272cat >>confdefs.h <<\_ACEOF
a3828db0 21273#define HAVE_MMAP 1
bec39cab 21274_ACEOF
0afdd437
MK
21275
21276fi
a3828db0 21277rm -f conftest.mmap
0afdd437 21278
b4e70030
JB
21279echo "$as_me:$LINENO: checking for pid_t" >&5
21280echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
a3828db0 21281if test "${ac_cv_type_pid_t+set}" = set; then
bec39cab
AC
21282 echo $ECHO_N "(cached) $ECHO_C" >&6
21283else
21284 cat >conftest.$ac_ext <<_ACEOF
21285/* confdefs.h. */
21286_ACEOF
21287cat confdefs.h >>conftest.$ac_ext
21288cat >>conftest.$ac_ext <<_ACEOF
21289/* end confdefs.h. */
a3828db0 21290$ac_includes_default
bec39cab
AC
21291int
21292main ()
21293{
b4e70030 21294if ((pid_t *) 0)
a3828db0 21295 return 0;
b4e70030 21296if (sizeof (pid_t))
a3828db0 21297 return 0;
bec39cab
AC
21298 ;
21299 return 0;
21300}
21301_ACEOF
a3828db0
MK
21302rm -f conftest.$ac_objext
21303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21304 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
21305 ac_status=$?
21306 grep -v '^ *+' conftest.er1 >conftest.err
21307 rm -f conftest.er1
21308 cat conftest.err >&5
21309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310 (exit $ac_status); } &&
b4e70030
JB
21311 { ac_try='test -z "$ac_c_werror_flag"
21312 || test ! -s conftest.err'
bec39cab
AC
21313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21314 (eval $ac_try) 2>&5
21315 ac_status=$?
21316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21317 (exit $ac_status); }; } &&
a3828db0 21318 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
21319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21320 (eval $ac_try) 2>&5
21321 ac_status=$?
21322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323 (exit $ac_status); }; }; then
a3828db0 21324 ac_cv_type_pid_t=yes
bec39cab
AC
21325else
21326 echo "$as_me: failed program was:" >&5
21327sed 's/^/| /' conftest.$ac_ext >&5
21328
b4e70030 21329ac_cv_type_pid_t=no
bec39cab 21330fi
a3828db0 21331rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 21332fi
b4e70030
JB
21333echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21334echo "${ECHO_T}$ac_cv_type_pid_t" >&6
a3828db0
MK
21335if test $ac_cv_type_pid_t = yes; then
21336 :
21337else
21338
21339cat >>confdefs.h <<_ACEOF
21340#define pid_t int
bec39cab 21341_ACEOF
7e89e357 21342
7e89e357
JT
21343fi
21344
bec39cab 21345
b4e70030
JB
21346
21347for ac_header in unistd.h vfork.h
7be570e7 21348do
a3828db0 21349as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
21350if eval "test \"\${$as_ac_Header+set}\" = set"; then
21351 echo "$as_me:$LINENO: checking for $ac_header" >&5
21352echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21353if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 21354 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0 21355fi
b4e70030
JB
21356echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21357echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 21358else
a3828db0 21359 # Is the header compilable?
b4e70030
JB
21360echo "$as_me:$LINENO: checking $ac_header usability" >&5
21361echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a3828db0 21362cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
21363/* confdefs.h. */
21364_ACEOF
21365cat confdefs.h >>conftest.$ac_ext
21366cat >>conftest.$ac_ext <<_ACEOF
21367/* end confdefs.h. */
a3828db0
MK
21368$ac_includes_default
21369#include <$ac_header>
bec39cab 21370_ACEOF
a3828db0
MK
21371rm -f conftest.$ac_objext
21372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21373 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
21374 ac_status=$?
21375 grep -v '^ *+' conftest.er1 >conftest.err
21376 rm -f conftest.er1
21377 cat conftest.err >&5
21378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379 (exit $ac_status); } &&
b4e70030
JB
21380 { ac_try='test -z "$ac_c_werror_flag"
21381 || test ! -s conftest.err'
bec39cab
AC
21382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21383 (eval $ac_try) 2>&5
21384 ac_status=$?
21385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386 (exit $ac_status); }; } &&
a3828db0 21387 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
21388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21389 (eval $ac_try) 2>&5
21390 ac_status=$?
21391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21392 (exit $ac_status); }; }; then
a3828db0 21393 ac_header_compiler=yes
bec39cab
AC
21394else
21395 echo "$as_me: failed program was:" >&5
21396sed 's/^/| /' conftest.$ac_ext >&5
21397
b4e70030 21398ac_header_compiler=no
bec39cab 21399fi
a3828db0 21400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
21401echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21402echo "${ECHO_T}$ac_header_compiler" >&6
a3828db0
MK
21403
21404# Is the header present?
b4e70030
JB
21405echo "$as_me:$LINENO: checking $ac_header presence" >&5
21406echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
a3828db0
MK
21407cat >conftest.$ac_ext <<_ACEOF
21408/* confdefs.h. */
21409_ACEOF
21410cat confdefs.h >>conftest.$ac_ext
21411cat >>conftest.$ac_ext <<_ACEOF
21412/* end confdefs.h. */
21413#include <$ac_header>
21414_ACEOF
21415if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21416 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21417 ac_status=$?
21418 grep -v '^ *+' conftest.er1 >conftest.err
21419 rm -f conftest.er1
21420 cat conftest.err >&5
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); } >/dev/null; then
21423 if test -s conftest.err; then
21424 ac_cpp_err=$ac_c_preproc_warn_flag
21425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21426 else
21427 ac_cpp_err=
21428 fi
21429else
21430 ac_cpp_err=yes
21431fi
21432if test -z "$ac_cpp_err"; then
21433 ac_header_preproc=yes
21434else
21435 echo "$as_me: failed program was:" >&5
21436sed 's/^/| /' conftest.$ac_ext >&5
21437
21438 ac_header_preproc=no
21439fi
21440rm -f conftest.err conftest.$ac_ext
b4e70030
JB
21441echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21442echo "${ECHO_T}$ac_header_preproc" >&6
a3828db0
MK
21443
21444# So? What about this header?
21445case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21446 yes:no: )
21447 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21448echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21450echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21451 ac_header_preproc=yes
21452 ;;
21453 no:yes:* )
21454 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21455echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21456 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21457echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21458 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21459echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21460 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21461echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21463echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21464 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21465echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
21466 (
21467 cat <<\_ASBOX
21468## ------------------------------------------ ##
21469## Report this to the AC_PACKAGE_NAME lists. ##
21470## ------------------------------------------ ##
21471_ASBOX
21472 ) |
21473 sed "s/^/$as_me: WARNING: /" >&2
a3828db0
MK
21474 ;;
21475esac
b4e70030
JB
21476echo "$as_me:$LINENO: checking for $ac_header" >&5
21477echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21478if eval "test \"\${$as_ac_Header+set}\" = set"; then
a3828db0
MK
21479 echo $ECHO_N "(cached) $ECHO_C" >&6
21480else
21481 eval "$as_ac_Header=\$ac_header_preproc"
21482fi
b4e70030
JB
21483echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21484echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a3828db0 21485
bec39cab 21486fi
a3828db0 21487if test `eval echo '${'$as_ac_Header'}'` = yes; then
bec39cab 21488 cat >>confdefs.h <<_ACEOF
a3828db0 21489#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
bec39cab 21490_ACEOF
14abd0fb 21491
14abd0fb 21492fi
a3828db0 21493
14abd0fb
MK
21494done
21495
bec39cab 21496
a3828db0
MK
21497
21498for ac_func in fork vfork
14abd0fb 21499do
bec39cab 21500as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
21501echo "$as_me:$LINENO: checking for $ac_func" >&5
21502echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21503if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
21504 echo $ECHO_N "(cached) $ECHO_C" >&6
21505else
21506 cat >conftest.$ac_ext <<_ACEOF
21507/* confdefs.h. */
21508_ACEOF
21509cat confdefs.h >>conftest.$ac_ext
21510cat >>conftest.$ac_ext <<_ACEOF
21511/* end confdefs.h. */
21512/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21513 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21514#define $ac_func innocuous_$ac_func
21515
14abd0fb 21516/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
21517 which can conflict with char $ac_func (); below.
21518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21519 <limits.h> exists even on freestanding compilers. */
21520
21521#ifdef __STDC__
21522# include <limits.h>
21523#else
21524# include <assert.h>
21525#endif
14abd0fb 21526
bec39cab 21527#undef $ac_func
14abd0fb 21528
b4e70030 21529/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
21530#ifdef __cplusplus
21531extern "C"
b4e70030 21532{
bec39cab 21533#endif
b4e70030
JB
21534/* We use char because int might match the return type of a gcc2
21535 builtin and then its argument prototype would still apply. */
bec39cab 21536char $ac_func ();
14abd0fb
MK
21537/* The GNU C library defines this for functions which it implements
21538 to always fail with ENOSYS. Some functions are actually named
21539 something starting with __ and the normal name is an alias. */
b4e70030 21540#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14abd0fb 21541choke me
b4e70030
JB
21542#else
21543char (*f) () = $ac_func;
21544#endif
21545#ifdef __cplusplus
21546}
14abd0fb
MK
21547#endif
21548
bec39cab
AC
21549int
21550main ()
21551{
b4e70030 21552return f != $ac_func;
bec39cab
AC
21553 ;
21554 return 0;
21555}
21556_ACEOF
21557rm -f conftest.$ac_objext conftest$ac_exeext
21558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21559 (eval $ac_link) 2>conftest.er1
21560 ac_status=$?
21561 grep -v '^ *+' conftest.er1 >conftest.err
21562 rm -f conftest.er1
21563 cat conftest.err >&5
21564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565 (exit $ac_status); } &&
b4e70030
JB
21566 { ac_try='test -z "$ac_c_werror_flag"
21567 || test ! -s conftest.err'
bec39cab
AC
21568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21569 (eval $ac_try) 2>&5
21570 ac_status=$?
21571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572 (exit $ac_status); }; } &&
21573 { ac_try='test -s conftest$ac_exeext'
21574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21575 (eval $ac_try) 2>&5
21576 ac_status=$?
21577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578 (exit $ac_status); }; }; then
21579 eval "$as_ac_var=yes"
21580else
21581 echo "$as_me: failed program was:" >&5
21582sed 's/^/| /' conftest.$ac_ext >&5
21583
b4e70030 21584eval "$as_ac_var=no"
bec39cab
AC
21585fi
21586rm -f conftest.err conftest.$ac_objext \
21587 conftest$ac_exeext conftest.$ac_ext
21588fi
b4e70030
JB
21589echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21590echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
21591if test `eval echo '${'$as_ac_var'}'` = yes; then
21592 cat >>confdefs.h <<_ACEOF
21593#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21594_ACEOF
7be570e7 21595
7be570e7
JM
21596fi
21597done
21598
a3828db0 21599if test "x$ac_cv_func_fork" = xyes; then
b4e70030
JB
21600 echo "$as_me:$LINENO: checking for working fork" >&5
21601echo $ECHO_N "checking for working fork... $ECHO_C" >&6
a3828db0
MK
21602if test "${ac_cv_func_fork_works+set}" = set; then
21603 echo $ECHO_N "(cached) $ECHO_C" >&6
21604else
21605 if test "$cross_compiling" = yes; then
21606 ac_cv_func_fork_works=cross
21607else
21608 cat >conftest.$ac_ext <<_ACEOF
b4e70030
JB
21609/* By Ruediger Kuhlmann. */
21610 #include <sys/types.h>
21611 #if HAVE_UNISTD_H
21612 # include <unistd.h>
21613 #endif
21614 /* Some systems only have a dummy stub for fork() */
21615 int main ()
21616 {
21617 if (fork() < 0)
21618 exit (1);
21619 exit (0);
21620 }
a3828db0
MK
21621_ACEOF
21622rm -f conftest$ac_exeext
21623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21624 (eval $ac_link) 2>&5
21625 ac_status=$?
21626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21629 (eval $ac_try) 2>&5
21630 ac_status=$?
21631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21632 (exit $ac_status); }; }; then
21633 ac_cv_func_fork_works=yes
21634else
21635 echo "$as_me: program exited with status $ac_status" >&5
21636echo "$as_me: failed program was:" >&5
21637sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 21638
a3828db0
MK
21639( exit $ac_status )
21640ac_cv_func_fork_works=no
21641fi
b4e70030 21642rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
21643fi
21644fi
b4e70030
JB
21645echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
21646echo "${ECHO_T}$ac_cv_func_fork_works" >&6
a3828db0
MK
21647
21648else
21649 ac_cv_func_fork_works=$ac_cv_func_fork
21650fi
21651if test "x$ac_cv_func_fork_works" = xcross; then
21652 case $host in
21653 *-*-amigaos* | *-*-msdosdjgpp*)
21654 # Override, as these systems have only a dummy fork() stub
21655 ac_cv_func_fork_works=no
21656 ;;
21657 *)
21658 ac_cv_func_fork_works=yes
21659 ;;
21660 esac
21661 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21662echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21663fi
21664ac_cv_func_vfork_works=$ac_cv_func_vfork
21665if test "x$ac_cv_func_vfork" = xyes; then
b4e70030
JB
21666 echo "$as_me:$LINENO: checking for working vfork" >&5
21667echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
a3828db0 21668if test "${ac_cv_func_vfork_works+set}" = set; then
bec39cab 21669 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
21670else
21671 if test "$cross_compiling" = yes; then
21672 ac_cv_func_vfork_works=cross
bec39cab
AC
21673else
21674 cat >conftest.$ac_ext <<_ACEOF
21675/* confdefs.h. */
21676_ACEOF
21677cat confdefs.h >>conftest.$ac_ext
21678cat >>conftest.$ac_ext <<_ACEOF
21679/* end confdefs.h. */
a3828db0 21680/* Thanks to Paul Eggert for this test. */
b4e70030
JB
21681#include <stdio.h>
21682#include <stdlib.h>
21683#include <sys/types.h>
21684#include <sys/stat.h>
a3828db0 21685#include <sys/wait.h>
b4e70030
JB
21686#if HAVE_UNISTD_H
21687# include <unistd.h>
21688#endif
a3828db0
MK
21689#if HAVE_VFORK_H
21690# include <vfork.h>
bec39cab 21691#endif
a3828db0
MK
21692/* On some sparc systems, changes by the child to local and incoming
21693 argument registers are propagated back to the parent. The compiler
21694 is told about this with #include <vfork.h>, but some compilers
21695 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21696 static variable whose address is put into a register that is
21697 clobbered by the vfork. */
21698static void
bec39cab 21699#ifdef __cplusplus
a3828db0
MK
21700sparc_address_test (int arg)
21701# else
21702sparc_address_test (arg) int arg;
c906108c 21703#endif
a3828db0
MK
21704{
21705 static pid_t child;
21706 if (!child) {
21707 child = vfork ();
21708 if (child < 0) {
21709 perror ("vfork");
21710 _exit(2);
21711 }
21712 if (!child) {
21713 arg = getpid();
21714 write(-1, "", 0);
21715 _exit (arg);
21716 }
21717 }
21718}
97bf5e38 21719
bec39cab
AC
21720int
21721main ()
21722{
a3828db0
MK
21723 pid_t parent = getpid ();
21724 pid_t child;
21725
21726 sparc_address_test (0);
21727
21728 child = vfork ();
21729
21730 if (child == 0) {
21731 /* Here is another test for sparc vfork register problems. This
21732 test uses lots of local variables, at least as many local
21733 variables as main has allocated so far including compiler
21734 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21735 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21736 reuse the register of parent for one of the local variables,
21737 since it will think that parent can't possibly be used any more
21738 in this routine. Assigning to the local variable will thus
21739 munge parent in the parent process. */
21740 pid_t
21741 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21742 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21743 /* Convince the compiler that p..p7 are live; otherwise, it might
21744 use the same hardware register for all 8 local variables. */
21745 if (p != p1 || p != p2 || p != p3 || p != p4
21746 || p != p5 || p != p6 || p != p7)
21747 _exit(1);
21748
21749 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21750 from child file descriptors. If the child closes a descriptor
21751 before it execs or exits, this munges the parent's descriptor
21752 as well. Test for this by closing stdout in the child. */
21753 _exit(close(fileno(stdout)) != 0);
21754 } else {
21755 int status;
21756 struct stat st;
21757
21758 while (wait(&status) != child)
21759 ;
b4e70030 21760 exit(
a3828db0
MK
21761 /* Was there some problem with vforking? */
21762 child < 0
21763
21764 /* Did the child fail? (This shouldn't happen.) */
21765 || status
21766
21767 /* Did the vfork/compiler bug occur? */
21768 || parent != getpid()
21769
21770 /* Did the file descriptor bug occur? */
21771 || fstat(fileno(stdout), &st) != 0
21772 );
21773 }
bec39cab
AC
21774}
21775_ACEOF
a3828db0 21776rm -f conftest$ac_exeext
bec39cab 21777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 21778 (eval $ac_link) 2>&5
bec39cab
AC
21779 ac_status=$?
21780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 21781 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
21782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21783 (eval $ac_try) 2>&5
21784 ac_status=$?
21785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21786 (exit $ac_status); }; }; then
a3828db0
MK
21787 ac_cv_func_vfork_works=yes
21788else
21789 echo "$as_me: program exited with status $ac_status" >&5
21790echo "$as_me: failed program was:" >&5
21791sed 's/^/| /' conftest.$ac_ext >&5
21792
21793( exit $ac_status )
21794ac_cv_func_vfork_works=no
21795fi
b4e70030 21796rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
21797fi
21798fi
b4e70030
JB
21799echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
21800echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
a3828db0
MK
21801
21802fi;
21803if test "x$ac_cv_func_fork_works" = xcross; then
21804 ac_cv_func_vfork_works=$ac_cv_func_vfork
21805 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21806echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21807fi
21808
21809if test "x$ac_cv_func_vfork_works" = xyes; then
21810
21811cat >>confdefs.h <<\_ACEOF
21812#define HAVE_WORKING_VFORK 1
21813_ACEOF
21814
bec39cab 21815else
bec39cab 21816
a3828db0
MK
21817cat >>confdefs.h <<\_ACEOF
21818#define vfork fork
21819_ACEOF
21820
bec39cab 21821fi
a3828db0
MK
21822if test "x$ac_cv_func_fork_works" = xyes; then
21823
21824cat >>confdefs.h <<\_ACEOF
21825#define HAVE_WORKING_FORK 1
bec39cab 21826_ACEOF
c906108c 21827
c906108c
SS
21828fi
21829
bec39cab
AC
21830
21831
a3828db0 21832for ac_func in canonicalize_file_name realpath
97bf5e38 21833do
bec39cab 21834as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030 21835echo "$as_me:$LINENO: checking for $ac_func" >&5
7eb368b3
NR
21836echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21837if eval "test \"\${$as_ac_var+set}\" = set"; then
21838 echo $ECHO_N "(cached) $ECHO_C" >&6
21839else
21840 cat >conftest.$ac_ext <<_ACEOF
21841/* confdefs.h. */
21842_ACEOF
21843cat confdefs.h >>conftest.$ac_ext
21844cat >>conftest.$ac_ext <<_ACEOF
21845/* end confdefs.h. */
21846/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21848#define $ac_func innocuous_$ac_func
21849
21850/* System header to define __stub macros and hopefully few prototypes,
21851 which can conflict with char $ac_func (); below.
21852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21853 <limits.h> exists even on freestanding compilers. */
21854
21855#ifdef __STDC__
21856# include <limits.h>
21857#else
21858# include <assert.h>
21859#endif
21860
21861#undef $ac_func
21862
21863/* Override any gcc2 internal prototype to avoid an error. */
21864#ifdef __cplusplus
21865extern "C"
21866{
21867#endif
21868/* We use char because int might match the return type of a gcc2
21869 builtin and then its argument prototype would still apply. */
21870char $ac_func ();
21871/* The GNU C library defines this for functions which it implements
21872 to always fail with ENOSYS. Some functions are actually named
21873 something starting with __ and the normal name is an alias. */
21874#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21875choke me
21876#else
21877char (*f) () = $ac_func;
21878#endif
21879#ifdef __cplusplus
21880}
21881#endif
21882
21883int
21884main ()
21885{
21886return f != $ac_func;
21887 ;
21888 return 0;
21889}
21890_ACEOF
21891rm -f conftest.$ac_objext conftest$ac_exeext
21892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21893 (eval $ac_link) 2>conftest.er1
21894 ac_status=$?
21895 grep -v '^ *+' conftest.er1 >conftest.err
21896 rm -f conftest.er1
21897 cat conftest.err >&5
21898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21899 (exit $ac_status); } &&
21900 { ac_try='test -z "$ac_c_werror_flag"
21901 || test ! -s conftest.err'
21902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21903 (eval $ac_try) 2>&5
21904 ac_status=$?
21905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21906 (exit $ac_status); }; } &&
21907 { ac_try='test -s conftest$ac_exeext'
21908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21909 (eval $ac_try) 2>&5
21910 ac_status=$?
21911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21912 (exit $ac_status); }; }; then
21913 eval "$as_ac_var=yes"
21914else
21915 echo "$as_me: failed program was:" >&5
21916sed 's/^/| /' conftest.$ac_ext >&5
21917
21918eval "$as_ac_var=no"
21919fi
21920rm -f conftest.err conftest.$ac_objext \
21921 conftest$ac_exeext conftest.$ac_ext
21922fi
21923echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21924echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21925if test `eval echo '${'$as_ac_var'}'` = yes; then
21926 cat >>confdefs.h <<_ACEOF
21927#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21928_ACEOF
21929
21930fi
21931done
21932
21933
21934for ac_func in getrusage
21935do
21936as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21937echo "$as_me:$LINENO: checking for $ac_func" >&5
b4e70030
JB
21938echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21939if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
21940 echo $ECHO_N "(cached) $ECHO_C" >&6
21941else
21942 cat >conftest.$ac_ext <<_ACEOF
21943/* confdefs.h. */
21944_ACEOF
21945cat confdefs.h >>conftest.$ac_ext
21946cat >>conftest.$ac_ext <<_ACEOF
21947/* end confdefs.h. */
21948/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21949 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21950#define $ac_func innocuous_$ac_func
21951
d3ea6809
MM
21952/* System header to define __stub macros and hopefully few prototypes,
21953 which can conflict with char $ac_func (); below.
21954 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21955 <limits.h> exists even on freestanding compilers. */
21956
21957#ifdef __STDC__
21958# include <limits.h>
21959#else
21960# include <assert.h>
21961#endif
21962
21963#undef $ac_func
21964
b4e70030 21965/* Override any gcc2 internal prototype to avoid an error. */
d3ea6809
MM
21966#ifdef __cplusplus
21967extern "C"
b4e70030 21968{
d3ea6809 21969#endif
b4e70030
JB
21970/* We use char because int might match the return type of a gcc2
21971 builtin and then its argument prototype would still apply. */
d3ea6809
MM
21972char $ac_func ();
21973/* The GNU C library defines this for functions which it implements
21974 to always fail with ENOSYS. Some functions are actually named
21975 something starting with __ and the normal name is an alias. */
b4e70030 21976#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d3ea6809 21977choke me
b4e70030
JB
21978#else
21979char (*f) () = $ac_func;
21980#endif
21981#ifdef __cplusplus
21982}
d3ea6809
MM
21983#endif
21984
21985int
21986main ()
21987{
b4e70030 21988return f != $ac_func;
d3ea6809
MM
21989 ;
21990 return 0;
21991}
21992_ACEOF
21993rm -f conftest.$ac_objext conftest$ac_exeext
21994if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21995 (eval $ac_link) 2>conftest.er1
21996 ac_status=$?
21997 grep -v '^ *+' conftest.er1 >conftest.err
21998 rm -f conftest.er1
21999 cat conftest.err >&5
22000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22001 (exit $ac_status); } &&
b4e70030
JB
22002 { ac_try='test -z "$ac_c_werror_flag"
22003 || test ! -s conftest.err'
d3ea6809
MM
22004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22005 (eval $ac_try) 2>&5
22006 ac_status=$?
22007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22008 (exit $ac_status); }; } &&
22009 { ac_try='test -s conftest$ac_exeext'
22010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22011 (eval $ac_try) 2>&5
22012 ac_status=$?
22013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22014 (exit $ac_status); }; }; then
22015 eval "$as_ac_var=yes"
22016else
22017 echo "$as_me: failed program was:" >&5
22018sed 's/^/| /' conftest.$ac_ext >&5
22019
b4e70030 22020eval "$as_ac_var=no"
d3ea6809
MM
22021fi
22022rm -f conftest.err conftest.$ac_objext \
22023 conftest$ac_exeext conftest.$ac_ext
22024fi
b4e70030
JB
22025echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22026echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
d3ea6809
MM
22027if test `eval echo '${'$as_ac_var'}'` = yes; then
22028 cat >>confdefs.h <<_ACEOF
22029#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22030_ACEOF
22031
22032fi
22033done
22034
22035
22036
22037for ac_func in getuid getgid
22038do
22039as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
22040echo "$as_me:$LINENO: checking for $ac_func" >&5
22041echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22042if eval "test \"\${$as_ac_var+set}\" = set"; then
d3ea6809
MM
22043 echo $ECHO_N "(cached) $ECHO_C" >&6
22044else
22045 cat >conftest.$ac_ext <<_ACEOF
22046/* confdefs.h. */
22047_ACEOF
22048cat confdefs.h >>conftest.$ac_ext
22049cat >>conftest.$ac_ext <<_ACEOF
22050/* end confdefs.h. */
22051/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22053#define $ac_func innocuous_$ac_func
22054
97bf5e38 22055/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
22056 which can conflict with char $ac_func (); below.
22057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22058 <limits.h> exists even on freestanding compilers. */
c906108c 22059
bec39cab
AC
22060#ifdef __STDC__
22061# include <limits.h>
22062#else
22063# include <assert.h>
22064#endif
97bf5e38 22065
bec39cab
AC
22066#undef $ac_func
22067
b4e70030 22068/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
22069#ifdef __cplusplus
22070extern "C"
b4e70030 22071{
bec39cab 22072#endif
b4e70030
JB
22073/* We use char because int might match the return type of a gcc2
22074 builtin and then its argument prototype would still apply. */
bec39cab 22075char $ac_func ();
97bf5e38
MK
22076/* The GNU C library defines this for functions which it implements
22077 to always fail with ENOSYS. Some functions are actually named
22078 something starting with __ and the normal name is an alias. */
b4e70030 22079#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 22080choke me
b4e70030
JB
22081#else
22082char (*f) () = $ac_func;
22083#endif
22084#ifdef __cplusplus
22085}
c906108c 22086#endif
97bf5e38 22087
bec39cab
AC
22088int
22089main ()
22090{
b4e70030 22091return f != $ac_func;
bec39cab
AC
22092 ;
22093 return 0;
22094}
22095_ACEOF
22096rm -f conftest.$ac_objext conftest$ac_exeext
22097if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22098 (eval $ac_link) 2>conftest.er1
22099 ac_status=$?
22100 grep -v '^ *+' conftest.er1 >conftest.err
22101 rm -f conftest.er1
22102 cat conftest.err >&5
22103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22104 (exit $ac_status); } &&
b4e70030
JB
22105 { ac_try='test -z "$ac_c_werror_flag"
22106 || test ! -s conftest.err'
bec39cab
AC
22107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22108 (eval $ac_try) 2>&5
22109 ac_status=$?
22110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22111 (exit $ac_status); }; } &&
22112 { ac_try='test -s conftest$ac_exeext'
22113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22114 (eval $ac_try) 2>&5
22115 ac_status=$?
22116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117 (exit $ac_status); }; }; then
22118 eval "$as_ac_var=yes"
22119else
22120 echo "$as_me: failed program was:" >&5
22121sed 's/^/| /' conftest.$ac_ext >&5
22122
b4e70030 22123eval "$as_ac_var=no"
bec39cab
AC
22124fi
22125rm -f conftest.err conftest.$ac_objext \
22126 conftest$ac_exeext conftest.$ac_ext
22127fi
b4e70030
JB
22128echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22129echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
22130if test `eval echo '${'$as_ac_var'}'` = yes; then
22131 cat >>confdefs.h <<_ACEOF
22132#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22133_ACEOF
c906108c 22134
c906108c 22135fi
97bf5e38 22136done
c906108c 22137
bec39cab 22138
a3828db0 22139for ac_func in poll
97bf5e38 22140do
bec39cab 22141as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
22142echo "$as_me:$LINENO: checking for $ac_func" >&5
22143echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22144if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
22145 echo $ECHO_N "(cached) $ECHO_C" >&6
22146else
22147 cat >conftest.$ac_ext <<_ACEOF
22148/* confdefs.h. */
22149_ACEOF
22150cat confdefs.h >>conftest.$ac_ext
22151cat >>conftest.$ac_ext <<_ACEOF
22152/* end confdefs.h. */
22153/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22154 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22155#define $ac_func innocuous_$ac_func
22156
97bf5e38 22157/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
22158 which can conflict with char $ac_func (); below.
22159 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22160 <limits.h> exists even on freestanding compilers. */
22161
22162#ifdef __STDC__
22163# include <limits.h>
22164#else
22165# include <assert.h>
22166#endif
c906108c 22167
bec39cab 22168#undef $ac_func
97bf5e38 22169
b4e70030 22170/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
22171#ifdef __cplusplus
22172extern "C"
b4e70030 22173{
bec39cab 22174#endif
b4e70030
JB
22175/* We use char because int might match the return type of a gcc2
22176 builtin and then its argument prototype would still apply. */
bec39cab 22177char $ac_func ();
97bf5e38
MK
22178/* The GNU C library defines this for functions which it implements
22179 to always fail with ENOSYS. Some functions are actually named
22180 something starting with __ and the normal name is an alias. */
b4e70030 22181#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 22182choke me
b4e70030
JB
22183#else
22184char (*f) () = $ac_func;
22185#endif
22186#ifdef __cplusplus
22187}
c906108c 22188#endif
97bf5e38 22189
bec39cab
AC
22190int
22191main ()
22192{
b4e70030 22193return f != $ac_func;
bec39cab
AC
22194 ;
22195 return 0;
22196}
22197_ACEOF
22198rm -f conftest.$ac_objext conftest$ac_exeext
22199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22200 (eval $ac_link) 2>conftest.er1
22201 ac_status=$?
22202 grep -v '^ *+' conftest.er1 >conftest.err
22203 rm -f conftest.er1
22204 cat conftest.err >&5
22205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206 (exit $ac_status); } &&
b4e70030
JB
22207 { ac_try='test -z "$ac_c_werror_flag"
22208 || test ! -s conftest.err'
bec39cab
AC
22209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22210 (eval $ac_try) 2>&5
22211 ac_status=$?
22212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22213 (exit $ac_status); }; } &&
22214 { ac_try='test -s conftest$ac_exeext'
22215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22216 (eval $ac_try) 2>&5
22217 ac_status=$?
22218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22219 (exit $ac_status); }; }; then
22220 eval "$as_ac_var=yes"
22221else
22222 echo "$as_me: failed program was:" >&5
22223sed 's/^/| /' conftest.$ac_ext >&5
22224
b4e70030 22225eval "$as_ac_var=no"
bec39cab
AC
22226fi
22227rm -f conftest.err conftest.$ac_objext \
22228 conftest$ac_exeext conftest.$ac_ext
22229fi
b4e70030
JB
22230echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22231echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
22232if test `eval echo '${'$as_ac_var'}'` = yes; then
22233 cat >>confdefs.h <<_ACEOF
22234#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22235_ACEOF
c906108c 22236
c906108c 22237fi
97bf5e38 22238done
c906108c 22239
bec39cab 22240
a3828db0 22241for ac_func in pread64
97bf5e38 22242do
bec39cab 22243as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
22244echo "$as_me:$LINENO: checking for $ac_func" >&5
22245echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22246if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
22247 echo $ECHO_N "(cached) $ECHO_C" >&6
22248else
22249 cat >conftest.$ac_ext <<_ACEOF
22250/* confdefs.h. */
22251_ACEOF
22252cat confdefs.h >>conftest.$ac_ext
22253cat >>conftest.$ac_ext <<_ACEOF
22254/* end confdefs.h. */
22255/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22257#define $ac_func innocuous_$ac_func
22258
97bf5e38 22259/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
22260 which can conflict with char $ac_func (); below.
22261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22262 <limits.h> exists even on freestanding compilers. */
22263
22264#ifdef __STDC__
22265# include <limits.h>
22266#else
22267# include <assert.h>
22268#endif
c906108c 22269
bec39cab 22270#undef $ac_func
97bf5e38 22271
b4e70030 22272/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
22273#ifdef __cplusplus
22274extern "C"
b4e70030 22275{
bec39cab 22276#endif
b4e70030
JB
22277/* We use char because int might match the return type of a gcc2
22278 builtin and then its argument prototype would still apply. */
bec39cab 22279char $ac_func ();
97bf5e38
MK
22280/* The GNU C library defines this for functions which it implements
22281 to always fail with ENOSYS. Some functions are actually named
22282 something starting with __ and the normal name is an alias. */
b4e70030 22283#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 22284choke me
b4e70030
JB
22285#else
22286char (*f) () = $ac_func;
22287#endif
22288#ifdef __cplusplus
22289}
c906108c 22290#endif
97bf5e38 22291
bec39cab
AC
22292int
22293main ()
22294{
b4e70030 22295return f != $ac_func;
bec39cab
AC
22296 ;
22297 return 0;
22298}
22299_ACEOF
22300rm -f conftest.$ac_objext conftest$ac_exeext
22301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22302 (eval $ac_link) 2>conftest.er1
22303 ac_status=$?
22304 grep -v '^ *+' conftest.er1 >conftest.err
22305 rm -f conftest.er1
22306 cat conftest.err >&5
22307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22308 (exit $ac_status); } &&
b4e70030
JB
22309 { ac_try='test -z "$ac_c_werror_flag"
22310 || test ! -s conftest.err'
bec39cab
AC
22311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22312 (eval $ac_try) 2>&5
22313 ac_status=$?
22314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22315 (exit $ac_status); }; } &&
22316 { ac_try='test -s conftest$ac_exeext'
22317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22318 (eval $ac_try) 2>&5
22319 ac_status=$?
22320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321 (exit $ac_status); }; }; then
22322 eval "$as_ac_var=yes"
22323else
22324 echo "$as_me: failed program was:" >&5
22325sed 's/^/| /' conftest.$ac_ext >&5
22326
b4e70030 22327eval "$as_ac_var=no"
bec39cab
AC
22328fi
22329rm -f conftest.err conftest.$ac_objext \
22330 conftest$ac_exeext conftest.$ac_ext
22331fi
b4e70030
JB
22332echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22333echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
22334if test `eval echo '${'$as_ac_var'}'` = yes; then
22335 cat >>confdefs.h <<_ACEOF
22336#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22337_ACEOF
c906108c 22338
c906108c 22339fi
97bf5e38 22340done
c906108c 22341
bec39cab 22342
a3828db0 22343for ac_func in sbrk
b757528f 22344do
bec39cab 22345as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
22346echo "$as_me:$LINENO: checking for $ac_func" >&5
22347echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22348if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
22349 echo $ECHO_N "(cached) $ECHO_C" >&6
22350else
22351 cat >conftest.$ac_ext <<_ACEOF
22352/* confdefs.h. */
22353_ACEOF
22354cat confdefs.h >>conftest.$ac_ext
22355cat >>conftest.$ac_ext <<_ACEOF
22356/* end confdefs.h. */
22357/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22358 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22359#define $ac_func innocuous_$ac_func
22360
b757528f 22361/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
22362 which can conflict with char $ac_func (); below.
22363 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22364 <limits.h> exists even on freestanding compilers. */
22365
22366#ifdef __STDC__
22367# include <limits.h>
22368#else
22369# include <assert.h>
22370#endif
b757528f 22371
bec39cab 22372#undef $ac_func
b757528f 22373
b4e70030 22374/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
22375#ifdef __cplusplus
22376extern "C"
b4e70030 22377{
bec39cab 22378#endif
b4e70030
JB
22379/* We use char because int might match the return type of a gcc2
22380 builtin and then its argument prototype would still apply. */
bec39cab 22381char $ac_func ();
b757528f
JJ
22382/* The GNU C library defines this for functions which it implements
22383 to always fail with ENOSYS. Some functions are actually named
22384 something starting with __ and the normal name is an alias. */
b4e70030 22385#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
b757528f 22386choke me
b4e70030
JB
22387#else
22388char (*f) () = $ac_func;
22389#endif
22390#ifdef __cplusplus
22391}
b757528f
JJ
22392#endif
22393
bec39cab
AC
22394int
22395main ()
22396{
b4e70030 22397return f != $ac_func;
bec39cab
AC
22398 ;
22399 return 0;
22400}
22401_ACEOF
22402rm -f conftest.$ac_objext conftest$ac_exeext
22403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22404 (eval $ac_link) 2>conftest.er1
22405 ac_status=$?
22406 grep -v '^ *+' conftest.er1 >conftest.err
22407 rm -f conftest.er1
22408 cat conftest.err >&5
22409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22410 (exit $ac_status); } &&
b4e70030
JB
22411 { ac_try='test -z "$ac_c_werror_flag"
22412 || test ! -s conftest.err'
bec39cab
AC
22413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22414 (eval $ac_try) 2>&5
22415 ac_status=$?
22416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22417 (exit $ac_status); }; } &&
22418 { ac_try='test -s conftest$ac_exeext'
22419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22420 (eval $ac_try) 2>&5
22421 ac_status=$?
22422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22423 (exit $ac_status); }; }; then
22424 eval "$as_ac_var=yes"
22425else
22426 echo "$as_me: failed program was:" >&5
22427sed 's/^/| /' conftest.$ac_ext >&5
22428
b4e70030 22429eval "$as_ac_var=no"
bec39cab
AC
22430fi
22431rm -f conftest.err conftest.$ac_objext \
22432 conftest$ac_exeext conftest.$ac_ext
22433fi
b4e70030
JB
22434echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22435echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
22436if test `eval echo '${'$as_ac_var'}'` = yes; then
22437 cat >>confdefs.h <<_ACEOF
22438#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22439_ACEOF
b757528f 22440
b757528f
JJ
22441fi
22442done
22443
bec39cab 22444
a3828db0 22445
83116857
TJB
22446
22447for ac_func in setpgid setpgrp setsid
bcb3dc3d 22448do
bec39cab 22449as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
22450echo "$as_me:$LINENO: checking for $ac_func" >&5
22451echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22452if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
22453 echo $ECHO_N "(cached) $ECHO_C" >&6
22454else
22455 cat >conftest.$ac_ext <<_ACEOF
22456/* confdefs.h. */
22457_ACEOF
22458cat confdefs.h >>conftest.$ac_ext
22459cat >>conftest.$ac_ext <<_ACEOF
22460/* end confdefs.h. */
22461/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22463#define $ac_func innocuous_$ac_func
22464
bcb3dc3d 22465/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
22466 which can conflict with char $ac_func (); below.
22467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22468 <limits.h> exists even on freestanding compilers. */
22469
22470#ifdef __STDC__
22471# include <limits.h>
22472#else
22473# include <assert.h>
22474#endif
bcb3dc3d 22475
bec39cab 22476#undef $ac_func
bcb3dc3d 22477
b4e70030 22478/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
22479#ifdef __cplusplus
22480extern "C"
b4e70030 22481{
bec39cab 22482#endif
b4e70030
JB
22483/* We use char because int might match the return type of a gcc2
22484 builtin and then its argument prototype would still apply. */
bec39cab 22485char $ac_func ();
bcb3dc3d
MK
22486/* The GNU C library defines this for functions which it implements
22487 to always fail with ENOSYS. Some functions are actually named
22488 something starting with __ and the normal name is an alias. */
b4e70030 22489#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
bcb3dc3d 22490choke me
b4e70030
JB
22491#else
22492char (*f) () = $ac_func;
22493#endif
22494#ifdef __cplusplus
22495}
bcb3dc3d
MK
22496#endif
22497
bec39cab
AC
22498int
22499main ()
22500{
b4e70030 22501return f != $ac_func;
bec39cab
AC
22502 ;
22503 return 0;
22504}
22505_ACEOF
22506rm -f conftest.$ac_objext conftest$ac_exeext
22507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22508 (eval $ac_link) 2>conftest.er1
22509 ac_status=$?
22510 grep -v '^ *+' conftest.er1 >conftest.err
22511 rm -f conftest.er1
22512 cat conftest.err >&5
22513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22514 (exit $ac_status); } &&
b4e70030
JB
22515 { ac_try='test -z "$ac_c_werror_flag"
22516 || test ! -s conftest.err'
bec39cab
AC
22517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22518 (eval $ac_try) 2>&5
22519 ac_status=$?
22520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22521 (exit $ac_status); }; } &&
22522 { ac_try='test -s conftest$ac_exeext'
22523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22524 (eval $ac_try) 2>&5
22525 ac_status=$?
22526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527 (exit $ac_status); }; }; then
22528 eval "$as_ac_var=yes"
22529else
22530 echo "$as_me: failed program was:" >&5
22531sed 's/^/| /' conftest.$ac_ext >&5
22532
b4e70030 22533eval "$as_ac_var=no"
bec39cab
AC
22534fi
22535rm -f conftest.err conftest.$ac_objext \
22536 conftest$ac_exeext conftest.$ac_ext
22537fi
b4e70030
JB
22538echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22539echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
22540if test `eval echo '${'$as_ac_var'}'` = yes; then
22541 cat >>confdefs.h <<_ACEOF
22542#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22543_ACEOF
bcb3dc3d 22544
bcb3dc3d
MK
22545fi
22546done
22547
bec39cab 22548
a3828db0
MK
22549
22550
22551for ac_func in sigaction sigprocmask sigsetmask
8b9cf735 22552do
bec39cab 22553as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
22554echo "$as_me:$LINENO: checking for $ac_func" >&5
22555echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22556if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
22557 echo $ECHO_N "(cached) $ECHO_C" >&6
22558else
22559 cat >conftest.$ac_ext <<_ACEOF
22560/* confdefs.h. */
22561_ACEOF
22562cat confdefs.h >>conftest.$ac_ext
22563cat >>conftest.$ac_ext <<_ACEOF
22564/* end confdefs.h. */
22565/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22567#define $ac_func innocuous_$ac_func
22568
8b9cf735 22569/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
22570 which can conflict with char $ac_func (); below.
22571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22572 <limits.h> exists even on freestanding compilers. */
22573
22574#ifdef __STDC__
22575# include <limits.h>
22576#else
22577# include <assert.h>
22578#endif
8b9cf735 22579
bec39cab 22580#undef $ac_func
8b9cf735 22581
b4e70030 22582/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
22583#ifdef __cplusplus
22584extern "C"
b4e70030 22585{
a3828db0 22586#endif
b4e70030
JB
22587/* We use char because int might match the return type of a gcc2
22588 builtin and then its argument prototype would still apply. */
a3828db0
MK
22589char $ac_func ();
22590/* The GNU C library defines this for functions which it implements
22591 to always fail with ENOSYS. Some functions are actually named
22592 something starting with __ and the normal name is an alias. */
b4e70030 22593#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 22594choke me
b4e70030
JB
22595#else
22596char (*f) () = $ac_func;
22597#endif
22598#ifdef __cplusplus
22599}
a3828db0
MK
22600#endif
22601
bec39cab
AC
22602int
22603main ()
22604{
b4e70030 22605return f != $ac_func;
bec39cab
AC
22606 ;
22607 return 0;
22608}
22609_ACEOF
a3828db0
MK
22610rm -f conftest.$ac_objext conftest$ac_exeext
22611if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22612 (eval $ac_link) 2>conftest.er1
bec39cab
AC
22613 ac_status=$?
22614 grep -v '^ *+' conftest.er1 >conftest.err
22615 rm -f conftest.er1
22616 cat conftest.err >&5
22617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22618 (exit $ac_status); } &&
b4e70030
JB
22619 { ac_try='test -z "$ac_c_werror_flag"
22620 || test ! -s conftest.err'
bec39cab
AC
22621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22622 (eval $ac_try) 2>&5
22623 ac_status=$?
22624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22625 (exit $ac_status); }; } &&
a3828db0 22626 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
22627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22628 (eval $ac_try) 2>&5
22629 ac_status=$?
22630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22631 (exit $ac_status); }; }; then
a3828db0 22632 eval "$as_ac_var=yes"
086ec9eb 22633else
bec39cab
AC
22634 echo "$as_me: failed program was:" >&5
22635sed 's/^/| /' conftest.$ac_ext >&5
22636
b4e70030 22637eval "$as_ac_var=no"
a3828db0
MK
22638fi
22639rm -f conftest.err conftest.$ac_objext \
22640 conftest$ac_exeext conftest.$ac_ext
22641fi
b4e70030
JB
22642echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22643echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
22644if test `eval echo '${'$as_ac_var'}'` = yes; then
22645 cat >>confdefs.h <<_ACEOF
22646#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22647_ACEOF
22648
086ec9eb 22649fi
a3828db0
MK
22650done
22651
22652
22653for ac_func in socketpair
22654do
22655as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
22656echo "$as_me:$LINENO: checking for $ac_func" >&5
22657echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22658if eval "test \"\${$as_ac_var+set}\" = set"; then
a3828db0
MK
22659 echo $ECHO_N "(cached) $ECHO_C" >&6
22660else
22661 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
22662/* confdefs.h. */
22663_ACEOF
22664cat confdefs.h >>conftest.$ac_ext
22665cat >>conftest.$ac_ext <<_ACEOF
22666/* end confdefs.h. */
a3828db0
MK
22667/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22669#define $ac_func innocuous_$ac_func
22670
22671/* System header to define __stub macros and hopefully few prototypes,
22672 which can conflict with char $ac_func (); below.
22673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22674 <limits.h> exists even on freestanding compilers. */
22675
22676#ifdef __STDC__
22677# include <limits.h>
22678#else
22679# include <assert.h>
22680#endif
22681
22682#undef $ac_func
22683
b4e70030 22684/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
22685#ifdef __cplusplus
22686extern "C"
b4e70030 22687{
a3828db0 22688#endif
b4e70030
JB
22689/* We use char because int might match the return type of a gcc2
22690 builtin and then its argument prototype would still apply. */
a3828db0
MK
22691char $ac_func ();
22692/* The GNU C library defines this for functions which it implements
22693 to always fail with ENOSYS. Some functions are actually named
22694 something starting with __ and the normal name is an alias. */
b4e70030 22695#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 22696choke me
b4e70030
JB
22697#else
22698char (*f) () = $ac_func;
22699#endif
22700#ifdef __cplusplus
22701}
a3828db0
MK
22702#endif
22703
bec39cab
AC
22704int
22705main ()
22706{
b4e70030 22707return f != $ac_func;
bec39cab
AC
22708 ;
22709 return 0;
22710}
22711_ACEOF
a3828db0
MK
22712rm -f conftest.$ac_objext conftest$ac_exeext
22713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22714 (eval $ac_link) 2>conftest.er1
bec39cab
AC
22715 ac_status=$?
22716 grep -v '^ *+' conftest.er1 >conftest.err
22717 rm -f conftest.er1
22718 cat conftest.err >&5
22719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22720 (exit $ac_status); } &&
b4e70030
JB
22721 { ac_try='test -z "$ac_c_werror_flag"
22722 || test ! -s conftest.err'
bec39cab
AC
22723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22724 (eval $ac_try) 2>&5
22725 ac_status=$?
22726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22727 (exit $ac_status); }; } &&
a3828db0 22728 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
22729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22730 (eval $ac_try) 2>&5
22731 ac_status=$?
22732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22733 (exit $ac_status); }; }; then
a3828db0 22734 eval "$as_ac_var=yes"
086ec9eb 22735else
bec39cab
AC
22736 echo "$as_me: failed program was:" >&5
22737sed 's/^/| /' conftest.$ac_ext >&5
22738
b4e70030 22739eval "$as_ac_var=no"
086ec9eb 22740fi
a3828db0
MK
22741rm -f conftest.err conftest.$ac_objext \
22742 conftest$ac_exeext conftest.$ac_ext
086ec9eb 22743fi
b4e70030
JB
22744echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22745echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
22746if test `eval echo '${'$as_ac_var'}'` = yes; then
22747 cat >>confdefs.h <<_ACEOF
22748#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 22749_ACEOF
086ec9eb
MK
22750
22751fi
a3828db0 22752done
086ec9eb 22753
a3828db0
MK
22754
22755for ac_func in syscall
22756do
22757as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
22758echo "$as_me:$LINENO: checking for $ac_func" >&5
22759echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22760if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 22761 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab
AC
22762else
22763 cat >conftest.$ac_ext <<_ACEOF
22764/* confdefs.h. */
22765_ACEOF
22766cat confdefs.h >>conftest.$ac_ext
22767cat >>conftest.$ac_ext <<_ACEOF
22768/* end confdefs.h. */
a3828db0
MK
22769/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22771#define $ac_func innocuous_$ac_func
22772
22773/* System header to define __stub macros and hopefully few prototypes,
22774 which can conflict with char $ac_func (); below.
22775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22776 <limits.h> exists even on freestanding compilers. */
22777
22778#ifdef __STDC__
22779# include <limits.h>
22780#else
22781# include <assert.h>
22782#endif
22783
22784#undef $ac_func
22785
b4e70030 22786/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
22787#ifdef __cplusplus
22788extern "C"
b4e70030 22789{
a3828db0 22790#endif
b4e70030
JB
22791/* We use char because int might match the return type of a gcc2
22792 builtin and then its argument prototype would still apply. */
a3828db0
MK
22793char $ac_func ();
22794/* The GNU C library defines this for functions which it implements
22795 to always fail with ENOSYS. Some functions are actually named
22796 something starting with __ and the normal name is an alias. */
b4e70030 22797#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 22798choke me
b4e70030
JB
22799#else
22800char (*f) () = $ac_func;
22801#endif
22802#ifdef __cplusplus
22803}
c906108c 22804#endif
97bf5e38 22805
bec39cab
AC
22806int
22807main ()
97bf5e38 22808{
b4e70030 22809return f != $ac_func;
bec39cab
AC
22810 ;
22811 return 0;
97bf5e38 22812}
bec39cab 22813_ACEOF
a3828db0 22814rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab 22815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 22816 (eval $ac_link) 2>conftest.er1
bec39cab 22817 ac_status=$?
a3828db0
MK
22818 grep -v '^ *+' conftest.er1 >conftest.err
22819 rm -f conftest.er1
22820 cat conftest.err >&5
bec39cab 22821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 22822 (exit $ac_status); } &&
b4e70030
JB
22823 { ac_try='test -z "$ac_c_werror_flag"
22824 || test ! -s conftest.err'
a3828db0
MK
22825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22826 (eval $ac_try) 2>&5
22827 ac_status=$?
22828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22829 (exit $ac_status); }; } &&
22830 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
22831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22832 (eval $ac_try) 2>&5
22833 ac_status=$?
22834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22835 (exit $ac_status); }; }; then
a3828db0 22836 eval "$as_ac_var=yes"
c906108c 22837else
a3828db0 22838 echo "$as_me: failed program was:" >&5
bec39cab
AC
22839sed 's/^/| /' conftest.$ac_ext >&5
22840
b4e70030 22841eval "$as_ac_var=no"
97bf5e38 22842fi
a3828db0
MK
22843rm -f conftest.err conftest.$ac_objext \
22844 conftest$ac_exeext conftest.$ac_ext
22845fi
b4e70030
JB
22846echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22847echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
22848if test `eval echo '${'$as_ac_var'}'` = yes; then
22849 cat >>confdefs.h <<_ACEOF
22850#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 22851_ACEOF
c906108c
SS
22852
22853fi
a3828db0 22854done
c906108c 22855
a3828db0
MK
22856
22857for ac_func in ttrace
22858do
22859as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
22860echo "$as_me:$LINENO: checking for $ac_func" >&5
22861echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22862if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 22863 echo $ECHO_N "(cached) $ECHO_C" >&6
b83266a0 22864else
bec39cab
AC
22865 cat >conftest.$ac_ext <<_ACEOF
22866/* confdefs.h. */
22867_ACEOF
22868cat confdefs.h >>conftest.$ac_ext
22869cat >>conftest.$ac_ext <<_ACEOF
22870/* end confdefs.h. */
a3828db0
MK
22871/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22873#define $ac_func innocuous_$ac_func
b83266a0 22874
a3828db0
MK
22875/* System header to define __stub macros and hopefully few prototypes,
22876 which can conflict with char $ac_func (); below.
22877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22878 <limits.h> exists even on freestanding compilers. */
22879
22880#ifdef __STDC__
22881# include <limits.h>
22882#else
22883# include <assert.h>
22884#endif
22885
22886#undef $ac_func
22887
b4e70030 22888/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
22889#ifdef __cplusplus
22890extern "C"
b4e70030 22891{
a3828db0 22892#endif
b4e70030
JB
22893/* We use char because int might match the return type of a gcc2
22894 builtin and then its argument prototype would still apply. */
a3828db0
MK
22895char $ac_func ();
22896/* The GNU C library defines this for functions which it implements
22897 to always fail with ENOSYS. Some functions are actually named
22898 something starting with __ and the normal name is an alias. */
b4e70030 22899#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 22900choke me
b4e70030
JB
22901#else
22902char (*f) () = $ac_func;
22903#endif
22904#ifdef __cplusplus
22905}
a3828db0 22906#endif
97bf5e38 22907
bec39cab
AC
22908int
22909main ()
22910{
b4e70030 22911return f != $ac_func;
bec39cab
AC
22912 ;
22913 return 0;
22914}
22915_ACEOF
a3828db0
MK
22916rm -f conftest.$ac_objext conftest$ac_exeext
22917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22918 (eval $ac_link) 2>conftest.er1
bec39cab
AC
22919 ac_status=$?
22920 grep -v '^ *+' conftest.er1 >conftest.err
22921 rm -f conftest.er1
22922 cat conftest.err >&5
22923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22924 (exit $ac_status); } &&
b4e70030
JB
22925 { ac_try='test -z "$ac_c_werror_flag"
22926 || test ! -s conftest.err'
bec39cab
AC
22927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22928 (eval $ac_try) 2>&5
22929 ac_status=$?
22930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22931 (exit $ac_status); }; } &&
a3828db0 22932 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
22933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22934 (eval $ac_try) 2>&5
22935 ac_status=$?
22936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22937 (exit $ac_status); }; }; then
a3828db0 22938 eval "$as_ac_var=yes"
b83266a0 22939else
bec39cab
AC
22940 echo "$as_me: failed program was:" >&5
22941sed 's/^/| /' conftest.$ac_ext >&5
22942
b4e70030 22943eval "$as_ac_var=no"
b83266a0 22944fi
a3828db0
MK
22945rm -f conftest.err conftest.$ac_objext \
22946 conftest$ac_exeext conftest.$ac_ext
b83266a0 22947fi
b4e70030
JB
22948echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22949echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
22950if test `eval echo '${'$as_ac_var'}'` = yes; then
22951 cat >>confdefs.h <<_ACEOF
22952#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 22953_ACEOF
b83266a0 22954
97bf5e38 22955fi
a3828db0 22956done
b83266a0 22957
a3828db0
MK
22958
22959for ac_func in wborder
22960do
22961as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
22962echo "$as_me:$LINENO: checking for $ac_func" >&5
22963echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22964if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
22965 echo $ECHO_N "(cached) $ECHO_C" >&6
22966else
22967 cat >conftest.$ac_ext <<_ACEOF
22968/* confdefs.h. */
22969_ACEOF
22970cat confdefs.h >>conftest.$ac_ext
22971cat >>conftest.$ac_ext <<_ACEOF
22972/* end confdefs.h. */
a3828db0
MK
22973/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22974 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22975#define $ac_func innocuous_$ac_func
a4db0f07 22976
a3828db0
MK
22977/* System header to define __stub macros and hopefully few prototypes,
22978 which can conflict with char $ac_func (); below.
22979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22980 <limits.h> exists even on freestanding compilers. */
22981
22982#ifdef __STDC__
22983# include <limits.h>
22984#else
22985# include <assert.h>
22986#endif
22987
22988#undef $ac_func
22989
b4e70030 22990/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
22991#ifdef __cplusplus
22992extern "C"
b4e70030 22993{
a3828db0 22994#endif
b4e70030
JB
22995/* We use char because int might match the return type of a gcc2
22996 builtin and then its argument prototype would still apply. */
a3828db0
MK
22997char $ac_func ();
22998/* The GNU C library defines this for functions which it implements
22999 to always fail with ENOSYS. Some functions are actually named
23000 something starting with __ and the normal name is an alias. */
b4e70030 23001#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 23002choke me
b4e70030
JB
23003#else
23004char (*f) () = $ac_func;
23005#endif
23006#ifdef __cplusplus
23007}
a3828db0 23008#endif
97bf5e38 23009
bec39cab
AC
23010int
23011main ()
23012{
b4e70030 23013return f != $ac_func;
bec39cab
AC
23014 ;
23015 return 0;
23016}
23017_ACEOF
a3828db0
MK
23018rm -f conftest.$ac_objext conftest$ac_exeext
23019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23020 (eval $ac_link) 2>conftest.er1
bec39cab
AC
23021 ac_status=$?
23022 grep -v '^ *+' conftest.er1 >conftest.err
23023 rm -f conftest.er1
23024 cat conftest.err >&5
23025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23026 (exit $ac_status); } &&
b4e70030
JB
23027 { ac_try='test -z "$ac_c_werror_flag"
23028 || test ! -s conftest.err'
bec39cab
AC
23029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23030 (eval $ac_try) 2>&5
23031 ac_status=$?
23032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23033 (exit $ac_status); }; } &&
a3828db0 23034 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
23035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23036 (eval $ac_try) 2>&5
23037 ac_status=$?
23038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23039 (exit $ac_status); }; }; then
a3828db0 23040 eval "$as_ac_var=yes"
a4db0f07 23041else
bec39cab
AC
23042 echo "$as_me: failed program was:" >&5
23043sed 's/^/| /' conftest.$ac_ext >&5
23044
b4e70030 23045eval "$as_ac_var=no"
a4db0f07 23046fi
a3828db0
MK
23047rm -f conftest.err conftest.$ac_objext \
23048 conftest$ac_exeext conftest.$ac_ext
a4db0f07 23049fi
b4e70030
JB
23050echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23051echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
23052if test `eval echo '${'$as_ac_var'}'` = yes; then
23053 cat >>confdefs.h <<_ACEOF
23054#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 23055_ACEOF
a4db0f07
RH
23056
23057fi
a3828db0 23058done
c906108c 23059
06825bd1 23060
a3828db0
MK
23061# Check the return and argument types of ptrace. No canned test for
23062# this, so roll our own.
23063gdb_ptrace_headers='
23064#if HAVE_SYS_TYPES_H
23065# include <sys/types.h>
23066#endif
23067#if HAVE_SYS_PTRACE_H
23068# include <sys/ptrace.h>
23069#endif
23070#if HAVE_UNISTD_H
23071# include <unistd.h>
23072#endif
23073'
23074# There is no point in checking if we don't have a prototype.
b4e70030
JB
23075echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
23076echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
a3828db0 23077if test "${ac_cv_have_decl_ptrace+set}" = set; then
bec39cab
AC
23078 echo $ECHO_N "(cached) $ECHO_C" >&6
23079else
23080 cat >conftest.$ac_ext <<_ACEOF
23081/* confdefs.h. */
23082_ACEOF
23083cat confdefs.h >>conftest.$ac_ext
23084cat >>conftest.$ac_ext <<_ACEOF
23085/* end confdefs.h. */
a3828db0
MK
23086$gdb_ptrace_headers
23087
bec39cab
AC
23088int
23089main ()
23090{
a3828db0
MK
23091#ifndef ptrace
23092 char *p = (char *) ptrace;
06825bd1 23093#endif
a3828db0 23094
bec39cab
AC
23095 ;
23096 return 0;
23097}
23098_ACEOF
23099rm -f conftest.$ac_objext
23100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23101 (eval $ac_compile) 2>conftest.er1
23102 ac_status=$?
23103 grep -v '^ *+' conftest.er1 >conftest.err
23104 rm -f conftest.er1
23105 cat conftest.err >&5
23106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23107 (exit $ac_status); } &&
b4e70030
JB
23108 { ac_try='test -z "$ac_c_werror_flag"
23109 || test ! -s conftest.err'
bec39cab
AC
23110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23111 (eval $ac_try) 2>&5
23112 ac_status=$?
23113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23114 (exit $ac_status); }; } &&
23115 { ac_try='test -s conftest.$ac_objext'
23116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23117 (eval $ac_try) 2>&5
23118 ac_status=$?
23119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23120 (exit $ac_status); }; }; then
a3828db0 23121 ac_cv_have_decl_ptrace=yes
06825bd1 23122else
bec39cab
AC
23123 echo "$as_me: failed program was:" >&5
23124sed 's/^/| /' conftest.$ac_ext >&5
23125
b4e70030 23126ac_cv_have_decl_ptrace=no
06825bd1 23127fi
bec39cab 23128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
06825bd1 23129fi
b4e70030
JB
23130echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
23131echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
a3828db0 23132if test $ac_cv_have_decl_ptrace = yes; then
06825bd1 23133
a3828db0
MK
23134cat >>confdefs.h <<_ACEOF
23135#define HAVE_DECL_PTRACE 1
23136_ACEOF
bec39cab 23137
bec39cab 23138
a3828db0
MK
23139else
23140 cat >>confdefs.h <<_ACEOF
23141#define HAVE_DECL_PTRACE 0
bec39cab 23142_ACEOF
06825bd1 23143
a3828db0
MK
23144
23145 : ${gdb_cv_func_ptrace_ret='int'}
23146 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
23147
06825bd1
MK
23148fi
23149
a3828db0
MK
23150
23151# Check return type.
b4e70030
JB
23152echo "$as_me:$LINENO: checking return type of ptrace" >&5
23153echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
a3828db0 23154if test "${gdb_cv_func_ptrace_ret+set}" = set; then
bec39cab
AC
23155 echo $ECHO_N "(cached) $ECHO_C" >&6
23156else
23157 cat >conftest.$ac_ext <<_ACEOF
23158/* confdefs.h. */
23159_ACEOF
23160cat confdefs.h >>conftest.$ac_ext
23161cat >>conftest.$ac_ext <<_ACEOF
23162/* end confdefs.h. */
a3828db0 23163$gdb_ptrace_headers
bec39cab
AC
23164int
23165main ()
23166{
a3828db0 23167extern int ptrace ();
bec39cab
AC
23168 ;
23169 return 0;
23170}
23171_ACEOF
23172rm -f conftest.$ac_objext
23173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23174 (eval $ac_compile) 2>conftest.er1
23175 ac_status=$?
23176 grep -v '^ *+' conftest.er1 >conftest.err
23177 rm -f conftest.er1
23178 cat conftest.err >&5
23179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23180 (exit $ac_status); } &&
b4e70030
JB
23181 { ac_try='test -z "$ac_c_werror_flag"
23182 || test ! -s conftest.err'
bec39cab
AC
23183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23184 (eval $ac_try) 2>&5
23185 ac_status=$?
23186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23187 (exit $ac_status); }; } &&
23188 { ac_try='test -s conftest.$ac_objext'
23189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23190 (eval $ac_try) 2>&5
23191 ac_status=$?
23192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23193 (exit $ac_status); }; }; then
a3828db0 23194 gdb_cv_func_ptrace_ret='int'
70f9f479 23195else
bec39cab
AC
23196 echo "$as_me: failed program was:" >&5
23197sed 's/^/| /' conftest.$ac_ext >&5
23198
b4e70030 23199gdb_cv_func_ptrace_ret='long'
70f9f479 23200fi
bec39cab 23201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70f9f479 23202fi
b4e70030
JB
23203echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
23204echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
bec39cab 23205
a3828db0
MK
23206cat >>confdefs.h <<_ACEOF
23207#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
bec39cab 23208_ACEOF
70f9f479 23209
a3828db0 23210# Check argument types.
b4e70030
JB
23211echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
23212echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
a3828db0 23213if test "${gdb_cv_func_ptrace_args+set}" = set; then
bec39cab
AC
23214 echo $ECHO_N "(cached) $ECHO_C" >&6
23215else
a3828db0
MK
23216
23217for gdb_arg1 in 'int' 'long'; do
23218 for gdb_arg2 in 'pid_t' 'int' 'long'; do
5ed10e6e 23219 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long' 'void *'; do
a3828db0
MK
23220 for gdb_arg4 in 'int' 'long'; do
23221 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
23222/* confdefs.h. */
23223_ACEOF
23224cat confdefs.h >>conftest.$ac_ext
23225cat >>conftest.$ac_ext <<_ACEOF
23226/* end confdefs.h. */
a3828db0 23227$gdb_ptrace_headers
bec39cab
AC
23228int
23229main ()
23230{
a3828db0
MK
23231
23232extern $gdb_cv_func_ptrace_ret
23233 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
23234
bec39cab
AC
23235 ;
23236 return 0;
23237}
23238_ACEOF
23239rm -f conftest.$ac_objext
23240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23241 (eval $ac_compile) 2>conftest.er1
23242 ac_status=$?
23243 grep -v '^ *+' conftest.er1 >conftest.err
23244 rm -f conftest.er1
23245 cat conftest.err >&5
23246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23247 (exit $ac_status); } &&
b4e70030
JB
23248 { ac_try='test -z "$ac_c_werror_flag"
23249 || test ! -s conftest.err'
bec39cab
AC
23250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23251 (eval $ac_try) 2>&5
23252 ac_status=$?
23253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23254 (exit $ac_status); }; } &&
23255 { ac_try='test -s conftest.$ac_objext'
23256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23257 (eval $ac_try) 2>&5
23258 ac_status=$?
23259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23260 (exit $ac_status); }; }; then
a3828db0
MK
23261 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
23262 break 4;
5c7f2947 23263else
bec39cab
AC
23264 echo "$as_me: failed program was:" >&5
23265sed 's/^/| /' conftest.$ac_ext >&5
23266
5c7f2947 23267fi
bec39cab 23268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
23269 for gdb_arg5 in 'int *' 'int' 'long'; do
23270 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
23271/* confdefs.h. */
23272_ACEOF
23273cat confdefs.h >>conftest.$ac_ext
23274cat >>conftest.$ac_ext <<_ACEOF
23275/* end confdefs.h. */
a3828db0 23276$gdb_ptrace_headers
bec39cab
AC
23277int
23278main ()
23279{
a3828db0
MK
23280
23281extern $gdb_cv_func_ptrace_ret
23282 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
23283
bec39cab
AC
23284 ;
23285 return 0;
23286}
23287_ACEOF
23288rm -f conftest.$ac_objext
23289if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23290 (eval $ac_compile) 2>conftest.er1
23291 ac_status=$?
23292 grep -v '^ *+' conftest.er1 >conftest.err
23293 rm -f conftest.er1
23294 cat conftest.err >&5
23295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296 (exit $ac_status); } &&
b4e70030
JB
23297 { ac_try='test -z "$ac_c_werror_flag"
23298 || test ! -s conftest.err'
bec39cab
AC
23299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23300 (eval $ac_try) 2>&5
23301 ac_status=$?
23302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23303 (exit $ac_status); }; } &&
23304 { ac_try='test -s conftest.$ac_objext'
23305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23306 (eval $ac_try) 2>&5
23307 ac_status=$?
23308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23309 (exit $ac_status); }; }; then
a3828db0
MK
23310
23311gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
23312 break 5;
78434e59 23313else
bec39cab
AC
23314 echo "$as_me: failed program was:" >&5
23315sed 's/^/| /' conftest.$ac_ext >&5
23316
78434e59 23317fi
bec39cab 23318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
23319 done
23320 done
23321 done
23322 done
23323done
23324# Provide a safe default value.
23325: ${gdb_cv_func_ptrace_args='int,int,long,long'}
23326
78434e59 23327fi
b4e70030
JB
23328echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
23329echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
a3828db0
MK
23330ac_save_IFS=$IFS; IFS=','
23331set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
23332IFS=$ac_save_IFS
23333shift
bec39cab 23334
a3828db0
MK
23335cat >>confdefs.h <<_ACEOF
23336#define PTRACE_TYPE_ARG3 $3
23337_ACEOF
23338
23339if test -n "$5"; then
23340
23341cat >>confdefs.h <<_ACEOF
23342#define PTRACE_TYPE_ARG5 $5
bec39cab 23343_ACEOF
78434e59
MK
23344
23345fi
23346
a3828db0 23347if test "$cross_compiling" = no; then
b4e70030
JB
23348 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
23349echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
a3828db0 23350if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 23351 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
23352else
23353 if test "$cross_compiling" = yes; then
23354 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
23355echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
23356 { (exit 1); exit 1; }; }
bec39cab
AC
23357else
23358 cat >conftest.$ac_ext <<_ACEOF
23359/* confdefs.h. */
23360_ACEOF
23361cat confdefs.h >>conftest.$ac_ext
23362cat >>conftest.$ac_ext <<_ACEOF
23363/* end confdefs.h. */
b4e70030
JB
23364#if HAVE_UNISTD_H
23365# include <unistd.h>
23366#endif
23367
bec39cab
AC
23368int
23369main ()
23370{
a3828db0
MK
23371/* If this system has a BSD-style setpgrp which takes arguments,
23372 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
23373 exit successfully. */
b4e70030 23374 exit (setpgrp (1,1) == -1 ? 0 : 1);
bec39cab
AC
23375 ;
23376 return 0;
23377}
23378_ACEOF
a3828db0
MK
23379rm -f conftest$ac_exeext
23380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23381 (eval $ac_link) 2>&5
bec39cab
AC
23382 ac_status=$?
23383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 23384 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
23385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23386 (eval $ac_try) 2>&5
23387 ac_status=$?
23388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23389 (exit $ac_status); }; }; then
a3828db0 23390 ac_cv_func_setpgrp_void=no
c906108c 23391else
a3828db0
MK
23392 echo "$as_me: program exited with status $ac_status" >&5
23393echo "$as_me: failed program was:" >&5
bec39cab
AC
23394sed 's/^/| /' conftest.$ac_ext >&5
23395
a3828db0
MK
23396( exit $ac_status )
23397ac_cv_func_setpgrp_void=yes
c906108c 23398fi
b4e70030 23399rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 23400fi
a3828db0 23401fi
b4e70030
JB
23402echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
23403echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
a3828db0
MK
23404if test $ac_cv_func_setpgrp_void = yes; then
23405
23406cat >>confdefs.h <<\_ACEOF
23407#define SETPGRP_VOID 1
bec39cab 23408_ACEOF
97bf5e38
MK
23409
23410fi
a3828db0
MK
23411
23412else
b4e70030
JB
23413 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
23414echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
a3828db0 23415if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 23416 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 23417else
bec39cab
AC
23418 cat >conftest.$ac_ext <<_ACEOF
23419/* confdefs.h. */
23420_ACEOF
23421cat confdefs.h >>conftest.$ac_ext
23422cat >>conftest.$ac_ext <<_ACEOF
23423/* end confdefs.h. */
a3828db0
MK
23424
23425#include <unistd.h>
23426
bec39cab
AC
23427int
23428main ()
23429{
a3828db0
MK
23430
23431 if (setpgrp(1,1) == -1)
23432 exit (0);
23433 else
23434 exit (1);
23435
bec39cab
AC
23436 ;
23437 return 0;
23438}
23439_ACEOF
23440rm -f conftest.$ac_objext
23441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23442 (eval $ac_compile) 2>conftest.er1
23443 ac_status=$?
23444 grep -v '^ *+' conftest.er1 >conftest.err
23445 rm -f conftest.er1
23446 cat conftest.err >&5
23447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23448 (exit $ac_status); } &&
b4e70030
JB
23449 { ac_try='test -z "$ac_c_werror_flag"
23450 || test ! -s conftest.err'
bec39cab
AC
23451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23452 (eval $ac_try) 2>&5
23453 ac_status=$?
23454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23455 (exit $ac_status); }; } &&
23456 { ac_try='test -s conftest.$ac_objext'
23457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23458 (eval $ac_try) 2>&5
23459 ac_status=$?
23460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23461 (exit $ac_status); }; }; then
a3828db0 23462 ac_cv_func_setpgrp_void=no
c906108c 23463else
bec39cab
AC
23464 echo "$as_me: failed program was:" >&5
23465sed 's/^/| /' conftest.$ac_ext >&5
23466
b4e70030 23467ac_cv_func_setpgrp_void=yes
c906108c 23468fi
bec39cab 23469rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 23470fi
b4e70030
JB
23471echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
23472echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
a3828db0 23473if test $ac_cv_func_setpgrp_void = yes; then
bec39cab 23474 cat >>confdefs.h <<\_ACEOF
a3828db0 23475#define SETPGRP_VOID 1
bec39cab 23476_ACEOF
c3f6f71d 23477
a3828db0 23478fi
c906108c
SS
23479fi
23480
a3828db0
MK
23481# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
23482# since sigsetjmp might only be defined as a macro.
b4e70030
JB
23483echo "$as_me:$LINENO: checking for sigsetjmp" >&5
23484echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
a3828db0 23485if test "${gdb_cv_func_sigsetjmp+set}" = set; then
bec39cab
AC
23486 echo $ECHO_N "(cached) $ECHO_C" >&6
23487else
23488 cat >conftest.$ac_ext <<_ACEOF
23489/* confdefs.h. */
23490_ACEOF
23491cat confdefs.h >>conftest.$ac_ext
23492cat >>conftest.$ac_ext <<_ACEOF
23493/* end confdefs.h. */
a3828db0
MK
23494
23495#include <setjmp.h>
23496
bec39cab
AC
23497int
23498main ()
23499{
a3828db0 23500sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
bec39cab
AC
23501 ;
23502 return 0;
23503}
23504_ACEOF
23505rm -f conftest.$ac_objext
23506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23507 (eval $ac_compile) 2>conftest.er1
23508 ac_status=$?
23509 grep -v '^ *+' conftest.er1 >conftest.err
23510 rm -f conftest.er1
23511 cat conftest.err >&5
23512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23513 (exit $ac_status); } &&
b4e70030
JB
23514 { ac_try='test -z "$ac_c_werror_flag"
23515 || test ! -s conftest.err'
bec39cab
AC
23516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23517 (eval $ac_try) 2>&5
23518 ac_status=$?
23519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23520 (exit $ac_status); }; } &&
23521 { ac_try='test -s conftest.$ac_objext'
23522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23523 (eval $ac_try) 2>&5
23524 ac_status=$?
23525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23526 (exit $ac_status); }; }; then
a3828db0 23527 gdb_cv_func_sigsetjmp=yes
c906108c 23528else
bec39cab
AC
23529 echo "$as_me: failed program was:" >&5
23530sed 's/^/| /' conftest.$ac_ext >&5
23531
b4e70030 23532gdb_cv_func_sigsetjmp=no
c906108c 23533fi
bec39cab 23534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 23535fi
b4e70030
JB
23536echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
23537echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
a3828db0 23538if test $gdb_cv_func_sigsetjmp = yes; then
c906108c 23539
a3828db0
MK
23540cat >>confdefs.h <<\_ACEOF
23541#define HAVE_SIGSETJMP 1
bec39cab 23542_ACEOF
c906108c 23543
97bf5e38 23544fi
c906108c 23545
a3828db0
MK
23546# Assume we'll default to using the included libiberty regex.
23547gdb_use_included_regex=yes
23548
23549# However, if the system regex is GNU regex, then default to *not*
23550# using the included regex.
b4e70030
JB
23551echo "$as_me:$LINENO: checking for GNU regex" >&5
23552echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
a3828db0 23553if test "${gdb_cv_have_gnu_regex+set}" = set; then
bec39cab
AC
23554 echo $ECHO_N "(cached) $ECHO_C" >&6
23555else
23556 cat >conftest.$ac_ext <<_ACEOF
23557/* confdefs.h. */
23558_ACEOF
23559cat confdefs.h >>conftest.$ac_ext
23560cat >>conftest.$ac_ext <<_ACEOF
23561/* end confdefs.h. */
a3828db0 23562#include <gnu-versions.h>
bec39cab
AC
23563int
23564main ()
23565{
a3828db0
MK
23566#define REGEX_INTERFACE_VERSION 1
23567#if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
23568# error "Version mismatch"
23569#endif
bec39cab
AC
23570 ;
23571 return 0;
23572}
23573_ACEOF
23574rm -f conftest.$ac_objext
23575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23576 (eval $ac_compile) 2>conftest.er1
23577 ac_status=$?
23578 grep -v '^ *+' conftest.er1 >conftest.err
23579 rm -f conftest.er1
23580 cat conftest.err >&5
23581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23582 (exit $ac_status); } &&
b4e70030
JB
23583 { ac_try='test -z "$ac_c_werror_flag"
23584 || test ! -s conftest.err'
bec39cab
AC
23585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23586 (eval $ac_try) 2>&5
23587 ac_status=$?
23588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23589 (exit $ac_status); }; } &&
23590 { ac_try='test -s conftest.$ac_objext'
23591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23592 (eval $ac_try) 2>&5
23593 ac_status=$?
23594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23595 (exit $ac_status); }; }; then
a3828db0 23596 gdb_cv_have_gnu_regex=yes
c906108c 23597else
bec39cab
AC
23598 echo "$as_me: failed program was:" >&5
23599sed 's/^/| /' conftest.$ac_ext >&5
23600
b4e70030 23601gdb_cv_have_gnu_regex=no
c906108c 23602fi
bec39cab 23603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 23604fi
b4e70030
JB
23605echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
23606echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
a3828db0
MK
23607if test $gdb_cv_have_gnu_regex = yes; then
23608 gdb_use_included_regex=no
23609fi
c906108c 23610
a3828db0 23611
b4e70030 23612# Check whether --with-included-regex or --without-included-regex was given.
a3828db0 23613if test "${with_included_regex+set}" = set; then
b4e70030
JB
23614 withval="$with_included_regex"
23615 gdb_with_regex=$withval
a3828db0
MK
23616else
23617 gdb_with_regex=$gdb_use_included_regex
b4e70030 23618fi;
a3828db0
MK
23619if test "$gdb_with_regex" = yes; then
23620
23621cat >>confdefs.h <<\_ACEOF
23622#define USE_INCLUDED_REGEX 1
bec39cab 23623_ACEOF
c906108c 23624
97bf5e38 23625fi
c906108c 23626
5c45e068 23627# Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
b4e70030
JB
23628echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
23629echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
5c45e068 23630if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
bec39cab
AC
23631 echo $ECHO_N "(cached) $ECHO_C" >&6
23632else
23633 cat >conftest.$ac_ext <<_ACEOF
23634/* confdefs.h. */
23635_ACEOF
23636cat confdefs.h >>conftest.$ac_ext
23637cat >>conftest.$ac_ext <<_ACEOF
23638/* end confdefs.h. */
a3828db0
MK
23639#include <sys/param.h>
23640#include <sys/proc.h>
5c45e068
MK
23641
23642
bec39cab
AC
23643int
23644main ()
23645{
5c45e068
MK
23646static struct thread ac_aggr;
23647if (ac_aggr.td_pcb)
23648return 0;
bec39cab
AC
23649 ;
23650 return 0;
23651}
23652_ACEOF
23653rm -f conftest.$ac_objext
23654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23655 (eval $ac_compile) 2>conftest.er1
23656 ac_status=$?
23657 grep -v '^ *+' conftest.er1 >conftest.err
23658 rm -f conftest.er1
23659 cat conftest.err >&5
23660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23661 (exit $ac_status); } &&
b4e70030
JB
23662 { ac_try='test -z "$ac_c_werror_flag"
23663 || test ! -s conftest.err'
bec39cab
AC
23664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23665 (eval $ac_try) 2>&5
23666 ac_status=$?
23667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23668 (exit $ac_status); }; } &&
23669 { ac_try='test -s conftest.$ac_objext'
23670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23671 (eval $ac_try) 2>&5
23672 ac_status=$?
23673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23674 (exit $ac_status); }; }; then
5c45e068 23675 ac_cv_member_struct_thread_td_pcb=yes
c906108c 23676else
bec39cab
AC
23677 echo "$as_me: failed program was:" >&5
23678sed 's/^/| /' conftest.$ac_ext >&5
23679
b4e70030 23680cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
23681/* confdefs.h. */
23682_ACEOF
23683cat confdefs.h >>conftest.$ac_ext
23684cat >>conftest.$ac_ext <<_ACEOF
23685/* end confdefs.h. */
23686#include <sys/param.h>
23687#include <sys/proc.h>
23688
23689
23690int
23691main ()
23692{
23693static struct thread ac_aggr;
23694if (sizeof ac_aggr.td_pcb)
23695return 0;
23696 ;
23697 return 0;
23698}
23699_ACEOF
23700rm -f conftest.$ac_objext
23701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23702 (eval $ac_compile) 2>conftest.er1
23703 ac_status=$?
23704 grep -v '^ *+' conftest.er1 >conftest.err
23705 rm -f conftest.er1
23706 cat conftest.err >&5
23707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23708 (exit $ac_status); } &&
b4e70030
JB
23709 { ac_try='test -z "$ac_c_werror_flag"
23710 || test ! -s conftest.err'
5c45e068
MK
23711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23712 (eval $ac_try) 2>&5
23713 ac_status=$?
23714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23715 (exit $ac_status); }; } &&
23716 { ac_try='test -s conftest.$ac_objext'
23717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23718 (eval $ac_try) 2>&5
23719 ac_status=$?
23720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23721 (exit $ac_status); }; }; then
23722 ac_cv_member_struct_thread_td_pcb=yes
23723else
23724 echo "$as_me: failed program was:" >&5
23725sed 's/^/| /' conftest.$ac_ext >&5
23726
b4e70030 23727ac_cv_member_struct_thread_td_pcb=no
5c45e068
MK
23728fi
23729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 23730fi
bec39cab 23731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 23732fi
b4e70030
JB
23733echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
23734echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
5c45e068 23735if test $ac_cv_member_struct_thread_td_pcb = yes; then
c906108c 23736
5c45e068 23737cat >>confdefs.h <<_ACEOF
a3828db0 23738#define HAVE_STRUCT_THREAD_TD_PCB 1
bec39cab 23739_ACEOF
c906108c 23740
5c45e068 23741
97bf5e38 23742fi
c906108c 23743
5c45e068 23744
a3828db0 23745# See if <sys/lwp.h> defines `struct lwp`.
b4e70030
JB
23746echo "$as_me:$LINENO: checking for struct lwp" >&5
23747echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
a3828db0 23748if test "${gdb_cv_struct_lwp+set}" = set; then
bec39cab
AC
23749 echo $ECHO_N "(cached) $ECHO_C" >&6
23750else
23751 cat >conftest.$ac_ext <<_ACEOF
23752/* confdefs.h. */
23753_ACEOF
23754cat confdefs.h >>conftest.$ac_ext
23755cat >>conftest.$ac_ext <<_ACEOF
23756/* end confdefs.h. */
a3828db0
MK
23757#include <sys/param.h>
23758#include <sys/lwp.h>
bec39cab
AC
23759int
23760main ()
23761{
a3828db0 23762struct lwp l;
bec39cab
AC
23763 ;
23764 return 0;
23765}
23766_ACEOF
23767rm -f conftest.$ac_objext
23768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23769 (eval $ac_compile) 2>conftest.er1
23770 ac_status=$?
23771 grep -v '^ *+' conftest.er1 >conftest.err
23772 rm -f conftest.er1
23773 cat conftest.err >&5
23774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23775 (exit $ac_status); } &&
b4e70030
JB
23776 { ac_try='test -z "$ac_c_werror_flag"
23777 || test ! -s conftest.err'
bec39cab
AC
23778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23779 (eval $ac_try) 2>&5
23780 ac_status=$?
23781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23782 (exit $ac_status); }; } &&
23783 { ac_try='test -s conftest.$ac_objext'
23784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23785 (eval $ac_try) 2>&5
23786 ac_status=$?
23787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23788 (exit $ac_status); }; }; then
a3828db0 23789 gdb_cv_struct_lwp=yes
c906108c 23790else
bec39cab
AC
23791 echo "$as_me: failed program was:" >&5
23792sed 's/^/| /' conftest.$ac_ext >&5
23793
b4e70030 23794gdb_cv_struct_lwp=no
c906108c 23795fi
bec39cab 23796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 23797fi
b4e70030
JB
23798echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
23799echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
a3828db0 23800if test $gdb_cv_struct_lwp = yes; then
c906108c 23801
a3828db0
MK
23802cat >>confdefs.h <<\_ACEOF
23803#define HAVE_STRUCT_LWP 1
bec39cab 23804_ACEOF
c906108c 23805
97bf5e38 23806fi
c906108c 23807
a3828db0 23808# See if <machine/reg.h> degines `struct reg'.
b4e70030
JB
23809echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
23810echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
a3828db0 23811if test "${gdb_cv_struct_reg+set}" = set; then
bec39cab
AC
23812 echo $ECHO_N "(cached) $ECHO_C" >&6
23813else
23814 cat >conftest.$ac_ext <<_ACEOF
23815/* confdefs.h. */
23816_ACEOF
23817cat confdefs.h >>conftest.$ac_ext
23818cat >>conftest.$ac_ext <<_ACEOF
23819/* end confdefs.h. */
a3828db0
MK
23820#include <sys/types.h>
23821#include <machine/reg.h>
bec39cab
AC
23822int
23823main ()
23824{
a3828db0 23825struct reg r;
bec39cab
AC
23826 ;
23827 return 0;
23828}
23829_ACEOF
23830rm -f conftest.$ac_objext
23831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23832 (eval $ac_compile) 2>conftest.er1
23833 ac_status=$?
23834 grep -v '^ *+' conftest.er1 >conftest.err
23835 rm -f conftest.er1
23836 cat conftest.err >&5
23837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23838 (exit $ac_status); } &&
b4e70030
JB
23839 { ac_try='test -z "$ac_c_werror_flag"
23840 || test ! -s conftest.err'
bec39cab
AC
23841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23842 (eval $ac_try) 2>&5
23843 ac_status=$?
23844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23845 (exit $ac_status); }; } &&
23846 { ac_try='test -s conftest.$ac_objext'
23847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23848 (eval $ac_try) 2>&5
23849 ac_status=$?
23850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23851 (exit $ac_status); }; }; then
a3828db0 23852 gdb_cv_struct_reg=yes
27ca5dad 23853else
bec39cab
AC
23854 echo "$as_me: failed program was:" >&5
23855sed 's/^/| /' conftest.$ac_ext >&5
23856
b4e70030 23857gdb_cv_struct_reg=no
27ca5dad 23858fi
bec39cab 23859rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27ca5dad 23860fi
b4e70030
JB
23861echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
23862echo "${ECHO_T}$gdb_cv_struct_reg" >&6
a3828db0 23863if test $gdb_cv_struct_reg = yes; then
bec39cab
AC
23864
23865cat >>confdefs.h <<\_ACEOF
a3828db0 23866#define HAVE_STRUCT_REG 1
bec39cab 23867_ACEOF
27ca5dad
MC
23868
23869fi
97bf5e38 23870
a3828db0
MK
23871# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
23872# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
b4e70030
JB
23873echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
23874echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
5c45e068 23875if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
bec39cab 23876 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 23877else
bec39cab
AC
23878 cat >conftest.$ac_ext <<_ACEOF
23879/* confdefs.h. */
23880_ACEOF
23881cat confdefs.h >>conftest.$ac_ext
23882cat >>conftest.$ac_ext <<_ACEOF
23883/* end confdefs.h. */
a3828db0 23884#include <machine/reg.h>
5c45e068
MK
23885
23886int
23887main ()
23888{
23889static struct reg ac_aggr;
23890if (ac_aggr.r_fs)
23891return 0;
23892 ;
23893 return 0;
23894}
23895_ACEOF
23896rm -f conftest.$ac_objext
23897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23898 (eval $ac_compile) 2>conftest.er1
23899 ac_status=$?
23900 grep -v '^ *+' conftest.er1 >conftest.err
23901 rm -f conftest.er1
23902 cat conftest.err >&5
23903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23904 (exit $ac_status); } &&
b4e70030
JB
23905 { ac_try='test -z "$ac_c_werror_flag"
23906 || test ! -s conftest.err'
5c45e068
MK
23907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23908 (eval $ac_try) 2>&5
23909 ac_status=$?
23910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23911 (exit $ac_status); }; } &&
23912 { ac_try='test -s conftest.$ac_objext'
23913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23914 (eval $ac_try) 2>&5
23915 ac_status=$?
23916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23917 (exit $ac_status); }; }; then
23918 ac_cv_member_struct_reg_r_fs=yes
23919else
23920 echo "$as_me: failed program was:" >&5
23921sed 's/^/| /' conftest.$ac_ext >&5
23922
b4e70030 23923cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
23924/* confdefs.h. */
23925_ACEOF
23926cat confdefs.h >>conftest.$ac_ext
23927cat >>conftest.$ac_ext <<_ACEOF
23928/* end confdefs.h. */
23929#include <machine/reg.h>
23930
bec39cab
AC
23931int
23932main ()
23933{
5c45e068
MK
23934static struct reg ac_aggr;
23935if (sizeof ac_aggr.r_fs)
23936return 0;
bec39cab
AC
23937 ;
23938 return 0;
23939}
23940_ACEOF
23941rm -f conftest.$ac_objext
23942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23943 (eval $ac_compile) 2>conftest.er1
23944 ac_status=$?
23945 grep -v '^ *+' conftest.er1 >conftest.err
23946 rm -f conftest.er1
23947 cat conftest.err >&5
23948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23949 (exit $ac_status); } &&
b4e70030
JB
23950 { ac_try='test -z "$ac_c_werror_flag"
23951 || test ! -s conftest.err'
bec39cab
AC
23952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23953 (eval $ac_try) 2>&5
23954 ac_status=$?
23955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23956 (exit $ac_status); }; } &&
23957 { ac_try='test -s conftest.$ac_objext'
23958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23959 (eval $ac_try) 2>&5
23960 ac_status=$?
23961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23962 (exit $ac_status); }; }; then
5c45e068 23963 ac_cv_member_struct_reg_r_fs=yes
3862412b 23964else
bec39cab
AC
23965 echo "$as_me: failed program was:" >&5
23966sed 's/^/| /' conftest.$ac_ext >&5
23967
b4e70030 23968ac_cv_member_struct_reg_r_fs=no
3862412b 23969fi
bec39cab 23970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 23971fi
5c45e068
MK
23972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23973fi
b4e70030
JB
23974echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
23975echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
5c45e068
MK
23976if test $ac_cv_member_struct_reg_r_fs = yes; then
23977
23978cat >>confdefs.h <<_ACEOF
a3828db0 23979#define HAVE_STRUCT_REG_R_FS 1
bec39cab 23980_ACEOF
3862412b 23981
5c45e068 23982
97bf5e38 23983fi
b4e70030
JB
23984echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
23985echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
5c45e068 23986if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
bec39cab 23987 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 23988else
bec39cab
AC
23989 cat >conftest.$ac_ext <<_ACEOF
23990/* confdefs.h. */
23991_ACEOF
23992cat confdefs.h >>conftest.$ac_ext
23993cat >>conftest.$ac_ext <<_ACEOF
23994/* end confdefs.h. */
a3828db0 23995#include <machine/reg.h>
5c45e068 23996
bec39cab
AC
23997int
23998main ()
23999{
5c45e068
MK
24000static struct reg ac_aggr;
24001if (ac_aggr.r_gs)
24002return 0;
bec39cab
AC
24003 ;
24004 return 0;
24005}
24006_ACEOF
24007rm -f conftest.$ac_objext
24008if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24009 (eval $ac_compile) 2>conftest.er1
24010 ac_status=$?
24011 grep -v '^ *+' conftest.er1 >conftest.err
24012 rm -f conftest.er1
24013 cat conftest.err >&5
24014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24015 (exit $ac_status); } &&
b4e70030
JB
24016 { ac_try='test -z "$ac_c_werror_flag"
24017 || test ! -s conftest.err'
bec39cab
AC
24018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24019 (eval $ac_try) 2>&5
24020 ac_status=$?
24021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24022 (exit $ac_status); }; } &&
24023 { ac_try='test -s conftest.$ac_objext'
24024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24025 (eval $ac_try) 2>&5
24026 ac_status=$?
24027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24028 (exit $ac_status); }; }; then
5c45e068 24029 ac_cv_member_struct_reg_r_gs=yes
3862412b 24030else
bec39cab
AC
24031 echo "$as_me: failed program was:" >&5
24032sed 's/^/| /' conftest.$ac_ext >&5
24033
b4e70030 24034cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
24035/* confdefs.h. */
24036_ACEOF
24037cat confdefs.h >>conftest.$ac_ext
24038cat >>conftest.$ac_ext <<_ACEOF
24039/* end confdefs.h. */
24040#include <machine/reg.h>
24041
24042int
24043main ()
24044{
24045static struct reg ac_aggr;
24046if (sizeof ac_aggr.r_gs)
24047return 0;
24048 ;
24049 return 0;
24050}
24051_ACEOF
24052rm -f conftest.$ac_objext
24053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24054 (eval $ac_compile) 2>conftest.er1
24055 ac_status=$?
24056 grep -v '^ *+' conftest.er1 >conftest.err
24057 rm -f conftest.er1
24058 cat conftest.err >&5
24059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24060 (exit $ac_status); } &&
b4e70030
JB
24061 { ac_try='test -z "$ac_c_werror_flag"
24062 || test ! -s conftest.err'
5c45e068
MK
24063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24064 (eval $ac_try) 2>&5
24065 ac_status=$?
24066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24067 (exit $ac_status); }; } &&
24068 { ac_try='test -s conftest.$ac_objext'
24069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24070 (eval $ac_try) 2>&5
24071 ac_status=$?
24072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24073 (exit $ac_status); }; }; then
24074 ac_cv_member_struct_reg_r_gs=yes
24075else
24076 echo "$as_me: failed program was:" >&5
24077sed 's/^/| /' conftest.$ac_ext >&5
24078
b4e70030 24079ac_cv_member_struct_reg_r_gs=no
3862412b 24080fi
bec39cab 24081rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 24082fi
5c45e068
MK
24083rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24084fi
b4e70030
JB
24085echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
24086echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
5c45e068
MK
24087if test $ac_cv_member_struct_reg_r_gs = yes; then
24088
24089cat >>confdefs.h <<_ACEOF
a3828db0 24090#define HAVE_STRUCT_REG_R_GS 1
bec39cab 24091_ACEOF
3862412b 24092
5c45e068 24093
97bf5e38 24094fi
3862412b 24095
5c45e068 24096
a3828db0 24097# See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
b4e70030
JB
24098echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
24099echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
a3828db0 24100if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
bec39cab 24101 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 24102else
bec39cab
AC
24103 cat >conftest.$ac_ext <<_ACEOF
24104/* confdefs.h. */
24105_ACEOF
24106cat confdefs.h >>conftest.$ac_ext
24107cat >>conftest.$ac_ext <<_ACEOF
24108/* end confdefs.h. */
a3828db0 24109#include <sys/ptrace.h>
bec39cab
AC
24110int
24111main ()
24112{
a3828db0 24113PTRACE_GETREGS;
bec39cab
AC
24114 ;
24115 return 0;
24116}
24117_ACEOF
24118rm -f conftest.$ac_objext
24119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24120 (eval $ac_compile) 2>conftest.er1
24121 ac_status=$?
24122 grep -v '^ *+' conftest.er1 >conftest.err
24123 rm -f conftest.er1
24124 cat conftest.err >&5
24125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24126 (exit $ac_status); } &&
b4e70030
JB
24127 { ac_try='test -z "$ac_c_werror_flag"
24128 || test ! -s conftest.err'
bec39cab
AC
24129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24130 (eval $ac_try) 2>&5
24131 ac_status=$?
24132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24133 (exit $ac_status); }; } &&
24134 { ac_try='test -s conftest.$ac_objext'
24135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24136 (eval $ac_try) 2>&5
24137 ac_status=$?
24138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24139 (exit $ac_status); }; }; then
a3828db0 24140 gdb_cv_have_ptrace_getregs=yes
451928c5 24141else
bec39cab
AC
24142 echo "$as_me: failed program was:" >&5
24143sed 's/^/| /' conftest.$ac_ext >&5
24144
b4e70030 24145gdb_cv_have_ptrace_getregs=no
451928c5 24146fi
bec39cab 24147rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
24148fi
24149
b4e70030
JB
24150echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
24151echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
a3828db0 24152if test $gdb_cv_have_ptrace_getregs = yes; then
60ca704f
SE
24153
24154cat >>confdefs.h <<\_ACEOF
a3828db0 24155#define HAVE_PTRACE_GETREGS 1
bec39cab 24156_ACEOF
451928c5 24157
97bf5e38 24158fi
451928c5 24159
a3828db0 24160# See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
b4e70030
JB
24161echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
24162echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
a3828db0 24163if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
bec39cab 24164 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 24165else
bec39cab
AC
24166 cat >conftest.$ac_ext <<_ACEOF
24167/* confdefs.h. */
24168_ACEOF
24169cat confdefs.h >>conftest.$ac_ext
24170cat >>conftest.$ac_ext <<_ACEOF
24171/* end confdefs.h. */
a3828db0 24172#include <sys/ptrace.h>
bec39cab
AC
24173int
24174main ()
24175{
a3828db0 24176PTRACE_GETFPXREGS;
bec39cab
AC
24177 ;
24178 return 0;
24179}
24180_ACEOF
24181rm -f conftest.$ac_objext
24182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24183 (eval $ac_compile) 2>conftest.er1
24184 ac_status=$?
24185 grep -v '^ *+' conftest.er1 >conftest.err
24186 rm -f conftest.er1
24187 cat conftest.err >&5
24188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24189 (exit $ac_status); } &&
b4e70030
JB
24190 { ac_try='test -z "$ac_c_werror_flag"
24191 || test ! -s conftest.err'
bec39cab
AC
24192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24193 (eval $ac_try) 2>&5
24194 ac_status=$?
24195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24196 (exit $ac_status); }; } &&
24197 { ac_try='test -s conftest.$ac_objext'
24198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24199 (eval $ac_try) 2>&5
24200 ac_status=$?
24201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24202 (exit $ac_status); }; }; then
a3828db0 24203 gdb_cv_have_ptrace_getfpxregs=yes
451928c5 24204else
bec39cab
AC
24205 echo "$as_me: failed program was:" >&5
24206sed 's/^/| /' conftest.$ac_ext >&5
24207
b4e70030 24208gdb_cv_have_ptrace_getfpxregs=no
451928c5 24209fi
bec39cab 24210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
24211fi
24212
b4e70030
JB
24213echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
24214echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
a3828db0 24215if test $gdb_cv_have_ptrace_getfpxregs = yes; then
60ca704f
SE
24216
24217cat >>confdefs.h <<\_ACEOF
a3828db0 24218#define HAVE_PTRACE_GETFPXREGS 1
bec39cab 24219_ACEOF
451928c5 24220
97bf5e38 24221fi
451928c5 24222
a3828db0 24223# See if <sys/ptrace.h> provides the PT_GETDBREGS request.
b4e70030
JB
24224echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
24225echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
a3828db0 24226if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
bec39cab 24227 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 24228else
bec39cab
AC
24229 cat >conftest.$ac_ext <<_ACEOF
24230/* confdefs.h. */
24231_ACEOF
24232cat confdefs.h >>conftest.$ac_ext
24233cat >>conftest.$ac_ext <<_ACEOF
24234/* end confdefs.h. */
a3828db0
MK
24235#include <sys/types.h>
24236#include <sys/ptrace.h>
bec39cab
AC
24237int
24238main ()
24239{
a3828db0 24240PT_GETDBREGS;
bec39cab
AC
24241 ;
24242 return 0;
24243}
24244_ACEOF
24245rm -f conftest.$ac_objext
24246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24247 (eval $ac_compile) 2>conftest.er1
24248 ac_status=$?
24249 grep -v '^ *+' conftest.er1 >conftest.err
24250 rm -f conftest.er1
24251 cat conftest.err >&5
24252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24253 (exit $ac_status); } &&
b4e70030
JB
24254 { ac_try='test -z "$ac_c_werror_flag"
24255 || test ! -s conftest.err'
bec39cab
AC
24256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24257 (eval $ac_try) 2>&5
24258 ac_status=$?
24259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24260 (exit $ac_status); }; } &&
24261 { ac_try='test -s conftest.$ac_objext'
24262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24263 (eval $ac_try) 2>&5
24264 ac_status=$?
24265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24266 (exit $ac_status); }; }; then
a3828db0 24267 gdb_cv_have_pt_getdbregs=yes
3862412b 24268else
bec39cab
AC
24269 echo "$as_me: failed program was:" >&5
24270sed 's/^/| /' conftest.$ac_ext >&5
24271
b4e70030 24272gdb_cv_have_pt_getdbregs=no
3862412b 24273fi
bec39cab 24274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
24275fi
24276
b4e70030
JB
24277echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
24278echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
a3828db0 24279if test $gdb_cv_have_pt_getdbregs = yes; then
60ca704f
SE
24280
24281cat >>confdefs.h <<\_ACEOF
a3828db0 24282#define HAVE_PT_GETDBREGS 1
bec39cab 24283_ACEOF
3862412b 24284
97bf5e38 24285fi
3862412b 24286
a3828db0 24287# See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
b4e70030
JB
24288echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
24289echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
a3828db0 24290if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
bec39cab 24291 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 24292else
bec39cab
AC
24293 cat >conftest.$ac_ext <<_ACEOF
24294/* confdefs.h. */
24295_ACEOF
24296cat confdefs.h >>conftest.$ac_ext
24297cat >>conftest.$ac_ext <<_ACEOF
24298/* end confdefs.h. */
a3828db0
MK
24299#include <sys/types.h>
24300#include <sys/ptrace.h>
bec39cab
AC
24301int
24302main ()
24303{
a3828db0 24304PT_GETXMMREGS;
bec39cab
AC
24305 ;
24306 return 0;
24307}
24308_ACEOF
24309rm -f conftest.$ac_objext
24310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24311 (eval $ac_compile) 2>conftest.er1
24312 ac_status=$?
24313 grep -v '^ *+' conftest.er1 >conftest.err
24314 rm -f conftest.er1
24315 cat conftest.err >&5
24316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24317 (exit $ac_status); } &&
b4e70030
JB
24318 { ac_try='test -z "$ac_c_werror_flag"
24319 || test ! -s conftest.err'
bec39cab
AC
24320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24321 (eval $ac_try) 2>&5
24322 ac_status=$?
24323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24324 (exit $ac_status); }; } &&
24325 { ac_try='test -s conftest.$ac_objext'
24326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24327 (eval $ac_try) 2>&5
24328 ac_status=$?
24329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330 (exit $ac_status); }; }; then
a3828db0 24331 gdb_cv_have_pt_getxmmregs=yes
3862412b 24332else
bec39cab
AC
24333 echo "$as_me: failed program was:" >&5
24334sed 's/^/| /' conftest.$ac_ext >&5
24335
b4e70030 24336gdb_cv_have_pt_getxmmregs=no
3862412b 24337fi
bec39cab 24338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
24339fi
24340
b4e70030
JB
24341echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
24342echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
a3828db0 24343if test $gdb_cv_have_pt_getxmmregs = yes; then
60ca704f
SE
24344
24345cat >>confdefs.h <<\_ACEOF
a3828db0 24346#define HAVE_PT_GETXMMREGS 1
bec39cab 24347_ACEOF
3862412b 24348
97bf5e38 24349fi
3862412b 24350
eb368090 24351# Detect which type of /proc is in use, such as for Unixware or Solaris.
97bf5e38
MK
24352
24353if test "${target}" = "${host}"; then
24354 case "${host}" in
97bf5e38 24355 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
60ca704f
SE
24356
24357cat >>confdefs.h <<\_ACEOF
97bf5e38 24358#define NEW_PROC_API 1
bec39cab 24359_ACEOF
97bf5e38
MK
24360
24361 ;;
c162e8c9 24362 *-*-solaris2.[6789] | *-*-solaris2.1[0-9]*)
60ca704f
SE
24363
24364cat >>confdefs.h <<\_ACEOF
97bf5e38 24365#define NEW_PROC_API 1
bec39cab 24366_ACEOF
c960c18f
AC
24367
24368 ;;
24369 mips-sgi-irix5*)
24370 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
60ca704f
SE
24371
24372cat >>confdefs.h <<\_ACEOF
c960c18f 24373#define _KMEMUSER 1
bec39cab 24374_ACEOF
97bf5e38
MK
24375
24376 ;;
24377 esac
24378fi
24379
24380if test "$ac_cv_header_sys_procfs_h" = yes; then
b4e70030
JB
24381 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
24382echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
24383 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
24384 echo $ECHO_N "(cached) $ECHO_C" >&6
24385else
24386 cat >conftest.$ac_ext <<_ACEOF
24387/* confdefs.h. */
24388_ACEOF
24389cat confdefs.h >>conftest.$ac_ext
24390cat >>conftest.$ac_ext <<_ACEOF
24391/* end confdefs.h. */
596c9d4b
KB
24392
24393#define _SYSCALL32
24394#include <sys/procfs.h>
bec39cab
AC
24395int
24396main ()
24397{
97bf5e38 24398pstatus_t avar
bec39cab
AC
24399 ;
24400 return 0;
24401}
24402_ACEOF
24403rm -f conftest.$ac_objext
24404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24405 (eval $ac_compile) 2>conftest.er1
24406 ac_status=$?
24407 grep -v '^ *+' conftest.er1 >conftest.err
24408 rm -f conftest.er1
24409 cat conftest.err >&5
24410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24411 (exit $ac_status); } &&
b4e70030
JB
24412 { ac_try='test -z "$ac_c_werror_flag"
24413 || test ! -s conftest.err'
bec39cab
AC
24414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24415 (eval $ac_try) 2>&5
24416 ac_status=$?
24417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24418 (exit $ac_status); }; } &&
24419 { ac_try='test -s conftest.$ac_objext'
24420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24421 (eval $ac_try) 2>&5
24422 ac_status=$?
24423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24424 (exit $ac_status); }; }; then
97bf5e38 24425 bfd_cv_have_sys_procfs_type_pstatus_t=yes
596c9d4b 24426else
bec39cab
AC
24427 echo "$as_me: failed program was:" >&5
24428sed 's/^/| /' conftest.$ac_ext >&5
24429
b4e70030 24430bfd_cv_have_sys_procfs_type_pstatus_t=no
bec39cab 24431
596c9d4b 24432fi
bec39cab 24433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
24434fi
24435
97bf5e38 24436 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
bec39cab
AC
24437
24438cat >>confdefs.h <<\_ACEOF
97bf5e38 24439#define HAVE_PSTATUS_T 1
bec39cab 24440_ACEOF
596c9d4b
KB
24441
24442 fi
b4e70030
JB
24443 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
24444echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
596c9d4b 24445
b4e70030
JB
24446 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
24447echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
24448 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
24449 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 24450else
bec39cab
AC
24451 cat >conftest.$ac_ext <<_ACEOF
24452/* confdefs.h. */
24453_ACEOF
24454cat confdefs.h >>conftest.$ac_ext
24455cat >>conftest.$ac_ext <<_ACEOF
24456/* end confdefs.h. */
596c9d4b
KB
24457
24458#define _SYSCALL32
24459#include <sys/procfs.h>
bec39cab
AC
24460int
24461main ()
24462{
97bf5e38 24463prrun_t avar
bec39cab
AC
24464 ;
24465 return 0;
24466}
24467_ACEOF
24468rm -f conftest.$ac_objext
24469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24470 (eval $ac_compile) 2>conftest.er1
24471 ac_status=$?
24472 grep -v '^ *+' conftest.er1 >conftest.err
24473 rm -f conftest.er1
24474 cat conftest.err >&5
24475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24476 (exit $ac_status); } &&
b4e70030
JB
24477 { ac_try='test -z "$ac_c_werror_flag"
24478 || test ! -s conftest.err'
bec39cab
AC
24479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24480 (eval $ac_try) 2>&5
24481 ac_status=$?
24482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24483 (exit $ac_status); }; } &&
24484 { ac_try='test -s conftest.$ac_objext'
24485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24486 (eval $ac_try) 2>&5
24487 ac_status=$?
24488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24489 (exit $ac_status); }; }; then
97bf5e38 24490 bfd_cv_have_sys_procfs_type_prrun_t=yes
596c9d4b 24491else
bec39cab
AC
24492 echo "$as_me: failed program was:" >&5
24493sed 's/^/| /' conftest.$ac_ext >&5
24494
b4e70030 24495bfd_cv_have_sys_procfs_type_prrun_t=no
bec39cab 24496
596c9d4b 24497fi
bec39cab 24498rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
24499fi
24500
97bf5e38 24501 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
bec39cab
AC
24502
24503cat >>confdefs.h <<\_ACEOF
97bf5e38 24504#define HAVE_PRRUN_T 1
bec39cab 24505_ACEOF
596c9d4b
KB
24506
24507 fi
b4e70030
JB
24508 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
24509echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
596c9d4b 24510
b4e70030
JB
24511 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
24512echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
24513 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
24514 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 24515else
bec39cab
AC
24516 cat >conftest.$ac_ext <<_ACEOF
24517/* confdefs.h. */
24518_ACEOF
24519cat confdefs.h >>conftest.$ac_ext
24520cat >>conftest.$ac_ext <<_ACEOF
24521/* end confdefs.h. */
596c9d4b
KB
24522
24523#define _SYSCALL32
24524#include <sys/procfs.h>
bec39cab
AC
24525int
24526main ()
24527{
97bf5e38 24528gregset_t avar
bec39cab
AC
24529 ;
24530 return 0;
24531}
24532_ACEOF
24533rm -f conftest.$ac_objext
24534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24535 (eval $ac_compile) 2>conftest.er1
24536 ac_status=$?
24537 grep -v '^ *+' conftest.er1 >conftest.err
24538 rm -f conftest.er1
24539 cat conftest.err >&5
24540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24541 (exit $ac_status); } &&
b4e70030
JB
24542 { ac_try='test -z "$ac_c_werror_flag"
24543 || test ! -s conftest.err'
bec39cab
AC
24544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24545 (eval $ac_try) 2>&5
24546 ac_status=$?
24547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24548 (exit $ac_status); }; } &&
24549 { ac_try='test -s conftest.$ac_objext'
24550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24551 (eval $ac_try) 2>&5
24552 ac_status=$?
24553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24554 (exit $ac_status); }; }; then
97bf5e38 24555 bfd_cv_have_sys_procfs_type_gregset_t=yes
596c9d4b 24556else
bec39cab
AC
24557 echo "$as_me: failed program was:" >&5
24558sed 's/^/| /' conftest.$ac_ext >&5
24559
b4e70030 24560bfd_cv_have_sys_procfs_type_gregset_t=no
bec39cab 24561
596c9d4b 24562fi
bec39cab 24563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
24564fi
24565
97bf5e38 24566 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
bec39cab
AC
24567
24568cat >>confdefs.h <<\_ACEOF
97bf5e38 24569#define HAVE_GREGSET_T 1
bec39cab 24570_ACEOF
596c9d4b
KB
24571
24572 fi
b4e70030
JB
24573 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
24574echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
451928c5 24575
b4e70030
JB
24576 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
24577echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
24578 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
24579 echo $ECHO_N "(cached) $ECHO_C" >&6
d84dd0c5 24580else
bec39cab
AC
24581 cat >conftest.$ac_ext <<_ACEOF
24582/* confdefs.h. */
24583_ACEOF
24584cat confdefs.h >>conftest.$ac_ext
24585cat >>conftest.$ac_ext <<_ACEOF
24586/* end confdefs.h. */
97bf5e38
MK
24587
24588#define _SYSCALL32
d84dd0c5 24589#include <sys/procfs.h>
bec39cab
AC
24590int
24591main ()
24592{
97bf5e38 24593fpregset_t avar
bec39cab
AC
24594 ;
24595 return 0;
24596}
24597_ACEOF
24598rm -f conftest.$ac_objext
24599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24600 (eval $ac_compile) 2>conftest.er1
24601 ac_status=$?
24602 grep -v '^ *+' conftest.er1 >conftest.err
24603 rm -f conftest.er1
24604 cat conftest.err >&5
24605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24606 (exit $ac_status); } &&
b4e70030
JB
24607 { ac_try='test -z "$ac_c_werror_flag"
24608 || test ! -s conftest.err'
bec39cab
AC
24609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24610 (eval $ac_try) 2>&5
24611 ac_status=$?
24612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24613 (exit $ac_status); }; } &&
24614 { ac_try='test -s conftest.$ac_objext'
24615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24616 (eval $ac_try) 2>&5
24617 ac_status=$?
24618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24619 (exit $ac_status); }; }; then
97bf5e38 24620 bfd_cv_have_sys_procfs_type_fpregset_t=yes
d84dd0c5 24621else
bec39cab
AC
24622 echo "$as_me: failed program was:" >&5
24623sed 's/^/| /' conftest.$ac_ext >&5
24624
b4e70030 24625bfd_cv_have_sys_procfs_type_fpregset_t=no
bec39cab 24626
d84dd0c5 24627fi
bec39cab 24628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d84dd0c5
MK
24629fi
24630
97bf5e38 24631 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
bec39cab
AC
24632
24633cat >>confdefs.h <<\_ACEOF
97bf5e38 24634#define HAVE_FPREGSET_T 1
bec39cab 24635_ACEOF
d84dd0c5 24636
97bf5e38 24637 fi
b4e70030
JB
24638 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
24639echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
d84dd0c5 24640
b4e70030
JB
24641 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
24642echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
24643 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
24644 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 24645else
bec39cab
AC
24646 cat >conftest.$ac_ext <<_ACEOF
24647/* confdefs.h. */
24648_ACEOF
24649cat confdefs.h >>conftest.$ac_ext
24650cat >>conftest.$ac_ext <<_ACEOF
24651/* end confdefs.h. */
c906108c 24652
97bf5e38
MK
24653#define _SYSCALL32
24654#include <sys/procfs.h>
bec39cab
AC
24655int
24656main ()
24657{
97bf5e38 24658prgregset_t avar
bec39cab
AC
24659 ;
24660 return 0;
24661}
24662_ACEOF
24663rm -f conftest.$ac_objext
24664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24665 (eval $ac_compile) 2>conftest.er1
24666 ac_status=$?
24667 grep -v '^ *+' conftest.er1 >conftest.err
24668 rm -f conftest.er1
24669 cat conftest.err >&5
24670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24671 (exit $ac_status); } &&
b4e70030
JB
24672 { ac_try='test -z "$ac_c_werror_flag"
24673 || test ! -s conftest.err'
bec39cab
AC
24674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24675 (eval $ac_try) 2>&5
24676 ac_status=$?
24677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24678 (exit $ac_status); }; } &&
24679 { ac_try='test -s conftest.$ac_objext'
24680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24681 (eval $ac_try) 2>&5
24682 ac_status=$?
24683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24684 (exit $ac_status); }; }; then
97bf5e38 24685 bfd_cv_have_sys_procfs_type_prgregset_t=yes
c906108c 24686else
bec39cab
AC
24687 echo "$as_me: failed program was:" >&5
24688sed 's/^/| /' conftest.$ac_ext >&5
24689
b4e70030 24690bfd_cv_have_sys_procfs_type_prgregset_t=no
bec39cab 24691
c906108c 24692fi
bec39cab 24693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
24694fi
24695
97bf5e38 24696 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
bec39cab
AC
24697
24698cat >>confdefs.h <<\_ACEOF
97bf5e38 24699#define HAVE_PRGREGSET_T 1
bec39cab 24700_ACEOF
c906108c 24701
97bf5e38 24702 fi
b4e70030
JB
24703 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
24704echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
c906108c 24705
b4e70030
JB
24706 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
24707echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
24708 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
24709 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 24710else
bec39cab
AC
24711 cat >conftest.$ac_ext <<_ACEOF
24712/* confdefs.h. */
24713_ACEOF
24714cat confdefs.h >>conftest.$ac_ext
24715cat >>conftest.$ac_ext <<_ACEOF
24716/* end confdefs.h. */
97bf5e38
MK
24717
24718#define _SYSCALL32
24719#include <sys/procfs.h>
bec39cab
AC
24720int
24721main ()
24722{
97bf5e38 24723prfpregset_t avar
bec39cab
AC
24724 ;
24725 return 0;
24726}
24727_ACEOF
24728rm -f conftest.$ac_objext
24729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24730 (eval $ac_compile) 2>conftest.er1
24731 ac_status=$?
24732 grep -v '^ *+' conftest.er1 >conftest.err
24733 rm -f conftest.er1
24734 cat conftest.err >&5
24735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24736 (exit $ac_status); } &&
b4e70030
JB
24737 { ac_try='test -z "$ac_c_werror_flag"
24738 || test ! -s conftest.err'
bec39cab
AC
24739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24740 (eval $ac_try) 2>&5
24741 ac_status=$?
24742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24743 (exit $ac_status); }; } &&
24744 { ac_try='test -s conftest.$ac_objext'
24745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24746 (eval $ac_try) 2>&5
24747 ac_status=$?
24748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24749 (exit $ac_status); }; }; then
97bf5e38 24750 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
d45fe813 24751else
bec39cab
AC
24752 echo "$as_me: failed program was:" >&5
24753sed 's/^/| /' conftest.$ac_ext >&5
24754
b4e70030 24755bfd_cv_have_sys_procfs_type_prfpregset_t=no
bec39cab 24756
d45fe813 24757fi
bec39cab 24758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
24759fi
24760
97bf5e38 24761 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
bec39cab
AC
24762
24763cat >>confdefs.h <<\_ACEOF
97bf5e38 24764#define HAVE_PRFPREGSET_T 1
bec39cab 24765_ACEOF
d45fe813 24766
97bf5e38 24767 fi
b4e70030
JB
24768 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
24769echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
d45fe813 24770
b4e70030
JB
24771 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
24772echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
24773 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
24774 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 24775else
bec39cab
AC
24776 cat >conftest.$ac_ext <<_ACEOF
24777/* confdefs.h. */
24778_ACEOF
24779cat confdefs.h >>conftest.$ac_ext
24780cat >>conftest.$ac_ext <<_ACEOF
24781/* end confdefs.h. */
97bf5e38
MK
24782
24783#define _SYSCALL32
24784#include <sys/procfs.h>
bec39cab
AC
24785int
24786main ()
24787{
97bf5e38 24788prgregset32_t avar
bec39cab
AC
24789 ;
24790 return 0;
24791}
24792_ACEOF
24793rm -f conftest.$ac_objext
24794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24795 (eval $ac_compile) 2>conftest.er1
24796 ac_status=$?
24797 grep -v '^ *+' conftest.er1 >conftest.err
24798 rm -f conftest.er1
24799 cat conftest.err >&5
24800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24801 (exit $ac_status); } &&
b4e70030
JB
24802 { ac_try='test -z "$ac_c_werror_flag"
24803 || test ! -s conftest.err'
bec39cab
AC
24804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24805 (eval $ac_try) 2>&5
24806 ac_status=$?
24807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24808 (exit $ac_status); }; } &&
24809 { ac_try='test -s conftest.$ac_objext'
24810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24811 (eval $ac_try) 2>&5
24812 ac_status=$?
24813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24814 (exit $ac_status); }; }; then
97bf5e38 24815 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
d45fe813 24816else
bec39cab
AC
24817 echo "$as_me: failed program was:" >&5
24818sed 's/^/| /' conftest.$ac_ext >&5
24819
b4e70030 24820bfd_cv_have_sys_procfs_type_prgregset32_t=no
bec39cab 24821
d45fe813 24822fi
bec39cab 24823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
24824fi
24825
97bf5e38 24826 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
bec39cab
AC
24827
24828cat >>confdefs.h <<\_ACEOF
97bf5e38 24829#define HAVE_PRGREGSET32_T 1
bec39cab 24830_ACEOF
d45fe813 24831
97bf5e38 24832 fi
b4e70030
JB
24833 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
24834echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
d45fe813 24835
b4e70030
JB
24836 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
24837echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
24838 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
24839 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 24840else
bec39cab
AC
24841 cat >conftest.$ac_ext <<_ACEOF
24842/* confdefs.h. */
24843_ACEOF
24844cat confdefs.h >>conftest.$ac_ext
24845cat >>conftest.$ac_ext <<_ACEOF
24846/* end confdefs.h. */
97bf5e38
MK
24847
24848#define _SYSCALL32
24849#include <sys/procfs.h>
bec39cab
AC
24850int
24851main ()
24852{
97bf5e38 24853prfpregset32_t avar
bec39cab
AC
24854 ;
24855 return 0;
24856}
24857_ACEOF
24858rm -f conftest.$ac_objext
24859if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24860 (eval $ac_compile) 2>conftest.er1
24861 ac_status=$?
24862 grep -v '^ *+' conftest.er1 >conftest.err
24863 rm -f conftest.er1
24864 cat conftest.err >&5
24865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24866 (exit $ac_status); } &&
b4e70030
JB
24867 { ac_try='test -z "$ac_c_werror_flag"
24868 || test ! -s conftest.err'
bec39cab
AC
24869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24870 (eval $ac_try) 2>&5
24871 ac_status=$?
24872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24873 (exit $ac_status); }; } &&
24874 { ac_try='test -s conftest.$ac_objext'
24875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24876 (eval $ac_try) 2>&5
24877 ac_status=$?
24878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24879 (exit $ac_status); }; }; then
97bf5e38 24880 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
d45fe813 24881else
bec39cab
AC
24882 echo "$as_me: failed program was:" >&5
24883sed 's/^/| /' conftest.$ac_ext >&5
24884
b4e70030 24885bfd_cv_have_sys_procfs_type_prfpregset32_t=no
bec39cab 24886
d45fe813 24887fi
bec39cab 24888rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
24889fi
24890
97bf5e38 24891 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
bec39cab
AC
24892
24893cat >>confdefs.h <<\_ACEOF
97bf5e38 24894#define HAVE_PRFPREGSET32_T 1
bec39cab 24895_ACEOF
d45fe813 24896
97bf5e38 24897 fi
b4e70030
JB
24898 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
24899echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
d45fe813 24900
b4e70030
JB
24901 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
24902echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
24903 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
24904 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 24905else
bec39cab
AC
24906 cat >conftest.$ac_ext <<_ACEOF
24907/* confdefs.h. */
24908_ACEOF
24909cat confdefs.h >>conftest.$ac_ext
24910cat >>conftest.$ac_ext <<_ACEOF
24911/* end confdefs.h. */
97bf5e38 24912
d45fe813 24913#define _SYSCALL32
97bf5e38 24914#include <sys/procfs.h>
bec39cab
AC
24915int
24916main ()
24917{
97bf5e38 24918lwpid_t avar
bec39cab
AC
24919 ;
24920 return 0;
24921}
24922_ACEOF
24923rm -f conftest.$ac_objext
24924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24925 (eval $ac_compile) 2>conftest.er1
24926 ac_status=$?
24927 grep -v '^ *+' conftest.er1 >conftest.err
24928 rm -f conftest.er1
24929 cat conftest.err >&5
24930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24931 (exit $ac_status); } &&
b4e70030
JB
24932 { ac_try='test -z "$ac_c_werror_flag"
24933 || test ! -s conftest.err'
bec39cab
AC
24934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24935 (eval $ac_try) 2>&5
24936 ac_status=$?
24937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24938 (exit $ac_status); }; } &&
24939 { ac_try='test -s conftest.$ac_objext'
24940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24941 (eval $ac_try) 2>&5
24942 ac_status=$?
24943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944 (exit $ac_status); }; }; then
97bf5e38 24945 bfd_cv_have_sys_procfs_type_lwpid_t=yes
d45fe813 24946else
bec39cab
AC
24947 echo "$as_me: failed program was:" >&5
24948sed 's/^/| /' conftest.$ac_ext >&5
24949
b4e70030 24950bfd_cv_have_sys_procfs_type_lwpid_t=no
bec39cab 24951
d45fe813 24952fi
bec39cab 24953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
24954fi
24955
97bf5e38 24956 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
bec39cab
AC
24957
24958cat >>confdefs.h <<\_ACEOF
97bf5e38 24959#define HAVE_LWPID_T 1
bec39cab 24960_ACEOF
d45fe813 24961
97bf5e38 24962 fi
b4e70030
JB
24963 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
24964echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
c906108c 24965
b4e70030
JB
24966 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
24967echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
24968 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
24969 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 24970else
bec39cab
AC
24971 cat >conftest.$ac_ext <<_ACEOF
24972/* confdefs.h. */
24973_ACEOF
24974cat confdefs.h >>conftest.$ac_ext
24975cat >>conftest.$ac_ext <<_ACEOF
24976/* end confdefs.h. */
c906108c 24977
97bf5e38
MK
24978#define _SYSCALL32
24979#include <sys/procfs.h>
bec39cab
AC
24980int
24981main ()
24982{
97bf5e38 24983psaddr_t avar
bec39cab
AC
24984 ;
24985 return 0;
24986}
24987_ACEOF
24988rm -f conftest.$ac_objext
24989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24990 (eval $ac_compile) 2>conftest.er1
24991 ac_status=$?
24992 grep -v '^ *+' conftest.er1 >conftest.err
24993 rm -f conftest.er1
24994 cat conftest.err >&5
24995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24996 (exit $ac_status); } &&
b4e70030
JB
24997 { ac_try='test -z "$ac_c_werror_flag"
24998 || test ! -s conftest.err'
bec39cab
AC
24999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25000 (eval $ac_try) 2>&5
25001 ac_status=$?
25002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25003 (exit $ac_status); }; } &&
25004 { ac_try='test -s conftest.$ac_objext'
25005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25006 (eval $ac_try) 2>&5
25007 ac_status=$?
25008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25009 (exit $ac_status); }; }; then
97bf5e38 25010 bfd_cv_have_sys_procfs_type_psaddr_t=yes
c906108c 25011else
bec39cab
AC
25012 echo "$as_me: failed program was:" >&5
25013sed 's/^/| /' conftest.$ac_ext >&5
25014
b4e70030 25015bfd_cv_have_sys_procfs_type_psaddr_t=no
bec39cab 25016
c906108c 25017fi
bec39cab 25018rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
25019fi
25020
97bf5e38 25021 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
bec39cab
AC
25022
25023cat >>confdefs.h <<\_ACEOF
97bf5e38 25024#define HAVE_PSADDR_T 1
bec39cab 25025_ACEOF
c906108c 25026
97bf5e38 25027 fi
b4e70030
JB
25028 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
25029echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
c906108c 25030
b4e70030
JB
25031 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
25032echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
25033 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
25034 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 25035else
bec39cab
AC
25036 cat >conftest.$ac_ext <<_ACEOF
25037/* confdefs.h. */
25038_ACEOF
25039cat confdefs.h >>conftest.$ac_ext
25040cat >>conftest.$ac_ext <<_ACEOF
25041/* end confdefs.h. */
c906108c 25042
97bf5e38
MK
25043#define _SYSCALL32
25044#include <sys/procfs.h>
bec39cab
AC
25045int
25046main ()
25047{
97bf5e38 25048prsysent_t avar
bec39cab
AC
25049 ;
25050 return 0;
25051}
25052_ACEOF
25053rm -f conftest.$ac_objext
25054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25055 (eval $ac_compile) 2>conftest.er1
25056 ac_status=$?
25057 grep -v '^ *+' conftest.er1 >conftest.err
25058 rm -f conftest.er1
25059 cat conftest.err >&5
25060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25061 (exit $ac_status); } &&
b4e70030
JB
25062 { ac_try='test -z "$ac_c_werror_flag"
25063 || test ! -s conftest.err'
bec39cab
AC
25064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25065 (eval $ac_try) 2>&5
25066 ac_status=$?
25067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25068 (exit $ac_status); }; } &&
25069 { ac_try='test -s conftest.$ac_objext'
25070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25071 (eval $ac_try) 2>&5
25072 ac_status=$?
25073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25074 (exit $ac_status); }; }; then
97bf5e38 25075 bfd_cv_have_sys_procfs_type_prsysent_t=yes
c906108c 25076else
bec39cab
AC
25077 echo "$as_me: failed program was:" >&5
25078sed 's/^/| /' conftest.$ac_ext >&5
25079
b4e70030 25080bfd_cv_have_sys_procfs_type_prsysent_t=no
bec39cab 25081
c906108c 25082fi
bec39cab 25083rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
25084fi
25085
97bf5e38 25086 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
bec39cab
AC
25087
25088cat >>confdefs.h <<\_ACEOF
97bf5e38 25089#define HAVE_PRSYSENT_T 1
bec39cab 25090_ACEOF
c906108c 25091
97bf5e38 25092 fi
b4e70030
JB
25093 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
25094echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
c906108c 25095
b4e70030
JB
25096 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
25097echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
25098 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
25099 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 25100else
bec39cab
AC
25101 cat >conftest.$ac_ext <<_ACEOF
25102/* confdefs.h. */
25103_ACEOF
25104cat confdefs.h >>conftest.$ac_ext
25105cat >>conftest.$ac_ext <<_ACEOF
25106/* end confdefs.h. */
c906108c 25107
97bf5e38
MK
25108#define _SYSCALL32
25109#include <sys/procfs.h>
bec39cab
AC
25110int
25111main ()
25112{
97bf5e38 25113pr_sigset_t avar
bec39cab
AC
25114 ;
25115 return 0;
25116}
25117_ACEOF
25118rm -f conftest.$ac_objext
25119if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25120 (eval $ac_compile) 2>conftest.er1
25121 ac_status=$?
25122 grep -v '^ *+' conftest.er1 >conftest.err
25123 rm -f conftest.er1
25124 cat conftest.err >&5
25125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25126 (exit $ac_status); } &&
b4e70030
JB
25127 { ac_try='test -z "$ac_c_werror_flag"
25128 || test ! -s conftest.err'
bec39cab
AC
25129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25130 (eval $ac_try) 2>&5
25131 ac_status=$?
25132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25133 (exit $ac_status); }; } &&
25134 { ac_try='test -s conftest.$ac_objext'
25135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25136 (eval $ac_try) 2>&5
25137 ac_status=$?
25138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25139 (exit $ac_status); }; }; then
97bf5e38 25140 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
c906108c 25141else
bec39cab
AC
25142 echo "$as_me: failed program was:" >&5
25143sed 's/^/| /' conftest.$ac_ext >&5
25144
b4e70030 25145bfd_cv_have_sys_procfs_type_pr_sigset_t=no
bec39cab 25146
c906108c 25147fi
bec39cab 25148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
25149fi
25150
97bf5e38 25151 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
bec39cab
AC
25152
25153cat >>confdefs.h <<\_ACEOF
97bf5e38 25154#define HAVE_PR_SIGSET_T 1
bec39cab 25155_ACEOF
c906108c 25156
97bf5e38 25157 fi
b4e70030
JB
25158 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
25159echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
c906108c 25160
b4e70030
JB
25161 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
25162echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
25163 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
25164 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 25165else
bec39cab
AC
25166 cat >conftest.$ac_ext <<_ACEOF
25167/* confdefs.h. */
25168_ACEOF
25169cat confdefs.h >>conftest.$ac_ext
25170cat >>conftest.$ac_ext <<_ACEOF
25171/* end confdefs.h. */
c906108c 25172
97bf5e38
MK
25173#define _SYSCALL32
25174#include <sys/procfs.h>
bec39cab
AC
25175int
25176main ()
25177{
97bf5e38 25178pr_sigaction64_t avar
bec39cab
AC
25179 ;
25180 return 0;
25181}
25182_ACEOF
25183rm -f conftest.$ac_objext
25184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25185 (eval $ac_compile) 2>conftest.er1
25186 ac_status=$?
25187 grep -v '^ *+' conftest.er1 >conftest.err
25188 rm -f conftest.er1
25189 cat conftest.err >&5
25190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25191 (exit $ac_status); } &&
b4e70030
JB
25192 { ac_try='test -z "$ac_c_werror_flag"
25193 || test ! -s conftest.err'
bec39cab
AC
25194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25195 (eval $ac_try) 2>&5
25196 ac_status=$?
25197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25198 (exit $ac_status); }; } &&
25199 { ac_try='test -s conftest.$ac_objext'
25200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25201 (eval $ac_try) 2>&5
25202 ac_status=$?
25203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25204 (exit $ac_status); }; }; then
97bf5e38 25205 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
c906108c 25206else
bec39cab
AC
25207 echo "$as_me: failed program was:" >&5
25208sed 's/^/| /' conftest.$ac_ext >&5
25209
b4e70030 25210bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
bec39cab 25211
c906108c 25212fi
bec39cab 25213rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
25214fi
25215
97bf5e38 25216 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
bec39cab
AC
25217
25218cat >>confdefs.h <<\_ACEOF
97bf5e38 25219#define HAVE_PR_SIGACTION64_T 1
bec39cab 25220_ACEOF
c906108c 25221
97bf5e38 25222 fi
b4e70030
JB
25223 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
25224echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
97bf5e38 25225
b4e70030
JB
25226 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
25227echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
25228 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
25229 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 25230else
bec39cab
AC
25231 cat >conftest.$ac_ext <<_ACEOF
25232/* confdefs.h. */
25233_ACEOF
25234cat confdefs.h >>conftest.$ac_ext
25235cat >>conftest.$ac_ext <<_ACEOF
25236/* end confdefs.h. */
97bf5e38
MK
25237
25238#define _SYSCALL32
25239#include <sys/procfs.h>
bec39cab
AC
25240int
25241main ()
25242{
97bf5e38 25243pr_siginfo64_t avar
bec39cab
AC
25244 ;
25245 return 0;
25246}
25247_ACEOF
25248rm -f conftest.$ac_objext
25249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25250 (eval $ac_compile) 2>conftest.er1
25251 ac_status=$?
25252 grep -v '^ *+' conftest.er1 >conftest.err
25253 rm -f conftest.er1
25254 cat conftest.err >&5
25255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25256 (exit $ac_status); } &&
b4e70030
JB
25257 { ac_try='test -z "$ac_c_werror_flag"
25258 || test ! -s conftest.err'
bec39cab
AC
25259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25260 (eval $ac_try) 2>&5
25261 ac_status=$?
25262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25263 (exit $ac_status); }; } &&
25264 { ac_try='test -s conftest.$ac_objext'
25265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25266 (eval $ac_try) 2>&5
25267 ac_status=$?
25268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25269 (exit $ac_status); }; }; then
97bf5e38
MK
25270 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
25271else
bec39cab
AC
25272 echo "$as_me: failed program was:" >&5
25273sed 's/^/| /' conftest.$ac_ext >&5
25274
b4e70030 25275bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
bec39cab 25276
97bf5e38 25277fi
bec39cab 25278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 25279fi
c906108c 25280
97bf5e38 25281 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
bec39cab
AC
25282
25283cat >>confdefs.h <<\_ACEOF
97bf5e38 25284#define HAVE_PR_SIGINFO64_T 1
bec39cab 25285_ACEOF
c906108c 25286
97bf5e38 25287 fi
b4e70030
JB
25288 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
25289echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
bec39cab
AC
25290
25291
97bf5e38
MK
25292
25293
25294
97bf5e38 25295 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
b4e70030
JB
25296 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
25297echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
bec39cab
AC
25298 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
25299 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
25300else
25301 if test "$cross_compiling" = yes; then
97bf5e38 25302 gdb_cv_prfpregset_t_broken=yes
c906108c 25303else
bec39cab
AC
25304 cat >conftest.$ac_ext <<_ACEOF
25305/* confdefs.h. */
25306_ACEOF
25307cat confdefs.h >>conftest.$ac_ext
25308cat >>conftest.$ac_ext <<_ACEOF
25309/* end confdefs.h. */
97bf5e38
MK
25310#include <sys/procfs.h>
25311 int main ()
25312 {
25313 if (sizeof (prfpregset_t) == sizeof (void *))
25314 return 1;
25315 return 0;
25316 }
bec39cab
AC
25317_ACEOF
25318rm -f conftest$ac_exeext
25319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25320 (eval $ac_link) 2>&5
25321 ac_status=$?
25322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25325 (eval $ac_try) 2>&5
25326 ac_status=$?
25327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25328 (exit $ac_status); }; }; then
97bf5e38 25329 gdb_cv_prfpregset_t_broken=no
c906108c 25330else
bec39cab
AC
25331 echo "$as_me: program exited with status $ac_status" >&5
25332echo "$as_me: failed program was:" >&5
25333sed 's/^/| /' conftest.$ac_ext >&5
25334
25335( exit $ac_status )
25336gdb_cv_prfpregset_t_broken=yes
c906108c 25337fi
b4e70030 25338rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 25339fi
c906108c
SS
25340fi
25341
b4e70030
JB
25342 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
25343echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
97bf5e38 25344 if test $gdb_cv_prfpregset_t_broken = yes; then
60ca704f
SE
25345
25346cat >>confdefs.h <<\_ACEOF
97bf5e38 25347#define PRFPREGSET_T_BROKEN 1
bec39cab 25348_ACEOF
c906108c 25349
97bf5e38
MK
25350 fi
25351 fi
c906108c 25352
bec39cab 25353
b4e70030
JB
25354 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
25355echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
25356 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
25357 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 25358else
bec39cab
AC
25359 cat >conftest.$ac_ext <<_ACEOF
25360/* confdefs.h. */
25361_ACEOF
25362cat confdefs.h >>conftest.$ac_ext
25363cat >>conftest.$ac_ext <<_ACEOF
25364/* end confdefs.h. */
97bf5e38
MK
25365#include <unistd.h>
25366#include <sys/types.h>
25367#include <sys/procfs.h>
25368
bec39cab
AC
25369int
25370main ()
25371{
97bf5e38
MK
25372
25373 int dummy;;
25374 dummy = ioctl(0, PIOCSET, &dummy);
bec39cab
AC
25375
25376 ;
25377 return 0;
25378}
25379_ACEOF
25380rm -f conftest.$ac_objext
25381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25382 (eval $ac_compile) 2>conftest.er1
25383 ac_status=$?
25384 grep -v '^ *+' conftest.er1 >conftest.err
25385 rm -f conftest.er1
25386 cat conftest.err >&5
25387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25388 (exit $ac_status); } &&
b4e70030
JB
25389 { ac_try='test -z "$ac_c_werror_flag"
25390 || test ! -s conftest.err'
bec39cab
AC
25391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25392 (eval $ac_try) 2>&5
25393 ac_status=$?
25394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25395 (exit $ac_status); }; } &&
25396 { ac_try='test -s conftest.$ac_objext'
25397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25398 (eval $ac_try) 2>&5
25399 ac_status=$?
25400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25401 (exit $ac_status); }; }; then
97bf5e38 25402 gdb_cv_have_procfs_piocset=yes
c906108c 25403else
bec39cab
AC
25404 echo "$as_me: failed program was:" >&5
25405sed 's/^/| /' conftest.$ac_ext >&5
25406
b4e70030 25407gdb_cv_have_procfs_piocset=no
c906108c 25408fi
bec39cab 25409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 25410fi
97bf5e38 25411
b4e70030
JB
25412 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
25413echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
97bf5e38 25414 if test $gdb_cv_have_procfs_piocset = yes; then
60ca704f
SE
25415
25416cat >>confdefs.h <<\_ACEOF
97bf5e38 25417#define HAVE_PROCFS_PIOCSET 1
bec39cab 25418_ACEOF
97bf5e38
MK
25419
25420 fi
c906108c 25421fi
c906108c 25422
97bf5e38 25423if test ${host} = ${target} ; then
bec39cab 25424
b4e70030
JB
25425 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
25426echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
bec39cab
AC
25427 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
25428 echo $ECHO_N "(cached) $ECHO_C" >&6
25429else
25430 cat >conftest.$ac_ext <<_ACEOF
25431/* confdefs.h. */
25432_ACEOF
25433cat confdefs.h >>conftest.$ac_ext
25434cat >>conftest.$ac_ext <<_ACEOF
25435/* end confdefs.h. */
97bf5e38 25436#include <link.h>
bec39cab
AC
25437int
25438main ()
25439{
97bf5e38 25440struct link_map lm; (void) lm.l_addr;
bec39cab
AC
25441 ;
25442 return 0;
25443}
25444_ACEOF
25445rm -f conftest.$ac_objext
25446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25447 (eval $ac_compile) 2>conftest.er1
25448 ac_status=$?
25449 grep -v '^ *+' conftest.er1 >conftest.err
25450 rm -f conftest.er1
25451 cat conftest.err >&5
25452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25453 (exit $ac_status); } &&
b4e70030
JB
25454 { ac_try='test -z "$ac_c_werror_flag"
25455 || test ! -s conftest.err'
bec39cab
AC
25456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25457 (eval $ac_try) 2>&5
25458 ac_status=$?
25459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25460 (exit $ac_status); }; } &&
25461 { ac_try='test -s conftest.$ac_objext'
25462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25463 (eval $ac_try) 2>&5
25464 ac_status=$?
25465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25466 (exit $ac_status); }; }; then
97bf5e38 25467 gdb_cv_have_struct_link_map_with_l_members=yes
c906108c 25468else
bec39cab
AC
25469 echo "$as_me: failed program was:" >&5
25470sed 's/^/| /' conftest.$ac_ext >&5
25471
b4e70030 25472gdb_cv_have_struct_link_map_with_l_members=no
c906108c 25473fi
bec39cab 25474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
25475fi
25476
b4e70030
JB
25477 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
25478echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
97bf5e38 25479 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
60ca704f
SE
25480
25481cat >>confdefs.h <<\_ACEOF
97bf5e38 25482#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
bec39cab 25483_ACEOF
97bf5e38
MK
25484
25485 fi
25486
bec39cab 25487
b4e70030
JB
25488 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
25489echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
bec39cab
AC
25490 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
25491 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 25492else
bec39cab
AC
25493 cat >conftest.$ac_ext <<_ACEOF
25494/* confdefs.h. */
25495_ACEOF
25496cat confdefs.h >>conftest.$ac_ext
25497cat >>conftest.$ac_ext <<_ACEOF
25498/* end confdefs.h. */
97bf5e38
MK
25499#include <sys/types.h>
25500#include <link.h>
bec39cab
AC
25501int
25502main ()
25503{
97bf5e38 25504struct link_map lm; (void) lm.lm_addr;
bec39cab
AC
25505 ;
25506 return 0;
25507}
25508_ACEOF
25509rm -f conftest.$ac_objext
25510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25511 (eval $ac_compile) 2>conftest.er1
25512 ac_status=$?
25513 grep -v '^ *+' conftest.er1 >conftest.err
25514 rm -f conftest.er1
25515 cat conftest.err >&5
25516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25517 (exit $ac_status); } &&
b4e70030
JB
25518 { ac_try='test -z "$ac_c_werror_flag"
25519 || test ! -s conftest.err'
bec39cab
AC
25520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25521 (eval $ac_try) 2>&5
25522 ac_status=$?
25523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25524 (exit $ac_status); }; } &&
25525 { ac_try='test -s conftest.$ac_objext'
25526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25527 (eval $ac_try) 2>&5
25528 ac_status=$?
25529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25530 (exit $ac_status); }; }; then
97bf5e38
MK
25531 gdb_cv_have_struct_link_map_with_lm_members=yes
25532else
bec39cab
AC
25533 echo "$as_me: failed program was:" >&5
25534sed 's/^/| /' conftest.$ac_ext >&5
25535
b4e70030 25536gdb_cv_have_struct_link_map_with_lm_members=no
97bf5e38 25537fi
bec39cab 25538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 25539fi
c906108c 25540
b4e70030
JB
25541 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
25542echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
97bf5e38 25543 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
60ca704f
SE
25544
25545cat >>confdefs.h <<\_ACEOF
97bf5e38 25546#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
bec39cab 25547_ACEOF
97bf5e38
MK
25548
25549 fi
25550
bec39cab 25551
b4e70030
JB
25552 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
25553echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
bec39cab
AC
25554 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
25555 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 25556else
bec39cab
AC
25557 cat >conftest.$ac_ext <<_ACEOF
25558/* confdefs.h. */
25559_ACEOF
25560cat confdefs.h >>conftest.$ac_ext
25561cat >>conftest.$ac_ext <<_ACEOF
25562/* end confdefs.h. */
97bf5e38
MK
25563#include <sys/types.h>
25564#ifdef HAVE_NLIST_H
25565#include <nlist.h>
25566#endif
25567#include <link.h>
bec39cab
AC
25568int
25569main ()
25570{
97bf5e38 25571struct so_map lm; (void) lm.som_addr;
bec39cab
AC
25572 ;
25573 return 0;
25574}
25575_ACEOF
25576rm -f conftest.$ac_objext
25577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25578 (eval $ac_compile) 2>conftest.er1
25579 ac_status=$?
25580 grep -v '^ *+' conftest.er1 >conftest.err
25581 rm -f conftest.er1
25582 cat conftest.err >&5
25583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25584 (exit $ac_status); } &&
b4e70030
JB
25585 { ac_try='test -z "$ac_c_werror_flag"
25586 || test ! -s conftest.err'
bec39cab
AC
25587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25588 (eval $ac_try) 2>&5
25589 ac_status=$?
25590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25591 (exit $ac_status); }; } &&
25592 { ac_try='test -s conftest.$ac_objext'
25593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25594 (eval $ac_try) 2>&5
25595 ac_status=$?
25596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25597 (exit $ac_status); }; }; then
97bf5e38
MK
25598 gdb_cv_have_struct_so_map_with_som_members=yes
25599else
bec39cab
AC
25600 echo "$as_me: failed program was:" >&5
25601sed 's/^/| /' conftest.$ac_ext >&5
25602
b4e70030 25603gdb_cv_have_struct_so_map_with_som_members=no
97bf5e38 25604fi
bec39cab 25605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 25606fi
c906108c 25607
b4e70030
JB
25608 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
25609echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
97bf5e38 25610 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
60ca704f
SE
25611
25612cat >>confdefs.h <<\_ACEOF
97bf5e38 25613#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
bec39cab 25614_ACEOF
c906108c 25615
97bf5e38 25616 fi
c906108c 25617
bec39cab 25618
b4e70030
JB
25619 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
25620echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
bec39cab
AC
25621 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
25622 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 25623else
bec39cab
AC
25624 cat >conftest.$ac_ext <<_ACEOF
25625/* confdefs.h. */
25626_ACEOF
25627cat confdefs.h >>conftest.$ac_ext
25628cat >>conftest.$ac_ext <<_ACEOF
25629/* end confdefs.h. */
97bf5e38
MK
25630#define _SYSCALL32
25631#include <sys/link.h>
bec39cab
AC
25632int
25633main ()
25634{
97bf5e38 25635struct link_map32 l;
bec39cab
AC
25636 ;
25637 return 0;
25638}
25639_ACEOF
25640rm -f conftest.$ac_objext
25641if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25642 (eval $ac_compile) 2>conftest.er1
25643 ac_status=$?
25644 grep -v '^ *+' conftest.er1 >conftest.err
25645 rm -f conftest.er1
25646 cat conftest.err >&5
25647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25648 (exit $ac_status); } &&
b4e70030
JB
25649 { ac_try='test -z "$ac_c_werror_flag"
25650 || test ! -s conftest.err'
bec39cab
AC
25651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25652 (eval $ac_try) 2>&5
25653 ac_status=$?
25654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25655 (exit $ac_status); }; } &&
25656 { ac_try='test -s conftest.$ac_objext'
25657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25658 (eval $ac_try) 2>&5
25659 ac_status=$?
25660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25661 (exit $ac_status); }; }; then
97bf5e38
MK
25662 gdb_cv_have_struct_link_map32=yes
25663else
bec39cab
AC
25664 echo "$as_me: failed program was:" >&5
25665sed 's/^/| /' conftest.$ac_ext >&5
25666
b4e70030 25667gdb_cv_have_struct_link_map32=no
97bf5e38 25668fi
bec39cab 25669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 25670fi
c906108c 25671
b4e70030
JB
25672 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
25673echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
97bf5e38 25674 if test $gdb_cv_have_struct_link_map32 = yes; then
60ca704f
SE
25675
25676cat >>confdefs.h <<\_ACEOF
97bf5e38 25677#define HAVE_STRUCT_LINK_MAP32 1
bec39cab 25678_ACEOF
c906108c 25679
60ca704f
SE
25680
25681cat >>confdefs.h <<\_ACEOF
97bf5e38 25682#define _SYSCALL32 1
bec39cab 25683_ACEOF
c906108c 25684
97bf5e38
MK
25685 fi
25686fi
c906108c 25687
bc8bcb4b 25688# Check if the compiler supports the `long long' type.
c906108c 25689
b4e70030
JB
25690echo "$as_me:$LINENO: checking for long long support in compiler" >&5
25691echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
bec39cab
AC
25692if test "${gdb_cv_c_long_long+set}" = set; then
25693 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 25694else
bec39cab
AC
25695 cat >conftest.$ac_ext <<_ACEOF
25696/* confdefs.h. */
25697_ACEOF
25698cat confdefs.h >>conftest.$ac_ext
25699cat >>conftest.$ac_ext <<_ACEOF
25700/* end confdefs.h. */
bc8bcb4b 25701extern long long foo;
bec39cab
AC
25702int
25703main ()
25704{
bc8bcb4b 25705switch (foo & 2) { case 0: return 1; }
bec39cab
AC
25706 ;
25707 return 0;
25708}
25709_ACEOF
25710rm -f conftest.$ac_objext
25711if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25712 (eval $ac_compile) 2>conftest.er1
25713 ac_status=$?
25714 grep -v '^ *+' conftest.er1 >conftest.err
25715 rm -f conftest.er1
25716 cat conftest.err >&5
25717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25718 (exit $ac_status); } &&
b4e70030
JB
25719 { ac_try='test -z "$ac_c_werror_flag"
25720 || test ! -s conftest.err'
bec39cab
AC
25721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25722 (eval $ac_try) 2>&5
25723 ac_status=$?
25724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25725 (exit $ac_status); }; } &&
25726 { ac_try='test -s conftest.$ac_objext'
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_c_long_long=yes
25733else
bec39cab
AC
25734 echo "$as_me: failed program was:" >&5
25735sed 's/^/| /' conftest.$ac_ext >&5
25736
b4e70030 25737gdb_cv_c_long_long=no
97bf5e38 25738fi
bec39cab 25739rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 25740fi
b4e70030
JB
25741echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
25742echo "${ECHO_T}$gdb_cv_c_long_long" >&6
97bf5e38 25743if test $gdb_cv_c_long_long = yes; then
bc8bcb4b
MK
25744
25745cat >>confdefs.h <<\_ACEOF
97bf5e38 25746#define CC_HAS_LONG_LONG 1
bec39cab 25747_ACEOF
97bf5e38
MK
25748
25749fi
25750
bc8bcb4b 25751# Check if the compiler and runtime support printing long longs.
97bf5e38 25752
b4e70030
JB
25753echo "$as_me:$LINENO: checking for long long support in printf" >&5
25754echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
bec39cab
AC
25755if test "${gdb_cv_printf_has_long_long+set}" = set; then
25756 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
25757else
25758 if test "$cross_compiling" = yes; then
25759 gdb_cv_printf_has_long_long=no
25760else
bec39cab
AC
25761 cat >conftest.$ac_ext <<_ACEOF
25762/* confdefs.h. */
25763_ACEOF
25764cat confdefs.h >>conftest.$ac_ext
25765cat >>conftest.$ac_ext <<_ACEOF
25766/* end confdefs.h. */
bc8bcb4b
MK
25767$ac_includes_default
25768int
25769main ()
25770{
25771char buf[32];
97bf5e38
MK
25772 long long l = 0;
25773 l = (l << 16) + 0x0123;
25774 l = (l << 16) + 0x4567;
25775 l = (l << 16) + 0x89ab;
25776 l = (l << 16) + 0xcdef;
25777 sprintf (buf, "0x%016llx", l);
25778 return (strcmp ("0x0123456789abcdef", buf));
bc8bcb4b
MK
25779 ;
25780 return 0;
c906108c 25781}
bec39cab
AC
25782_ACEOF
25783rm -f conftest$ac_exeext
25784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25785 (eval $ac_link) 2>&5
25786 ac_status=$?
25787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25790 (eval $ac_try) 2>&5
25791 ac_status=$?
25792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25793 (exit $ac_status); }; }; then
97bf5e38
MK
25794 gdb_cv_printf_has_long_long=yes
25795else
bec39cab
AC
25796 echo "$as_me: program exited with status $ac_status" >&5
25797echo "$as_me: failed program was:" >&5
25798sed 's/^/| /' conftest.$ac_ext >&5
25799
25800( exit $ac_status )
25801gdb_cv_printf_has_long_long=no
97bf5e38 25802fi
b4e70030 25803rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 25804fi
97bf5e38 25805fi
b4e70030
JB
25806echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
25807echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
97bf5e38 25808if test $gdb_cv_printf_has_long_long = yes; then
bc8bcb4b
MK
25809
25810cat >>confdefs.h <<\_ACEOF
97bf5e38 25811#define PRINTF_HAS_LONG_LONG 1
bec39cab 25812_ACEOF
97bf5e38
MK
25813
25814fi
97bf5e38 25815
1a619819
LM
25816# Check if the compiler and runtime support printing decfloats.
25817
25818echo "$as_me:$LINENO: checking for decfloat support in printf" >&5
25819echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6
25820if test "${gdb_cv_printf_has_decfloat+set}" = set; then
25821 echo $ECHO_N "(cached) $ECHO_C" >&6
25822else
25823 if test "$cross_compiling" = yes; then
25824 gdb_cv_printf_has_decfloat=no
25825else
25826 cat >conftest.$ac_ext <<_ACEOF
25827/* confdefs.h. */
25828_ACEOF
25829cat confdefs.h >>conftest.$ac_ext
25830cat >>conftest.$ac_ext <<_ACEOF
25831/* end confdefs.h. */
25832$ac_includes_default
25833int
25834main ()
25835{
25836char buf[64];
25837 _Decimal32 d32 = 1.2345df;
25838 _Decimal64 d64 = 1.2345dd;
25839 _Decimal128 d128 = 1.2345dl;
25840 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
25841 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
25842 ;
25843 return 0;
25844}
25845_ACEOF
25846rm -f conftest$ac_exeext
25847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25848 (eval $ac_link) 2>&5
25849 ac_status=$?
25850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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
25857 gdb_cv_printf_has_decfloat=yes
25858else
25859 echo "$as_me: program exited with status $ac_status" >&5
25860echo "$as_me: failed program was:" >&5
25861sed 's/^/| /' conftest.$ac_ext >&5
25862
25863( exit $ac_status )
25864gdb_cv_printf_has_decfloat=no
25865fi
25866rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25867fi
25868fi
25869echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5
25870echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6
25871if test $gdb_cv_printf_has_decfloat = yes; then
25872
25873cat >>confdefs.h <<\_ACEOF
25874#define PRINTF_HAS_DECFLOAT 1
25875_ACEOF
25876
25877fi
25878
bc8bcb4b
MK
25879# Check if the compiler supports the `long double' type. We can't use
25880# AC_C_LONG_DOUBLE because that one does additional checks on the
25881# constants defined in <float.h> that fail on some systems,
25882# e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
97bf5e38 25883
b4e70030
JB
25884echo "$as_me:$LINENO: checking for long double support in compiler" >&5
25885echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
bc8bcb4b 25886if test "${gdb_cv_c_long_double+set}" = set; then
bec39cab 25887 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 25888else
bec39cab
AC
25889 cat >conftest.$ac_ext <<_ACEOF
25890/* confdefs.h. */
25891_ACEOF
25892cat confdefs.h >>conftest.$ac_ext
25893cat >>conftest.$ac_ext <<_ACEOF
25894/* end confdefs.h. */
97bf5e38 25895long double foo;
bec39cab
AC
25896_ACEOF
25897rm -f conftest.$ac_objext
25898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25899 (eval $ac_compile) 2>conftest.er1
25900 ac_status=$?
25901 grep -v '^ *+' conftest.er1 >conftest.err
25902 rm -f conftest.er1
25903 cat conftest.err >&5
25904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25905 (exit $ac_status); } &&
b4e70030
JB
25906 { ac_try='test -z "$ac_c_werror_flag"
25907 || test ! -s conftest.err'
bec39cab
AC
25908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25909 (eval $ac_try) 2>&5
25910 ac_status=$?
25911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25912 (exit $ac_status); }; } &&
25913 { ac_try='test -s conftest.$ac_objext'
25914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25915 (eval $ac_try) 2>&5
25916 ac_status=$?
25917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25918 (exit $ac_status); }; }; then
bc8bcb4b 25919 gdb_cv_c_long_double=yes
97bf5e38 25920else
bec39cab
AC
25921 echo "$as_me: failed program was:" >&5
25922sed 's/^/| /' conftest.$ac_ext >&5
25923
b4e70030 25924gdb_cv_c_long_double=no
97bf5e38 25925fi
bec39cab 25926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 25927fi
b4e70030
JB
25928echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
25929echo "${ECHO_T}$gdb_cv_c_long_double" >&6
bc8bcb4b 25930if test $gdb_cv_c_long_double = yes; then
c906108c 25931
bc8bcb4b 25932cat >>confdefs.h <<\_ACEOF
97bf5e38 25933#define HAVE_LONG_DOUBLE 1
bec39cab 25934_ACEOF
97bf5e38
MK
25935
25936fi
25937
bc8bcb4b 25938# Check if the compiler and runtime support printing long doubles.
97bf5e38 25939
b4e70030
JB
25940echo "$as_me:$LINENO: checking for long double support in printf" >&5
25941echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
bec39cab
AC
25942if test "${gdb_cv_printf_has_long_double+set}" = set; then
25943 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
25944else
25945 if test "$cross_compiling" = yes; then
25946 gdb_cv_printf_has_long_double=no
25947else
bec39cab
AC
25948 cat >conftest.$ac_ext <<_ACEOF
25949/* confdefs.h. */
25950_ACEOF
25951cat confdefs.h >>conftest.$ac_ext
25952cat >>conftest.$ac_ext <<_ACEOF
25953/* end confdefs.h. */
bc8bcb4b
MK
25954$ac_includes_default
25955int
25956main ()
25957{
25958char buf[16];
97bf5e38
MK
25959 long double f = 3.141592653;
25960 sprintf (buf, "%Lg", f);
25961 return (strncmp ("3.14159", buf, 7));
bc8bcb4b
MK
25962 ;
25963 return 0;
97bf5e38 25964}
bec39cab
AC
25965_ACEOF
25966rm -f conftest$ac_exeext
25967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25968 (eval $ac_link) 2>&5
25969 ac_status=$?
25970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25971 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25973 (eval $ac_try) 2>&5
25974 ac_status=$?
25975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25976 (exit $ac_status); }; }; then
97bf5e38 25977 gdb_cv_printf_has_long_double=yes
c906108c 25978else
bec39cab
AC
25979 echo "$as_me: program exited with status $ac_status" >&5
25980echo "$as_me: failed program was:" >&5
25981sed 's/^/| /' conftest.$ac_ext >&5
25982
25983( exit $ac_status )
25984gdb_cv_printf_has_long_double=no
c906108c 25985fi
b4e70030 25986rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 25987fi
c906108c 25988fi
b4e70030
JB
25989echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
25990echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
97bf5e38 25991if test $gdb_cv_printf_has_long_double = yes; then
bc8bcb4b
MK
25992
25993cat >>confdefs.h <<\_ACEOF
97bf5e38 25994#define PRINTF_HAS_LONG_DOUBLE 1
bec39cab 25995_ACEOF
97bf5e38
MK
25996
25997fi
97bf5e38 25998
bc8bcb4b 25999# Check if the compiler and runtime support scanning long doubles.
97bf5e38 26000
b4e70030
JB
26001echo "$as_me:$LINENO: checking for long double support in scanf" >&5
26002echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
bec39cab
AC
26003if test "${gdb_cv_scanf_has_long_double+set}" = set; then
26004 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
26005else
26006 if test "$cross_compiling" = yes; then
26007 gdb_cv_scanf_has_long_double=no
26008else
bec39cab
AC
26009 cat >conftest.$ac_ext <<_ACEOF
26010/* confdefs.h. */
26011_ACEOF
26012cat confdefs.h >>conftest.$ac_ext
26013cat >>conftest.$ac_ext <<_ACEOF
26014/* end confdefs.h. */
bc8bcb4b
MK
26015#include <stdio.h>
26016int
26017main ()
26018{
26019char *buf = "3.141592653";
97bf5e38
MK
26020 long double f = 0;
26021 sscanf (buf, "%Lg", &f);
26022 return !(f > 3.14159 && f < 3.14160);
bc8bcb4b
MK
26023 ;
26024 return 0;
97bf5e38 26025}
bec39cab
AC
26026_ACEOF
26027rm -f conftest$ac_exeext
26028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26029 (eval $ac_link) 2>&5
26030 ac_status=$?
26031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26034 (eval $ac_try) 2>&5
26035 ac_status=$?
26036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26037 (exit $ac_status); }; }; then
97bf5e38
MK
26038 gdb_cv_scanf_has_long_double=yes
26039else
bec39cab
AC
26040 echo "$as_me: program exited with status $ac_status" >&5
26041echo "$as_me: failed program was:" >&5
26042sed 's/^/| /' conftest.$ac_ext >&5
26043
26044( exit $ac_status )
26045gdb_cv_scanf_has_long_double=no
97bf5e38 26046fi
b4e70030 26047rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 26048fi
c906108c 26049fi
b4e70030
JB
26050echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
26051echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
97bf5e38 26052if test $gdb_cv_scanf_has_long_double = yes; then
bc8bcb4b
MK
26053
26054cat >>confdefs.h <<\_ACEOF
97bf5e38 26055#define SCANF_HAS_LONG_DOUBLE 1
bec39cab 26056_ACEOF
97bf5e38
MK
26057
26058fi
c906108c 26059
438013df
AO
26060case ${host_os} in
26061aix*)
b4e70030
JB
26062 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
26063echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
bec39cab
AC
26064if test "${gdb_cv_bigtoc+set}" = set; then
26065 echo $ECHO_N "(cached) $ECHO_C" >&6
438013df 26066else
bec39cab 26067
438013df
AO
26068 SAVE_LDFLAGS=$LDFLAGS
26069
26070 case $GCC in
26071 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
26072 *) gdb_cv_bigtoc=-bbigtoc ;;
26073 esac
26074
26075 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
bec39cab
AC
26076 cat >conftest.$ac_ext <<_ACEOF
26077/* confdefs.h. */
26078_ACEOF
26079cat confdefs.h >>conftest.$ac_ext
26080cat >>conftest.$ac_ext <<_ACEOF
26081/* end confdefs.h. */
438013df 26082
bec39cab
AC
26083int
26084main ()
26085{
438013df 26086int i;
bec39cab
AC
26087 ;
26088 return 0;
26089}
26090_ACEOF
26091rm -f conftest.$ac_objext conftest$ac_exeext
26092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26093 (eval $ac_link) 2>conftest.er1
26094 ac_status=$?
26095 grep -v '^ *+' conftest.er1 >conftest.err
26096 rm -f conftest.er1
26097 cat conftest.err >&5
26098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26099 (exit $ac_status); } &&
b4e70030
JB
26100 { ac_try='test -z "$ac_c_werror_flag"
26101 || test ! -s conftest.err'
bec39cab
AC
26102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26103 (eval $ac_try) 2>&5
26104 ac_status=$?
26105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26106 (exit $ac_status); }; } &&
26107 { ac_try='test -s conftest$ac_exeext'
26108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26109 (eval $ac_try) 2>&5
26110 ac_status=$?
26111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26112 (exit $ac_status); }; }; then
438013df
AO
26113 :
26114else
bec39cab
AC
26115 echo "$as_me: failed program was:" >&5
26116sed 's/^/| /' conftest.$ac_ext >&5
26117
b4e70030 26118gdb_cv_bigtoc=
438013df 26119fi
bec39cab
AC
26120rm -f conftest.err conftest.$ac_objext \
26121 conftest$ac_exeext conftest.$ac_ext
ec76baa5 26122 LDFLAGS="${SAVE_LDFLAGS}"
438013df 26123
bec39cab 26124fi
b4e70030
JB
26125echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
26126echo "${ECHO_T}$gdb_cv_bigtoc" >&6
438013df
AO
26127 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
26128 ;;
26129esac
26130
c906108c
SS
26131
26132
26133if test ${build} = ${host} -a ${host} = ${target} ; then
26134 case ${host_os} in
26135 hpux*)
b4e70030
JB
26136 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
26137echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
c906108c
SS
26138 if test -f /usr/include/dce/cma_config.h ; then
26139 if test "$GCC" = "yes" ; then
b4e70030
JB
26140 echo "$as_me:$LINENO: result: yes" >&5
26141echo "${ECHO_T}yes" >&6
60ca704f
SE
26142
26143cat >>confdefs.h <<\_ACEOF
c906108c 26144#define HAVE_HPUX_THREAD_SUPPORT 1
bec39cab 26145_ACEOF
c906108c 26146
3483b318 26147 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
c906108c
SS
26148 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
26149 else
b4e70030
JB
26150 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
26151echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
c906108c
SS
26152 fi
26153 else
b4e70030
JB
26154 echo "$as_me:$LINENO: result: no" >&5
26155echo "${ECHO_T}no" >&6
c906108c
SS
26156 fi
26157 ;;
26158 solaris*)
d92419e5
JB
26159 # See if thread_db library is around for Solaris thread debugging.
26160 # Note that we must explicitly test for version 1 of the library
26161 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
26162 # the same API.
b4e70030
JB
26163 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
26164echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
c906108c 26165 if test -f /usr/lib/libthread_db.so.1 ; then
b4e70030
JB
26166 echo "$as_me:$LINENO: result: yes" >&5
26167echo "${ECHO_T}yes" >&6
60ca704f
SE
26168
26169cat >>confdefs.h <<\_ACEOF
c906108c 26170#define HAVE_THREAD_DB_LIB 1
bec39cab 26171_ACEOF
c906108c 26172
3483b318 26173 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
c906108c 26174 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
bec39cab 26175
b4e70030
JB
26176echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
26177echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
bec39cab
AC
26178if test "${ac_cv_lib_dl_dlopen+set}" = set; then
26179 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 26180else
bec39cab 26181 ac_check_lib_save_LIBS=$LIBS
c906108c 26182LIBS="-ldl $LIBS"
bec39cab
AC
26183cat >conftest.$ac_ext <<_ACEOF
26184/* confdefs.h. */
26185_ACEOF
26186cat confdefs.h >>conftest.$ac_ext
26187cat >>conftest.$ac_ext <<_ACEOF
26188/* end confdefs.h. */
26189
b4e70030 26190/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
26191#ifdef __cplusplus
26192extern "C"
26193#endif
b4e70030
JB
26194/* We use char because int might match the return type of a gcc2
26195 builtin and then its argument prototype would still apply. */
bec39cab
AC
26196char dlopen ();
26197int
26198main ()
26199{
b4e70030 26200dlopen ();
bec39cab
AC
26201 ;
26202 return 0;
26203}
26204_ACEOF
26205rm -f conftest.$ac_objext conftest$ac_exeext
26206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26207 (eval $ac_link) 2>conftest.er1
26208 ac_status=$?
26209 grep -v '^ *+' conftest.er1 >conftest.err
26210 rm -f conftest.er1
26211 cat conftest.err >&5
26212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26213 (exit $ac_status); } &&
b4e70030
JB
26214 { ac_try='test -z "$ac_c_werror_flag"
26215 || test ! -s conftest.err'
bec39cab
AC
26216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26217 (eval $ac_try) 2>&5
26218 ac_status=$?
26219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26220 (exit $ac_status); }; } &&
26221 { ac_try='test -s conftest$ac_exeext'
26222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26223 (eval $ac_try) 2>&5
26224 ac_status=$?
26225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26226 (exit $ac_status); }; }; then
26227 ac_cv_lib_dl_dlopen=yes
26228else
26229 echo "$as_me: failed program was:" >&5
26230sed 's/^/| /' conftest.$ac_ext >&5
26231
b4e70030 26232ac_cv_lib_dl_dlopen=no
bec39cab
AC
26233fi
26234rm -f conftest.err conftest.$ac_objext \
26235 conftest$ac_exeext conftest.$ac_ext
26236LIBS=$ac_check_lib_save_LIBS
26237fi
b4e70030
JB
26238echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
26239echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
bec39cab
AC
26240if test $ac_cv_lib_dl_dlopen = yes; then
26241 cat >>confdefs.h <<_ACEOF
26242#define HAVE_LIBDL 1
26243_ACEOF
c906108c
SS
26244
26245 LIBS="-ldl $LIBS"
26246
c906108c
SS
26247fi
26248
26249 if test "$GCC" = "yes" ; then
26250 # The GNU linker requires the -export-dynamic option to make
26251 # all symbols visible in the dynamic symbol table.
26252 hold_ldflags=$LDFLAGS
b4e70030
JB
26253 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
26254echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
c906108c 26255 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
bec39cab
AC
26256 cat >conftest.$ac_ext <<_ACEOF
26257/* confdefs.h. */
26258_ACEOF
26259cat confdefs.h >>conftest.$ac_ext
26260cat >>conftest.$ac_ext <<_ACEOF
26261/* end confdefs.h. */
c906108c 26262
bec39cab
AC
26263int
26264main ()
26265{
c906108c 26266int i;
bec39cab
AC
26267 ;
26268 return 0;
26269}
26270_ACEOF
26271rm -f conftest.$ac_objext conftest$ac_exeext
26272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26273 (eval $ac_link) 2>conftest.er1
26274 ac_status=$?
26275 grep -v '^ *+' conftest.er1 >conftest.err
26276 rm -f conftest.er1
26277 cat conftest.err >&5
26278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26279 (exit $ac_status); } &&
b4e70030
JB
26280 { ac_try='test -z "$ac_c_werror_flag"
26281 || test ! -s conftest.err'
bec39cab
AC
26282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26283 (eval $ac_try) 2>&5
26284 ac_status=$?
26285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26286 (exit $ac_status); }; } &&
26287 { ac_try='test -s conftest$ac_exeext'
26288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26289 (eval $ac_try) 2>&5
26290 ac_status=$?
26291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26292 (exit $ac_status); }; }; then
c906108c
SS
26293 found=yes
26294else
bec39cab
AC
26295 echo "$as_me: failed program was:" >&5
26296sed 's/^/| /' conftest.$ac_ext >&5
26297
b4e70030 26298found=no
c906108c 26299fi
bec39cab
AC
26300rm -f conftest.err conftest.$ac_objext \
26301 conftest$ac_exeext conftest.$ac_ext
c906108c 26302 LDFLAGS=$hold_ldflags
b4e70030
JB
26303 echo "$as_me:$LINENO: result: $found" >&5
26304echo "${ECHO_T}$found" >&6
c906108c
SS
26305 if test $found = yes; then
26306 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
26307 fi
26308 fi
26309 # Sun randomly tweaked the prototypes in <proc_service.h>
26310 # at one point.
b4e70030
JB
26311 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
26312echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
bec39cab
AC
26313 if test "${gdb_cv_proc_service_is_old+set}" = set; then
26314 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 26315else
bec39cab
AC
26316
26317 cat >conftest.$ac_ext <<_ACEOF
26318/* confdefs.h. */
26319_ACEOF
26320cat confdefs.h >>conftest.$ac_ext
26321cat >>conftest.$ac_ext <<_ACEOF
26322/* end confdefs.h. */
c906108c
SS
26323
26324 #include <proc_service.h>
26325 ps_err_e ps_pdwrite
26326 (struct ps_prochandle*, psaddr_t, const void*, size_t);
c906108c 26327
bec39cab
AC
26328int
26329main ()
26330{
26331
26332 ;
26333 return 0;
26334}
26335_ACEOF
26336rm -f conftest.$ac_objext
26337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26338 (eval $ac_compile) 2>conftest.er1
26339 ac_status=$?
26340 grep -v '^ *+' conftest.er1 >conftest.err
26341 rm -f conftest.er1
26342 cat conftest.err >&5
26343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26344 (exit $ac_status); } &&
b4e70030
JB
26345 { ac_try='test -z "$ac_c_werror_flag"
26346 || test ! -s conftest.err'
bec39cab
AC
26347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26348 (eval $ac_try) 2>&5
26349 ac_status=$?
26350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26351 (exit $ac_status); }; } &&
26352 { ac_try='test -s conftest.$ac_objext'
26353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26354 (eval $ac_try) 2>&5
26355 ac_status=$?
26356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26357 (exit $ac_status); }; }; then
c906108c
SS
26358 gdb_cv_proc_service_is_old=no
26359else
bec39cab
AC
26360 echo "$as_me: failed program was:" >&5
26361sed 's/^/| /' conftest.$ac_ext >&5
26362
b4e70030 26363gdb_cv_proc_service_is_old=yes
c906108c 26364fi
bec39cab
AC
26365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26366
c906108c
SS
26367fi
26368
b4e70030
JB
26369 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
26370echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
c906108c 26371 if test $gdb_cv_proc_service_is_old = yes; then
60ca704f
SE
26372
26373cat >>confdefs.h <<\_ACEOF
c906108c 26374#define PROC_SERVICE_IS_OLD 1
bec39cab 26375_ACEOF
c906108c
SS
26376
26377 fi
26378 else
b4e70030
JB
26379 echo "$as_me:$LINENO: result: no" >&5
26380echo "${ECHO_T}no" >&6
c906108c
SS
26381 fi
26382 ;;
d92419e5 26383 aix*)
b4e70030
JB
26384 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
26385echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
bec39cab
AC
26386 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
26387 echo $ECHO_N "(cached) $ECHO_C" >&6
26388else
26389 cat >conftest.$ac_ext <<_ACEOF
26390/* confdefs.h. */
26391_ACEOF
26392cat confdefs.h >>conftest.$ac_ext
26393cat >>conftest.$ac_ext <<_ACEOF
26394/* end confdefs.h. */
d92419e5 26395#include <sys/pthdebug.h>
bec39cab
AC
26396int
26397main ()
26398{
d92419e5
JB
26399#ifndef PTHDB_VERSION_3
26400 #error
26401 #endif
bec39cab
AC
26402 ;
26403 return 0;
26404}
26405_ACEOF
26406rm -f conftest.$ac_objext
26407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26408 (eval $ac_compile) 2>conftest.er1
26409 ac_status=$?
26410 grep -v '^ *+' conftest.er1 >conftest.err
26411 rm -f conftest.er1
26412 cat conftest.err >&5
26413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26414 (exit $ac_status); } &&
b4e70030
JB
26415 { ac_try='test -z "$ac_c_werror_flag"
26416 || test ! -s conftest.err'
bec39cab
AC
26417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26418 (eval $ac_try) 2>&5
26419 ac_status=$?
26420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26421 (exit $ac_status); }; } &&
26422 { ac_try='test -s conftest.$ac_objext'
26423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26424 (eval $ac_try) 2>&5
26425 ac_status=$?
26426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26427 (exit $ac_status); }; }; then
d92419e5
JB
26428 gdb_cv_have_aix_thread_debug=yes
26429else
bec39cab
AC
26430 echo "$as_me: failed program was:" >&5
26431sed 's/^/| /' conftest.$ac_ext >&5
26432
b4e70030 26433gdb_cv_have_aix_thread_debug=no
d92419e5 26434fi
bec39cab 26435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d92419e5
JB
26436fi
26437
b4e70030
JB
26438 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
26439echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
d92419e5
JB
26440 if test $gdb_cv_have_aix_thread_debug = yes; then
26441 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
3483b318 26442 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
d92419e5
JB
26443 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
26444 fi
26445 ;;
c906108c 26446 esac
bec39cab 26447
c906108c
SS
26448fi
26449
3f47be5c 26450if test "x$ac_cv_header_thread_db_h" = "xyes"; then
b4e70030
JB
26451 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
26452echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
bec39cab
AC
26453if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
26454 echo $ECHO_N "(cached) $ECHO_C" >&6
26455else
26456 cat >conftest.$ac_ext <<_ACEOF
26457/* confdefs.h. */
26458_ACEOF
26459cat confdefs.h >>conftest.$ac_ext
26460cat >>conftest.$ac_ext <<_ACEOF
26461/* end confdefs.h. */
3f47be5c 26462#include <thread_db.h>
bec39cab
AC
26463int
26464main ()
26465{
3f47be5c 26466int i = TD_NOTALLOC;
bec39cab
AC
26467 ;
26468 return 0;
26469}
26470_ACEOF
26471rm -f conftest.$ac_objext
26472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26473 (eval $ac_compile) 2>conftest.er1
26474 ac_status=$?
26475 grep -v '^ *+' conftest.er1 >conftest.err
26476 rm -f conftest.er1
26477 cat conftest.err >&5
26478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26479 (exit $ac_status); } &&
b4e70030
JB
26480 { ac_try='test -z "$ac_c_werror_flag"
26481 || test ! -s conftest.err'
bec39cab
AC
26482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26483 (eval $ac_try) 2>&5
26484 ac_status=$?
26485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26486 (exit $ac_status); }; } &&
26487 { ac_try='test -s conftest.$ac_objext'
26488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26489 (eval $ac_try) 2>&5
26490 ac_status=$?
26491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26492 (exit $ac_status); }; }; then
3f47be5c
EZ
26493 gdb_cv_thread_db_h_has_td_notalloc=yes
26494else
bec39cab
AC
26495 echo "$as_me: failed program was:" >&5
26496sed 's/^/| /' conftest.$ac_ext >&5
26497
b4e70030 26498gdb_cv_thread_db_h_has_td_notalloc=no
bec39cab 26499
3f47be5c 26500fi
bec39cab 26501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3f47be5c 26502
bec39cab 26503fi
b4e70030
JB
26504echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
26505echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
59f80f10
DJ
26506 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
26507echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
26508if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
26509 echo $ECHO_N "(cached) $ECHO_C" >&6
26510else
26511 cat >conftest.$ac_ext <<_ACEOF
26512/* confdefs.h. */
26513_ACEOF
26514cat confdefs.h >>conftest.$ac_ext
26515cat >>conftest.$ac_ext <<_ACEOF
26516/* end confdefs.h. */
26517#include <thread_db.h>
26518int
26519main ()
26520{
26521int i = TD_VERSION;
26522 ;
26523 return 0;
26524}
26525_ACEOF
26526rm -f conftest.$ac_objext
26527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26528 (eval $ac_compile) 2>conftest.er1
26529 ac_status=$?
26530 grep -v '^ *+' conftest.er1 >conftest.err
26531 rm -f conftest.er1
26532 cat conftest.err >&5
26533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26534 (exit $ac_status); } &&
26535 { ac_try='test -z "$ac_c_werror_flag"
26536 || test ! -s conftest.err'
26537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26538 (eval $ac_try) 2>&5
26539 ac_status=$?
26540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26541 (exit $ac_status); }; } &&
26542 { ac_try='test -s conftest.$ac_objext'
26543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26544 (eval $ac_try) 2>&5
26545 ac_status=$?
26546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26547 (exit $ac_status); }; }; then
26548 gdb_cv_thread_db_h_has_td_version=yes
26549else
26550 echo "$as_me: failed program was:" >&5
26551sed 's/^/| /' conftest.$ac_ext >&5
26552
26553gdb_cv_thread_db_h_has_td_version=no
26554
26555fi
26556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26557
26558fi
26559echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
26560echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
26561 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
26562echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
26563if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
26564 echo $ECHO_N "(cached) $ECHO_C" >&6
26565else
26566 cat >conftest.$ac_ext <<_ACEOF
26567/* confdefs.h. */
26568_ACEOF
26569cat confdefs.h >>conftest.$ac_ext
26570cat >>conftest.$ac_ext <<_ACEOF
26571/* end confdefs.h. */
26572#include <thread_db.h>
26573int
26574main ()
26575{
26576int i = TD_NOTLS;
26577 ;
26578 return 0;
26579}
26580_ACEOF
26581rm -f conftest.$ac_objext
26582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26583 (eval $ac_compile) 2>conftest.er1
26584 ac_status=$?
26585 grep -v '^ *+' conftest.er1 >conftest.err
26586 rm -f conftest.er1
26587 cat conftest.err >&5
26588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26589 (exit $ac_status); } &&
26590 { ac_try='test -z "$ac_c_werror_flag"
26591 || test ! -s conftest.err'
26592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26593 (eval $ac_try) 2>&5
26594 ac_status=$?
26595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26596 (exit $ac_status); }; } &&
26597 { ac_try='test -s conftest.$ac_objext'
26598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26599 (eval $ac_try) 2>&5
26600 ac_status=$?
26601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26602 (exit $ac_status); }; }; then
26603 gdb_cv_thread_db_h_has_td_notls=yes
26604else
26605 echo "$as_me: failed program was:" >&5
26606sed 's/^/| /' conftest.$ac_ext >&5
26607
26608gdb_cv_thread_db_h_has_td_notls=no
26609
26610fi
26611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26612
26613fi
26614echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
26615echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
3f47be5c
EZ
26616fi
26617if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
bec39cab
AC
26618
26619cat >>confdefs.h <<\_ACEOF
3f47be5c 26620#define THREAD_DB_HAS_TD_NOTALLOC 1
bec39cab 26621_ACEOF
3f47be5c 26622
59f80f10
DJ
26623fi
26624if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
26625
26626cat >>confdefs.h <<\_ACEOF
26627#define THREAD_DB_HAS_TD_VERSION 1
26628_ACEOF
26629
26630fi
26631if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
26632
26633cat >>confdefs.h <<\_ACEOF
26634#define THREAD_DB_HAS_TD_NOTLS 1
26635_ACEOF
26636
3f47be5c
EZ
26637fi
26638
b757528f 26639if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
b4e70030
JB
26640 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
26641echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
bec39cab
AC
26642if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
26643 echo $ECHO_N "(cached) $ECHO_C" >&6
26644else
26645 cat >conftest.$ac_ext <<_ACEOF
26646/* confdefs.h. */
26647_ACEOF
26648cat confdefs.h >>conftest.$ac_ext
26649cat >>conftest.$ac_ext <<_ACEOF
26650/* end confdefs.h. */
b757528f 26651#include <sys/syscall.h>
bec39cab
AC
26652int
26653main ()
26654{
b757528f 26655int i = __NR_tkill;
bec39cab
AC
26656 ;
26657 return 0;
26658}
26659_ACEOF
26660rm -f conftest.$ac_objext
26661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26662 (eval $ac_compile) 2>conftest.er1
26663 ac_status=$?
26664 grep -v '^ *+' conftest.er1 >conftest.err
26665 rm -f conftest.er1
26666 cat conftest.err >&5
26667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26668 (exit $ac_status); } &&
b4e70030
JB
26669 { ac_try='test -z "$ac_c_werror_flag"
26670 || test ! -s conftest.err'
bec39cab
AC
26671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26672 (eval $ac_try) 2>&5
26673 ac_status=$?
26674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26675 (exit $ac_status); }; } &&
26676 { ac_try='test -s conftest.$ac_objext'
26677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26678 (eval $ac_try) 2>&5
26679 ac_status=$?
26680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26681 (exit $ac_status); }; }; then
b757528f
JJ
26682 gdb_cv_sys_syscall_h_has_tkill=yes
26683else
bec39cab
AC
26684 echo "$as_me: failed program was:" >&5
26685sed 's/^/| /' conftest.$ac_ext >&5
26686
b4e70030 26687gdb_cv_sys_syscall_h_has_tkill=no
bec39cab 26688
b757528f 26689fi
bec39cab 26690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b757528f 26691
bec39cab 26692fi
b4e70030
JB
26693echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
26694echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
b757528f
JJ
26695fi
26696if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
bec39cab
AC
26697
26698cat >>confdefs.h <<\_ACEOF
b757528f 26699#define HAVE_TKILL_SYSCALL 1
bec39cab 26700_ACEOF
b757528f
JJ
26701
26702fi
26703
fb40c209 26704
bec39cab 26705
b4e70030 26706# Check whether --with-sysroot or --without-sysroot was given.
030292b7 26707if test "${with_sysroot+set}" = set; then
b4e70030
JB
26708 withval="$with_sysroot"
26709
030292b7 26710 case ${with_sysroot} in
715d1656 26711 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
030292b7
DJ
26712 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
26713 esac
26714
26715 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
26716
07abfebf
RS
26717 if test "x$prefix" = xNONE; then
26718 test_prefix=/usr/local
26719 else
26720 test_prefix=$prefix
26721 fi
aa28a74e 26722 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
07abfebf 26723 test_exec_prefix=$test_prefix
030292b7 26724 else
07abfebf 26725 test_exec_prefix=$exec_prefix
030292b7
DJ
26726 fi
26727 case ${TARGET_SYSTEM_ROOT} in
715d1656 26728 "${test_prefix}"|"${test_prefix}/"*|\
07abfebf
RS
26729 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
26730 '${prefix}'|'${prefix}/'*|\
715d1656 26731 '${exec_prefix}'|'${exec_prefix}/'*)
030292b7
DJ
26732 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
26733 TARGET_SYSTEM_ROOT_DEFINE="$t"
26734 ;;
26735 esac
26736
26737else
bec39cab 26738
030292b7
DJ
26739 TARGET_SYSTEM_ROOT=
26740 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
26741
b4e70030 26742fi;
030292b7
DJ
26743
26744
26745
b4e70030 26746# Check whether --enable-werror or --disable-werror was given.
094a342e 26747if test "${enable_werror+set}" = set; then
b4e70030
JB
26748 enableval="$enable_werror"
26749 case "${enableval}" in
094a342e
MK
26750 yes | y) ERROR_ON_WARNING="yes" ;;
26751 no | n) ERROR_ON_WARNING="no" ;;
26752 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
26753echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
26754 { (exit 1); exit 1; }; } ;;
26755 esac
b4e70030 26756fi;
094a342e
MK
26757
26758# Enable -Werror by default when using gcc
26759if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
26760 ERROR_ON_WARNING=yes
26761fi
26762
26763WERROR_CFLAGS=""
26764if test "${ERROR_ON_WARNING}" = yes ; then
26765 WERROR_CFLAGS="-Werror"
26766fi
26767
aa79a185
DJ
26768# The entries after -Wno-pointer-sign are disabled warnings which may
26769# be enabled in the future, which can not currently be used to build
26770# GDB.
26771# NOTE: If you change this list, remember to update
3b851bce 26772# gdb/doc/gdbint.texinfo.
aa79a185
DJ
26773build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
26774-Wformat-nonliteral -Wno-pointer-sign \
58b38ee2 26775-Wno-unused -Wno-switch -Wno-char-subscripts"
a3b362c4 26776
3526781e
DJ
26777# Enable -Wno-format by default when using gcc on mingw since many
26778# GCC versions complain about %I64.
26779case "${host}" in
26780 *-*-mingw32*) build_warnings="$build_warnings -Wno-format" ;;
26781esac
26782
b4e70030 26783# Check whether --enable-build-warnings or --disable-build-warnings was given.
c906108c 26784if test "${enable_build_warnings+set}" = set; then
b4e70030
JB
26785 enableval="$enable_build_warnings"
26786 case "${enableval}" in
c906108c
SS
26787 yes) ;;
26788 no) build_warnings="-w";;
26789 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
26790 build_warnings="${build_warnings} ${t}";;
26791 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
26792 build_warnings="${t} ${build_warnings}";;
26793 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
26794esac
d4f3574e 26795if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
746a987d 26796 echo "Setting compiler warning flags = $build_warnings" 6>&1
c906108c 26797fi
b4e70030 26798fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
3b851bce 26799if test "${enable_gdb_build_warnings+set}" = set; then
b4e70030
JB
26800 enableval="$enable_gdb_build_warnings"
26801 case "${enableval}" in
3b851bce
AC
26802 yes) ;;
26803 no) build_warnings="-w";;
26804 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
26805 build_warnings="${build_warnings} ${t}";;
26806 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
26807 build_warnings="${t} ${build_warnings}";;
26808 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
26809esac
26810if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
26811 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
26812fi
b4e70030 26813fi; WARN_CFLAGS=""
c906108c
SS
26814if test "x${build_warnings}" != x -a "x$GCC" = xyes
26815then
b4e70030
JB
26816 echo "$as_me:$LINENO: checking compiler warning flags" >&5
26817echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
746a987d
AC
26818 # Separate out the -Werror flag as some files just cannot be
26819 # compiled with it enabled.
26820 for w in ${build_warnings}; do
26821 case $w in
26822 -Werr*) WERROR_CFLAGS=-Werror ;;
26823 *) # Check that GCC accepts it
4536bbc6
AC
26824 saved_CFLAGS="$CFLAGS"
26825 CFLAGS="$CFLAGS $w"
bec39cab
AC
26826 cat >conftest.$ac_ext <<_ACEOF
26827/* confdefs.h. */
26828_ACEOF
26829cat confdefs.h >>conftest.$ac_ext
26830cat >>conftest.$ac_ext <<_ACEOF
26831/* end confdefs.h. */
4536bbc6 26832
bec39cab
AC
26833int
26834main ()
26835{
4536bbc6 26836
bec39cab
AC
26837 ;
26838 return 0;
26839}
26840_ACEOF
26841rm -f conftest.$ac_objext
26842if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26843 (eval $ac_compile) 2>conftest.er1
26844 ac_status=$?
26845 grep -v '^ *+' conftest.er1 >conftest.err
26846 rm -f conftest.er1
26847 cat conftest.err >&5
26848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26849 (exit $ac_status); } &&
b4e70030
JB
26850 { ac_try='test -z "$ac_c_werror_flag"
26851 || test ! -s conftest.err'
bec39cab
AC
26852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26853 (eval $ac_try) 2>&5
26854 ac_status=$?
26855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26856 (exit $ac_status); }; } &&
26857 { ac_try='test -s conftest.$ac_objext'
26858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26859 (eval $ac_try) 2>&5
26860 ac_status=$?
26861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26862 (exit $ac_status); }; }; then
4536bbc6
AC
26863 WARN_CFLAGS="${WARN_CFLAGS} $w"
26864else
bec39cab
AC
26865 echo "$as_me: failed program was:" >&5
26866sed 's/^/| /' conftest.$ac_ext >&5
26867
4536bbc6 26868fi
bec39cab 26869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4536bbc6 26870 CFLAGS="$saved_CFLAGS"
746a987d
AC
26871 esac
26872 done
aa79a185
DJ
26873 echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
26874echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
c906108c
SS
26875fi
26876
26877
104c1213 26878
7a292a7a 26879# In the Cygwin environment, we need some additional flags.
b4e70030
JB
26880echo "$as_me:$LINENO: checking for cygwin" >&5
26881echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
bec39cab
AC
26882if test "${gdb_cv_os_cygwin+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. */
7a292a7a
SS
26891
26892#if defined (__CYGWIN__) || defined (__CYGWIN32__)
26893lose
26894#endif
bec39cab 26895_ACEOF
7a292a7a 26896if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 26897 $EGREP "lose" >/dev/null 2>&1; then
7a292a7a
SS
26898 gdb_cv_os_cygwin=yes
26899else
7a292a7a
SS
26900 gdb_cv_os_cygwin=no
26901fi
26902rm -f conftest*
26903
26904fi
b4e70030
JB
26905echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
26906echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
7a292a7a 26907
aff38e61 26908
3eb25fda 26909SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
aff38e61 26910case ${host} in
95cbc983
AC
26911 *go32* ) SER_HARDWIRE=ser-go32.o ;;
26912 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
0ea3f30e 26913 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
aff38e61
AC
26914esac
26915
26916
cd0fc7c3
SS
26917# libreadline needs libuser32.a in a cygwin environment
26918WIN32LIBS=
26919if test x$gdb_cv_os_cygwin = xyes; then
c5394b80
JM
26920 WIN32LIBS="-luser32"
26921 case "${target}" in
26922 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
26923 ;;
26924 esac
cd0fc7c3 26925fi
c906108c 26926
b4505029
MM
26927# The ser-tcp.c module requires sockets.
26928case ${host} in
26929 *mingw32*)
26930
26931cat >>confdefs.h <<\_ACEOF
26932#define USE_WIN32API 1
26933_ACEOF
26934
26935 WIN32LIBS="$WIN32LIBS -lws2_32"
26936 ;;
26937esac
26938
7a292a7a 26939
31d99776
DJ
26940# Add ELF support to GDB, but only if BFD includes ELF support.
26941OLD_CFLAGS=$CFLAGS
26942OLD_LDFLAGS=$LDFLAGS
26943OLD_LIBS=$LIBS
cab58a69 26944CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
31d99776 26945LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
7b3200f9
DJ
26946intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
26947LIBS="$LIBS -lbfd -liberty $intl"
31d99776
DJ
26948echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
26949echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
26950if test "${gdb_cv_var_elf+set}" = set; then
26951 echo $ECHO_N "(cached) $ECHO_C" >&6
26952else
26953 cat >conftest.$ac_ext <<_ACEOF
26954/* confdefs.h. */
26955_ACEOF
26956cat confdefs.h >>conftest.$ac_ext
26957cat >>conftest.$ac_ext <<_ACEOF
26958/* end confdefs.h. */
26959#include <stdlib.h>
26960#include "bfd.h"
26961#include "elf-bfd.h"
26962
26963int
26964main ()
26965{
26966bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
26967 ;
26968 return 0;
26969}
26970_ACEOF
26971rm -f conftest.$ac_objext conftest$ac_exeext
26972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26973 (eval $ac_link) 2>conftest.er1
26974 ac_status=$?
26975 grep -v '^ *+' conftest.er1 >conftest.err
26976 rm -f conftest.er1
26977 cat conftest.err >&5
26978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26979 (exit $ac_status); } &&
26980 { ac_try='test -z "$ac_c_werror_flag"
26981 || test ! -s conftest.err'
26982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26983 (eval $ac_try) 2>&5
26984 ac_status=$?
26985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26986 (exit $ac_status); }; } &&
26987 { ac_try='test -s conftest$ac_exeext'
26988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26989 (eval $ac_try) 2>&5
26990 ac_status=$?
26991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26992 (exit $ac_status); }; }; then
26993 gdb_cv_var_elf=yes
26994else
26995 echo "$as_me: failed program was:" >&5
26996sed 's/^/| /' conftest.$ac_ext >&5
26997
26998gdb_cv_var_elf=no
26999fi
27000rm -f conftest.err conftest.$ac_objext \
27001 conftest$ac_exeext conftest.$ac_ext
27002fi
27003echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
27004echo "${ECHO_T}$gdb_cv_var_elf" >&6
27005if test $gdb_cv_var_elf = yes; then
27006 CONFIG_OBS="$CONFIG_OBS elfread.o"
27007
27008cat >>confdefs.h <<\_ACEOF
27009#define HAVE_ELF 1
27010_ACEOF
27011
27012fi
27013CFLAGS=$OLD_CFLAGS
27014LDFLAGS=$OLD_LDFLAGS
27015LIBS=$OLD_LIBS
27016
121ce6e5
DJ
27017# Add any host-specific objects to GDB.
27018CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
27019
3fc11d3e
JM
27020LIBGUI="../libgui/src/libgui.a"
27021GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
27022
27023
7a292a7a 27024
3fc11d3e
JM
27025WIN32LDAPP=
27026
27027
27028
d91670b9 27029case "${host}" in
686a5eed 27030*-*-cygwin* | *-*-mingw* )
d91670b9
CV
27031 configdir="win"
27032 ;;
27033*)
27034 configdir="unix"
27035 ;;
27036esac
3fc11d3e
JM
27037
27038GDBTKLIBS=
27039if test "${enable_gdbtk}" = "yes"; then
27040
d1c3b63a
KS
27041 # Gdbtk must have an absolute path to srcdir in order to run
27042 # properly when not installed.
27043 here=`pwd`
27044 cd ${srcdir}
27045 GDBTK_SRC_DIR=`pwd`
27046 cd $here
27047
bec39cab 27048
3fc11d3e
JM
27049#
27050# Ok, lets find the tcl configuration
bec39cab 27051# First, look for one uninstalled.
3fc11d3e
JM
27052# the alternative search directory is invoked by --with-tclconfig
27053#
27054
27055if test x"${no_tcl}" = x ; then
27056 # we reset no_tcl in case something fails here
27057 no_tcl=true
bec39cab 27058
b4e70030 27059# Check whether --with-tclconfig or --without-tclconfig was given.
3fc11d3e 27060if test "${with_tclconfig+set}" = set; then
b4e70030
JB
27061 withval="$with_tclconfig"
27062 with_tclconfig=${withval}
27063fi;
27064 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
27065echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
bec39cab
AC
27066 if test "${ac_cv_c_tclconfig+set}" = set; then
27067 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 27068else
bec39cab 27069
3fc11d3e
JM
27070
27071 # First check to see if --with-tclconfig was specified.
27072 if test x"${with_tclconfig}" != x ; then
27073 if test -f "${with_tclconfig}/tclConfig.sh" ; then
27074 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
27075 else
bec39cab
AC
27076 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
27077echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
27078 { (exit 1); exit 1; }; }
3fc11d3e
JM
27079 fi
27080 fi
27081
27082 # then check for a private Tcl installation
27083 if test x"${ac_cv_c_tclconfig}" = x ; then
27084 for i in \
27085 ../tcl \
27086 `ls -dr ../tcl[7-9]* 2>/dev/null` \
27087 ../../tcl \
27088 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
27089 ../../../tcl \
27090 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
27091 if test -f "$i/${configdir}/tclConfig.sh" ; then
27092 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
27093 break
27094 fi
27095 done
27096 fi
27097 # check in a few common install locations
27098 if test x"${ac_cv_c_tclconfig}" = x ; then
27099 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
27100 if test -f "$i/tclConfig.sh" ; then
27101 ac_cv_c_tclconfig=`(cd $i; pwd)`
27102 break
27103 fi
27104 done
27105 fi
27106 # check in a few other private locations
27107 if test x"${ac_cv_c_tclconfig}" = x ; then
27108 for i in \
27109 ${srcdir}/../tcl \
27110 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
27111 if test -f "$i/${configdir}/tclConfig.sh" ; then
27112 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
27113 break
27114 fi
27115 done
27116 fi
bec39cab 27117
3fc11d3e
JM
27118fi
27119
27120 if test x"${ac_cv_c_tclconfig}" = x ; then
27121 TCLCONFIG="# no Tcl configs found"
bec39cab
AC
27122 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
27123echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
3fc11d3e
JM
27124 else
27125 no_tcl=
27126 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
b4e70030
JB
27127 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
27128echo "${ECHO_T}found $TCLCONFIG" >&6
3fc11d3e
JM
27129 fi
27130fi
27131
27132 if test -z "${no_tcl}"; then
bec39cab 27133
3fc11d3e
JM
27134 . $TCLCONFIG
27135
3fc11d3e
JM
27136
27137
27138
27139
3fc11d3e
JM
27140
27141
27142
bec39cab
AC
27143
27144
27145
27146
27147
27148
27149
27150
27151
27152
27153
27154
27155
27156
27157
27158
27159
27160
27161
3fc11d3e
JM
27162#
27163# Ok, lets find the tk configuration
bec39cab 27164# First, look for one uninstalled.
3fc11d3e
JM
27165# the alternative search directory is invoked by --with-tkconfig
27166#
27167
27168if test x"${no_tk}" = x ; then
27169 # we reset no_tk in case something fails here
27170 no_tk=true
bec39cab 27171
b4e70030 27172# Check whether --with-tkconfig or --without-tkconfig was given.
3fc11d3e 27173if test "${with_tkconfig+set}" = set; then
b4e70030
JB
27174 withval="$with_tkconfig"
27175 with_tkconfig=${withval}
27176fi;
27177 echo "$as_me:$LINENO: checking for Tk configuration" >&5
27178echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
bec39cab
AC
27179 if test "${ac_cv_c_tkconfig+set}" = set; then
27180 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 27181else
bec39cab 27182
3fc11d3e
JM
27183
27184 # First check to see if --with-tkconfig was specified.
27185 if test x"${with_tkconfig}" != x ; then
27186 if test -f "${with_tkconfig}/tkConfig.sh" ; then
27187 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
27188 else
bec39cab
AC
27189 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
27190echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
27191 { (exit 1); exit 1; }; }
3fc11d3e
JM
27192 fi
27193 fi
27194
27195 # then check for a private Tk library
27196 if test x"${ac_cv_c_tkconfig}" = x ; then
27197 for i in \
27198 ../tk \
27199 `ls -dr ../tk[4-9]* 2>/dev/null` \
27200 ../../tk \
27201 `ls -dr ../../tk[4-9]* 2>/dev/null` \
27202 ../../../tk \
27203 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
27204 if test -f "$i/${configdir}/tkConfig.sh" ; then
27205 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
27206 break
27207 fi
27208 done
27209 fi
27210 # check in a few common install locations
27211 if test x"${ac_cv_c_tkconfig}" = x ; then
27212 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
27213 if test -f "$i/tkConfig.sh" ; then
27214 ac_cv_c_tkconfig=`(cd $i; pwd)`
27215 break
27216 fi
27217 done
27218 fi
27219 # check in a few other private locations
27220 if test x"${ac_cv_c_tkconfig}" = x ; then
27221 for i in \
27222 ${srcdir}/../tk \
27223 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
27224 if test -f "$i/${configdir}/tkConfig.sh" ; then
27225 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
27226 break
27227 fi
27228 done
27229 fi
bec39cab 27230
3fc11d3e
JM
27231fi
27232
27233 if test x"${ac_cv_c_tkconfig}" = x ; then
27234 TKCONFIG="# no Tk configs found"
bec39cab
AC
27235 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
27236echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
3fc11d3e
JM
27237 else
27238 no_tk=
27239 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
b4e70030
JB
27240 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
27241echo "${ECHO_T}found $TKCONFIG" >&6
3fc11d3e
JM
27242 fi
27243fi
27244
27245
27246
dd2504ab
JM
27247 # now look for Tcl library stuff
27248
d91670b9 27249 tcldir="../tcl/${configdir}/"
dd2504ab
JM
27250
27251 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
27252
3fc11d3e
JM
27253 # If $no_tk is nonempty, then we can't do Tk, and there is no
27254 # point to doing Tcl.
27255 if test -z "${no_tk}"; then
bec39cab 27256
3fc11d3e
JM
27257 if test -f "$TKCONFIG" ; then
27258 . $TKCONFIG
27259 fi
27260
3fc11d3e 27261
3fc11d3e
JM
27262
27263
3fc11d3e 27264
bec39cab
AC
27265
27266
27267
27268
27269
27270
27271
27272
27273
3fc11d3e
JM
27274#
27275# Ok, lets find the tcl source trees so we can use the headers
27276# Warning: transition of version 9 to 10 will break this algorithm
27277# because 10 sorts before 9. We also look for just tcl. We have to
27278# be careful that we don't match stuff like tclX by accident.
27279# the alternative search directory is involked by --with-tclinclude
27280#
27281
27282no_tcl=true
b4e70030
JB
27283echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
27284echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
bec39cab 27285
b4e70030 27286# Check whether --with-tclinclude or --without-tclinclude was given.
3fc11d3e 27287if test "${with_tclinclude+set}" = set; then
b4e70030
JB
27288 withval="$with_tclinclude"
27289 with_tclinclude=${withval}
27290fi;
bec39cab
AC
27291if test "${ac_cv_c_tclh+set}" = set; then
27292 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 27293else
bec39cab 27294
3fc11d3e
JM
27295# first check to see if --with-tclinclude was specified
27296if test x"${with_tclinclude}" != x ; then
27297 if test -f ${with_tclinclude}/tclInt.h ; then
27298 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
27299 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
27300 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
27301 else
bec39cab
AC
27302 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
27303echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
27304 { (exit 1); exit 1; }; }
3fc11d3e
JM
27305 fi
27306fi
27307
27308# next check if it came with Tcl configuration file
27309if test x"${ac_cv_c_tclconfig}" = x ; then
27310 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
27311 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
27312 fi
27313fi
27314
27315# next check in private source directory
27316#
27317# since ls returns lowest version numbers first, reverse its output
27318if test x"${ac_cv_c_tclh}" = x ; then
27319 for i in \
27320 ${srcdir}/../tcl \
27321 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
27322 ${srcdir}/../../tcl \
27323 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
27324 ${srcdir}/../../../tcl \
27325 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
27326 if test -f $i/generic/tclInt.h ; then
27327 ac_cv_c_tclh=`(cd $i/generic; pwd)`
27328 break
27329 fi
27330 done
27331fi
27332# finally check in a few common install locations
27333#
27334# since ls returns lowest version numbers first, reverse its output
27335if test x"${ac_cv_c_tclh}" = x ; then
27336 for i in \
27337 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
27338 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
27339 /usr/local/src/tcl \
27340 /usr/local/lib/tcl \
27341 ${prefix}/include ; do
27342 if test -f $i/generic/tclInt.h ; then
27343 ac_cv_c_tclh=`(cd $i/generic; pwd)`
27344 break
27345 fi
27346 done
27347fi
27348# see if one is installed
27349if test x"${ac_cv_c_tclh}" = x ; then
bec39cab 27350 if test "${ac_cv_header_tclInt_h+set}" = set; then
b4e70030
JB
27351 echo "$as_me:$LINENO: checking for tclInt.h" >&5
27352echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
bec39cab
AC
27353if test "${ac_cv_header_tclInt_h+set}" = set; then
27354 echo $ECHO_N "(cached) $ECHO_C" >&6
27355fi
b4e70030
JB
27356echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
27357echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
bec39cab
AC
27358else
27359 # Is the header compilable?
b4e70030
JB
27360echo "$as_me:$LINENO: checking tclInt.h usability" >&5
27361echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
bec39cab
AC
27362cat >conftest.$ac_ext <<_ACEOF
27363/* confdefs.h. */
27364_ACEOF
27365cat confdefs.h >>conftest.$ac_ext
27366cat >>conftest.$ac_ext <<_ACEOF
27367/* end confdefs.h. */
27368$ac_includes_default
27369#include <tclInt.h>
27370_ACEOF
27371rm -f conftest.$ac_objext
27372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27373 (eval $ac_compile) 2>conftest.er1
27374 ac_status=$?
27375 grep -v '^ *+' conftest.er1 >conftest.err
27376 rm -f conftest.er1
27377 cat conftest.err >&5
27378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27379 (exit $ac_status); } &&
b4e70030
JB
27380 { ac_try='test -z "$ac_c_werror_flag"
27381 || test ! -s conftest.err'
bec39cab
AC
27382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27383 (eval $ac_try) 2>&5
27384 ac_status=$?
27385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27386 (exit $ac_status); }; } &&
27387 { ac_try='test -s conftest.$ac_objext'
27388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27389 (eval $ac_try) 2>&5
27390 ac_status=$?
27391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27392 (exit $ac_status); }; }; then
27393 ac_header_compiler=yes
27394else
27395 echo "$as_me: failed program was:" >&5
27396sed 's/^/| /' conftest.$ac_ext >&5
27397
b4e70030 27398ac_header_compiler=no
bec39cab
AC
27399fi
27400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
27401echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27402echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
27403
27404# Is the header present?
b4e70030
JB
27405echo "$as_me:$LINENO: checking tclInt.h presence" >&5
27406echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
bec39cab
AC
27407cat >conftest.$ac_ext <<_ACEOF
27408/* confdefs.h. */
27409_ACEOF
27410cat confdefs.h >>conftest.$ac_ext
27411cat >>conftest.$ac_ext <<_ACEOF
27412/* end confdefs.h. */
3fc11d3e 27413#include <tclInt.h>
bec39cab
AC
27414_ACEOF
27415if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27416 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27417 ac_status=$?
27418 grep -v '^ *+' conftest.er1 >conftest.err
27419 rm -f conftest.er1
27420 cat conftest.err >&5
27421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27422 (exit $ac_status); } >/dev/null; then
27423 if test -s conftest.err; then
27424 ac_cpp_err=$ac_c_preproc_warn_flag
27425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27426 else
27427 ac_cpp_err=
27428 fi
27429else
27430 ac_cpp_err=yes
3fc11d3e 27431fi
bec39cab
AC
27432if test -z "$ac_cpp_err"; then
27433 ac_header_preproc=yes
27434else
27435 echo "$as_me: failed program was:" >&5
27436sed 's/^/| /' conftest.$ac_ext >&5
27437
27438 ac_header_preproc=no
3fc11d3e 27439fi
bec39cab 27440rm -f conftest.err conftest.$ac_ext
b4e70030
JB
27441echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27442echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
27443
27444# So? What about this header?
27445case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27446 yes:no: )
27447 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
27448echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27449 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
27450echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
27451 ac_header_preproc=yes
27452 ;;
27453 no:yes:* )
27454 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
27455echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
27456 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
27457echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
27458 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
27459echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
27460 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
27461echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
27462 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
27463echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
27464 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
27465echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
27466 (
27467 cat <<\_ASBOX
27468## ------------------------------------------ ##
27469## Report this to the AC_PACKAGE_NAME lists. ##
27470## ------------------------------------------ ##
27471_ASBOX
27472 ) |
27473 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
27474 ;;
27475esac
b4e70030
JB
27476echo "$as_me:$LINENO: checking for tclInt.h" >&5
27477echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
bec39cab
AC
27478if test "${ac_cv_header_tclInt_h+set}" = set; then
27479 echo $ECHO_N "(cached) $ECHO_C" >&6
27480else
27481 ac_cv_header_tclInt_h=$ac_header_preproc
27482fi
b4e70030
JB
27483echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
27484echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
bec39cab
AC
27485
27486fi
27487if test $ac_cv_header_tclInt_h = yes; then
3fc11d3e
JM
27488 ac_cv_c_tclh=installed
27489else
bec39cab 27490 ac_cv_c_tclh=""
3fc11d3e
JM
27491fi
27492
bec39cab 27493
3fc11d3e
JM
27494fi
27495
27496fi
27497
27498if test x"${ac_cv_c_tclh}" = x ; then
27499 TCLHDIR="# no Tcl private headers found"
bec39cab
AC
27500 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
27501echo "$as_me: error: Can't find Tcl private headers" >&2;}
27502 { (exit 1); exit 1; }; }
3fc11d3e
JM
27503fi
27504if test x"${ac_cv_c_tclh}" != x ; then
27505 no_tcl=""
27506 if test x"${ac_cv_c_tclh}" = x"installed" ; then
b4e70030
JB
27507 echo "$as_me:$LINENO: result: is installed" >&5
27508echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
27509 TCLHDIR=""
27510 else
b4e70030
JB
27511 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
27512echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
3fc11d3e
JM
27513 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
27514 TCLHDIR="-I${ac_cv_c_tclh}"
27515 fi
27516fi
27517
27518
27519
bec39cab 27520
3fc11d3e
JM
27521#
27522# Ok, lets find the tk source trees so we can use the headers
27523# If the directory (presumably symlink) named "tk" exists, use that one
27524# in preference to any others. Same logic is used when choosing library
27525# and again with Tcl. The search order is the best place to look first, then in
27526# decreasing significance. The loop breaks if the trigger file is found.
27527# Note the gross little conversion here of srcdir by cd'ing to the found
27528# directory. This converts the path from a relative to an absolute, so
27529# recursive cache variables for the path will work right. We check all
27530# the possible paths in one loop rather than many seperate loops to speed
27531# things up.
27532# the alternative search directory is involked by --with-tkinclude
27533#
27534no_tk=true
b4e70030
JB
27535echo "$as_me:$LINENO: checking for Tk private headers" >&5
27536echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
bec39cab 27537
b4e70030 27538# Check whether --with-tkinclude or --without-tkinclude was given.
3fc11d3e 27539if test "${with_tkinclude+set}" = set; then
b4e70030
JB
27540 withval="$with_tkinclude"
27541 with_tkinclude=${withval}
27542fi;
bec39cab
AC
27543if test "${ac_cv_c_tkh+set}" = set; then
27544 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 27545else
bec39cab 27546
3fc11d3e
JM
27547# first check to see if --with-tkinclude was specified
27548if test x"${with_tkinclude}" != x ; then
27549 if test -f ${with_tkinclude}/tk.h ; then
27550 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
27551 elif test -f ${with_tkinclude}/generic/tk.h ; then
27552 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
27553 else
bec39cab
AC
27554 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
27555echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
27556 { (exit 1); exit 1; }; }
3fc11d3e
JM
27557 fi
27558fi
27559
27560# next check if it came with Tk configuration file
27561if test x"${ac_cv_c_tkconfig}" = x ; then
27562 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
27563 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
27564 fi
27565fi
27566
27567# next check in private source directory
27568#
27569# since ls returns lowest version numbers first, reverse its output
27570if test x"${ac_cv_c_tkh}" = x ; then
27571 for i in \
27572 ${srcdir}/../tk \
27573 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
27574 ${srcdir}/../../tk \
27575 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
27576 ${srcdir}/../../../tk \
27577 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
27578 if test -f $i/generic/tk.h ; then
27579 ac_cv_c_tkh=`(cd $i/generic; pwd)`
27580 break
27581 fi
27582 done
27583fi
27584# finally check in a few common install locations
27585#
27586# since ls returns lowest version numbers first, reverse its output
27587if test x"${ac_cv_c_tkh}" = x ; then
27588 for i in \
27589 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
27590 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
27591 /usr/local/src/tk \
27592 /usr/local/lib/tk \
27593 ${prefix}/include ; do
27594 if test -f $i/generic/tk.h ; then
27595 ac_cv_c_tkh=`(cd $i/generic; pwd)`
27596 break
27597 fi
27598 done
27599fi
27600# see if one is installed
27601if test x"${ac_cv_c_tkh}" = x ; then
bec39cab 27602 if test "${ac_cv_header_tk_h+set}" = set; then
b4e70030
JB
27603 echo "$as_me:$LINENO: checking for tk.h" >&5
27604echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
bec39cab
AC
27605if test "${ac_cv_header_tk_h+set}" = set; then
27606 echo $ECHO_N "(cached) $ECHO_C" >&6
27607fi
b4e70030
JB
27608echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
27609echo "${ECHO_T}$ac_cv_header_tk_h" >&6
bec39cab
AC
27610else
27611 # Is the header compilable?
b4e70030
JB
27612echo "$as_me:$LINENO: checking tk.h usability" >&5
27613echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
bec39cab
AC
27614cat >conftest.$ac_ext <<_ACEOF
27615/* confdefs.h. */
27616_ACEOF
27617cat confdefs.h >>conftest.$ac_ext
27618cat >>conftest.$ac_ext <<_ACEOF
27619/* end confdefs.h. */
27620$ac_includes_default
3fc11d3e 27621#include <tk.h>
bec39cab
AC
27622_ACEOF
27623rm -f conftest.$ac_objext
27624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27625 (eval $ac_compile) 2>conftest.er1
27626 ac_status=$?
27627 grep -v '^ *+' conftest.er1 >conftest.err
27628 rm -f conftest.er1
27629 cat conftest.err >&5
27630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27631 (exit $ac_status); } &&
b4e70030
JB
27632 { ac_try='test -z "$ac_c_werror_flag"
27633 || test ! -s conftest.err'
bec39cab
AC
27634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27635 (eval $ac_try) 2>&5
27636 ac_status=$?
27637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27638 (exit $ac_status); }; } &&
27639 { ac_try='test -s conftest.$ac_objext'
27640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27641 (eval $ac_try) 2>&5
27642 ac_status=$?
27643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27644 (exit $ac_status); }; }; then
27645 ac_header_compiler=yes
27646else
27647 echo "$as_me: failed program was:" >&5
27648sed 's/^/| /' conftest.$ac_ext >&5
27649
b4e70030 27650ac_header_compiler=no
bec39cab
AC
27651fi
27652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
27653echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27654echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
27655
27656# Is the header present?
b4e70030
JB
27657echo "$as_me:$LINENO: checking tk.h presence" >&5
27658echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
bec39cab
AC
27659cat >conftest.$ac_ext <<_ACEOF
27660/* confdefs.h. */
27661_ACEOF
27662cat confdefs.h >>conftest.$ac_ext
27663cat >>conftest.$ac_ext <<_ACEOF
27664/* end confdefs.h. */
27665#include <tk.h>
27666_ACEOF
27667if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27668 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27669 ac_status=$?
27670 grep -v '^ *+' conftest.er1 >conftest.err
27671 rm -f conftest.er1
27672 cat conftest.err >&5
27673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27674 (exit $ac_status); } >/dev/null; then
27675 if test -s conftest.err; then
27676 ac_cpp_err=$ac_c_preproc_warn_flag
27677 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27678 else
27679 ac_cpp_err=
27680 fi
27681else
27682 ac_cpp_err=yes
3fc11d3e 27683fi
bec39cab
AC
27684if test -z "$ac_cpp_err"; then
27685 ac_header_preproc=yes
27686else
27687 echo "$as_me: failed program was:" >&5
27688sed 's/^/| /' conftest.$ac_ext >&5
27689
27690 ac_header_preproc=no
27691fi
27692rm -f conftest.err conftest.$ac_ext
b4e70030
JB
27693echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27694echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
27695
27696# So? What about this header?
27697case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27698 yes:no: )
27699 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
27700echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
27701 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
27702echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
27703 ac_header_preproc=yes
27704 ;;
27705 no:yes:* )
27706 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
27707echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
27708 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
27709echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
27710 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
27711echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
27712 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
27713echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
27714 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
27715echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
27716 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
27717echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
27718 (
27719 cat <<\_ASBOX
27720## ------------------------------------------ ##
27721## Report this to the AC_PACKAGE_NAME lists. ##
27722## ------------------------------------------ ##
27723_ASBOX
27724 ) |
27725 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
27726 ;;
27727esac
b4e70030
JB
27728echo "$as_me:$LINENO: checking for tk.h" >&5
27729echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
bec39cab
AC
27730if test "${ac_cv_header_tk_h+set}" = set; then
27731 echo $ECHO_N "(cached) $ECHO_C" >&6
27732else
27733 ac_cv_header_tk_h=$ac_header_preproc
27734fi
b4e70030
JB
27735echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
27736echo "${ECHO_T}$ac_cv_header_tk_h" >&6
bec39cab 27737
3fc11d3e 27738fi
bec39cab 27739if test $ac_cv_header_tk_h = yes; then
3fc11d3e
JM
27740 ac_cv_c_tkh=installed
27741else
bec39cab 27742 ac_cv_c_tkh=""
3fc11d3e
JM
27743fi
27744
bec39cab 27745
3fc11d3e
JM
27746fi
27747
27748fi
27749
27750if test x"${ac_cv_c_tkh}" != x ; then
27751 no_tk=""
27752 if test x"${ac_cv_c_tkh}" = x"installed" ; then
b4e70030
JB
27753 echo "$as_me:$LINENO: result: is installed" >&5
27754echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
27755 TKHDIR=""
27756 else
b4e70030
JB
27757 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
27758echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
3fc11d3e
JM
27759 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
27760 TKHDIR="-I${ac_cv_c_tkh}"
27761 fi
27762else
27763 TKHDIR="# no Tk directory found"
bec39cab
AC
27764 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
27765echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
3fc11d3e
JM
27766 no_tk=true
27767fi
27768
27769
27770
bec39cab 27771
b4e70030
JB
27772echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
27773echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
27774if test x"${ac_cv_c_itclh}" = x ; then
27775 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
27776 if test -f $i/generic/itcl.h ; then
27777 ac_cv_c_itclh=`(cd $i/generic; pwd)`
27778 break
27779 fi
27780 done
27781fi
27782if test x"${ac_cv_c_itclh}" = x ; then
27783 ITCLHDIR="# no Itcl private headers found"
bec39cab
AC
27784 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
27785echo "$as_me: error: Can't find Itcl private headers" >&2;}
27786 { (exit 1); exit 1; }; }
3fc11d3e
JM
27787fi
27788if test x"${ac_cv_c_itclh}" != x ; then
27789 ITCLHDIR="-I${ac_cv_c_itclh}"
27790fi
27791# should always be here
27792# ITCLLIB="../itcl/itcl/unix/libitcl.a"
27793
27794#AC_SUBST(ITCLLIB)
27795
bec39cab 27796
b4e70030
JB
27797echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
27798echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
27799if test x"${ac_cv_c_itkh}" = x ; then
27800 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
27801 if test -f $i/generic/itk.h ; then
27802 ac_cv_c_itkh=`(cd $i/generic; pwd)`
27803 break
27804 fi
27805 done
27806fi
27807if test x"${ac_cv_c_itkh}" = x ; then
27808 ITKHDIR="# no Itk private headers found"
bec39cab
AC
27809 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
27810echo "$as_me: error: Can't find Itk private headers" >&2;}
27811 { (exit 1); exit 1; }; }
3fc11d3e
JM
27812fi
27813if test x"${ac_cv_c_itkh}" != x ; then
27814 ITKHDIR="-I${ac_cv_c_itkh}"
27815fi
27816# should always be here
27817# ITKLIB="../itcl/itk/unix/libitk.a"
27818
27819#AC_SUBST(ITKLIB)
27820
3fc11d3e 27821
dd2504ab
JM
27822
27823 # now look for Tk library stuff
27824
d91670b9 27825 tkdir="../tk/${configdir}/"
dd2504ab
JM
27826
27827 TK_DEPS="${tkdir}${TK_LIB_FILE}"
27828
3fc11d3e
JM
27829 # now look for Itcl library stuff
27830
bec39cab 27831
3fc11d3e
JM
27832#
27833# Ok, lets find the itcl configuration
bec39cab 27834# First, look for one uninstalled.
3fc11d3e
JM
27835# the alternative search directory is invoked by --with-itclconfig
27836#
27837
27838if test x"${no_itcl}" = x ; then
27839 # we reset no_itcl in case something fails here
27840 no_itcl=true
bec39cab 27841
b4e70030 27842# Check whether --with-itclconfig or --without-itclconfig was given.
3fc11d3e 27843if test "${with_itclconfig+set}" = set; then
b4e70030
JB
27844 withval="$with_itclconfig"
27845 with_itclconfig=${withval}
27846fi;
27847 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
27848echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
bec39cab
AC
27849 if test "${ac_cv_c_itclconfig+set}" = set; then
27850 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 27851else
bec39cab 27852
3fc11d3e
JM
27853
27854 # First check to see if --with-itclconfig was specified.
27855 if test x"${with_itclconfig}" != x ; then
27856 if test -f "${with_itclconfig}/itclConfig.sh" ; then
27857 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
27858 else
bec39cab
AC
27859 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
27860echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
27861 { (exit 1); exit 1; }; }
3fc11d3e
JM
27862 fi
27863 fi
27864
27865 # then check for a private Itcl library
27866 if test x"${ac_cv_c_itclconfig}" = x ; then
27867 for i in \
27868 ../itcl/itcl \
27869 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
27870 ../../itcl \
27871 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
27872 ../../../itcl \
27873 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
27874 if test -f "$i/itclConfig.sh" ; then
27875 ac_cv_c_itclconfig=`(cd $i; pwd)`
27876 break
27877 fi
27878 done
27879 fi
27880 # check in a few common install locations
27881 if test x"${ac_cv_c_itclconfig}" = x ; then
27882 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
27883 if test -f "$i/itclConfig.sh" ; then
27884 ac_cv_c_itclconfig=`(cd $i; pwd)`
27885 break
27886 fi
27887 done
27888 fi
27889 # check in a few other private locations
27890 if test x"${ac_cv_c_itclconfig}" = x ; then
27891 for i in \
27892 ${srcdir}/../itcl/itcl \
27893 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
27894 if test -f "$i/itclConfig.sh" ; then
27895 ac_cv_c_itclconfig=`(cd $i; pwd)`
27896 break
27897 fi
27898 done
27899 fi
bec39cab 27900
3fc11d3e
JM
27901fi
27902
27903 if test x"${ac_cv_c_itclconfig}" = x ; then
27904 ITCLCONFIG="# no Itcl configs found"
bec39cab
AC
27905 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
27906echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
3fc11d3e
JM
27907 else
27908 no_itcl=
27909 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
b4e70030
JB
27910 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
27911echo "${ECHO_T}found $ITCLCONFIG" >&6
3fc11d3e
JM
27912 fi
27913fi
27914
27915 if test -z "${no_itcl}"; then
bec39cab 27916
3fc11d3e
JM
27917 if test -f "$ITCLCONFIG" ; then
27918 . $ITCLCONFIG
27919 fi
27920
3fc11d3e 27921
3fc11d3e
JM
27922
27923
bec39cab
AC
27924
27925
27926
27927
27928
27929
27930
3fc11d3e
JM
27931
27932 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
b381d62d 27933 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
3fc11d3e
JM
27934 fi
27935
bec39cab 27936
3fc11d3e 27937 # now look for Itk library stuff
bec39cab 27938
3fc11d3e
JM
27939#
27940# Ok, lets find the itk configuration
bec39cab 27941# First, look for one uninstalled.
3fc11d3e
JM
27942# the alternative search directory is invoked by --with-itkconfig
27943#
27944
27945if test x"${no_itk}" = x ; then
27946 # we reset no_itk in case something fails here
27947 no_itk=true
bec39cab 27948
b4e70030 27949# Check whether --with-itkconfig or --without-itkconfig was given.
3fc11d3e 27950if test "${with_itkconfig+set}" = set; then
b4e70030
JB
27951 withval="$with_itkconfig"
27952 with_itkconfig=${withval}
27953fi;
27954 echo "$as_me:$LINENO: checking for Itk configuration" >&5
27955echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
bec39cab
AC
27956 if test "${ac_cv_c_itkconfig+set}" = set; then
27957 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 27958else
bec39cab 27959
3fc11d3e
JM
27960
27961 # First check to see if --with-itkconfig was specified.
27962 if test x"${with_itkconfig}" != x ; then
27963 if test -f "${with_itkconfig}/itkConfig.sh" ; then
27964 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
27965 else
bec39cab
AC
27966 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
27967echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
27968 { (exit 1); exit 1; }; }
3fc11d3e
JM
27969 fi
27970 fi
27971
27972 # then check for a private Itk library
27973 if test x"${ac_cv_c_itkconfig}" = x ; then
27974 for i in \
27975 ../itcl/itk \
27976 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
27977 ../../itk \
27978 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
27979 ../../../itk \
27980 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
27981 if test -f "$i/itkConfig.sh" ; then
27982 ac_cv_c_itkconfig=`(cd $i; pwd)`
27983 break
27984 fi
27985 done
27986 fi
27987 # check in a few common install locations
27988 if test x"${ac_cv_c_itkconfig}" = x ; then
27989 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
27990 if test -f "$i/itkConfig.sh" ; then
27991 ac_cv_c_itkconfig=`(cd $i; pwd)`
27992 break
27993 fi
27994 done
27995 fi
27996 # check in a few other private locations
27997 if test x"${ac_cv_c_itkconfig}" = x ; then
27998 for i in \
27999 ${srcdir}/../itcl/itk \
28000 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
28001 if test -f "$i/itkConfig.sh" ; then
28002 ac_cv_c_itkconfig=`(cd $i; pwd)`
28003 break
28004 fi
28005 done
28006 fi
bec39cab 28007
3fc11d3e
JM
28008fi
28009
28010 if test x"${ac_cv_c_itkconfig}" = x ; then
28011 ITKCONFIG="# no Itk configs found"
bec39cab
AC
28012 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
28013echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
3fc11d3e
JM
28014 else
28015 no_itk=
28016 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
b4e70030
JB
28017 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
28018echo "${ECHO_T}found $ITKCONFIG" >&6
3fc11d3e
JM
28019 fi
28020fi
28021
28022
bec39cab
AC
28023 if test -z "${no_itcl}"; then
28024
28025 if test -f "$ITKCONFIG" ; then
28026 . $ITKCONFIG
28027 fi
28028
28029
28030
28031
28032
28033
3fc11d3e 28034
3fc11d3e 28035
3fc11d3e
JM
28036
28037
3fc11d3e
JM
28038
28039
3fc11d3e 28040 ITKLIB="${ITK_BUILD_LIB_SPEC}"
b381d62d 28041 ITK_DEPS="${ITK_LIB_FULL_PATH}"
3fc11d3e
JM
28042 fi
28043
4226a5a5 28044 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
3fc11d3e
JM
28045
28046 # Include some libraries that Tcl and Tk want.
b2a1bd4f 28047 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
3fc11d3e
JM
28048 # Yes, the ordering seems wrong here. But it isn't.
28049 # TK_LIBS is the list of libraries that need to be linked
28050 # after Tcl/Tk. Note that this isn't put into LIBS. If it
28051 # were in LIBS then any link tests after this point would
28052 # try to include things like `$(LIBGUI)', which wouldn't work.
28053 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
4226a5a5
FN
28054
28055 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
28056 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
28057 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
33f8ca73
AC
28058 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
28059 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
28060 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
28061 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
3fc11d3e
JM
28062
28063 if test x$gdb_cv_os_cygwin = xyes; then
28064 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
28065 WIN32LDAPP="-Wl,--subsystem,console"
28066 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
28067 fi
28068 fi
28069 fi
ffc6a242 28070
b4e70030
JB
28071
28072
28073subdirs="$subdirs gdbtk"
3ace7edb 28074
3fc11d3e
JM
28075fi
28076
28077
28078
28079
28080
28081
28082
28083
28084
28085
28086
28087
28088
dd2504ab 28089
b4e70030
JB
28090echo "$as_me:$LINENO: checking for X" >&5
28091echo $ECHO_N "checking for X... $ECHO_C" >&6
bec39cab 28092
c906108c 28093
b4e70030 28094# Check whether --with-x or --without-x was given.
c906108c 28095if test "${with_x+set}" = set; then
b4e70030 28096 withval="$with_x"
c906108c 28097
b4e70030 28098fi;
c906108c
SS
28099# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
28100if test "x$with_x" = xno; then
28101 # The user explicitly disabled X.
28102 have_x=disabled
28103else
28104 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
28105 # Both variables are already set.
28106 have_x=yes
28107 else
bec39cab
AC
28108 if test "${ac_cv_have_x+set}" = set; then
28109 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
28110else
28111 # One or both of the vars are not set, and there is no cached value.
bec39cab 28112ac_x_includes=no ac_x_libraries=no
b4e70030 28113rm -fr conftest.dir
bec39cab
AC
28114if mkdir conftest.dir; then
28115 cd conftest.dir
c906108c 28116 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
bec39cab 28117 cat >Imakefile <<'_ACEOF'
c906108c
SS
28118acfindx:
28119 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
bec39cab 28120_ACEOF
b4e70030 28121 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
c906108c
SS
28122 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
28123 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
28124 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
28125 for ac_extension in a so sl; do
28126 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
bec39cab
AC
28127 test -f $ac_im_libdir/libX11.$ac_extension; then
28128 ac_im_usrlibdir=$ac_im_libdir; break
c906108c
SS
28129 fi
28130 done
28131 # Screen out bogus values from the imake configuration. They are
28132 # bogus both because they are the default anyway, and because
28133 # using them would break gcc on systems where it needs fixed includes.
bec39cab 28134 case $ac_im_incroot in
b4e70030 28135 /usr/include) ;;
bec39cab 28136 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
c906108c 28137 esac
bec39cab 28138 case $ac_im_usrlibdir in
c906108c 28139 /usr/lib | /lib) ;;
bec39cab 28140 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
c906108c
SS
28141 esac
28142 fi
28143 cd ..
b4e70030 28144 rm -fr conftest.dir
c906108c
SS
28145fi
28146
bec39cab
AC
28147# Standard set of common directories for X headers.
28148# Check X11 before X11Rn because it is often a symlink to the current release.
28149ac_x_header_dirs='
28150/usr/X11/include
28151/usr/X11R6/include
28152/usr/X11R5/include
28153/usr/X11R4/include
28154
28155/usr/include/X11
28156/usr/include/X11R6
28157/usr/include/X11R5
28158/usr/include/X11R4
28159
28160/usr/local/X11/include
28161/usr/local/X11R6/include
28162/usr/local/X11R5/include
28163/usr/local/X11R4/include
28164
28165/usr/local/include/X11
28166/usr/local/include/X11R6
28167/usr/local/include/X11R5
28168/usr/local/include/X11R4
28169
28170/usr/X386/include
28171/usr/x386/include
28172/usr/XFree86/include/X11
28173
28174/usr/include
28175/usr/local/include
28176/usr/unsupported/include
28177/usr/athena/include
28178/usr/local/x11r5/include
28179/usr/lpp/Xamples/include
28180
28181/usr/openwin/include
28182/usr/openwin/share/include'
28183
28184if test "$ac_x_includes" = no; then
59f80f10 28185 # Guess where to find include files, by looking for Intrinsic.h.
c906108c 28186 # First, try using that file with no special directory specified.
bec39cab
AC
28187 cat >conftest.$ac_ext <<_ACEOF
28188/* confdefs.h. */
28189_ACEOF
28190cat confdefs.h >>conftest.$ac_ext
28191cat >>conftest.$ac_ext <<_ACEOF
28192/* end confdefs.h. */
59f80f10 28193#include <X11/Intrinsic.h>
bec39cab
AC
28194_ACEOF
28195if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28196 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28197 ac_status=$?
28198 grep -v '^ *+' conftest.er1 >conftest.err
28199 rm -f conftest.er1
28200 cat conftest.err >&5
28201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28202 (exit $ac_status); } >/dev/null; then
28203 if test -s conftest.err; then
28204 ac_cpp_err=$ac_c_preproc_warn_flag
28205 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28206 else
28207 ac_cpp_err=
28208 fi
28209else
28210 ac_cpp_err=yes
28211fi
28212if test -z "$ac_cpp_err"; then
c906108c
SS
28213 # We can compile using X headers with no special include directory.
28214ac_x_includes=
28215else
bec39cab
AC
28216 echo "$as_me: failed program was:" >&5
28217sed 's/^/| /' conftest.$ac_ext >&5
28218
28219 for ac_dir in $ac_x_header_dirs; do
59f80f10 28220 if test -r "$ac_dir/X11/Intrinsic.h"; then
bec39cab
AC
28221 ac_x_includes=$ac_dir
28222 break
28223 fi
28224done
c906108c 28225fi
bec39cab
AC
28226rm -f conftest.err conftest.$ac_ext
28227fi # $ac_x_includes = no
c906108c 28228
bec39cab 28229if test "$ac_x_libraries" = no; then
c906108c 28230 # Check for the libraries.
c906108c
SS
28231 # See if we find them without any special options.
28232 # Don't add to $LIBS permanently.
bec39cab 28233 ac_save_LIBS=$LIBS
4e8d927d 28234 LIBS="-lXt $LIBS"
bec39cab
AC
28235 cat >conftest.$ac_ext <<_ACEOF
28236/* confdefs.h. */
28237_ACEOF
28238cat confdefs.h >>conftest.$ac_ext
28239cat >>conftest.$ac_ext <<_ACEOF
28240/* end confdefs.h. */
59f80f10 28241#include <X11/Intrinsic.h>
bec39cab
AC
28242int
28243main ()
28244{
59f80f10 28245XtMalloc (0)
bec39cab
AC
28246 ;
28247 return 0;
28248}
28249_ACEOF
28250rm -f conftest.$ac_objext conftest$ac_exeext
28251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28252 (eval $ac_link) 2>conftest.er1
28253 ac_status=$?
28254 grep -v '^ *+' conftest.er1 >conftest.err
28255 rm -f conftest.er1
28256 cat conftest.err >&5
28257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28258 (exit $ac_status); } &&
b4e70030
JB
28259 { ac_try='test -z "$ac_c_werror_flag"
28260 || test ! -s conftest.err'
bec39cab
AC
28261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28262 (eval $ac_try) 2>&5
28263 ac_status=$?
28264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28265 (exit $ac_status); }; } &&
28266 { ac_try='test -s conftest$ac_exeext'
28267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28268 (eval $ac_try) 2>&5
28269 ac_status=$?
28270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28271 (exit $ac_status); }; }; then
28272 LIBS=$ac_save_LIBS
c906108c
SS
28273# We can link X programs with no special library path.
28274ac_x_libraries=
28275else
bec39cab
AC
28276 echo "$as_me: failed program was:" >&5
28277sed 's/^/| /' conftest.$ac_ext >&5
28278
b4e70030 28279LIBS=$ac_save_LIBS
bec39cab 28280for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
c906108c 28281do
bec39cab 28282 # Don't even attempt the hair of trying to link an X program!
c906108c 28283 for ac_extension in a so sl; do
b4e70030 28284 if test -r $ac_dir/libXt.$ac_extension; then
c906108c
SS
28285 ac_x_libraries=$ac_dir
28286 break 2
28287 fi
28288 done
28289done
28290fi
bec39cab
AC
28291rm -f conftest.err conftest.$ac_objext \
28292 conftest$ac_exeext conftest.$ac_ext
28293fi # $ac_x_libraries = no
c906108c 28294
bec39cab 28295if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
c906108c
SS
28296 # Didn't find X anywhere. Cache the known absence of X.
28297 ac_cv_have_x="have_x=no"
28298else
28299 # Record where we found X for the cache.
28300 ac_cv_have_x="have_x=yes \
bec39cab 28301 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
c906108c
SS
28302fi
28303fi
bec39cab 28304
c906108c
SS
28305 fi
28306 eval "$ac_cv_have_x"
28307fi # $with_x != no
28308
28309if test "$have_x" != yes; then
b4e70030
JB
28310 echo "$as_me:$LINENO: result: $have_x" >&5
28311echo "${ECHO_T}$have_x" >&6
c906108c
SS
28312 no_x=yes
28313else
28314 # If each of the values was on the command line, it overrides each guess.
28315 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
28316 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
28317 # Update the cache value to reflect the command line values.
28318 ac_cv_have_x="have_x=yes \
28319 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
b4e70030
JB
28320 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
28321echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
c906108c
SS
28322fi
28323
28324
9cc52bde
MK
28325# Check whether we should enable the TUI, but only do so if we really
28326# can.
28327if test x"$enable_tui" = xyes; then
28328 if test -d $srcdir/tui; then
28329 if test "$ac_cv_search_waddstr" != no; then
28330 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
28331 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
28332 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
28333 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
28334 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
28335 CONFIG_ALL="${CONFIG_ALL} all-tui"
28336 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
28337 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
28338 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
28339 else
bec39cab
AC
28340 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
28341echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9cc52bde
MK
28342 fi
28343 fi
28344fi
28345
bec39cab 28346# Unlike the sim directory, whether a simulator is linked is controlled by
9b624dbe 28347# presence of a gdb_sim definition in the target configure.tgt entry.
7a292a7a
SS
28348# This code just checks for a few cases where we'd like to ignore those
28349# definitions, even when they're present in the '.mt' file. These cases
28350# are when --disable-sim is specified, or if the simulator directory is
6c5cfe5b 28351# not part of the source tree.
7a292a7a 28352#
b4e70030 28353# Check whether --enable-sim or --disable-sim was given.
7a292a7a 28354if test "${enable_sim+set}" = set; then
b4e70030
JB
28355 enableval="$enable_sim"
28356 echo "enable_sim = $enable_sim";
7a292a7a
SS
28357 echo "enableval = ${enableval}";
28358 case "${enableval}" in
28359 yes) ignore_sim=false ;;
28360 no) ignore_sim=true ;;
28361 *) ignore_sim=false ;;
28362 esac
28363else
28364 ignore_sim=false
b4e70030 28365fi;
7a292a7a
SS
28366
28367if test ! -d "${srcdir}/../sim"; then
28368 ignore_sim=true
28369fi
28370
9b624dbe
UW
28371SIM=
28372SIM_OBS=
28373if test "${ignore_sim}" = "false"; then
28374 if test x"${gdb_sim}" != x ; then
28375 SIM="${gdb_sim}"
28376 SIM_OBS="remote-sim.o"
60ca704f
SE
28377
28378cat >>confdefs.h <<\_ACEOF
7a292a7a 28379#define WITH_SIM 1
bec39cab 28380_ACEOF
7a292a7a 28381
9b624dbe 28382 fi
7a292a7a
SS
28383fi
28384
28385
28386
c906108c
SS
28387
28388
28389
28390
28391
28392
dfcd3bfb 28393
e56ac5c3
AC
28394
28395
b3a90332
AC
28396
28397
c35f4ffc 28398# List of host floatformats.
bec39cab
AC
28399
28400cat >>confdefs.h <<_ACEOF
c35f4ffc 28401#define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
bec39cab 28402_ACEOF
c35f4ffc 28403
bec39cab
AC
28404
28405cat >>confdefs.h <<_ACEOF
c35f4ffc 28406#define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
bec39cab
AC
28407_ACEOF
28408
c35f4ffc 28409
bec39cab 28410cat >>confdefs.h <<_ACEOF
c35f4ffc 28411#define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
bec39cab 28412_ACEOF
c35f4ffc
AC
28413
28414
c906108c
SS
28415# target_subdir is used by the testsuite to find the target libraries.
28416target_subdir=
28417if test "${host}" != "${target}"; then
28418 target_subdir="${target_alias}/"
28419fi
28420
28421
28422frags=
771b4502 28423if test "${gdb_native}" = "yes"; then
0dad8a66
MK
28424 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
28425 if test ! -f ${host_makefile_frag}; then
bec39cab
AC
28426 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
28427echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
28428 { (exit 1); exit 1; }; }
0dad8a66
MK
28429 fi
28430 frags="$frags $host_makefile_frag"
28431else
28432 host_makefile_frag=/dev/null
c906108c 28433fi
c906108c 28434
c906108c
SS
28435
28436
28437
771b4502 28438if test "${gdb_native}" = "yes"; then
a85f51e7
DJ
28439# We pick this up from the host configuration file (.mh) because we
28440# do not have a native configuration Makefile fragment.
c906108c
SS
28441nativefile=`sed -n '
28442s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
28443' ${host_makefile_frag}`
c906108c
SS
28444fi
28445
28446
b00a8037 28447if test x"${gdb_osabi}" != x ; then
bec39cab
AC
28448
28449cat >>confdefs.h <<_ACEOF
b00a8037 28450#define GDB_OSABI_DEFAULT $gdb_osabi
bec39cab 28451_ACEOF
b00a8037
DJ
28452
28453fi
28454
8dcde887 28455# Enable multi-ice-gdb-server.
b4e70030 28456# Check whether --enable-multi-ice or --disable-multi-ice was given.
8dcde887 28457if test "${enable_multi_ice+set}" = set; then
b4e70030
JB
28458 enableval="$enable_multi_ice"
28459 case $enableval in
8dcde887
MK
28460 yes | no)
28461 ;;
bec39cab
AC
28462 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
28463echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
28464 { (exit 1); exit 1; }; } ;;
8dcde887 28465 esac
b4e70030 28466fi;
4e8d927d 28467if test "x$enable_multi_ice" = xyes; then
b4e70030
JB
28468
28469
28470subdirs="$subdirs multi-ice"
3ace7edb 28471
a85f51e7
DJ
28472fi
28473
a13e2c95
UW
28474# We only build gdbserver automatically in a native configuration.
28475if test "$gdb_native" = "yes"; then
b4e70030
JB
28476 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
28477echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
8dcde887 28478 if test "x$build_gdbserver" = xyes; then
b4e70030
JB
28479 echo "$as_me:$LINENO: result: yes" >&5
28480echo "${ECHO_T}yes" >&6
28481
28482
28483subdirs="$subdirs gdbserver"
3ace7edb 28484
8dcde887 28485 else
b4e70030
JB
28486 echo "$as_me:$LINENO: result: no" >&5
28487echo "${ECHO_T}no" >&6
8dcde887
MK
28488 fi
28489fi
28490
db985757 28491# If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
2c0fc042 28492# to an empty version.
c906108c
SS
28493
28494files=
28495links=
5a2402b8 28496
c906108c 28497rm -f nm.h
5a2402b8 28498nm_h=""
c906108c 28499if test "${nativefile}" != ""; then
5a2402b8 28500 nm_h=nm.h
0f475e27
AC
28501 case "${nativefile}" in
28502 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
28503 * ) GDB_NM_FILE="${nativefile}"
28504 esac
5a2402b8
AC
28505 files="${files} ${GDB_NM_FILE}"
28506 links="${links} nm.h"
60ca704f
SE
28507
28508cat >>confdefs.h <<_ACEOF
b78960be 28509#define GDB_NM_FILE "${GDB_NM_FILE}"
bec39cab 28510_ACEOF
5a2402b8 28511
c906108c 28512fi
5a2402b8
AC
28513
28514
bec39cab
AC
28515ac_sources="$files"
28516ac_dests="$links"
28517while test -n "$ac_sources"; do
28518 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
28519 set $ac_sources; ac_source=$1; shift; ac_sources=$*
28520 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
28521done
b4e70030 28522 ac_config_links="$ac_config_links $ac_config_links_1"
c906108c
SS
28523
28524
c906108c
SS
28525
28526
c906108c 28527
c906108c 28528
bec39cab
AC
28529cat >>confdefs.h <<\_ACEOF
28530#define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
28531_ACEOF
c906108c 28532
234b45d4 28533
234b45d4
KB
28534
28535
28536
b4e70030 28537# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
234b45d4 28538if test "${with_libiconv_prefix+set}" = set; then
b4e70030
JB
28539 withval="$with_libiconv_prefix"
28540
234b45d4
KB
28541 for dir in `echo "$withval" | tr : ' '`; do
28542 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
28543 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
28544 done
234b45d4 28545
b4e70030 28546fi;
234b45d4 28547
b4e70030
JB
28548 echo "$as_me:$LINENO: checking for iconv" >&5
28549echo $ECHO_N "checking for iconv... $ECHO_C" >&6
bec39cab
AC
28550if test "${am_cv_func_iconv+set}" = set; then
28551 echo $ECHO_N "(cached) $ECHO_C" >&6
234b45d4 28552else
bec39cab 28553
234b45d4
KB
28554 am_cv_func_iconv="no, consider installing GNU libiconv"
28555 am_cv_lib_iconv=no
bec39cab
AC
28556 cat >conftest.$ac_ext <<_ACEOF
28557/* confdefs.h. */
28558_ACEOF
28559cat confdefs.h >>conftest.$ac_ext
28560cat >>conftest.$ac_ext <<_ACEOF
28561/* end confdefs.h. */
234b45d4
KB
28562#include <stdlib.h>
28563#include <iconv.h>
bec39cab
AC
28564int
28565main ()
28566{
234b45d4
KB
28567iconv_t cd = iconv_open("","");
28568 iconv(cd,NULL,NULL,NULL,NULL);
28569 iconv_close(cd);
bec39cab
AC
28570 ;
28571 return 0;
28572}
28573_ACEOF
28574rm -f conftest.$ac_objext conftest$ac_exeext
28575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28576 (eval $ac_link) 2>conftest.er1
28577 ac_status=$?
28578 grep -v '^ *+' conftest.er1 >conftest.err
28579 rm -f conftest.er1
28580 cat conftest.err >&5
28581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28582 (exit $ac_status); } &&
b4e70030
JB
28583 { ac_try='test -z "$ac_c_werror_flag"
28584 || test ! -s conftest.err'
bec39cab
AC
28585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28586 (eval $ac_try) 2>&5
28587 ac_status=$?
28588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28589 (exit $ac_status); }; } &&
28590 { ac_try='test -s conftest$ac_exeext'
28591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28592 (eval $ac_try) 2>&5
28593 ac_status=$?
28594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28595 (exit $ac_status); }; }; then
234b45d4
KB
28596 am_cv_func_iconv=yes
28597else
bec39cab
AC
28598 echo "$as_me: failed program was:" >&5
28599sed 's/^/| /' conftest.$ac_ext >&5
28600
234b45d4 28601fi
bec39cab
AC
28602rm -f conftest.err conftest.$ac_objext \
28603 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
28604 if test "$am_cv_func_iconv" != yes; then
28605 am_save_LIBS="$LIBS"
28606 LIBS="$LIBS -liconv"
bec39cab
AC
28607 cat >conftest.$ac_ext <<_ACEOF
28608/* confdefs.h. */
28609_ACEOF
28610cat confdefs.h >>conftest.$ac_ext
28611cat >>conftest.$ac_ext <<_ACEOF
28612/* end confdefs.h. */
234b45d4
KB
28613#include <stdlib.h>
28614#include <iconv.h>
bec39cab
AC
28615int
28616main ()
28617{
234b45d4
KB
28618iconv_t cd = iconv_open("","");
28619 iconv(cd,NULL,NULL,NULL,NULL);
28620 iconv_close(cd);
bec39cab
AC
28621 ;
28622 return 0;
28623}
28624_ACEOF
28625rm -f conftest.$ac_objext conftest$ac_exeext
28626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28627 (eval $ac_link) 2>conftest.er1
28628 ac_status=$?
28629 grep -v '^ *+' conftest.er1 >conftest.err
28630 rm -f conftest.er1
28631 cat conftest.err >&5
28632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28633 (exit $ac_status); } &&
b4e70030
JB
28634 { ac_try='test -z "$ac_c_werror_flag"
28635 || test ! -s conftest.err'
bec39cab
AC
28636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28637 (eval $ac_try) 2>&5
28638 ac_status=$?
28639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28640 (exit $ac_status); }; } &&
28641 { ac_try='test -s conftest$ac_exeext'
28642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28643 (eval $ac_try) 2>&5
28644 ac_status=$?
28645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28646 (exit $ac_status); }; }; then
234b45d4
KB
28647 am_cv_lib_iconv=yes
28648 am_cv_func_iconv=yes
28649else
bec39cab
AC
28650 echo "$as_me: failed program was:" >&5
28651sed 's/^/| /' conftest.$ac_ext >&5
28652
234b45d4 28653fi
bec39cab
AC
28654rm -f conftest.err conftest.$ac_objext \
28655 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
28656 LIBS="$am_save_LIBS"
28657 fi
bec39cab
AC
28658
28659fi
b4e70030
JB
28660echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
28661echo "${ECHO_T}$am_cv_func_iconv" >&6
bec39cab
AC
28662 if test "$am_cv_func_iconv" = yes; then
28663
28664cat >>confdefs.h <<\_ACEOF
28665#define HAVE_ICONV 1
28666_ACEOF
28667
b4e70030
JB
28668 echo "$as_me:$LINENO: checking for iconv declaration" >&5
28669echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
bec39cab
AC
28670 if test "${am_cv_proto_iconv+set}" = set; then
28671 echo $ECHO_N "(cached) $ECHO_C" >&6
28672else
28673
28674 cat >conftest.$ac_ext <<_ACEOF
28675/* confdefs.h. */
28676_ACEOF
28677cat confdefs.h >>conftest.$ac_ext
28678cat >>conftest.$ac_ext <<_ACEOF
28679/* end confdefs.h. */
28680
28681#include <stdlib.h>
28682#include <iconv.h>
28683extern
28684#ifdef __cplusplus
28685"C"
28686#endif
28687#if defined(__STDC__) || defined(__cplusplus)
28688size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
28689#else
28690size_t iconv();
28691#endif
28692
28693int
28694main ()
28695{
28696
28697 ;
28698 return 0;
28699}
28700_ACEOF
28701rm -f conftest.$ac_objext
28702if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28703 (eval $ac_compile) 2>conftest.er1
28704 ac_status=$?
28705 grep -v '^ *+' conftest.er1 >conftest.err
28706 rm -f conftest.er1
28707 cat conftest.err >&5
28708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28709 (exit $ac_status); } &&
b4e70030
JB
28710 { ac_try='test -z "$ac_c_werror_flag"
28711 || test ! -s conftest.err'
bec39cab
AC
28712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28713 (eval $ac_try) 2>&5
28714 ac_status=$?
28715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28716 (exit $ac_status); }; } &&
28717 { ac_try='test -s conftest.$ac_objext'
28718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28719 (eval $ac_try) 2>&5
28720 ac_status=$?
28721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28722 (exit $ac_status); }; }; then
28723 am_cv_proto_iconv_arg1=""
28724else
28725 echo "$as_me: failed program was:" >&5
28726sed 's/^/| /' conftest.$ac_ext >&5
28727
b4e70030 28728am_cv_proto_iconv_arg1="const"
bec39cab
AC
28729fi
28730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28731 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);"
28732fi
28733
28734 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
b4e70030 28735 echo "$as_me:$LINENO: result: ${ac_t:-
bec39cab
AC
28736 }$am_cv_proto_iconv" >&5
28737echo "${ECHO_T}${ac_t:-
b4e70030 28738 }$am_cv_proto_iconv" >&6
bec39cab
AC
28739
28740cat >>confdefs.h <<_ACEOF
28741#define ICONV_CONST $am_cv_proto_iconv_arg1
28742_ACEOF
28743
28744 fi
28745 LIBICONV=
28746 if test "$am_cv_lib_iconv" = yes; then
28747 LIBICONV="-liconv"
28748 fi
28749
28750
28751
e28b3332 28752 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in gnulib/Makefile"
b4e70030 28753 ac_config_commands="$ac_config_commands default"
bec39cab
AC
28754cat >confcache <<\_ACEOF
28755# This file is a shell script that caches the results of configure
28756# tests run on this system so they can be shared between configure
28757# scripts and configure runs, see configure's option --config-cache.
28758# It is not useful on other systems. If it contains results you don't
28759# want to keep, you may remove or edit it.
28760#
28761# config.status only pays attention to the cache file if you give it
28762# the --recheck option to rerun configure.
28763#
28764# `ac_cv_env_foo' variables (set or unset) will be overridden when
28765# loading this file, other *unset* `ac_cv_foo' will be assigned the
28766# following values.
28767
28768_ACEOF
28769
28770# The following way of writing the cache mishandles newlines in values,
28771# but we know of no workaround that is simple, portable, and efficient.
b4e70030 28772# So, don't put newlines in cache variables' values.
bec39cab
AC
28773# Ultrix sh set writes to stderr and can't be redirected directly,
28774# and sets the high bit in the cache file unless we assign to the vars.
b4e70030 28775{
bec39cab 28776 (set) 2>&1 |
b4e70030
JB
28777 case `(ac_space=' '; set | grep ac_space) 2>&1` in
28778 *ac_space=\ *)
bec39cab
AC
28779 # `set' does not quote correctly, so add quotes (double-quote
28780 # substitution turns \\\\ into \\, and sed turns \\ into \).
28781 sed -n \
28782 "s/'/'\\\\''/g;
28783 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
b4e70030 28784 ;;
bec39cab
AC
28785 *)
28786 # `set' quotes correctly as required by POSIX, so do not add quotes.
b4e70030
JB
28787 sed -n \
28788 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
bec39cab 28789 ;;
b4e70030
JB
28790 esac;
28791} |
bec39cab
AC
28792 sed '
28793 t clear
b4e70030 28794 : clear
bec39cab
AC
28795 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28796 t end
b4e70030
JB
28797 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28798 : end' >>confcache
bec39cab
AC
28799if diff $cache_file confcache >/dev/null 2>&1; then :; else
28800 if test -w $cache_file; then
b4e70030 28801 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
bec39cab
AC
28802 cat confcache >$cache_file
28803 else
b4e70030 28804 echo "not updating unwritable cache $cache_file"
bec39cab
AC
28805 fi
28806fi
28807rm -f confcache
28808
28809test "x$prefix" = xNONE && prefix=$ac_default_prefix
28810# Let make expand exec_prefix.
28811test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28812
b4e70030
JB
28813# VPATH may cause trouble with some makes, so we remove $(srcdir),
28814# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
28815# trailing colons and then remove the whole line if VPATH becomes empty
28816# (actually we leave an empty line to preserve line numbers).
28817if test "x$srcdir" = x.; then
28818 ac_vpsub='/^[ ]*VPATH[ ]*=/{
28819s/:*\$(srcdir):*/:/;
28820s/:*\${srcdir}:*/:/;
28821s/:*@srcdir@:*/:/;
28822s/^\([^=]*=[ ]*\):*/\1/;
28823s/:*$//;
28824s/^[^=]*=[ ]*$//;
28825}'
28826fi
28827
bec39cab
AC
28828DEFS=-DHAVE_CONFIG_H
28829
28830ac_libobjs=
28831ac_ltlibobjs=
28832for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28833 # 1. Remove the extension, and $U if already installed.
b4e70030
JB
28834 ac_i=`echo "$ac_i" |
28835 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
28836 # 2. Add them.
28837 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
28838 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
bec39cab
AC
28839done
28840LIBOBJS=$ac_libobjs
28841
28842LTLIBOBJS=$ac_ltlibobjs
28843
28844
85981d60
AC
28845if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
28846 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
28847Usually this means the macro was only invoked conditionally." >&5
28848echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
28849Usually this means the macro was only invoked conditionally." >&2;}
28850 { (exit 1); exit 1; }; }
28851fi
783e057b
DJ
28852if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
28853 { { echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
28854Usually this means the macro was only invoked conditionally." >&5
28855echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
28856Usually this means the macro was only invoked conditionally." >&2;}
28857 { (exit 1); exit 1; }; }
28858fi
28859
28860 gl_libobjs=
28861 gl_ltlibobjs=
28862 if test -n "$gl_LIBOBJS"; then
28863 # Remove the extension.
28864 sed_drop_objext='s/\.o$//;s/\.obj$//'
28865 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
28866 gl_libobjs="$gl_libobjs $i.$ac_objext"
28867 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
28868 done
28869 fi
28870 gl_LIBOBJS=$gl_libobjs
28871
28872 gl_LTLIBOBJS=$gl_ltlibobjs
28873
28874
28875
28876 gltests_libobjs=
28877 gltests_ltlibobjs=
28878 if test -n "$gltests_LIBOBJS"; then
28879 # Remove the extension.
28880 sed_drop_objext='s/\.o$//;s/\.obj$//'
28881 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
28882 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
28883 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
28884 done
28885 fi
28886 gltests_LIBOBJS=$gltests_libobjs
28887
28888 gltests_LTLIBOBJS=$gltests_ltlibobjs
28889
28890
e28b3332
DJ
28891if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28892 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
28893Usually this means the macro was only invoked conditionally." >&5
28894echo "$as_me: error: conditional \"AMDEP\" was never defined.
28895Usually this means the macro was only invoked conditionally." >&2;}
28896 { (exit 1); exit 1; }; }
28897fi
28898if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28899 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
28900Usually this means the macro was only invoked conditionally." >&5
28901echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
28902Usually this means the macro was only invoked conditionally." >&2;}
28903 { (exit 1); exit 1; }; }
28904fi
bec39cab
AC
28905
28906: ${CONFIG_STATUS=./config.status}
28907ac_clean_files_save=$ac_clean_files
28908ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28909{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
28910echo "$as_me: creating $CONFIG_STATUS" >&6;}
28911cat >$CONFIG_STATUS <<_ACEOF
28912#! $SHELL
28913# Generated by $as_me.
28914# Run this file to recreate the current configuration.
28915# Compiler output produced by configure, useful for debugging
28916# configure, is in config.log if it exists.
28917
28918debug=false
28919ac_cs_recheck=false
28920ac_cs_silent=false
28921SHELL=\${CONFIG_SHELL-$SHELL}
28922_ACEOF
28923
28924cat >>$CONFIG_STATUS <<\_ACEOF
28925## --------------------- ##
28926## M4sh Initialization. ##
28927## --------------------- ##
28928
28929# Be Bourne compatible
28930if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
28931 emulate sh
28932 NULLCMD=:
28933 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
28934 # is contrary to our usage. Disable this feature.
28935 alias -g '${1+"$@"}'='"$@"'
b4e70030
JB
28936elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28937 set -o posix
bec39cab
AC
28938fi
28939DUALCASE=1; export DUALCASE # for MKS sh
28940
28941# Support unset when possible.
28942if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28943 as_unset=unset
28944else
28945 as_unset=false
28946fi
28947
28948
28949# Work around bugs in pre-3.0 UWIN ksh.
b4e70030 28950$as_unset ENV MAIL MAILPATH
bec39cab
AC
28951PS1='$ '
28952PS2='> '
28953PS4='+ '
28954
28955# NLS nuisances.
28956for as_var in \
28957 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
28958 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
28959 LC_TELEPHONE LC_TIME
28960do
28961 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
28962 eval $as_var=C; export $as_var
28963 else
b4e70030 28964 $as_unset $as_var
bec39cab
AC
28965 fi
28966done
28967
28968# Required to use basename.
b4e70030 28969if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
28970 as_expr=expr
28971else
28972 as_expr=false
28973fi
28974
b4e70030 28975if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
bec39cab
AC
28976 as_basename=basename
28977else
28978 as_basename=false
28979fi
28980
28981
28982# Name of the executable.
b4e70030 28983as_me=`$as_basename "$0" ||
bec39cab
AC
28984$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28985 X"$0" : 'X\(//\)$' \| \
b4e70030
JB
28986 X"$0" : 'X\(/\)$' \| \
28987 . : '\(.\)' 2>/dev/null ||
bec39cab 28988echo X/"$0" |
b4e70030
JB
28989 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
28990 /^X\/\(\/\/\)$/{ s//\1/; q; }
28991 /^X\/\(\/\).*/{ s//\1/; q; }
28992 s/.*/./; q'`
bec39cab 28993
b4e70030
JB
28994
28995# PATH needs CR, and LINENO needs CR and PATH.
28996# Avoid depending upon Character Ranges.
28997as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28998as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28999as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29000as_cr_digits='0123456789'
29001as_cr_alnum=$as_cr_Letters$as_cr_digits
29002
29003# The user is always right.
29004if test "${PATH_SEPARATOR+set}" != set; then
29005 echo "#! /bin/sh" >conf$$.sh
29006 echo "exit 0" >>conf$$.sh
29007 chmod +x conf$$.sh
29008 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29009 PATH_SEPARATOR=';'
29010 else
29011 PATH_SEPARATOR=:
29012 fi
29013 rm -f conf$$.sh
29014fi
bec39cab
AC
29015
29016
b4e70030
JB
29017 as_lineno_1=$LINENO
29018 as_lineno_2=$LINENO
29019 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29020 test "x$as_lineno_1" != "x$as_lineno_2" &&
29021 test "x$as_lineno_3" = "x$as_lineno_2" || {
29022 # Find who we are. Look in the path if we contain no path at all
29023 # relative or not.
29024 case $0 in
29025 *[\\/]* ) as_myself=$0 ;;
29026 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29027for as_dir in $PATH
29028do
29029 IFS=$as_save_IFS
29030 test -z "$as_dir" && as_dir=.
29031 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29032done
bec39cab 29033
b4e70030
JB
29034 ;;
29035 esac
29036 # We did not find ourselves, most probably we were run as `sh COMMAND'
29037 # in which case we are not to be found in the path.
29038 if test "x$as_myself" = x; then
29039 as_myself=$0
29040 fi
29041 if test ! -f "$as_myself"; then
29042 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
29043echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
29044 { (exit 1); exit 1; }; }
29045 fi
29046 case $CONFIG_SHELL in
29047 '')
29048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29049for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
29050do
29051 IFS=$as_save_IFS
29052 test -z "$as_dir" && as_dir=.
29053 for as_base in sh bash ksh sh5; do
29054 case $as_dir in
29055 /*)
29056 if ("$as_dir/$as_base" -c '
bec39cab
AC
29057 as_lineno_1=$LINENO
29058 as_lineno_2=$LINENO
b4e70030 29059 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
bec39cab 29060 test "x$as_lineno_1" != "x$as_lineno_2" &&
b4e70030
JB
29061 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
29062 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
29063 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
29064 CONFIG_SHELL=$as_dir/$as_base
29065 export CONFIG_SHELL
29066 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
29067 fi;;
29068 esac
29069 done
29070done
29071;;
29072 esac
bec39cab
AC
29073
29074 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29075 # uniformly replaced by the line number. The first 'sed' inserts a
b4e70030
JB
29076 # line-number line before each line; the second 'sed' does the real
29077 # work. The second script uses 'N' to pair each line-number line
29078 # with the numbered line, and appends trailing '-' during
29079 # substitution so that $LINENO is not a special case at line end.
bec39cab 29080 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
b4e70030
JB
29081 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
29082 sed '=' <$as_myself |
bec39cab
AC
29083 sed '
29084 N
b4e70030
JB
29085 s,$,-,
29086 : loop
29087 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
bec39cab 29088 t loop
b4e70030
JB
29089 s,-$,,
29090 s,^['$as_cr_digits']*\n,,
bec39cab 29091 ' >$as_me.lineno &&
b4e70030
JB
29092 chmod +x $as_me.lineno ||
29093 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
29094echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
bec39cab
AC
29095 { (exit 1); exit 1; }; }
29096
29097 # Don't try to exec as it changes $[0], causing all sort of problems
29098 # (the dirname of $[0] is not the place where we might find the
b4e70030
JB
29099 # original and so on. Autoconf is especially sensible to this).
29100 . ./$as_me.lineno
bec39cab
AC
29101 # Exit status is that of the last command.
29102 exit
29103}
29104
29105
b4e70030
JB
29106case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
29107 *c*,-n*) ECHO_N= ECHO_C='
29108' ECHO_T=' ' ;;
29109 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
29110 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
bec39cab
AC
29111esac
29112
b4e70030 29113if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
29114 as_expr=expr
29115else
29116 as_expr=false
29117fi
29118
29119rm -f conf$$ conf$$.exe conf$$.file
29120echo >conf$$.file
29121if ln -s conf$$.file conf$$ 2>/dev/null; then
b4e70030
JB
29122 # We could just check for DJGPP; but this test a) works b) is more generic
29123 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
29124 if test -f conf$$.exe; then
29125 # Don't use ln at all; we don't have any links
bec39cab 29126 as_ln_s='cp -p'
b4e70030
JB
29127 else
29128 as_ln_s='ln -s'
29129 fi
bec39cab
AC
29130elif ln conf$$.file conf$$ 2>/dev/null; then
29131 as_ln_s=ln
29132else
29133 as_ln_s='cp -p'
29134fi
b4e70030 29135rm -f conf$$ conf$$.exe conf$$.file
bec39cab
AC
29136
29137if mkdir -p . 2>/dev/null; then
29138 as_mkdir_p=:
29139else
29140 test -d ./-p && rmdir ./-p
29141 as_mkdir_p=false
29142fi
29143
b4e70030 29144as_executable_p="test -f"
bec39cab
AC
29145
29146# Sed expression to map a string onto a valid CPP name.
29147as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29148
29149# Sed expression to map a string onto a valid variable name.
29150as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29151
29152
b4e70030
JB
29153# IFS
29154# We need space, tab and new line, in precisely that order.
29155as_nl='
29156'
29157IFS=" $as_nl"
29158
29159# CDPATH.
29160$as_unset CDPATH
29161
bec39cab
AC
29162exec 6>&1
29163
b4e70030 29164# Open the log real soon, to keep \$[0] and so on meaningful, and to
bec39cab 29165# report actual input values of CONFIG_FILES etc. instead of their
b4e70030
JB
29166# values after options handling. Logging --version etc. is OK.
29167exec 5>>config.log
29168{
29169 echo
29170 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29171## Running $as_me. ##
29172_ASBOX
29173} >&5
29174cat >&5 <<_CSEOF
29175
bec39cab 29176This file was extended by $as_me, which was
b4e70030 29177generated by GNU Autoconf 2.59. Invocation command line was
bec39cab
AC
29178
29179 CONFIG_FILES = $CONFIG_FILES
29180 CONFIG_HEADERS = $CONFIG_HEADERS
29181 CONFIG_LINKS = $CONFIG_LINKS
29182 CONFIG_COMMANDS = $CONFIG_COMMANDS
29183 $ $0 $@
29184
b4e70030
JB
29185_CSEOF
29186echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
29187echo >&5
bec39cab
AC
29188_ACEOF
29189
29190# Files that config.status was made for.
b4e70030
JB
29191if test -n "$ac_config_files"; then
29192 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
29193fi
234b45d4 29194
b4e70030
JB
29195if test -n "$ac_config_headers"; then
29196 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
29197fi
29198
29199if test -n "$ac_config_links"; then
29200 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
29201fi
29202
29203if test -n "$ac_config_commands"; then
29204 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
29205fi
234b45d4 29206
bec39cab 29207cat >>$CONFIG_STATUS <<\_ACEOF
b4e70030 29208
bec39cab
AC
29209ac_cs_usage="\
29210\`$as_me' instantiates files from templates according to the
29211current configuration.
234b45d4 29212
bec39cab 29213Usage: $0 [OPTIONS] [FILE]...
234b45d4 29214
bec39cab
AC
29215 -h, --help print this help, then exit
29216 -V, --version print version number, then exit
29217 -q, --quiet do not print progress messages
29218 -d, --debug don't remove temporary files
29219 --recheck update $as_me by reconfiguring in the same conditions
29220 --file=FILE[:TEMPLATE]
29221 instantiate the configuration file FILE
29222 --header=FILE[:TEMPLATE]
29223 instantiate the configuration header FILE
234b45d4 29224
bec39cab
AC
29225Configuration files:
29226$config_files
234b45d4 29227
bec39cab
AC
29228Configuration headers:
29229$config_headers
234b45d4 29230
bec39cab
AC
29231Configuration links:
29232$config_links
234b45d4 29233
bec39cab
AC
29234Configuration commands:
29235$config_commands
29236
29237Report bugs to <bug-autoconf@gnu.org>."
4e8d927d 29238_ACEOF
b4e70030 29239
bec39cab
AC
29240cat >>$CONFIG_STATUS <<_ACEOF
29241ac_cs_version="\\
29242config.status
b4e70030 29243configured by $0, generated by GNU Autoconf 2.59,
bec39cab
AC
29244 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
29245
b4e70030 29246Copyright (C) 2003 Free Software Foundation, Inc.
bec39cab
AC
29247This config.status script is free software; the Free Software Foundation
29248gives unlimited permission to copy, distribute and modify it."
b4e70030
JB
29249srcdir=$srcdir
29250INSTALL="$INSTALL"
bec39cab
AC
29251_ACEOF
29252
29253cat >>$CONFIG_STATUS <<\_ACEOF
29254# If no file are specified by the user, then we need to provide default
29255# value. By we need to know if files were specified by the user.
29256ac_need_defaults=:
29257while test $# != 0
29258do
29259 case $1 in
29260 --*=*)
b4e70030
JB
29261 ac_option=`expr "x$1" : 'x\([^=]*\)='`
29262 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
bec39cab 29263 ac_shift=:
c906108c 29264 ;;
b4e70030 29265 -*)
bec39cab
AC
29266 ac_option=$1
29267 ac_optarg=$2
29268 ac_shift=shift
c906108c 29269 ;;
b4e70030
JB
29270 *) # This is not an option, so the user has probably given explicit
29271 # arguments.
29272 ac_option=$1
29273 ac_need_defaults=false;;
bec39cab 29274 esac
c906108c 29275
bec39cab
AC
29276 case $ac_option in
29277 # Handling of the options.
b4e70030
JB
29278_ACEOF
29279cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
29280 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29281 ac_cs_recheck=: ;;
b4e70030
JB
29282 --version | --vers* | -V )
29283 echo "$ac_cs_version"; exit 0 ;;
29284 --he | --h)
29285 # Conflict between --help and --header
29286 { { echo "$as_me:$LINENO: error: ambiguous option: $1
29287Try \`$0 --help' for more information." >&5
29288echo "$as_me: error: ambiguous option: $1
29289Try \`$0 --help' for more information." >&2;}
29290 { (exit 1); exit 1; }; };;
29291 --help | --hel | -h )
29292 echo "$ac_cs_usage"; exit 0 ;;
29293 --debug | --d* | -d )
bec39cab
AC
29294 debug=: ;;
29295 --file | --fil | --fi | --f )
29296 $ac_shift
29297 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
29298 ac_need_defaults=false;;
29299 --header | --heade | --head | --hea )
29300 $ac_shift
29301 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
29302 ac_need_defaults=false;;
29303 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29304 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29305 ac_cs_silent=: ;;
c906108c 29306
bec39cab 29307 # This is an error.
b4e70030
JB
29308 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
29309Try \`$0 --help' for more information." >&5
29310echo "$as_me: error: unrecognized option: $1
29311Try \`$0 --help' for more information." >&2;}
bec39cab 29312 { (exit 1); exit 1; }; } ;;
c906108c 29313
b4e70030 29314 *) ac_config_targets="$ac_config_targets $1" ;;
c906108c 29315
bec39cab
AC
29316 esac
29317 shift
29318done
c906108c 29319
bec39cab 29320ac_configure_extra_args=
c906108c 29321
bec39cab
AC
29322if $ac_cs_silent; then
29323 exec 6>/dev/null
29324 ac_configure_extra_args="$ac_configure_extra_args --silent"
29325fi
c906108c 29326
bec39cab
AC
29327_ACEOF
29328cat >>$CONFIG_STATUS <<_ACEOF
29329if \$ac_cs_recheck; then
b4e70030
JB
29330 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
29331 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
bec39cab
AC
29332fi
29333
29334_ACEOF
29335
29336cat >>$CONFIG_STATUS <<_ACEOF
c906108c 29337#
b4e70030 29338# INIT-COMMANDS section.
c906108c 29339#
c906108c 29340
e28b3332 29341AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
b4e70030 29342
4e8d927d
DJ
29343GCC="$GCC"
29344CC="$CC"
29345acx_cv_header_stdint="$acx_cv_header_stdint"
29346acx_cv_type_int8_t="$acx_cv_type_int8_t"
29347acx_cv_type_int16_t="$acx_cv_type_int16_t"
29348acx_cv_type_int32_t="$acx_cv_type_int32_t"
29349acx_cv_type_int64_t="$acx_cv_type_int64_t"
29350acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
29351ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
29352ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
29353ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
29354ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
29355ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
29356ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
29357ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
29358ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
29359
bec39cab
AC
29360
29361gdb_host_cpu=$gdb_host_cpu
bec39cab
AC
29362nativefile=$nativefile
29363
29364
29365_ACEOF
29366
4e8d927d 29367
b4e70030
JB
29368
29369cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab 29370for ac_config_target in $ac_config_targets
c906108c 29371do
b4e70030
JB
29372 case "$ac_config_target" in
29373 # Handling of arguments.
29374 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29375 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
e28b3332 29376 "gnulib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gnulib/Makefile" ;;
b4e70030 29377 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
e28b3332 29378 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
b4e70030
JB
29379 "gdb_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;;
29380 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
29381 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
bec39cab
AC
29382 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
29383echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
29384 { (exit 1); exit 1; }; };;
c906108c
SS
29385 esac
29386done
29387
bec39cab
AC
29388# If the user did not use the arguments to specify the items to instantiate,
29389# then the envvar interface is used. Set only those that are not.
29390# We use the long form for the default assignment because of an extremely
29391# bizarre bug on SunOS 4.1.3.
29392if $ac_need_defaults; then
29393 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29394 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29395 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29396 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29397fi
29398
b4e70030
JB
29399# Have a temporary directory for convenience. Make it in the build tree
29400# simply because there is no reason to put it here, and in addition,
29401# creating and moving files from /tmp can sometimes cause problems.
29402# Create a temporary directory, and hook for its removal unless debugging.
29403$debug ||
29404{
29405 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
29406 trap '{ (exit 1); exit 1; }' 1 2 13 15
29407}
4e8d927d 29408
b4e70030 29409# Create a (secure) tmp directory for tmp files.
4e8d927d 29410
b4e70030
JB
29411{
29412 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
29413 test -n "$tmp" && test -d "$tmp"
29414} ||
29415{
29416 tmp=./confstat$$-$RANDOM
29417 (umask 077 && mkdir $tmp)
29418} ||
29419{
29420 echo "$me: cannot create a temporary directory in ." >&2
29421 { (exit 1); exit 1; }
29422}
4e8d927d 29423
b4e70030 29424_ACEOF
4e8d927d 29425
b4e70030 29426cat >>$CONFIG_STATUS <<_ACEOF
4e8d927d 29427
b4e70030
JB
29428#
29429# CONFIG_FILES section.
29430#
4e8d927d 29431
b4e70030
JB
29432# No need to generate the scripts if there are no CONFIG_FILES.
29433# This happens for instance when ./config.status config.h
29434if test -n "\$CONFIG_FILES"; then
29435 # Protect against being on the right side of a sed subst in config.status.
29436 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
29437 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
29438s,@SHELL@,$SHELL,;t t
29439s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
29440s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
29441s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
29442s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
29443s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
29444s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
29445s,@exec_prefix@,$exec_prefix,;t t
29446s,@prefix@,$prefix,;t t
29447s,@program_transform_name@,$program_transform_name,;t t
29448s,@bindir@,$bindir,;t t
29449s,@sbindir@,$sbindir,;t t
29450s,@libexecdir@,$libexecdir,;t t
29451s,@datadir@,$datadir,;t t
29452s,@sysconfdir@,$sysconfdir,;t t
29453s,@sharedstatedir@,$sharedstatedir,;t t
29454s,@localstatedir@,$localstatedir,;t t
29455s,@libdir@,$libdir,;t t
29456s,@includedir@,$includedir,;t t
29457s,@oldincludedir@,$oldincludedir,;t t
29458s,@infodir@,$infodir,;t t
29459s,@mandir@,$mandir,;t t
29460s,@build_alias@,$build_alias,;t t
29461s,@host_alias@,$host_alias,;t t
29462s,@target_alias@,$target_alias,;t t
29463s,@DEFS@,$DEFS,;t t
29464s,@ECHO_C@,$ECHO_C,;t t
29465s,@ECHO_N@,$ECHO_N,;t t
29466s,@ECHO_T@,$ECHO_T,;t t
29467s,@LIBS@,$LIBS,;t t
29468s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
29469s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
29470s,@MAINT@,$MAINT,;t t
29471s,@CC@,$CC,;t t
29472s,@CFLAGS@,$CFLAGS,;t t
29473s,@LDFLAGS@,$LDFLAGS,;t t
29474s,@CPPFLAGS@,$CPPFLAGS,;t t
29475s,@ac_ct_CC@,$ac_ct_CC,;t t
29476s,@EXEEXT@,$EXEEXT,;t t
29477s,@OBJEXT@,$OBJEXT,;t t
29478s,@CPP@,$CPP,;t t
29479s,@EGREP@,$EGREP,;t t
783e057b
DJ
29480s,@RANLIB@,$RANLIB,;t t
29481s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
b4e70030
JB
29482s,@build@,$build,;t t
29483s,@build_cpu@,$build_cpu,;t t
29484s,@build_vendor@,$build_vendor,;t t
29485s,@build_os@,$build_os,;t t
29486s,@host@,$host,;t t
29487s,@host_cpu@,$host_cpu,;t t
29488s,@host_vendor@,$host_vendor,;t t
29489s,@host_os@,$host_os,;t t
29490s,@target@,$target,;t t
29491s,@target_cpu@,$target_cpu,;t t
29492s,@target_vendor@,$target_vendor,;t t
29493s,@target_os@,$target_os,;t t
b4e70030 29494s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
29495s,@LIBINTL@,$LIBINTL,;t t
29496s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
29497s,@INCINTL@,$INCINTL,;t t
b4e70030 29498s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
29499s,@GMSGFMT@,$GMSGFMT,;t t
29500s,@POSUB@,$POSUB,;t t
b4e70030 29501s,@CATALOGS@,$CATALOGS,;t t
b4e70030 29502s,@DATADIRNAME@,$DATADIRNAME,;t t
b4e70030 29503s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
29504s,@GENCAT@,$GENCAT,;t t
29505s,@CATOBJEXT@,$CATOBJEXT,;t t
b4e70030 29506s,@localedir@,$localedir,;t t
783e057b
DJ
29507s,@GL_COND_LIBTOOL_TRUE@,$GL_COND_LIBTOOL_TRUE,;t t
29508s,@GL_COND_LIBTOOL_FALSE@,$GL_COND_LIBTOOL_FALSE,;t t
29509s,@GNULIB_MEMMEM@,$GNULIB_MEMMEM,;t t
29510s,@GNULIB_MEMPCPY@,$GNULIB_MEMPCPY,;t t
29511s,@GNULIB_MEMRCHR@,$GNULIB_MEMRCHR,;t t
29512s,@GNULIB_STPCPY@,$GNULIB_STPCPY,;t t
29513s,@GNULIB_STPNCPY@,$GNULIB_STPNCPY,;t t
29514s,@GNULIB_STRCHRNUL@,$GNULIB_STRCHRNUL,;t t
29515s,@GNULIB_STRDUP@,$GNULIB_STRDUP,;t t
29516s,@GNULIB_STRNDUP@,$GNULIB_STRNDUP,;t t
29517s,@GNULIB_STRNLEN@,$GNULIB_STRNLEN,;t t
29518s,@GNULIB_STRPBRK@,$GNULIB_STRPBRK,;t t
29519s,@GNULIB_STRSEP@,$GNULIB_STRSEP,;t t
29520s,@GNULIB_STRSTR@,$GNULIB_STRSTR,;t t
29521s,@GNULIB_STRCASESTR@,$GNULIB_STRCASESTR,;t t
29522s,@GNULIB_STRTOK_R@,$GNULIB_STRTOK_R,;t t
29523s,@GNULIB_MBSLEN@,$GNULIB_MBSLEN,;t t
29524s,@GNULIB_MBSNLEN@,$GNULIB_MBSNLEN,;t t
29525s,@GNULIB_MBSCHR@,$GNULIB_MBSCHR,;t t
29526s,@GNULIB_MBSRCHR@,$GNULIB_MBSRCHR,;t t
29527s,@GNULIB_MBSSTR@,$GNULIB_MBSSTR,;t t
29528s,@GNULIB_MBSCASECMP@,$GNULIB_MBSCASECMP,;t t
29529s,@GNULIB_MBSNCASECMP@,$GNULIB_MBSNCASECMP,;t t
29530s,@GNULIB_MBSPCASECMP@,$GNULIB_MBSPCASECMP,;t t
29531s,@GNULIB_MBSCASESTR@,$GNULIB_MBSCASESTR,;t t
29532s,@GNULIB_MBSCSPN@,$GNULIB_MBSCSPN,;t t
29533s,@GNULIB_MBSPBRK@,$GNULIB_MBSPBRK,;t t
29534s,@GNULIB_MBSSPN@,$GNULIB_MBSSPN,;t t
29535s,@GNULIB_MBSSEP@,$GNULIB_MBSSEP,;t t
29536s,@GNULIB_MBSTOK_R@,$GNULIB_MBSTOK_R,;t t
29537s,@GNULIB_STRERROR@,$GNULIB_STRERROR,;t t
29538s,@GNULIB_STRSIGNAL@,$GNULIB_STRSIGNAL,;t t
29539s,@HAVE_DECL_MEMMEM@,$HAVE_DECL_MEMMEM,;t t
29540s,@HAVE_MEMPCPY@,$HAVE_MEMPCPY,;t t
29541s,@HAVE_DECL_MEMRCHR@,$HAVE_DECL_MEMRCHR,;t t
29542s,@HAVE_STPCPY@,$HAVE_STPCPY,;t t
29543s,@HAVE_STPNCPY@,$HAVE_STPNCPY,;t t
29544s,@HAVE_STRCHRNUL@,$HAVE_STRCHRNUL,;t t
29545s,@HAVE_DECL_STRDUP@,$HAVE_DECL_STRDUP,;t t
29546s,@HAVE_STRNDUP@,$HAVE_STRNDUP,;t t
29547s,@HAVE_DECL_STRNDUP@,$HAVE_DECL_STRNDUP,;t t
29548s,@HAVE_DECL_STRNLEN@,$HAVE_DECL_STRNLEN,;t t
29549s,@HAVE_STRPBRK@,$HAVE_STRPBRK,;t t
29550s,@HAVE_STRSEP@,$HAVE_STRSEP,;t t
29551s,@HAVE_STRCASESTR@,$HAVE_STRCASESTR,;t t
29552s,@HAVE_DECL_STRTOK_R@,$HAVE_DECL_STRTOK_R,;t t
29553s,@HAVE_DECL_STRERROR@,$HAVE_DECL_STRERROR,;t t
29554s,@HAVE_DECL_STRSIGNAL@,$HAVE_DECL_STRSIGNAL,;t t
29555s,@REPLACE_STRERROR@,$REPLACE_STRERROR,;t t
29556s,@REPLACE_STRSIGNAL@,$REPLACE_STRSIGNAL,;t t
29557s,@REPLACE_MEMMEM@,$REPLACE_MEMMEM,;t t
29558s,@REPLACE_STRCASESTR@,$REPLACE_STRCASESTR,;t t
29559s,@REPLACE_STRSTR@,$REPLACE_STRSTR,;t t
29560s,@HAVE_LONG_LONG_INT@,$HAVE_LONG_LONG_INT,;t t
29561s,@HAVE_UNSIGNED_LONG_LONG_INT@,$HAVE_UNSIGNED_LONG_LONG_INT,;t t
29562s,@HAVE_INTTYPES_H@,$HAVE_INTTYPES_H,;t t
29563s,@HAVE_SYS_TYPES_H@,$HAVE_SYS_TYPES_H,;t t
29564s,@INCLUDE_NEXT@,$INCLUDE_NEXT,;t t
29565s,@NEXT_STDINT_H@,$NEXT_STDINT_H,;t t
29566s,@HAVE_STDINT_H@,$HAVE_STDINT_H,;t t
29567s,@HAVE_SYS_INTTYPES_H@,$HAVE_SYS_INTTYPES_H,;t t
29568s,@HAVE_SYS_BITYPES_H@,$HAVE_SYS_BITYPES_H,;t t
29569s,@BITSIZEOF_PTRDIFF_T@,$BITSIZEOF_PTRDIFF_T,;t t
29570s,@BITSIZEOF_SIG_ATOMIC_T@,$BITSIZEOF_SIG_ATOMIC_T,;t t
29571s,@BITSIZEOF_SIZE_T@,$BITSIZEOF_SIZE_T,;t t
29572s,@BITSIZEOF_WCHAR_T@,$BITSIZEOF_WCHAR_T,;t t
29573s,@BITSIZEOF_WINT_T@,$BITSIZEOF_WINT_T,;t t
29574s,@HAVE_SIGNED_SIG_ATOMIC_T@,$HAVE_SIGNED_SIG_ATOMIC_T,;t t
29575s,@HAVE_SIGNED_WCHAR_T@,$HAVE_SIGNED_WCHAR_T,;t t
29576s,@HAVE_SIGNED_WINT_T@,$HAVE_SIGNED_WINT_T,;t t
29577s,@PTRDIFF_T_SUFFIX@,$PTRDIFF_T_SUFFIX,;t t
29578s,@SIG_ATOMIC_T_SUFFIX@,$SIG_ATOMIC_T_SUFFIX,;t t
29579s,@SIZE_T_SUFFIX@,$SIZE_T_SUFFIX,;t t
29580s,@WCHAR_T_SUFFIX@,$WCHAR_T_SUFFIX,;t t
29581s,@WINT_T_SUFFIX@,$WINT_T_SUFFIX,;t t
29582s,@STDINT_H@,$STDINT_H,;t t
29583s,@NEXT_STRING_H@,$NEXT_STRING_H,;t t
29584s,@GNULIB_WCWIDTH@,$GNULIB_WCWIDTH,;t t
29585s,@HAVE_DECL_WCWIDTH@,$HAVE_DECL_WCWIDTH,;t t
29586s,@REPLACE_WCWIDTH@,$REPLACE_WCWIDTH,;t t
29587s,@WCHAR_H@,$WCHAR_H,;t t
29588s,@HAVE_WCHAR_H@,$HAVE_WCHAR_H,;t t
29589s,@NEXT_WCHAR_H@,$NEXT_WCHAR_H,;t t
29590s,@LIBGNU_LIBDEPS@,$LIBGNU_LIBDEPS,;t t
29591s,@LIBGNU_LTLIBDEPS@,$LIBGNU_LTLIBDEPS,;t t
b4e70030 29592s,@PACKAGE@,$PACKAGE,;t t
b4e70030
JB
29593s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
29594s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
29595s,@INSTALL_DATA@,$INSTALL_DATA,;t t
e28b3332
DJ
29596s,@CYGPATH_W@,$CYGPATH_W,;t t
29597s,@VERSION@,$VERSION,;t t
29598s,@ACLOCAL@,$ACLOCAL,;t t
29599s,@AUTOCONF@,$AUTOCONF,;t t
29600s,@AUTOMAKE@,$AUTOMAKE,;t t
29601s,@AUTOHEADER@,$AUTOHEADER,;t t
29602s,@MAKEINFO@,$MAKEINFO,;t t
29603s,@install_sh@,$install_sh,;t t
29604s,@STRIP@,$STRIP,;t t
29605s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
29606s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
29607s,@mkdir_p@,$mkdir_p,;t t
29608s,@AWK@,$AWK,;t t
29609s,@SET_MAKE@,$SET_MAKE,;t t
29610s,@am__leading_dot@,$am__leading_dot,;t t
29611s,@AMTAR@,$AMTAR,;t t
29612s,@am__tar@,$am__tar,;t t
29613s,@am__untar@,$am__untar,;t t
29614s,@DEPDIR@,$DEPDIR,;t t
29615s,@am__include@,$am__include,;t t
29616s,@am__quote@,$am__quote,;t t
29617s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
29618s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
29619s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
29620s,@CCDEPMODE@,$CCDEPMODE,;t t
29621s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
29622s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
29623s,@subdirs@,$subdirs,;t t
29624s,@TARGET_OBS@,$TARGET_OBS,;t t
c16158bc
JM
29625s,@PKGVERSION@,$PKGVERSION,;t t
29626s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t
29627s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t
b4e70030
JB
29628s,@LN_S@,$LN_S,;t t
29629s,@YACC@,$YACC,;t t
29630s,@AR@,$AR,;t t
29631s,@ac_ct_AR@,$ac_ct_AR,;t t
29632s,@DLLTOOL@,$DLLTOOL,;t t
29633s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
29634s,@WINDRES@,$WINDRES,;t t
29635s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
29636s,@MIG@,$MIG,;t t
29637s,@ac_ct_MIG@,$ac_ct_MIG,;t t
6a30b0a5
AS
29638s,@READLINE@,$READLINE,;t t
29639s,@READLINE_DEPS@,$READLINE_DEPS,;t t
29640s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
3841debe
DJ
29641s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
29642s,@LIBEXPAT@,$LIBEXPAT,;t t
29643s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
20e95c23 29644s,@ALLOCA@,$ALLOCA,;t t
b4e70030
JB
29645s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
29646s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
29647s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
29648s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
29649s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
29650s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
29651s,@WIN32LIBS@,$WIN32LIBS,;t t
29652s,@LIBGUI@,$LIBGUI,;t t
29653s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
29654s,@WIN32LDAPP@,$WIN32LDAPP,;t t
29655s,@TCL_VERSION@,$TCL_VERSION,;t t
29656s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
29657s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
29658s,@TCL_CC@,$TCL_CC,;t t
29659s,@TCL_DEFS@,$TCL_DEFS,;t t
29660s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
29661s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
29662s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
29663s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
29664s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
29665s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
29666s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
29667s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
29668s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
29669s,@TCL_RANLIB@,$TCL_RANLIB,;t t
29670s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
29671s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
29672s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
29673s,@TK_VERSION@,$TK_VERSION,;t t
29674s,@TK_DEFS@,$TK_DEFS,;t t
29675s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
29676s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
29677s,@TK_XLIBSW@,$TK_XLIBSW,;t t
29678s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
29679s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
29680s,@TCLHDIR@,$TCLHDIR,;t t
29681s,@TKHDIR@,$TKHDIR,;t t
29682s,@ITCLHDIR@,$ITCLHDIR,;t t
29683s,@ITKHDIR@,$ITKHDIR,;t t
29684s,@ITCL_VERSION@,$ITCL_VERSION,;t t
29685s,@ITCL_DEFS@,$ITCL_DEFS,;t t
29686s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
29687s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
29688s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
29689s,@ITK_VERSION@,$ITK_VERSION,;t t
29690s,@ITK_DEFS@,$ITK_DEFS,;t t
29691s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
29692s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
29693s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
29694s,@X_CFLAGS@,$X_CFLAGS,;t t
29695s,@X_LDFLAGS@,$X_LDFLAGS,;t t
29696s,@X_LIBS@,$X_LIBS,;t t
29697s,@TCL_DEPS@,$TCL_DEPS,;t t
29698s,@TK_DEPS@,$TK_DEPS,;t t
29699s,@ITCLLIB@,$ITCLLIB,;t t
29700s,@ITCL_DEPS@,$ITCL_DEPS,;t t
29701s,@ITKLIB@,$ITKLIB,;t t
29702s,@ITK_DEPS@,$ITK_DEPS,;t t
29703s,@GDBTKLIBS@,$GDBTKLIBS,;t t
29704s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
29705s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
9b624dbe
UW
29706s,@SIM@,$SIM,;t t
29707s,@SIM_OBS@,$SIM_OBS,;t t
b4e70030
JB
29708s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
29709s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
29710s,@CONFIG_OBS@,$CONFIG_OBS,;t t
29711s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
29712s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
29713s,@CONFIG_ALL@,$CONFIG_ALL,;t t
29714s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
29715s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
29716s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
29717s,@target_subdir@,$target_subdir,;t t
29718s,@frags@,$frags,;t t
b4e70030
JB
29719s,@nm_h@,$nm_h,;t t
29720s,@LIBICONV@,$LIBICONV,;t t
29721s,@LIBOBJS@,$LIBOBJS,;t t
29722s,@LTLIBOBJS@,$LTLIBOBJS,;t t
783e057b
DJ
29723s,@gl_LIBOBJS@,$gl_LIBOBJS,;t t
29724s,@gl_LTLIBOBJS@,$gl_LTLIBOBJS,;t t
29725s,@gltests_LIBOBJS@,$gltests_LIBOBJS,;t t
29726s,@gltests_LTLIBOBJS@,$gltests_LTLIBOBJS,;t t
b4e70030
JB
29727/@host_makefile_frag@/r $host_makefile_frag
29728s,@host_makefile_frag@,,;t t
b4e70030
JB
29729CEOF
29730
29731_ACEOF
29732
29733 cat >>$CONFIG_STATUS <<\_ACEOF
29734 # Split the substitutions into bite-sized pieces for seds with
29735 # small command number limits, like on Digital OSF/1 and HP-UX.
29736 ac_max_sed_lines=48
29737 ac_sed_frag=1 # Number of current file.
29738 ac_beg=1 # First line for current file.
29739 ac_end=$ac_max_sed_lines # Line after last line for current file.
29740 ac_more_lines=:
29741 ac_sed_cmds=
29742 while $ac_more_lines; do
29743 if test $ac_beg -gt 1; then
29744 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
29745 else
29746 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4e8d927d 29747 fi
b4e70030
JB
29748 if test ! -s $tmp/subs.frag; then
29749 ac_more_lines=false
29750 else
29751 # The purpose of the label and of the branching condition is to
29752 # speed up the sed processing (if there are no `@' at all, there
29753 # is no need to browse any of the substitutions).
29754 # These are the two extra sed commands mentioned above.
29755 (echo ':t
29756 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
29757 if test -z "$ac_sed_cmds"; then
29758 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
29759 else
29760 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
29761 fi
29762 ac_sed_frag=`expr $ac_sed_frag + 1`
29763 ac_beg=$ac_end
29764 ac_end=`expr $ac_end + $ac_max_sed_lines`
29765 fi
29766 done
29767 if test -z "$ac_sed_cmds"; then
29768 ac_sed_cmds=cat
29769 fi
29770fi # test -n "$CONFIG_FILES"
4e8d927d 29771
b4e70030
JB
29772_ACEOF
29773cat >>$CONFIG_STATUS <<\_ACEOF
29774for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
29775 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
29776 case $ac_file in
29777 - | *:- | *:-:* ) # input from stdin
29778 cat >$tmp/stdin
29779 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29780 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29781 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29782 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29783 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
29784 esac
29785
b4e70030
JB
29786 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
29787 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
bec39cab
AC
29788$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29789 X"$ac_file" : 'X\(//\)[^/]' \| \
29790 X"$ac_file" : 'X\(//\)$' \| \
b4e70030
JB
29791 X"$ac_file" : 'X\(/\)' \| \
29792 . : '\(.\)' 2>/dev/null ||
bec39cab 29793echo X"$ac_file" |
b4e70030
JB
29794 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29795 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29796 /^X\(\/\/\)$/{ s//\1/; q; }
29797 /^X\(\/\).*/{ s//\1/; q; }
29798 s/.*/./; q'`
29799 { if $as_mkdir_p; then
29800 mkdir -p "$ac_dir"
29801 else
29802 as_dir="$ac_dir"
bec39cab 29803 as_dirs=
b4e70030
JB
29804 while test ! -d "$as_dir"; do
29805 as_dirs="$as_dir $as_dirs"
29806 as_dir=`(dirname "$as_dir") 2>/dev/null ||
bec39cab
AC
29807$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29808 X"$as_dir" : 'X\(//\)[^/]' \| \
29809 X"$as_dir" : 'X\(//\)$' \| \
b4e70030
JB
29810 X"$as_dir" : 'X\(/\)' \| \
29811 . : '\(.\)' 2>/dev/null ||
bec39cab 29812echo X"$as_dir" |
b4e70030
JB
29813 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
29814 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
29815 /^X\(\/\/\)$/{ s//\1/; q; }
29816 /^X\(\/\).*/{ s//\1/; q; }
29817 s/.*/./; q'`
bec39cab 29818 done
b4e70030
JB
29819 test ! -n "$as_dirs" || mkdir $as_dirs
29820 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
29821echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
bec39cab 29822 { (exit 1); exit 1; }; }; }
b4e70030 29823
bec39cab
AC
29824 ac_builddir=.
29825
b4e70030 29826if test "$ac_dir" != .; then
bec39cab 29827 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
29828 # A "../" for each directory in $ac_dir_suffix.
29829 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
29830else
29831 ac_dir_suffix= ac_top_builddir=
29832fi
bec39cab
AC
29833
29834case $srcdir in
b4e70030 29835 .) # No --srcdir option. We are building in place.
bec39cab 29836 ac_srcdir=.
b4e70030
JB
29837 if test -z "$ac_top_builddir"; then
29838 ac_top_srcdir=.
29839 else
29840 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
29841 fi ;;
29842 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 29843 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
29844 ac_top_srcdir=$srcdir ;;
29845 *) # Relative path.
29846 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
29847 ac_top_srcdir=$ac_top_builddir$srcdir ;;
bec39cab
AC
29848esac
29849
b4e70030
JB
29850# Do not use `cd foo && pwd` to compute absolute paths, because
29851# the directories may not exist.
29852case `pwd` in
29853.) ac_abs_builddir="$ac_dir";;
29854*)
29855 case "$ac_dir" in
29856 .) ac_abs_builddir=`pwd`;;
29857 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
29858 *) ac_abs_builddir=`pwd`/"$ac_dir";;
29859 esac;;
29860esac
29861case $ac_abs_builddir in
29862.) ac_abs_top_builddir=${ac_top_builddir}.;;
29863*)
29864 case ${ac_top_builddir}. in
29865 .) ac_abs_top_builddir=$ac_abs_builddir;;
29866 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
29867 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
29868 esac;;
29869esac
29870case $ac_abs_builddir in
29871.) ac_abs_srcdir=$ac_srcdir;;
29872*)
29873 case $ac_srcdir in
29874 .) ac_abs_srcdir=$ac_abs_builddir;;
29875 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
29876 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
29877 esac;;
29878esac
29879case $ac_abs_builddir in
29880.) ac_abs_top_srcdir=$ac_top_srcdir;;
29881*)
29882 case $ac_top_srcdir in
29883 .) ac_abs_top_srcdir=$ac_abs_builddir;;
29884 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
29885 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
29886 esac;;
29887esac
c906108c 29888
c906108c 29889
bec39cab
AC
29890 case $INSTALL in
29891 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
b4e70030 29892 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c906108c 29893 esac
121ce6e5 29894
b4e70030
JB
29895 if test x"$ac_file" != x-; then
29896 { echo "$as_me:$LINENO: creating $ac_file" >&5
29897echo "$as_me: creating $ac_file" >&6;}
29898 rm -f "$ac_file"
29899 fi
29900 # Let's still pretend it is `configure' which instantiates (i.e., don't
29901 # use $as_me), people would be surprised to read:
29902 # /* config.h. Generated by config.status. */
29903 if test x"$ac_file" = x-; then
29904 configure_input=
29905 else
29906 configure_input="$ac_file. "
29907 fi
29908 configure_input=$configure_input"Generated from `echo $ac_file_in |
29909 sed 's,.*/,,'` by configure."
29910
29911 # First look for the input files in the build tree, otherwise in the
29912 # src tree.
29913 ac_file_inputs=`IFS=:
29914 for f in $ac_file_in; do
29915 case $f in
29916 -) echo $tmp/stdin ;;
29917 [\\/$]*)
29918 # Absolute (can't be DOS-style, as IFS=:)
29919 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29920echo "$as_me: error: cannot find input file: $f" >&2;}
29921 { (exit 1); exit 1; }; }
29922 echo "$f";;
29923 *) # Relative
29924 if test -f "$f"; then
29925 # Build tree
29926 echo "$f"
29927 elif test -f "$srcdir/$f"; then
29928 # Source tree
29929 echo "$srcdir/$f"
29930 else
29931 # /dev/null tree
29932 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
29933echo "$as_me: error: cannot find input file: $f" >&2;}
29934 { (exit 1); exit 1; }; }
29935 fi;;
29936 esac
29937 done` || { (exit 1); exit 1; }
4e8d927d 29938_ACEOF
bec39cab
AC
29939cat >>$CONFIG_STATUS <<_ACEOF
29940 sed "$ac_vpsub
29941$extrasub
29942_ACEOF
29943cat >>$CONFIG_STATUS <<\_ACEOF
29944:t
29945/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
b4e70030
JB
29946s,@configure_input@,$configure_input,;t t
29947s,@srcdir@,$ac_srcdir,;t t
29948s,@abs_srcdir@,$ac_abs_srcdir,;t t
29949s,@top_srcdir@,$ac_top_srcdir,;t t
29950s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
29951s,@builddir@,$ac_builddir,;t t
29952s,@abs_builddir@,$ac_abs_builddir,;t t
29953s,@top_builddir@,$ac_top_builddir,;t t
29954s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
29955s,@INSTALL@,$ac_INSTALL,;t t
29956" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
29957 rm -f $tmp/stdin
29958 if test x"$ac_file" != x-; then
29959 mv $tmp/out $ac_file
29960 else
29961 cat $tmp/out
29962 rm -f $tmp/out
29963 fi
29964
29965done
29966_ACEOF
29967cat >>$CONFIG_STATUS <<\_ACEOF
29968
29969#
29970# CONFIG_HEADER section.
29971#
29972
29973# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
29974# NAME is the cpp macro being defined and VALUE is the value it is being given.
29975#
29976# ac_d sets the value in "#define NAME VALUE" lines.
29977ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
29978ac_dB='[ ].*$,\1#\2'
29979ac_dC=' '
29980ac_dD=',;t'
29981# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
29982ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
29983ac_uB='$,\1#\2define\3'
29984ac_uC=' '
29985ac_uD=',;t'
29986
29987for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
29988 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
bec39cab 29989 case $ac_file in
b4e70030
JB
29990 - | *:- | *:-:* ) # input from stdin
29991 cat >$tmp/stdin
29992 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29993 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29994 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
29995 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
29996 * ) ac_file_in=$ac_file.in ;;
c906108c 29997 esac
b4e70030
JB
29998
29999 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
30000echo "$as_me: creating $ac_file" >&6;}
30001
30002 # First look for the input files in the build tree, otherwise in the
30003 # src tree.
30004 ac_file_inputs=`IFS=:
30005 for f in $ac_file_in; do
30006 case $f in
30007 -) echo $tmp/stdin ;;
30008 [\\/$]*)
30009 # Absolute (can't be DOS-style, as IFS=:)
30010 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30011echo "$as_me: error: cannot find input file: $f" >&2;}
30012 { (exit 1); exit 1; }; }
30013 # Do quote $f, to prevent DOS paths from being IFS'd.
30014 echo "$f";;
30015 *) # Relative
30016 if test -f "$f"; then
30017 # Build tree
30018 echo "$f"
30019 elif test -f "$srcdir/$f"; then
30020 # Source tree
30021 echo "$srcdir/$f"
30022 else
30023 # /dev/null tree
30024 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
30025echo "$as_me: error: cannot find input file: $f" >&2;}
30026 { (exit 1); exit 1; }; }
30027 fi;;
30028 esac
30029 done` || { (exit 1); exit 1; }
30030 # Remove the trailing spaces.
30031 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
30032
30033_ACEOF
30034
30035# Transform confdefs.h into two sed scripts, `conftest.defines' and
30036# `conftest.undefs', that substitutes the proper values into
30037# config.h.in to produce config.h. The first handles `#define'
30038# templates, and the second `#undef' templates.
30039# And first: Protect against being on the right side of a sed subst in
30040# config.status. Protect against being in an unquoted here document
30041# in config.status.
30042rm -f conftest.defines conftest.undefs
30043# Using a here document instead of a string reduces the quoting nightmare.
30044# Putting comments in sed scripts is not portable.
30045#
30046# `end' is used to avoid that the second main sed command (meant for
30047# 0-ary CPP macros) applies to n-ary macro definitions.
30048# See the Autoconf documentation for `clear'.
30049cat >confdef2sed.sed <<\_ACEOF
30050s/[\\&,]/\\&/g
30051s,[\\$`],\\&,g
30052t clear
30053: clear
30054s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
30055t end
30056s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
30057: end
30058_ACEOF
30059# If some macros were called several times there might be several times
30060# the same #defines, which is useless. Nevertheless, we may not want to
30061# sort them, since we want the *last* AC-DEFINE to be honored.
30062uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
30063sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
30064rm -f confdef2sed.sed
30065
30066# This sed command replaces #undef with comments. This is necessary, for
c906108c
SS
30067# example, in the case of _POSIX_SOURCE, which is predefined and required
30068# on some systems where configure will not decide to define it.
b4e70030
JB
30069cat >>conftest.undefs <<\_ACEOF
30070s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
30071_ACEOF
30072
30073# Break up conftest.defines because some shells have a limit on the size
30074# of here documents, and old seds have small limits too (100 cmds).
30075echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
30076echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
30077echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30078echo ' :' >>$CONFIG_STATUS
30079rm -f conftest.tail
30080while grep . conftest.defines >/dev/null
bec39cab 30081do
b4e70030
JB
30082 # Write a limited-size here document to $tmp/defines.sed.
30083 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30084 # Speed up: don't consider the non `#define' lines.
30085 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
30086 # Work around the forget-to-reset-the-flag bug.
30087 echo 't clr' >>$CONFIG_STATUS
30088 echo ': clr' >>$CONFIG_STATUS
30089 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
bec39cab 30090 echo 'CEOF
b4e70030
JB
30091 sed -f $tmp/defines.sed $tmp/in >$tmp/out
30092 rm -f $tmp/in
30093 mv $tmp/out $tmp/in
30094' >>$CONFIG_STATUS
30095 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
bec39cab
AC
30096 rm -f conftest.defines
30097 mv conftest.tail conftest.defines
30098done
b4e70030
JB
30099rm -f conftest.defines
30100echo ' fi # grep' >>$CONFIG_STATUS
30101echo >>$CONFIG_STATUS
30102
30103# Break up conftest.undefs because some shells have a limit on the size
30104# of here documents, and old seds have small limits too (100 cmds).
30105echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
30106rm -f conftest.tail
30107while grep . conftest.undefs >/dev/null
30108do
30109 # Write a limited-size here document to $tmp/undefs.sed.
30110 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30111 # Speed up: don't consider the non `#undef'
30112 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
30113 # Work around the forget-to-reset-the-flag bug.
30114 echo 't clr' >>$CONFIG_STATUS
30115 echo ': clr' >>$CONFIG_STATUS
30116 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
30117 echo 'CEOF
30118 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30119 rm -f $tmp/in
30120 mv $tmp/out $tmp/in
30121' >>$CONFIG_STATUS
30122 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30123 rm -f conftest.undefs
30124 mv conftest.tail conftest.undefs
30125done
30126rm -f conftest.undefs
bec39cab
AC
30127
30128cat >>$CONFIG_STATUS <<\_ACEOF
b4e70030
JB
30129 # Let's still pretend it is `configure' which instantiates (i.e., don't
30130 # use $as_me), people would be surprised to read:
30131 # /* config.h. Generated by config.status. */
30132 if test x"$ac_file" = x-; then
30133 echo "/* Generated by configure. */" >$tmp/config.h
30134 else
30135 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
30136 fi
30137 cat $tmp/in >>$tmp/config.h
30138 rm -f $tmp/in
bec39cab 30139 if test x"$ac_file" != x-; then
b4e70030 30140 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
bec39cab
AC
30141 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30142echo "$as_me: $ac_file is unchanged" >&6;}
30143 else
b4e70030
JB
30144 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30145$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30146 X"$ac_file" : 'X\(//\)[^/]' \| \
30147 X"$ac_file" : 'X\(//\)$' \| \
30148 X"$ac_file" : 'X\(/\)' \| \
30149 . : '\(.\)' 2>/dev/null ||
30150echo X"$ac_file" |
30151 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30152 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30153 /^X\(\/\/\)$/{ s//\1/; q; }
30154 /^X\(\/\).*/{ s//\1/; q; }
30155 s/.*/./; q'`
30156 { if $as_mkdir_p; then
30157 mkdir -p "$ac_dir"
30158 else
30159 as_dir="$ac_dir"
30160 as_dirs=
30161 while test ! -d "$as_dir"; do
30162 as_dirs="$as_dir $as_dirs"
30163 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30164$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30165 X"$as_dir" : 'X\(//\)[^/]' \| \
30166 X"$as_dir" : 'X\(//\)$' \| \
30167 X"$as_dir" : 'X\(/\)' \| \
30168 . : '\(.\)' 2>/dev/null ||
30169echo X"$as_dir" |
30170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30171 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30172 /^X\(\/\/\)$/{ s//\1/; q; }
30173 /^X\(\/\).*/{ s//\1/; q; }
30174 s/.*/./; q'`
30175 done
30176 test ! -n "$as_dirs" || mkdir $as_dirs
30177 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30178echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30179 { (exit 1); exit 1; }; }; }
30180
bec39cab 30181 rm -f $ac_file
b4e70030 30182 mv $tmp/config.h $ac_file
bec39cab
AC
30183 fi
30184 else
b4e70030
JB
30185 cat $tmp/config.h
30186 rm -f $tmp/config.h
bec39cab 30187 fi
e28b3332
DJ
30188# Compute $ac_file's index in $config_headers.
30189_am_stamp_count=1
30190for _am_header in $config_headers :; do
30191 case $_am_header in
30192 $ac_file | $ac_file:* )
30193 break ;;
30194 * )
30195 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30196 esac
30197done
30198echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
30199$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30200 X$ac_file : 'X\(//\)[^/]' \| \
30201 X$ac_file : 'X\(//\)$' \| \
30202 X$ac_file : 'X\(/\)' \| \
30203 . : '\(.\)' 2>/dev/null ||
30204echo X$ac_file |
30205 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30206 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30207 /^X\(\/\/\)$/{ s//\1/; q; }
30208 /^X\(\/\).*/{ s//\1/; q; }
30209 s/.*/./; q'`/stamp-h$_am_stamp_count
b4e70030
JB
30210done
30211_ACEOF
30212cat >>$CONFIG_STATUS <<\_ACEOF
30213
30214#
30215# CONFIG_LINKS section.
30216#
30217
30218for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
30219 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30220 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
c906108c 30221
b4e70030
JB
30222 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
30223echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
c906108c
SS
30224
30225 if test ! -r $srcdir/$ac_source; then
bec39cab
AC
30226 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
30227echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
30228 { (exit 1); exit 1; }; }
c906108c 30229 fi
b4e70030
JB
30230 rm -f $ac_dest
30231
30232 # Make relative symlinks.
30233 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
30234$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30235 X"$ac_dest" : 'X\(//\)[^/]' \| \
30236 X"$ac_dest" : 'X\(//\)$' \| \
30237 X"$ac_dest" : 'X\(/\)' \| \
30238 . : '\(.\)' 2>/dev/null ||
30239echo X"$ac_dest" |
30240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30241 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30242 /^X\(\/\/\)$/{ s//\1/; q; }
30243 /^X\(\/\).*/{ s//\1/; q; }
30244 s/.*/./; q'`
30245 { if $as_mkdir_p; then
30246 mkdir -p "$ac_dest_dir"
30247 else
30248 as_dir="$ac_dest_dir"
30249 as_dirs=
30250 while test ! -d "$as_dir"; do
30251 as_dirs="$as_dir $as_dirs"
30252 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30253$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30254 X"$as_dir" : 'X\(//\)[^/]' \| \
30255 X"$as_dir" : 'X\(//\)$' \| \
30256 X"$as_dir" : 'X\(/\)' \| \
30257 . : '\(.\)' 2>/dev/null ||
30258echo X"$as_dir" |
30259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30260 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30261 /^X\(\/\/\)$/{ s//\1/; q; }
30262 /^X\(\/\).*/{ s//\1/; q; }
30263 s/.*/./; q'`
30264 done
30265 test ! -n "$as_dirs" || mkdir $as_dirs
30266 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
30267echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
30268 { (exit 1); exit 1; }; }; }
30269
30270 ac_builddir=.
30271
30272if test "$ac_dest_dir" != .; then
30273 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
30274 # A "../" for each directory in $ac_dir_suffix.
30275 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30276else
30277 ac_dir_suffix= ac_top_builddir=
30278fi
30279
30280case $srcdir in
30281 .) # No --srcdir option. We are building in place.
30282 ac_srcdir=.
30283 if test -z "$ac_top_builddir"; then
30284 ac_top_srcdir=.
30285 else
30286 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30287 fi ;;
30288 [\\/]* | ?:[\\/]* ) # Absolute path.
30289 ac_srcdir=$srcdir$ac_dir_suffix;
30290 ac_top_srcdir=$srcdir ;;
30291 *) # Relative path.
30292 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30293 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30294esac
30295
30296# Do not use `cd foo && pwd` to compute absolute paths, because
30297# the directories may not exist.
30298case `pwd` in
30299.) ac_abs_builddir="$ac_dest_dir";;
30300*)
30301 case "$ac_dest_dir" in
30302 .) ac_abs_builddir=`pwd`;;
30303 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
30304 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
30305 esac;;
30306esac
30307case $ac_abs_builddir in
30308.) ac_abs_top_builddir=${ac_top_builddir}.;;
30309*)
30310 case ${ac_top_builddir}. in
30311 .) ac_abs_top_builddir=$ac_abs_builddir;;
30312 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30313 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30314 esac;;
30315esac
30316case $ac_abs_builddir in
30317.) ac_abs_srcdir=$ac_srcdir;;
30318*)
30319 case $ac_srcdir in
30320 .) ac_abs_srcdir=$ac_abs_builddir;;
30321 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30322 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30323 esac;;
30324esac
30325case $ac_abs_builddir in
30326.) ac_abs_top_srcdir=$ac_top_srcdir;;
30327*)
30328 case $ac_top_srcdir in
30329 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30330 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30331 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30332 esac;;
30333esac
30334
bec39cab
AC
30335
30336 case $srcdir in
30337 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
b4e70030 30338 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
c906108c 30339 esac
b4e70030
JB
30340
30341 # Try a symlink, then a hard link, then a copy.
30342 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
30343 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
30344 cp -p $srcdir/$ac_source $ac_dest ||
30345 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
30346echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
bec39cab 30347 { (exit 1); exit 1; }; }
b4e70030
JB
30348done
30349_ACEOF
30350cat >>$CONFIG_STATUS <<\_ACEOF
30351
30352#
30353# CONFIG_COMMANDS section.
30354#
30355for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30356 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30357 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30358 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
30359$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30360 X"$ac_dest" : 'X\(//\)[^/]' \| \
30361 X"$ac_dest" : 'X\(//\)$' \| \
30362 X"$ac_dest" : 'X\(/\)' \| \
30363 . : '\(.\)' 2>/dev/null ||
30364echo X"$ac_dest" |
30365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30366 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30367 /^X\(\/\/\)$/{ s//\1/; q; }
30368 /^X\(\/\).*/{ s//\1/; q; }
30369 s/.*/./; q'`
30370 { if $as_mkdir_p; then
30371 mkdir -p "$ac_dir"
30372 else
30373 as_dir="$ac_dir"
30374 as_dirs=
30375 while test ! -d "$as_dir"; do
30376 as_dirs="$as_dir $as_dirs"
30377 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30378$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30379 X"$as_dir" : 'X\(//\)[^/]' \| \
30380 X"$as_dir" : 'X\(//\)$' \| \
30381 X"$as_dir" : 'X\(/\)' \| \
30382 . : '\(.\)' 2>/dev/null ||
30383echo X"$as_dir" |
30384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30385 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30386 /^X\(\/\/\)$/{ s//\1/; q; }
30387 /^X\(\/\).*/{ s//\1/; q; }
30388 s/.*/./; q'`
30389 done
30390 test ! -n "$as_dirs" || mkdir $as_dirs
30391 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30392echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30393 { (exit 1); exit 1; }; }; }
30394
30395 ac_builddir=.
30396
30397if test "$ac_dir" != .; then
30398 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30399 # A "../" for each directory in $ac_dir_suffix.
30400 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30401else
30402 ac_dir_suffix= ac_top_builddir=
30403fi
30404
30405case $srcdir in
30406 .) # No --srcdir option. We are building in place.
30407 ac_srcdir=.
30408 if test -z "$ac_top_builddir"; then
30409 ac_top_srcdir=.
30410 else
30411 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30412 fi ;;
30413 [\\/]* | ?:[\\/]* ) # Absolute path.
30414 ac_srcdir=$srcdir$ac_dir_suffix;
30415 ac_top_srcdir=$srcdir ;;
30416 *) # Relative path.
30417 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30418 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30419esac
30420
30421# Do not use `cd foo && pwd` to compute absolute paths, because
30422# the directories may not exist.
30423case `pwd` in
30424.) ac_abs_builddir="$ac_dir";;
30425*)
30426 case "$ac_dir" in
30427 .) ac_abs_builddir=`pwd`;;
30428 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30429 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30430 esac;;
30431esac
30432case $ac_abs_builddir in
30433.) ac_abs_top_builddir=${ac_top_builddir}.;;
30434*)
30435 case ${ac_top_builddir}. in
30436 .) ac_abs_top_builddir=$ac_abs_builddir;;
30437 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30438 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30439 esac;;
30440esac
30441case $ac_abs_builddir in
30442.) ac_abs_srcdir=$ac_srcdir;;
30443*)
30444 case $ac_srcdir in
30445 .) ac_abs_srcdir=$ac_abs_builddir;;
30446 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30447 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30448 esac;;
30449esac
30450case $ac_abs_builddir in
30451.) ac_abs_top_srcdir=$ac_top_srcdir;;
30452*)
30453 case $ac_top_srcdir in
30454 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30455 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30456 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30457 esac;;
30458esac
bec39cab 30459
bec39cab 30460
b4e70030
JB
30461 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
30462echo "$as_me: executing $ac_dest commands" >&6;}
30463 case $ac_dest in
e28b3332
DJ
30464 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
30465 # Strip MF so we end up with the name of the file.
30466 mf=`echo "$mf" | sed -e 's/:.*$//'`
30467 # Check whether this is an Automake generated Makefile or not.
30468 # We used to match only the files named `Makefile.in', but
30469 # some people rename them; so instead we look at the file content.
30470 # Grep'ing the first line is not enough: some people post-process
30471 # each Makefile.in and add a new line on top of each file to say so.
30472 # So let's grep whole file.
30473 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
30474 dirpart=`(dirname "$mf") 2>/dev/null ||
30475$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30476 X"$mf" : 'X\(//\)[^/]' \| \
30477 X"$mf" : 'X\(//\)$' \| \
30478 X"$mf" : 'X\(/\)' \| \
30479 . : '\(.\)' 2>/dev/null ||
30480echo X"$mf" |
30481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30482 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30483 /^X\(\/\/\)$/{ s//\1/; q; }
30484 /^X\(\/\).*/{ s//\1/; q; }
30485 s/.*/./; q'`
30486 else
30487 continue
30488 fi
30489 # Extract the definition of DEPDIR, am__include, and am__quote
30490 # from the Makefile without running `make'.
30491 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30492 test -z "$DEPDIR" && continue
30493 am__include=`sed -n 's/^am__include = //p' < "$mf"`
30494 test -z "am__include" && continue
30495 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30496 # When using ansi2knr, U may be empty or an underscore; expand it
30497 U=`sed -n 's/^U = //p' < "$mf"`
30498 # Find all dependency output files, they are included files with
30499 # $(DEPDIR) in their names. We invoke sed twice because it is the
30500 # simplest approach to changing $(DEPDIR) to its actual value in the
30501 # expansion.
30502 for file in `sed -n "
30503 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30504 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30505 # Make sure the directory exists.
30506 test -f "$dirpart/$file" && continue
30507 fdir=`(dirname "$file") 2>/dev/null ||
30508$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30509 X"$file" : 'X\(//\)[^/]' \| \
30510 X"$file" : 'X\(//\)$' \| \
30511 X"$file" : 'X\(/\)' \| \
30512 . : '\(.\)' 2>/dev/null ||
30513echo X"$file" |
30514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30515 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30516 /^X\(\/\/\)$/{ s//\1/; q; }
30517 /^X\(\/\).*/{ s//\1/; q; }
30518 s/.*/./; q'`
30519 { if $as_mkdir_p; then
30520 mkdir -p $dirpart/$fdir
30521 else
30522 as_dir=$dirpart/$fdir
30523 as_dirs=
30524 while test ! -d "$as_dir"; do
30525 as_dirs="$as_dir $as_dirs"
30526 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30527$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30528 X"$as_dir" : 'X\(//\)[^/]' \| \
30529 X"$as_dir" : 'X\(//\)$' \| \
30530 X"$as_dir" : 'X\(/\)' \| \
30531 . : '\(.\)' 2>/dev/null ||
30532echo X"$as_dir" |
30533 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30534 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30535 /^X\(\/\/\)$/{ s//\1/; q; }
30536 /^X\(\/\).*/{ s//\1/; q; }
30537 s/.*/./; q'`
30538 done
30539 test ! -n "$as_dirs" || mkdir $as_dirs
30540 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
30541echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
30542 { (exit 1); exit 1; }; }; }
30543
30544 # echo "creating $dirpart/$file"
30545 echo '# dummy' > "$dirpart/$file"
30546 done
30547done
30548 ;;
b4e70030 30549 gdb_stdint.h )
4e8d927d
DJ
30550if test "$GCC" = yes; then
30551 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
30552else
30553 echo "/* generated for $CC */" > tmp-stdint.h
30554fi
30555
30556sed 's/^ *//' >> tmp-stdint.h <<EOF
30557
30558 #ifndef GCC_GENERATED_STDINT_H
30559 #define GCC_GENERATED_STDINT_H 1
30560
30561 #include <sys/types.h>
30562EOF
30563
30564if test "$acx_cv_header_stdint" != stdint.h; then
30565 echo "#include <stddef.h>" >> tmp-stdint.h
30566fi
30567if test "$acx_cv_header_stdint" != stddef.h; then
30568 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
30569fi
30570
30571sed 's/^ *//' >> tmp-stdint.h <<EOF
30572 /* glibc uses these symbols as guards to prevent redefinitions. */
30573 #ifdef __int8_t_defined
30574 #define _INT8_T
30575 #define _INT16_T
30576 #define _INT32_T
30577 #endif
30578 #ifdef __uint32_t_defined
30579 #define _UINT32_T
30580 #endif
30581
30582EOF
30583
30584# ----------------- done header, emit basic int types -------------
30585if test "$acx_cv_header_stdint" = stddef.h; then
30586 sed 's/^ *//' >> tmp-stdint.h <<EOF
30587
30588 #ifndef _UINT8_T
30589 #define _UINT8_T
07abfebf
RS
30590 #ifndef __uint8_t_defined
30591 #define __uint8_t_defined
4e8d927d
DJ
30592 typedef unsigned $acx_cv_type_int8_t uint8_t;
30593 #endif
07abfebf 30594 #endif
4e8d927d
DJ
30595
30596 #ifndef _UINT16_T
30597 #define _UINT16_T
07abfebf
RS
30598 #ifndef __uint16_t_defined
30599 #define __uint16_t_defined
4e8d927d
DJ
30600 typedef unsigned $acx_cv_type_int16_t uint16_t;
30601 #endif
07abfebf 30602 #endif
4e8d927d
DJ
30603
30604 #ifndef _UINT32_T
30605 #define _UINT32_T
07abfebf
RS
30606 #ifndef __uint32_t_defined
30607 #define __uint32_t_defined
4e8d927d
DJ
30608 typedef unsigned $acx_cv_type_int32_t uint32_t;
30609 #endif
07abfebf 30610 #endif
4e8d927d
DJ
30611
30612 #ifndef _INT8_T
30613 #define _INT8_T
07abfebf
RS
30614 #ifndef __int8_t_defined
30615 #define __int8_t_defined
4e8d927d
DJ
30616 typedef $acx_cv_type_int8_t int8_t;
30617 #endif
07abfebf 30618 #endif
4e8d927d
DJ
30619
30620 #ifndef _INT16_T
30621 #define _INT16_T
07abfebf
RS
30622 #ifndef __int16_t_defined
30623 #define __int16_t_defined
4e8d927d
DJ
30624 typedef $acx_cv_type_int16_t int16_t;
30625 #endif
07abfebf 30626 #endif
4e8d927d
DJ
30627
30628 #ifndef _INT32_T
30629 #define _INT32_T
07abfebf
RS
30630 #ifndef __int32_t_defined
30631 #define __int32_t_defined
4e8d927d
DJ
30632 typedef $acx_cv_type_int32_t int32_t;
30633 #endif
07abfebf 30634 #endif
4e8d927d
DJ
30635EOF
30636elif test "$ac_cv_type_u_int32_t" = yes; then
30637 sed 's/^ *//' >> tmp-stdint.h <<EOF
30638
30639 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
30640 #ifndef _INT8_T
30641 #define _INT8_T
30642 #endif
30643 #ifndef _INT16_T
30644 #define _INT16_T
30645 #endif
30646 #ifndef _INT32_T
30647 #define _INT32_T
30648 #endif
30649
30650 #ifndef _UINT8_T
30651 #define _UINT8_T
07abfebf
RS
30652 #ifndef __uint8_t_defined
30653 #define __uint8_t_defined
4e8d927d
DJ
30654 typedef u_int8_t uint8_t;
30655 #endif
07abfebf 30656 #endif
4e8d927d
DJ
30657
30658 #ifndef _UINT16_T
30659 #define _UINT16_T
07abfebf
RS
30660 #ifndef __uint16_t_defined
30661 #define __uint16_t_defined
4e8d927d
DJ
30662 typedef u_int16_t uint16_t;
30663 #endif
07abfebf 30664 #endif
4e8d927d
DJ
30665
30666 #ifndef _UINT32_T
30667 #define _UINT32_T
07abfebf
RS
30668 #ifndef __uint32_t_defined
30669 #define __uint32_t_defined
4e8d927d
DJ
30670 typedef u_int32_t uint32_t;
30671 #endif
07abfebf 30672 #endif
4e8d927d
DJ
30673EOF
30674else
30675 sed 's/^ *//' >> tmp-stdint.h <<EOF
30676
30677 /* Some systems have guard macros to prevent redefinitions, define them. */
30678 #ifndef _INT8_T
30679 #define _INT8_T
30680 #endif
30681 #ifndef _INT16_T
30682 #define _INT16_T
30683 #endif
30684 #ifndef _INT32_T
30685 #define _INT32_T
30686 #endif
30687 #ifndef _UINT8_T
30688 #define _UINT8_T
30689 #endif
30690 #ifndef _UINT16_T
30691 #define _UINT16_T
30692 #endif
30693 #ifndef _UINT32_T
30694 #define _UINT32_T
30695 #endif
30696EOF
30697fi
30698
30699# ------------- done basic int types, emit int64_t types ------------
30700if test "$ac_cv_type_uint64_t" = yes; then
30701 sed 's/^ *//' >> tmp-stdint.h <<EOF
30702
30703 /* system headers have good uint64_t and int64_t */
30704 #ifndef _INT64_T
30705 #define _INT64_T
30706 #endif
30707 #ifndef _UINT64_T
30708 #define _UINT64_T
30709 #endif
30710EOF
30711elif test "$ac_cv_type_u_int64_t" = yes; then
30712 sed 's/^ *//' >> tmp-stdint.h <<EOF
30713
30714 /* system headers have an u_int64_t (and int64_t) */
30715 #ifndef _INT64_T
30716 #define _INT64_T
30717 #endif
30718 #ifndef _UINT64_T
30719 #define _UINT64_T
07abfebf
RS
30720 #ifndef __uint64_t_defined
30721 #define __uint64_t_defined
4e8d927d
DJ
30722 typedef u_int64_t uint64_t;
30723 #endif
07abfebf 30724 #endif
4e8d927d
DJ
30725EOF
30726elif test -n "$acx_cv_type_int64_t"; then
30727 sed 's/^ *//' >> tmp-stdint.h <<EOF
30728
30729 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
30730 #ifndef _INT64_T
30731 #define _INT64_T
30732 typedef $acx_cv_type_int64_t int64_t;
30733 #endif
30734 #ifndef _UINT64_T
30735 #define _UINT64_T
07abfebf
RS
30736 #ifndef __uint64_t_defined
30737 #define __uint64_t_defined
4e8d927d
DJ
30738 typedef unsigned $acx_cv_type_int64_t uint64_t;
30739 #endif
07abfebf 30740 #endif
4e8d927d
DJ
30741EOF
30742else
30743 sed 's/^ *//' >> tmp-stdint.h <<EOF
30744
30745 /* some common heuristics for int64_t, using compiler-specific tests */
30746 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
30747 #ifndef _INT64_T
30748 #define _INT64_T
07abfebf 30749 #ifndef __int64_t_defined
4e8d927d
DJ
30750 typedef long long int64_t;
30751 #endif
07abfebf 30752 #endif
4e8d927d
DJ
30753 #ifndef _UINT64_T
30754 #define _UINT64_T
30755 typedef unsigned long long uint64_t;
30756 #endif
30757
30758 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
30759 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
30760 does not implement __extension__. But that compiler doesn't define
30761 __GNUC_MINOR__. */
30762 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
30763 # define __extension__
30764 # endif
30765
30766 # ifndef _INT64_T
30767 # define _INT64_T
30768 __extension__ typedef long long int64_t;
30769 # endif
30770 # ifndef _UINT64_T
30771 # define _UINT64_T
30772 __extension__ typedef unsigned long long uint64_t;
30773 # endif
30774
30775 #elif !defined __STRICT_ANSI__
30776 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
30777
30778 # ifndef _INT64_T
30779 # define _INT64_T
30780 typedef __int64 int64_t;
30781 # endif
30782 # ifndef _UINT64_T
30783 # define _UINT64_T
30784 typedef unsigned __int64 uint64_t;
30785 # endif
30786 # endif /* compiler */
30787
30788 #endif /* ANSI version */
30789EOF
30790fi
30791
30792# ------------- done int64_t types, emit intptr types ------------
30793if test "$ac_cv_type_uintptr_t" != yes; then
30794 sed 's/^ *//' >> tmp-stdint.h <<EOF
30795
30796 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
07abfebf 30797 #ifndef __uintptr_t_defined
4e8d927d 30798 typedef u$acx_cv_type_intptr_t uintptr_t;
07abfebf
RS
30799 #endif
30800 #ifndef __intptr_t_defined
4e8d927d 30801 typedef $acx_cv_type_intptr_t intptr_t;
07abfebf 30802 #endif
4e8d927d
DJ
30803EOF
30804fi
30805
30806# ------------- done intptr types, emit int_least types ------------
30807if test "$ac_cv_type_int_least32_t" != yes; then
30808 sed 's/^ *//' >> tmp-stdint.h <<EOF
30809
30810 /* Define int_least types */
30811 typedef int8_t int_least8_t;
30812 typedef int16_t int_least16_t;
30813 typedef int32_t int_least32_t;
30814 #ifdef _INT64_T
30815 typedef int64_t int_least64_t;
30816 #endif
30817
30818 typedef uint8_t uint_least8_t;
30819 typedef uint16_t uint_least16_t;
30820 typedef uint32_t uint_least32_t;
30821 #ifdef _UINT64_T
30822 typedef uint64_t uint_least64_t;
30823 #endif
30824EOF
30825fi
30826
30827# ------------- done intptr types, emit int_fast types ------------
30828if test "$ac_cv_type_int_fast32_t" != yes; then
30829 sed 's/^ *//' >> tmp-stdint.h <<EOF
30830
30831 /* Define int_fast types. short is often slow */
30832 typedef int8_t int_fast8_t;
30833 typedef int int_fast16_t;
30834 typedef int32_t int_fast32_t;
30835 #ifdef _INT64_T
30836 typedef int64_t int_fast64_t;
30837 #endif
30838
30839 typedef uint8_t uint_fast8_t;
30840 typedef unsigned int uint_fast16_t;
30841 typedef uint32_t uint_fast32_t;
30842 #ifdef _UINT64_T
30843 typedef uint64_t uint_fast64_t;
30844 #endif
30845EOF
30846fi
30847
30848if test "$ac_cv_type_uintmax_t" != yes; then
30849 sed 's/^ *//' >> tmp-stdint.h <<EOF
30850
30851 /* Define intmax based on what we found */
30852 #ifdef _INT64_T
30853 typedef int64_t intmax_t;
30854 #else
30855 typedef long intmax_t;
30856 #endif
30857 #ifdef _UINT64_T
30858 typedef uint64_t uintmax_t;
30859 #else
30860 typedef unsigned long uintmax_t;
30861 #endif
30862EOF
30863fi
30864
30865sed 's/^ *//' >> tmp-stdint.h <<EOF
30866
30867 #endif /* GCC_GENERATED_STDINT_H */
30868EOF
30869
30870if test -r gdb_stdint.h && cmp -s tmp-stdint.h gdb_stdint.h; then
30871 rm -f tmp-stdint.h
30872else
30873 mv -f tmp-stdint.h gdb_stdint.h
bec39cab
AC
30874fi
30875
4e8d927d 30876 ;;
b4e70030 30877 default )
c906108c 30878
db985757 30879sed -e '/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
c906108c
SS
30880mv -f Makefile.tmp Makefile
30881
2acceee2 30882
c906108c
SS
30883case x$CONFIG_HEADERS in
30884xconfig.h:config.in)
30885echo > stamp-h ;;
30886esac
bec39cab
AC
30887 ;;
30888 esac
b4e70030
JB
30889done
30890_ACEOF
c906108c 30891
b4e70030 30892cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
30893
30894{ (exit 0); exit 0; }
30895_ACEOF
c906108c 30896chmod +x $CONFIG_STATUS
bec39cab
AC
30897ac_clean_files=$ac_clean_files_save
30898
30899
30900# configure is writing to config.log, and then calls config.status.
30901# config.status does its own redirection, appending to config.log.
30902# Unfortunately, on DOS this fails, as config.log is still kept open
30903# by configure, so config.status won't be able to write to it; its
30904# output is simply discarded. So we exec the FD to /dev/null,
30905# effectively closing config.log, so it can be properly (re)opened and
30906# appended to by config.status. When coming back to configure, we
30907# need to make the FD available again.
30908if test "$no_create" != yes; then
30909 ac_cs_success=:
30910 ac_config_status_args=
30911 test "$silent" = yes &&
30912 ac_config_status_args="$ac_config_status_args --quiet"
30913 exec 5>/dev/null
30914 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
30915 exec 5>>config.log
30916 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
30917 # would make configure fail if this is the last instruction.
30918 $ac_cs_success || { (exit 1); exit 1; }
30919fi
c906108c 30920
bec39cab 30921#
fdc59709 30922# CONFIG_SUBDIRS section, as fixed in confsubdir.m4.
bec39cab 30923#
c906108c
SS
30924if test "$no_recursion" != yes; then
30925
30926 # Remove --cache-file and --srcdir arguments so they do not pile up.
30927 ac_sub_configure_args=
30928 ac_prev=
fdc59709
PB
30929 eval "set x $ac_configure_args"
30930 shift
30931 for ac_arg
30932 do
c906108c
SS
30933 if test -n "$ac_prev"; then
30934 ac_prev=
30935 continue
30936 fi
bec39cab 30937 case $ac_arg in
c906108c
SS
30938 -cache-file | --cache-file | --cache-fil | --cache-fi \
30939 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
30940 ac_prev=cache_file ;;
30941 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
bec39cab
AC
30942 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
30943 | --c=*)
30944 ;;
30945 --config-cache | -C)
c906108c
SS
30946 ;;
30947 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
30948 ac_prev=srcdir ;;
30949 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
30950 ;;
bec39cab
AC
30951 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
30952 ac_prev=prefix ;;
30953 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
30954 ;;
fdc59709
PB
30955 *)
30956 case $ac_arg in
30957 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
30958 esac
30959 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
c906108c
SS
30960 esac
30961 done
30962
bec39cab
AC
30963 # Always prepend --prefix to ensure using the same prefix
30964 # in subdir configurations.
fdc59709
PB
30965 ac_arg="--prefix=$prefix"
30966 case $ac_arg in
30967 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
30968 esac
30969 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
bec39cab 30970
b4e70030 30971 ac_popdir=`pwd`
bec39cab 30972 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
c906108c
SS
30973
30974 # Do not complain, so a configure script can configure whichever
30975 # parts of a large source tree are present.
fdc59709 30976 test -d "$srcdir/$ac_dir" || continue
c906108c 30977
b4e70030
JB
30978 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
30979echo "$as_me: configuring in $ac_dir" >&6;}
30980 { if $as_mkdir_p; then
30981 mkdir -p "$ac_dir"
30982 else
30983 as_dir="$ac_dir"
bec39cab 30984 as_dirs=
b4e70030
JB
30985 while test ! -d "$as_dir"; do
30986 as_dirs="$as_dir $as_dirs"
30987 as_dir=`(dirname "$as_dir") 2>/dev/null ||
bec39cab
AC
30988$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30989 X"$as_dir" : 'X\(//\)[^/]' \| \
30990 X"$as_dir" : 'X\(//\)$' \| \
b4e70030
JB
30991 X"$as_dir" : 'X\(/\)' \| \
30992 . : '\(.\)' 2>/dev/null ||
bec39cab 30993echo X"$as_dir" |
b4e70030
JB
30994 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30995 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30996 /^X\(\/\/\)$/{ s//\1/; q; }
30997 /^X\(\/\).*/{ s//\1/; q; }
30998 s/.*/./; q'`
bec39cab 30999 done
b4e70030
JB
31000 test ! -n "$as_dirs" || mkdir $as_dirs
31001 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31002echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
bec39cab 31003 { (exit 1); exit 1; }; }; }
b4e70030 31004
bec39cab
AC
31005 ac_builddir=.
31006
b4e70030 31007if test "$ac_dir" != .; then
bec39cab 31008 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
31009 # A "../" for each directory in $ac_dir_suffix.
31010 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31011else
31012 ac_dir_suffix= ac_top_builddir=
31013fi
bec39cab
AC
31014
31015case $srcdir in
b4e70030 31016 .) # No --srcdir option. We are building in place.
bec39cab 31017 ac_srcdir=.
b4e70030
JB
31018 if test -z "$ac_top_builddir"; then
31019 ac_top_srcdir=.
31020 else
31021 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31022 fi ;;
31023 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 31024 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
31025 ac_top_srcdir=$srcdir ;;
31026 *) # Relative path.
31027 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31028 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31029esac
31030
31031# Do not use `cd foo && pwd` to compute absolute paths, because
31032# the directories may not exist.
31033case `pwd` in
31034.) ac_abs_builddir="$ac_dir";;
31035*)
31036 case "$ac_dir" in
31037 .) ac_abs_builddir=`pwd`;;
31038 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31039 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31040 esac;;
31041esac
31042case $ac_abs_builddir in
31043.) ac_abs_top_builddir=${ac_top_builddir}.;;
31044*)
31045 case ${ac_top_builddir}. in
31046 .) ac_abs_top_builddir=$ac_abs_builddir;;
31047 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31048 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31049 esac;;
31050esac
31051case $ac_abs_builddir in
31052.) ac_abs_srcdir=$ac_srcdir;;
31053*)
31054 case $ac_srcdir in
31055 .) ac_abs_srcdir=$ac_abs_builddir;;
31056 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31057 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31058 esac;;
31059esac
31060case $ac_abs_builddir in
31061.) ac_abs_top_srcdir=$ac_top_srcdir;;
31062*)
31063 case $ac_top_srcdir in
31064 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31065 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31066 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31067 esac;;
bec39cab 31068esac
c906108c 31069
c906108c 31070
fdc59709 31071 cd "$ac_dir"
c906108c
SS
31072
31073 # Check for guested configure; otherwise get Cygnus style configure.
fdc59709
PB
31074 if test -f "$ac_srcdir/configure.gnu"; then
31075 ac_sub_configure=$ac_srcdir/configure.gnu
31076 elif test -f "$ac_srcdir/configure"; then
31077 ac_sub_configure=$ac_srcdir/configure
31078 elif test -f "$ac_srcdir/configure.in"; then
31079 # This should be Cygnus configure.
31080 ac_sub_configure=$ac_aux_dir/configure
c906108c 31081 else
bec39cab
AC
31082 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31083echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
c906108c
SS
31084 ac_sub_configure=
31085 fi
31086
31087 # The recursion is here.
31088 if test -n "$ac_sub_configure"; then
c906108c 31089 # Make the cache file name correct relative to the subdirectory.
bec39cab
AC
31090 case $cache_file in
31091 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
b4e70030
JB
31092 *) # Relative path.
31093 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
c906108c 31094 esac
c906108c 31095
fdc59709
PB
31096 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31097echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
c906108c 31098 # The eval makes quoting arguments work.
fdc59709
PB
31099 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
31100 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
bec39cab
AC
31101 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
31102echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31103 { (exit 1); exit 1; }; }
c906108c
SS
31104 fi
31105
fdc59709 31106 cd "$ac_popdir"
c906108c
SS
31107 done
31108fi
31109
31110
31111exit 0
This page took 2.30659 seconds and 4 git commands to generate.