* mips-tdep.c (show_mipsfpu_command): Do not crash if called when
[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"
20e95c23 275ac_subdirs_all="$ac_subdirs_all doc testsuite"
bec39cab
AC
276# Factoring default headers for most tests.
277ac_includes_default="\
278#include <stdio.h>
279#if HAVE_SYS_TYPES_H
280# include <sys/types.h>
281#endif
282#if HAVE_SYS_STAT_H
283# include <sys/stat.h>
284#endif
285#if STDC_HEADERS
286# include <stdlib.h>
287# include <stddef.h>
288#else
289# if HAVE_STDLIB_H
290# include <stdlib.h>
291# endif
292#endif
293#if HAVE_STRING_H
294# if !STDC_HEADERS && HAVE_MEMORY_H
295# include <memory.h>
296# endif
297# include <string.h>
298#endif
299#if HAVE_STRINGS_H
300# include <strings.h>
301#endif
302#if HAVE_INTTYPES_H
303# include <inttypes.h>
b4e70030
JB
304#else
305# if HAVE_STDINT_H
306# include <stdint.h>
307# endif
bec39cab
AC
308#endif
309#if HAVE_UNISTD_H
310# include <unistd.h>
311#endif"
312
b4e70030
JB
313ac_subdirs_all="$ac_subdirs_all gdbtk"
314ac_subdirs_all="$ac_subdirs_all multi-ice"
315ac_subdirs_all="$ac_subdirs_all gdbserver"
a4ce5b0d
UW
316ac_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 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 PACKAGE subdirs TARGET_OBS AWK INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S RANLIB ac_ct_RANLIB 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'
317ac_subst_files='host_makefile_frag'
c906108c
SS
318
319# Initialize some variables set by options.
bec39cab
AC
320ac_init_help=
321ac_init_version=false
c906108c
SS
322# The variables have the same names as the options, with
323# dashes changed to underlines.
bec39cab 324cache_file=/dev/null
c906108c 325exec_prefix=NONE
c906108c 326no_create=
c906108c
SS
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
c906108c
SS
335verbose=
336x_includes=NONE
337x_libraries=NONE
bec39cab
AC
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
c906108c
SS
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
b4e70030 347datadir='${prefix}/share'
c906108c
SS
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
b4e70030 351libdir='${exec_prefix}/lib'
c906108c
SS
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
b4e70030
JB
354infodir='${prefix}/info'
355mandir='${prefix}/man'
c906108c 356
c906108c
SS
357ac_prev=
358for ac_option
359do
c906108c
SS
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
b4e70030 362 eval "$ac_prev=\$ac_option"
c906108c
SS
363 ac_prev=
364 continue
365 fi
366
b4e70030 367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
c906108c
SS
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
b4e70030 371 case $ac_option in
c906108c
SS
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
bec39cab 376 bindir=$ac_optarg ;;
c906108c
SS
377
378 -build | --build | --buil | --bui | --bu)
bec39cab 379 ac_prev=build_alias ;;
c906108c 380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
bec39cab 381 build_alias=$ac_optarg ;;
c906108c
SS
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
bec39cab
AC
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
c906108c 392
b4e70030 393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
c906108c 394 ac_prev=datadir ;;
b4e70030
JB
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
bec39cab 397 datadir=$ac_optarg ;;
c906108c
SS
398
399 -disable-* | --disable-*)
bec39cab 400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
c906108c 401 # Reject names that are not valid shell variable names.
bec39cab
AC
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
b4e70030 406 eval "enable_$ac_feature=no" ;;
c906108c
SS
407
408 -enable-* | --enable-*)
bec39cab 409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
c906108c 410 # Reject names that are not valid shell variable names.
bec39cab
AC
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
b4e70030
JB
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417 *) ac_optarg=yes ;;
418 esac
419 eval "enable_$ac_feature='$ac_optarg'" ;;
c906108c
SS
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
bec39cab 428 exec_prefix=$ac_optarg ;;
c906108c
SS
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
bec39cab
AC
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
c906108c
SS
440
441 -host | --host | --hos | --ho)
bec39cab 442 ac_prev=host_alias ;;
c906108c 443 -host=* | --host=* | --hos=* | --ho=*)
bec39cab 444 host_alias=$ac_optarg ;;
c906108c
SS
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
bec39cab 451 includedir=$ac_optarg ;;
c906108c
SS
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
bec39cab 456 infodir=$ac_optarg ;;
c906108c
SS
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
bec39cab 461 libdir=$ac_optarg ;;
c906108c
SS
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
bec39cab 468 libexecdir=$ac_optarg ;;
c906108c
SS
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
b4e70030
JB
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
c906108c
SS
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
b4e70030
JB
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
bec39cab 477 localstatedir=$ac_optarg ;;
c906108c
SS
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
bec39cab 482 mandir=$ac_optarg ;;
c906108c
SS
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
bec39cab 489 | --no-cr | --no-c | -n)
c906108c
SS
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
bec39cab 503 oldincludedir=$ac_optarg ;;
c906108c
SS
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
bec39cab 508 prefix=$ac_optarg ;;
c906108c
SS
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
bec39cab 515 program_prefix=$ac_optarg ;;
c906108c
SS
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
bec39cab 522 program_suffix=$ac_optarg ;;
c906108c
SS
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
bec39cab 539 program_transform_name=$ac_optarg ;;
c906108c
SS
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
bec39cab 549 sbindir=$ac_optarg ;;
c906108c
SS
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
bec39cab 560 sharedstatedir=$ac_optarg ;;
c906108c
SS
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
bec39cab 565 site=$ac_optarg ;;
3ace7edb 566
c906108c
SS
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
bec39cab 570 srcdir=$ac_optarg ;;
c906108c
SS
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
bec39cab 577 sysconfdir=$ac_optarg ;;
c906108c
SS
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
bec39cab 580 ac_prev=target_alias ;;
c906108c 581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
bec39cab 582 target_alias=$ac_optarg ;;
c906108c
SS
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
bec39cab
AC
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
c906108c
SS
589
590 -with-* | --with-*)
bec39cab 591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
c906108c 592 # Reject names that are not valid shell variable names.
bec39cab
AC
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
c906108c 596 ac_package=`echo $ac_package| sed 's/-/_/g'`
b4e70030
JB
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599 *) ac_optarg=yes ;;
600 esac
601 eval "with_$ac_package='$ac_optarg'" ;;
c906108c
SS
602
603 -without-* | --without-*)
bec39cab 604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
c906108c 605 # Reject names that are not valid shell variable names.
bec39cab
AC
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
b4e70030 610 eval "with_$ac_package=no" ;;
c906108c
SS
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
bec39cab 621 x_includes=$ac_optarg ;;
c906108c
SS
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
bec39cab 628 x_libraries=$ac_optarg ;;
c906108c 629
bec39cab
AC
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
c906108c
SS
633 ;;
634
bec39cab
AC
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
b4e70030
JB
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
bec39cab
AC
643 export $ac_envvar ;;
644
c906108c 645 *)
bec39cab
AC
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
c906108c
SS
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
bec39cab
AC
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
c906108c 660fi
c906108c 661
b4e70030
JB
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
c906108c 664do
b4e70030 665 eval ac_val=$`echo $ac_var`
bec39cab 666 case $ac_val in
b4e70030
JB
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
672
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
675 localstatedir libdir includedir oldincludedir infodir mandir
676do
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
c906108c
SS
682 esac
683done
684
bec39cab
AC
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
c906108c 702
bec39cab
AC
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
c906108c 707
c906108c
SS
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
b4e70030
JB
712 # Try the directory containing this script, then its parent.
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
bec39cab
AC
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
b4e70030
JB
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
bec39cab 719echo X"$0" |
b4e70030
JB
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
c906108c 725 srcdir=$ac_confdir
b4e70030 726 if test ! -r $srcdir/$ac_unique_file; then
c906108c
SS
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
b4e70030
JB
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
736 else
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
bec39cab 738 { (exit 1); exit 1; }; }
b4e70030 739 fi
c906108c 740fi
b4e70030
JB
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
bec39cab 743 { (exit 1); exit 1; }; }
b4e70030
JB
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
c906108c 777
bec39cab
AC
778#
779# Report the --help message.
780#
781if test "$ac_init_help" = "long"; then
782 # Omit some internal or obsolete options to make the list less imposing.
783 # This message is too long to be a string in the A/UX 3.1 sh.
784 cat <<_ACEOF
785\`configure' configures this package to adapt to many kinds of systems.
786
787Usage: $0 [OPTION]... [VAR=VALUE]...
788
789To assign environment variables (e.g., CC, CFLAGS...), specify them as
790VAR=VALUE. See below for descriptions of some of the useful variables.
791
792Defaults for the options are specified in brackets.
793
794Configuration:
795 -h, --help display this help and exit
796 --help=short display options specific to this package
797 --help=recursive display the short help of all the included packages
798 -V, --version display version information and exit
799 -q, --quiet, --silent do not print \`checking...' messages
800 --cache-file=FILE cache test results in FILE [disabled]
801 -C, --config-cache alias for \`--cache-file=config.cache'
802 -n, --no-create do not create output files
803 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804
b4e70030
JB
805_ACEOF
806
807 cat <<_ACEOF
bec39cab
AC
808Installation directories:
809 --prefix=PREFIX install architecture-independent files in PREFIX
810 [$ac_default_prefix]
811 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
812 [PREFIX]
813
814By default, \`make install' will install all the files in
815\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
816an installation prefix other than \`$ac_default_prefix' using \`--prefix',
817for instance \`--prefix=\$HOME'.
818
819For better control, use the options below.
820
821Fine tuning of the installation directories:
822 --bindir=DIR user executables [EPREFIX/bin]
823 --sbindir=DIR system admin executables [EPREFIX/sbin]
824 --libexecdir=DIR program executables [EPREFIX/libexec]
b4e70030 825 --datadir=DIR read-only architecture-independent data [PREFIX/share]
bec39cab
AC
826 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
827 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
828 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
829 --libdir=DIR object code libraries [EPREFIX/lib]
830 --includedir=DIR C header files [PREFIX/include]
831 --oldincludedir=DIR C header files for non-gcc [/usr/include]
b4e70030
JB
832 --infodir=DIR info documentation [PREFIX/info]
833 --mandir=DIR man documentation [PREFIX/man]
bec39cab
AC
834_ACEOF
835
836 cat <<\_ACEOF
837
838Program names:
839 --program-prefix=PREFIX prepend PREFIX to installed program names
840 --program-suffix=SUFFIX append SUFFIX to installed program names
841 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
842
843X features:
844 --x-includes=DIR X include files are in DIR
845 --x-libraries=DIR X library files are in DIR
846
847System types:
848 --build=BUILD configure for building on BUILD [guessed]
849 --host=HOST cross-compile to build programs to run on HOST [BUILD]
850 --target=TARGET configure for building compilers for TARGET [HOST]
851_ACEOF
852fi
853
854if test -n "$ac_init_help"; then
855
856 cat <<\_ACEOF
857
858Optional Features:
859 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
860 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
85981d60
AC
861 --enable-maintainer-mode enable make rules and dependencies not useful
862 (and sometimes confusing) to the casual installer
bec39cab
AC
863 --disable-gdbcli disable command-line interface (CLI)
864 --disable-gdbmi disable machine-interface (MI)
865 --enable-tui enable full-screen terminal user interface (TUI)
866 --enable-gdbtk enable gdbtk graphical user interface (GUI)
867 --enable-profiling enable profiling of GDB
3841debe 868 --disable-rpath do not hardcode runtime library paths
094a342e 869 --enable-werror treat compile warnings as errors
bec39cab
AC
870 --enable-build-warnings Enable build-time compiler warnings if gcc is used
871 --enable-gdb-build-warnings Enable GDB specific build-time compiler warnings if gcc is used
872 --enable-sim Link gdb with simulator
873 --enable-multi-ice build the multi-ice-gdb-server
874
875Optional Packages:
876 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
877 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
bec39cab
AC
878 --with-separate-debug-dir=path Look for global separate debug info in this path LIBDIR/debug
879 --with-libunwind Use libunwind frame unwinding support
6a30b0a5 880 --with-system-readline use installed readline library
5c39566f 881 --with-expat include expat support (auto/yes/no)
3841debe
DJ
882 --with-gnu-ld assume the C compiler uses GNU ld default=no
883 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
884 --without-libexpat-prefix don't search for libexpat in includedir and libdir
bec39cab
AC
885 --without-included-regex don't use included regex; this is the default
886 on systems with version 2 of the GNU C library
887 (use with caution on other system)
888 --with-sysroot=DIR Search for usr/lib et al within DIR.
889 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)
890 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)
891 --with-tclinclude=DIR Directory where tcl private headers are
892 --with-tkinclude=DIR Directory where tk private headers are
893 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)
894 --with-itkconfig Directory containing itk configuration (itkConfig.sh)
895 --with-x use the X Window System
896 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
897
898Some influential environment variables:
899 CC C compiler command
900 CFLAGS C compiler flags
901 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
902 nonstandard directory <lib dir>
b4e70030
JB
903 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
904 headers in a nonstandard directory <include dir>
bec39cab
AC
905 CPP C preprocessor
906
907Use these variables to override the choices made by `configure' or to help
908it to find libraries and programs with nonstandard names/locations.
909
910_ACEOF
911fi
912
913if test "$ac_init_help" = "recursive"; then
914 # If there are subdirs, report their specific --help.
b4e70030 915 ac_popdir=`pwd`
bec39cab
AC
916 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
917 test -d $ac_dir || continue
918 ac_builddir=.
919
b4e70030 920if test "$ac_dir" != .; then
bec39cab 921 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
922 # A "../" for each directory in $ac_dir_suffix.
923 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
924else
925 ac_dir_suffix= ac_top_builddir=
926fi
bec39cab
AC
927
928case $srcdir in
b4e70030 929 .) # No --srcdir option. We are building in place.
bec39cab 930 ac_srcdir=.
b4e70030
JB
931 if test -z "$ac_top_builddir"; then
932 ac_top_srcdir=.
933 else
934 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
935 fi ;;
936 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 937 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
938 ac_top_srcdir=$srcdir ;;
939 *) # Relative path.
940 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
941 ac_top_srcdir=$ac_top_builddir$srcdir ;;
942esac
943
944# Do not use `cd foo && pwd` to compute absolute paths, because
945# the directories may not exist.
946case `pwd` in
947.) ac_abs_builddir="$ac_dir";;
948*)
949 case "$ac_dir" in
950 .) ac_abs_builddir=`pwd`;;
951 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
952 *) ac_abs_builddir=`pwd`/"$ac_dir";;
953 esac;;
954esac
955case $ac_abs_builddir in
956.) ac_abs_top_builddir=${ac_top_builddir}.;;
957*)
958 case ${ac_top_builddir}. in
959 .) ac_abs_top_builddir=$ac_abs_builddir;;
960 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
961 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
962 esac;;
963esac
964case $ac_abs_builddir in
965.) ac_abs_srcdir=$ac_srcdir;;
966*)
967 case $ac_srcdir in
968 .) ac_abs_srcdir=$ac_abs_builddir;;
969 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
970 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
971 esac;;
972esac
973case $ac_abs_builddir in
974.) ac_abs_top_srcdir=$ac_top_srcdir;;
975*)
976 case $ac_top_srcdir in
977 .) ac_abs_top_srcdir=$ac_abs_builddir;;
978 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
979 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
980 esac;;
bec39cab
AC
981esac
982
b4e70030
JB
983 cd $ac_dir
984 # Check for guested configure; otherwise get Cygnus style configure.
bec39cab 985 if test -f $ac_srcdir/configure.gnu; then
b4e70030 986 echo
bec39cab
AC
987 $SHELL $ac_srcdir/configure.gnu --help=recursive
988 elif test -f $ac_srcdir/configure; then
b4e70030 989 echo
bec39cab 990 $SHELL $ac_srcdir/configure --help=recursive
b4e70030
JB
991 elif test -f $ac_srcdir/configure.ac ||
992 test -f $ac_srcdir/configure.in; then
993 echo
994 $ac_configure --help
3ace7edb 995 else
bec39cab 996 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
b4e70030
JB
997 fi
998 cd $ac_popdir
bec39cab
AC
999 done
1000fi
1001
b4e70030 1002test -n "$ac_init_help" && exit 0
bec39cab
AC
1003if $ac_init_version; then
1004 cat <<\_ACEOF
1005
b4e70030 1006Copyright (C) 2003 Free Software Foundation, Inc.
bec39cab
AC
1007This configure script is free software; the Free Software Foundation
1008gives unlimited permission to copy, distribute and modify it.
1009_ACEOF
b4e70030 1010 exit 0
bec39cab 1011fi
b4e70030
JB
1012exec 5>config.log
1013cat >&5 <<_ACEOF
bec39cab
AC
1014This file contains any messages produced by compilers while
1015running configure, to aid debugging if configure makes a mistake.
1016
1017It was created by $as_me, which was
b4e70030 1018generated by GNU Autoconf 2.59. Invocation command line was
bec39cab
AC
1019
1020 $ $0 $@
1021
1022_ACEOF
1023{
1024cat <<_ASUNAME
1025## --------- ##
1026## Platform. ##
1027## --------- ##
1028
1029hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1030uname -m = `(uname -m) 2>/dev/null || echo unknown`
1031uname -r = `(uname -r) 2>/dev/null || echo unknown`
1032uname -s = `(uname -s) 2>/dev/null || echo unknown`
1033uname -v = `(uname -v) 2>/dev/null || echo unknown`
1034
1035/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1036/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1037
1038/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1039/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1040/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
b4e70030 1041hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
bec39cab
AC
1042/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1043/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1044/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1045
1046_ASUNAME
1047
1048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1049for as_dir in $PATH
1050do
1051 IFS=$as_save_IFS
1052 test -z "$as_dir" && as_dir=.
1053 echo "PATH: $as_dir"
1054done
1055
1056} >&5
1057
1058cat >&5 <<_ACEOF
1059
1060
1061## ----------- ##
1062## Core tests. ##
1063## ----------- ##
1064
1065_ACEOF
1066
1067
1068# Keep a trace of the command line.
1069# Strip out --no-create and --no-recursion so they do not pile up.
1070# Strip out --silent because we don't want to record it for future runs.
1071# Also quote any args containing shell meta-characters.
1072# Make two passes to allow for proper duplicate-argument suppression.
1073ac_configure_args=
1074ac_configure_args0=
1075ac_configure_args1=
1076ac_sep=
1077ac_must_keep_next=false
1078for ac_pass in 1 2
1079do
1080 for ac_arg
1081 do
1082 case $ac_arg in
1083 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085 | -silent | --silent | --silen | --sile | --sil)
1086 continue ;;
b4e70030 1087 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
bec39cab
AC
1088 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1089 esac
1090 case $ac_pass in
1091 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1092 2)
1093 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1094 if test $ac_must_keep_next = true; then
1095 ac_must_keep_next=false # Got value, back to normal.
1096 else
1097 case $ac_arg in
1098 *=* | --config-cache | -C | -disable-* | --disable-* \
1099 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1100 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1101 | -with-* | --with-* | -without-* | --without-* | --x)
1102 case "$ac_configure_args0 " in
1103 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1104 esac
1105 ;;
1106 -* ) ac_must_keep_next=true ;;
1107 esac
1108 fi
1109 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1110 # Get rid of the leading space.
1111 ac_sep=" "
1112 ;;
1113 esac
1114 done
1115done
1116$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1117$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1118
1119# When interrupted or exit'd, cleanup temporary files, and complete
1120# config.log. We remove comments because anyway the quotes in there
1121# would cause problems or look ugly.
b4e70030
JB
1122# WARNING: Be sure not to use single quotes in there, as some shells,
1123# such as our DU 5.0 friend, will then `close' the trap.
bec39cab
AC
1124trap 'exit_status=$?
1125 # Save into config.log some information that might help in debugging.
1126 {
1127 echo
1128
1129 cat <<\_ASBOX
1130## ---------------- ##
1131## Cache variables. ##
1132## ---------------- ##
1133_ASBOX
1134 echo
1135 # The following way of writing the cache mishandles newlines in values,
b4e70030 1136{
bec39cab 1137 (set) 2>&1 |
b4e70030
JB
1138 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1139 *ac_space=\ *)
bec39cab 1140 sed -n \
b4e70030
JB
1141 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1142 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1143 ;;
bec39cab 1144 *)
b4e70030
JB
1145 sed -n \
1146 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
bec39cab 1147 ;;
b4e70030
JB
1148 esac;
1149}
bec39cab
AC
1150 echo
1151
1152 cat <<\_ASBOX
1153## ----------------- ##
1154## Output variables. ##
1155## ----------------- ##
1156_ASBOX
1157 echo
1158 for ac_var in $ac_subst_vars
1159 do
b4e70030
JB
1160 eval ac_val=$`echo $ac_var`
1161 echo "$ac_var='"'"'$ac_val'"'"'"
bec39cab
AC
1162 done | sort
1163 echo
1164
1165 if test -n "$ac_subst_files"; then
1166 cat <<\_ASBOX
b4e70030
JB
1167## ------------- ##
1168## Output files. ##
1169## ------------- ##
bec39cab
AC
1170_ASBOX
1171 echo
1172 for ac_var in $ac_subst_files
1173 do
b4e70030
JB
1174 eval ac_val=$`echo $ac_var`
1175 echo "$ac_var='"'"'$ac_val'"'"'"
bec39cab
AC
1176 done | sort
1177 echo
1178 fi
1179
1180 if test -s confdefs.h; then
1181 cat <<\_ASBOX
1182## ----------- ##
1183## confdefs.h. ##
1184## ----------- ##
1185_ASBOX
1186 echo
b4e70030 1187 sed "/^$/d" confdefs.h | sort
bec39cab 1188 echo
3ace7edb 1189 fi
bec39cab
AC
1190 test "$ac_signal" != 0 &&
1191 echo "$as_me: caught signal $ac_signal"
1192 echo "$as_me: exit $exit_status"
1193 } >&5
b4e70030
JB
1194 rm -f core *.core &&
1195 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
bec39cab 1196 exit $exit_status
b4e70030 1197 ' 0
bec39cab
AC
1198for ac_signal in 1 2 13 15; do
1199 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1200done
1201ac_signal=0
1202
1203# confdefs.h avoids OS command line length limits that DEFS can exceed.
b4e70030
JB
1204rm -rf conftest* confdefs.h
1205# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1206echo >confdefs.h
bec39cab
AC
1207
1208# Predefined preprocessor variables.
1209
1210cat >>confdefs.h <<_ACEOF
1211#define PACKAGE_NAME "$PACKAGE_NAME"
1212_ACEOF
1213
1214
1215cat >>confdefs.h <<_ACEOF
1216#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1217_ACEOF
1218
1219
1220cat >>confdefs.h <<_ACEOF
1221#define PACKAGE_VERSION "$PACKAGE_VERSION"
1222_ACEOF
1223
1224
1225cat >>confdefs.h <<_ACEOF
1226#define PACKAGE_STRING "$PACKAGE_STRING"
1227_ACEOF
1228
1229
1230cat >>confdefs.h <<_ACEOF
1231#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1232_ACEOF
1233
1234
1235# Let the site file select an alternate cache file if it wants to.
1236# Prefer explicitly selected file to automatically selected ones.
b4e70030
JB
1237if test -z "$CONFIG_SITE"; then
1238 if test "x$prefix" != xNONE; then
1239 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1240 else
1241 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1242 fi
c906108c 1243fi
b4e70030 1244for ac_site_file in $CONFIG_SITE; do
c906108c 1245 if test -r "$ac_site_file"; then
bec39cab
AC
1246 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1247echo "$as_me: loading site script $ac_site_file" >&6;}
1248 sed 's/^/| /' "$ac_site_file" >&5
c906108c
SS
1249 . "$ac_site_file"
1250 fi
1251done
1252
1253if test -r "$cache_file"; then
bec39cab
AC
1254 # Some versions of bash will fail to source /dev/null (special
1255 # files actually), so we avoid doing that.
1256 if test -f "$cache_file"; then
1257 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1258echo "$as_me: loading cache $cache_file" >&6;}
1259 case $cache_file in
1260 [\\/]* | ?:[\\/]* ) . $cache_file;;
1261 *) . ./$cache_file;;
1262 esac
1263 fi
c906108c 1264else
bec39cab
AC
1265 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1266echo "$as_me: creating cache $cache_file" >&6;}
1267 >$cache_file
1268fi
1269
1270# Check that the precious variables saved in the cache have kept the same
1271# value.
1272ac_cache_corrupted=false
b4e70030
JB
1273for ac_var in `(set) 2>&1 |
1274 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
bec39cab
AC
1275 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1276 eval ac_new_set=\$ac_env_${ac_var}_set
b4e70030
JB
1277 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1278 eval ac_new_val="\$ac_env_${ac_var}_value"
bec39cab
AC
1279 case $ac_old_set,$ac_new_set in
1280 set,)
1281 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1282echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1283 ac_cache_corrupted=: ;;
1284 ,set)
1285 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1286echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1287 ac_cache_corrupted=: ;;
1288 ,);;
1289 *)
1290 if test "x$ac_old_val" != "x$ac_new_val"; then
1291 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1292echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1293 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1294echo "$as_me: former value: $ac_old_val" >&2;}
1295 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1296echo "$as_me: current value: $ac_new_val" >&2;}
1297 ac_cache_corrupted=:
1298 fi;;
1299 esac
1300 # Pass precious variables to config.status.
1301 if test "$ac_new_set" = set; then
1302 case $ac_new_val in
b4e70030
JB
1303 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1304 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
bec39cab
AC
1305 *) ac_arg=$ac_var=$ac_new_val ;;
1306 esac
1307 case " $ac_configure_args " in
1308 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1309 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1310 esac
1311 fi
1312done
1313if $ac_cache_corrupted; then
1314 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1315echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1316 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1317echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1318 { (exit 1); exit 1; }; }
c906108c
SS
1319fi
1320
b4e70030
JB
1321ac_ext=c
1322ac_cpp='$CPP $CPPFLAGS'
1323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1325ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c
SS
1326
1327
bec39cab
AC
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
bec39cab 1344
b4e70030
JB
1345 ac_config_headers="$ac_config_headers config.h:config.in"
1346
1347echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1348echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1349 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
413ccac7 1350if test "${enable_maintainer_mode+set}" = set; then
b4e70030
JB
1351 enableval="$enable_maintainer_mode"
1352 USE_MAINTAINER_MODE=$enableval
413ccac7
AC
1353else
1354 USE_MAINTAINER_MODE=no
b4e70030
JB
1355fi;
1356 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1357echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
413ccac7 1358
413ccac7
AC
1359
1360if test $USE_MAINTAINER_MODE = yes; then
1361 MAINTAINER_MODE_TRUE=
1362 MAINTAINER_MODE_FALSE='#'
1363else
1364 MAINTAINER_MODE_TRUE='#'
1365 MAINTAINER_MODE_FALSE=
1366fi
85981d60 1367
413ccac7 1368 MAINT=$MAINTAINER_MODE_TRUE
413ccac7 1369
c906108c 1370
bec39cab
AC
1371
1372ac_ext=c
1373ac_cpp='$CPP $CPPFLAGS'
1374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1376ac_compiler_gnu=$ac_cv_c_compiler_gnu
1377if test -n "$ac_tool_prefix"; then
1378 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1379set dummy ${ac_tool_prefix}gcc; ac_word=$2
b4e70030
JB
1380echo "$as_me:$LINENO: checking for $ac_word" >&5
1381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1382if test "${ac_cv_prog_CC+set}" = set; then
1383 echo $ECHO_N "(cached) $ECHO_C" >&6
1384else
1385 if test -n "$CC"; then
1386 ac_cv_prog_CC="$CC" # Let the user override the test.
1387else
1388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1389for as_dir in $PATH
1390do
1391 IFS=$as_save_IFS
1392 test -z "$as_dir" && as_dir=.
1393 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1395 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1397 break 2
1398 fi
1399done
1400done
1401
1402fi
1403fi
1404CC=$ac_cv_prog_CC
1405if test -n "$CC"; then
b4e70030
JB
1406 echo "$as_me:$LINENO: result: $CC" >&5
1407echo "${ECHO_T}$CC" >&6
bec39cab 1408else
b4e70030
JB
1409 echo "$as_me:$LINENO: result: no" >&5
1410echo "${ECHO_T}no" >&6
bec39cab
AC
1411fi
1412
1413fi
1414if test -z "$ac_cv_prog_CC"; then
1415 ac_ct_CC=$CC
1416 # Extract the first word of "gcc", so it can be a program name with args.
c906108c 1417set dummy gcc; ac_word=$2
b4e70030
JB
1418echo "$as_me:$LINENO: checking for $ac_word" >&5
1419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1420if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1421 echo $ECHO_N "(cached) $ECHO_C" >&6
1422else
1423 if test -n "$ac_ct_CC"; then
1424 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1425else
1426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1427for as_dir in $PATH
1428do
1429 IFS=$as_save_IFS
1430 test -z "$as_dir" && as_dir=.
1431 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1433 ac_cv_prog_ac_ct_CC="gcc"
1434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1435 break 2
1436 fi
1437done
1438done
1439
1440fi
1441fi
1442ac_ct_CC=$ac_cv_prog_ac_ct_CC
1443if test -n "$ac_ct_CC"; then
b4e70030
JB
1444 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1445echo "${ECHO_T}$ac_ct_CC" >&6
bec39cab 1446else
b4e70030
JB
1447 echo "$as_me:$LINENO: result: no" >&5
1448echo "${ECHO_T}no" >&6
bec39cab
AC
1449fi
1450
b4e70030 1451 CC=$ac_ct_CC
bec39cab
AC
1452else
1453 CC="$ac_cv_prog_CC"
1454fi
1455
1456if test -z "$CC"; then
b4e70030
JB
1457 if test -n "$ac_tool_prefix"; then
1458 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
bec39cab 1459set dummy ${ac_tool_prefix}cc; ac_word=$2
b4e70030
JB
1460echo "$as_me:$LINENO: checking for $ac_word" >&5
1461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1462if test "${ac_cv_prog_CC+set}" = set; then
1463 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1464else
1465 if test -n "$CC"; then
1466 ac_cv_prog_CC="$CC" # Let the user override the test.
1467else
bec39cab
AC
1468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1469for as_dir in $PATH
1470do
1471 IFS=$as_save_IFS
1472 test -z "$as_dir" && as_dir=.
1473 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1474 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1475 ac_cv_prog_CC="${ac_tool_prefix}cc"
1476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1477 break 2
1478 fi
1479done
1480done
1481
c906108c
SS
1482fi
1483fi
bec39cab 1484CC=$ac_cv_prog_CC
c906108c 1485if test -n "$CC"; then
b4e70030
JB
1486 echo "$as_me:$LINENO: result: $CC" >&5
1487echo "${ECHO_T}$CC" >&6
c906108c 1488else
b4e70030
JB
1489 echo "$as_me:$LINENO: result: no" >&5
1490echo "${ECHO_T}no" >&6
c906108c
SS
1491fi
1492
b4e70030
JB
1493fi
1494if test -z "$ac_cv_prog_CC"; then
1495 ac_ct_CC=$CC
1496 # Extract the first word of "cc", so it can be a program name with args.
1497set dummy cc; ac_word=$2
1498echo "$as_me:$LINENO: checking for $ac_word" >&5
1499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1500if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1501 echo $ECHO_N "(cached) $ECHO_C" >&6
1502else
1503 if test -n "$ac_ct_CC"; then
1504 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1505else
1506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1507for as_dir in $PATH
1508do
1509 IFS=$as_save_IFS
1510 test -z "$as_dir" && as_dir=.
1511 for ac_exec_ext in '' $ac_executable_extensions; do
1512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1513 ac_cv_prog_ac_ct_CC="cc"
1514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1515 break 2
4e8d927d 1516 fi
b4e70030
JB
1517done
1518done
1519
1520fi
1521fi
1522ac_ct_CC=$ac_cv_prog_ac_ct_CC
1523if test -n "$ac_ct_CC"; then
1524 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1525echo "${ECHO_T}$ac_ct_CC" >&6
1526else
1527 echo "$as_me:$LINENO: result: no" >&5
1528echo "${ECHO_T}no" >&6
1529fi
1530
1531 CC=$ac_ct_CC
1532else
1533 CC="$ac_cv_prog_CC"
1534fi
1535
bec39cab 1536fi
c906108c
SS
1537if test -z "$CC"; then
1538 # Extract the first word of "cc", so it can be a program name with args.
1539set dummy cc; ac_word=$2
b4e70030
JB
1540echo "$as_me:$LINENO: checking for $ac_word" >&5
1541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1542if test "${ac_cv_prog_CC+set}" = set; then
1543 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1544else
1545 if test -n "$CC"; then
1546 ac_cv_prog_CC="$CC" # Let the user override the test.
1547else
c906108c 1548 ac_prog_rejected=no
bec39cab
AC
1549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1550for as_dir in $PATH
1551do
1552 IFS=$as_save_IFS
1553 test -z "$as_dir" && as_dir=.
1554 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1556 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1557 ac_prog_rejected=yes
1558 continue
1559 fi
1560 ac_cv_prog_CC="cc"
1561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1562 break 2
1563 fi
1564done
1565done
1566
c906108c
SS
1567if test $ac_prog_rejected = yes; then
1568 # We found a bogon in the path, so make sure we never use it.
1569 set dummy $ac_cv_prog_CC
1570 shift
bec39cab 1571 if test $# != 0; then
c906108c
SS
1572 # We chose a different compiler from the bogus one.
1573 # However, it has the same basename, so the bogon will be chosen
1574 # first if we set CC to just the basename; use the full file name.
1575 shift
bec39cab 1576 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
c906108c
SS
1577 fi
1578fi
1579fi
1580fi
bec39cab 1581CC=$ac_cv_prog_CC
c906108c 1582if test -n "$CC"; then
b4e70030
JB
1583 echo "$as_me:$LINENO: result: $CC" >&5
1584echo "${ECHO_T}$CC" >&6
c906108c 1585else
b4e70030
JB
1586 echo "$as_me:$LINENO: result: no" >&5
1587echo "${ECHO_T}no" >&6
c906108c
SS
1588fi
1589
bec39cab
AC
1590fi
1591if test -z "$CC"; then
1592 if test -n "$ac_tool_prefix"; then
b4e70030 1593 for ac_prog in cl
bec39cab
AC
1594 do
1595 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1596set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b4e70030
JB
1597echo "$as_me:$LINENO: checking for $ac_word" >&5
1598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1599if test "${ac_cv_prog_CC+set}" = set; then
1600 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1601else
1602 if test -n "$CC"; then
1603 ac_cv_prog_CC="$CC" # Let the user override the test.
1604else
bec39cab
AC
1605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1606for as_dir in $PATH
1607do
1608 IFS=$as_save_IFS
1609 test -z "$as_dir" && as_dir=.
1610 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1611 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1612 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1614 break 2
1615 fi
1616done
1617done
1618
c906108c
SS
1619fi
1620fi
bec39cab 1621CC=$ac_cv_prog_CC
c906108c 1622if test -n "$CC"; then
b4e70030
JB
1623 echo "$as_me:$LINENO: result: $CC" >&5
1624echo "${ECHO_T}$CC" >&6
c906108c 1625else
b4e70030
JB
1626 echo "$as_me:$LINENO: result: no" >&5
1627echo "${ECHO_T}no" >&6
c906108c 1628fi
bec39cab
AC
1629
1630 test -n "$CC" && break
1631 done
1632fi
1633if test -z "$CC"; then
1634 ac_ct_CC=$CC
b4e70030 1635 for ac_prog in cl
bec39cab
AC
1636do
1637 # Extract the first word of "$ac_prog", so it can be a program name with args.
1638set dummy $ac_prog; ac_word=$2
b4e70030
JB
1639echo "$as_me:$LINENO: checking for $ac_word" >&5
1640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1641if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1642 echo $ECHO_N "(cached) $ECHO_C" >&6
1643else
1644 if test -n "$ac_ct_CC"; then
1645 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1646else
1647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1648for as_dir in $PATH
1649do
1650 IFS=$as_save_IFS
1651 test -z "$as_dir" && as_dir=.
1652 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1653 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1654 ac_cv_prog_ac_ct_CC="$ac_prog"
1655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1656 break 2
c906108c 1657 fi
bec39cab
AC
1658done
1659done
1660
1661fi
1662fi
1663ac_ct_CC=$ac_cv_prog_ac_ct_CC
1664if test -n "$ac_ct_CC"; then
b4e70030
JB
1665 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1666echo "${ECHO_T}$ac_ct_CC" >&6
bec39cab 1667else
b4e70030
JB
1668 echo "$as_me:$LINENO: result: no" >&5
1669echo "${ECHO_T}no" >&6
c906108c
SS
1670fi
1671
bec39cab
AC
1672 test -n "$ac_ct_CC" && break
1673done
c906108c 1674
b4e70030 1675 CC=$ac_ct_CC
bec39cab
AC
1676fi
1677
1678fi
1679
1680
1681test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1682See \`config.log' for more details." >&5
1683echo "$as_me: error: no acceptable C compiler found in \$PATH
1684See \`config.log' for more details." >&2;}
1685 { (exit 1); exit 1; }; }
1686
1687# Provide some information about the compiler.
b4e70030
JB
1688echo "$as_me:$LINENO:" \
1689 "checking for C compiler version" >&5
bec39cab 1690ac_compiler=`set X $ac_compile; echo $2`
b4e70030
JB
1691{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1692 (eval $ac_compiler --version </dev/null >&5) 2>&5
bec39cab
AC
1693 ac_status=$?
1694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1695 (exit $ac_status); }
b4e70030
JB
1696{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1697 (eval $ac_compiler -v </dev/null >&5) 2>&5
bec39cab
AC
1698 ac_status=$?
1699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1700 (exit $ac_status); }
b4e70030
JB
1701{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1702 (eval $ac_compiler -V </dev/null >&5) 2>&5
bec39cab
AC
1703 ac_status=$?
1704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1705 (exit $ac_status); }
1706
1707cat >conftest.$ac_ext <<_ACEOF
1708/* confdefs.h. */
1709_ACEOF
1710cat confdefs.h >>conftest.$ac_ext
1711cat >>conftest.$ac_ext <<_ACEOF
1712/* end confdefs.h. */
1713
1714int
1715main ()
1716{
1717
1718 ;
1719 return 0;
1720}
1721_ACEOF
1722ac_clean_files_save=$ac_clean_files
b4e70030 1723ac_clean_files="$ac_clean_files a.out a.exe b.out"
bec39cab
AC
1724# Try to create an executable without -o first, disregard a.out.
1725# It will help us diagnose broken compilers, and finding out an intuition
1726# of exeext.
b4e70030
JB
1727echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1728echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
bec39cab
AC
1729ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1730if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1731 (eval $ac_link_default) 2>&5
1732 ac_status=$?
1733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1734 (exit $ac_status); }; then
b4e70030
JB
1735 # Find the output, starting from the most likely. This scheme is
1736# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1737# resort.
1738
1739# Be careful to initialize this variable, since it used to be cached.
1740# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1741ac_cv_exeext=
1742# b.out is created by i960 compilers.
1743for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
bec39cab
AC
1744do
1745 test -f "$ac_file" || continue
1746 case $ac_file in
b4e70030
JB
1747 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1748 ;;
1749 conftest.$ac_ext )
1750 # This is the source file.
1751 ;;
1752 [ab].out )
1753 # We found the default executable, but exeext='' is most
1754 # certainly right.
1755 break;;
1756 *.* )
1757 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1758 # FIXME: I believe we export ac_cv_exeext for Libtool,
1759 # but it would be cool to find out if it's true. Does anybody
1760 # maintain Libtool? --akim.
1761 export ac_cv_exeext
1762 break;;
1763 * )
1764 break;;
bec39cab
AC
1765 esac
1766done
1767else
1768 echo "$as_me: failed program was:" >&5
1769sed 's/^/| /' conftest.$ac_ext >&5
1770
1771{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1772See \`config.log' for more details." >&5
1773echo "$as_me: error: C compiler cannot create executables
1774See \`config.log' for more details." >&2;}
1775 { (exit 77); exit 77; }; }
1776fi
1777
b4e70030
JB
1778ac_exeext=$ac_cv_exeext
1779echo "$as_me:$LINENO: result: $ac_file" >&5
1780echo "${ECHO_T}$ac_file" >&6
1781
1782# Check the compiler produces executables we can run. If not, either
bec39cab 1783# the compiler is broken, or we cross compile.
b4e70030
JB
1784echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1785echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
bec39cab
AC
1786# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1787# If not cross compiling, check that we can run a simple program.
1788if test "$cross_compiling" != yes; then
1789 if { ac_try='./$ac_file'
1790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1791 (eval $ac_try) 2>&5
1792 ac_status=$?
1793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1794 (exit $ac_status); }; }; then
1795 cross_compiling=no
c906108c 1796 else
bec39cab
AC
1797 if test "$cross_compiling" = maybe; then
1798 cross_compiling=yes
1799 else
1800 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1801If you meant to cross compile, use \`--host'.
1802See \`config.log' for more details." >&5
1803echo "$as_me: error: cannot run C compiled programs.
1804If you meant to cross compile, use \`--host'.
1805See \`config.log' for more details." >&2;}
1806 { (exit 1); exit 1; }; }
1807 fi
c906108c 1808 fi
bec39cab 1809fi
b4e70030
JB
1810echo "$as_me:$LINENO: result: yes" >&5
1811echo "${ECHO_T}yes" >&6
bec39cab 1812
b4e70030
JB
1813rm -f a.out a.exe conftest$ac_cv_exeext b.out
1814ac_clean_files=$ac_clean_files_save
1815# Check the compiler produces executables we can run. If not, either
1816# the compiler is broken, or we cross compile.
1817echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1818echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1819echo "$as_me:$LINENO: result: $cross_compiling" >&5
1820echo "${ECHO_T}$cross_compiling" >&6
4e8d927d 1821
b4e70030
JB
1822echo "$as_me:$LINENO: checking for suffix of executables" >&5
1823echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
bec39cab
AC
1825 (eval $ac_link) 2>&5
1826 ac_status=$?
1827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1828 (exit $ac_status); }; then
b4e70030
JB
1829 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1830# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1831# work properly (i.e., refer to `conftest.exe'), while it won't with
1832# `rm'.
1833for ac_file in conftest.exe conftest conftest.*; do
1834 test -f "$ac_file" || continue
1835 case $ac_file in
1836 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1837 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1838 export ac_cv_exeext
1839 break;;
1840 * ) break;;
1841 esac
1842done
c906108c 1843else
bec39cab
AC
1844 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1845See \`config.log' for more details." >&5
1846echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1847See \`config.log' for more details." >&2;}
1848 { (exit 1); exit 1; }; }
c906108c 1849fi
c906108c 1850
b4e70030
JB
1851rm -f conftest$ac_cv_exeext
1852echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1853echo "${ECHO_T}$ac_cv_exeext" >&6
c906108c 1854
b4e70030 1855rm -f conftest.$ac_ext
bec39cab
AC
1856EXEEXT=$ac_cv_exeext
1857ac_exeext=$EXEEXT
b4e70030
JB
1858echo "$as_me:$LINENO: checking for suffix of object files" >&5
1859echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
bec39cab
AC
1860if test "${ac_cv_objext+set}" = set; then
1861 echo $ECHO_N "(cached) $ECHO_C" >&6
1862else
b4e70030
JB
1863 cat >conftest.$ac_ext <<_ACEOF
1864/* confdefs.h. */
1865_ACEOF
1866cat confdefs.h >>conftest.$ac_ext
1867cat >>conftest.$ac_ext <<_ACEOF
1868/* end confdefs.h. */
1869
1870int
1871main ()
1872{
1873
1874 ;
1875 return 0;
1876}
1877_ACEOF
1878rm -f conftest.o conftest.obj
bec39cab
AC
1879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1880 (eval $ac_compile) 2>&5
1881 ac_status=$?
1882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1883 (exit $ac_status); }; then
b4e70030 1884 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
bec39cab 1885 case $ac_file in
b4e70030 1886 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
bec39cab
AC
1887 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1888 break;;
1889 esac
1890done
c906108c 1891else
bec39cab
AC
1892 echo "$as_me: failed program was:" >&5
1893sed 's/^/| /' conftest.$ac_ext >&5
1894
1895{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1896See \`config.log' for more details." >&5
1897echo "$as_me: error: cannot compute suffix of object files: cannot compile
1898See \`config.log' for more details." >&2;}
1899 { (exit 1); exit 1; }; }
c906108c
SS
1900fi
1901
b4e70030 1902rm -f conftest.$ac_cv_objext conftest.$ac_ext
bec39cab 1903fi
b4e70030
JB
1904echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1905echo "${ECHO_T}$ac_cv_objext" >&6
bec39cab
AC
1906OBJEXT=$ac_cv_objext
1907ac_objext=$OBJEXT
b4e70030
JB
1908echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1909echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
bec39cab
AC
1910if test "${ac_cv_c_compiler_gnu+set}" = set; then
1911 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 1912else
bec39cab
AC
1913 cat >conftest.$ac_ext <<_ACEOF
1914/* confdefs.h. */
1915_ACEOF
1916cat confdefs.h >>conftest.$ac_ext
1917cat >>conftest.$ac_ext <<_ACEOF
1918/* end confdefs.h. */
1919
1920int
1921main ()
1922{
1923#ifndef __GNUC__
1924 choke me
1925#endif
1926
1927 ;
1928 return 0;
1929}
1930_ACEOF
1931rm -f conftest.$ac_objext
1932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1933 (eval $ac_compile) 2>conftest.er1
1934 ac_status=$?
1935 grep -v '^ *+' conftest.er1 >conftest.err
1936 rm -f conftest.er1
1937 cat conftest.err >&5
1938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939 (exit $ac_status); } &&
b4e70030
JB
1940 { ac_try='test -z "$ac_c_werror_flag"
1941 || test ! -s conftest.err'
bec39cab
AC
1942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1943 (eval $ac_try) 2>&5
1944 ac_status=$?
1945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1946 (exit $ac_status); }; } &&
1947 { ac_try='test -s conftest.$ac_objext'
1948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1949 (eval $ac_try) 2>&5
1950 ac_status=$?
1951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952 (exit $ac_status); }; }; then
1953 ac_compiler_gnu=yes
1954else
1955 echo "$as_me: failed program was:" >&5
1956sed 's/^/| /' conftest.$ac_ext >&5
1957
b4e70030 1958ac_compiler_gnu=no
bec39cab
AC
1959fi
1960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1961ac_cv_c_compiler_gnu=$ac_compiler_gnu
1962
1963fi
b4e70030
JB
1964echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1965echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
bec39cab
AC
1966GCC=`test $ac_compiler_gnu = yes && echo yes`
1967ac_test_CFLAGS=${CFLAGS+set}
1968ac_save_CFLAGS=$CFLAGS
b4e70030
JB
1969CFLAGS="-g"
1970echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1971echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
bec39cab
AC
1972if test "${ac_cv_prog_cc_g+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1974else
b4e70030 1975 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
1976/* confdefs.h. */
1977_ACEOF
1978cat confdefs.h >>conftest.$ac_ext
1979cat >>conftest.$ac_ext <<_ACEOF
1980/* end confdefs.h. */
1981
1982int
1983main ()
1984{
1985
1986 ;
1987 return 0;
1988}
1989_ACEOF
1990rm -f conftest.$ac_objext
1991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1992 (eval $ac_compile) 2>conftest.er1
1993 ac_status=$?
1994 grep -v '^ *+' conftest.er1 >conftest.err
1995 rm -f conftest.er1
1996 cat conftest.err >&5
1997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998 (exit $ac_status); } &&
b4e70030
JB
1999 { ac_try='test -z "$ac_c_werror_flag"
2000 || test ! -s conftest.err'
bec39cab
AC
2001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2002 (eval $ac_try) 2>&5
2003 ac_status=$?
2004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005 (exit $ac_status); }; } &&
2006 { ac_try='test -s conftest.$ac_objext'
2007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2008 (eval $ac_try) 2>&5
2009 ac_status=$?
2010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011 (exit $ac_status); }; }; then
c906108c
SS
2012 ac_cv_prog_cc_g=yes
2013else
bec39cab
AC
2014 echo "$as_me: failed program was:" >&5
2015sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2016
b4e70030 2017ac_cv_prog_cc_g=no
4e8d927d 2018fi
bec39cab
AC
2019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2020fi
b4e70030
JB
2021echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2022echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
c906108c 2023if test "$ac_test_CFLAGS" = set; then
bec39cab 2024 CFLAGS=$ac_save_CFLAGS
c906108c
SS
2025elif test $ac_cv_prog_cc_g = yes; then
2026 if test "$GCC" = yes; then
2027 CFLAGS="-g -O2"
2028 else
2029 CFLAGS="-g"
2030 fi
2031else
2032 if test "$GCC" = yes; then
2033 CFLAGS="-O2"
2034 else
2035 CFLAGS=
2036 fi
2037fi
b4e70030
JB
2038echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2039echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2040if test "${ac_cv_prog_cc_stdc+set}" = set; then
bec39cab
AC
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
2042else
b4e70030 2043 ac_cv_prog_cc_stdc=no
bec39cab
AC
2044ac_save_CC=$CC
2045cat >conftest.$ac_ext <<_ACEOF
2046/* confdefs.h. */
2047_ACEOF
2048cat confdefs.h >>conftest.$ac_ext
2049cat >>conftest.$ac_ext <<_ACEOF
2050/* end confdefs.h. */
c906108c
SS
2051#include <stdarg.h>
2052#include <stdio.h>
2053#include <sys/types.h>
2054#include <sys/stat.h>
2055/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2056struct buf { int x; };
2057FILE * (*rcsopen) (struct buf *, struct stat *, int);
2058static char *e (p, i)
2059 char **p;
2060 int i;
2061{
2062 return p[i];
2063}
2064static char *f (char * (*g) (char **, int), char **p, ...)
2065{
2066 char *s;
2067 va_list v;
2068 va_start (v,p);
2069 s = g (p, va_arg (v,int));
2070 va_end (v);
2071 return s;
2072}
bec39cab
AC
2073
2074/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2075 function prototypes and stuff, but not '\xHH' hex character constants.
2076 These don't provoke an error unfortunately, instead are silently treated
b4e70030 2077 as 'x'. The following induces an error, until -std1 is added to get
bec39cab
AC
2078 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2079 array size at least. It's necessary to write '\x00'==0 to get something
b4e70030 2080 that's true only with -std1. */
bec39cab
AC
2081int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2082
c906108c
SS
2083int test (int i, double x);
2084struct s1 {int (*f) (int a);};
2085struct s2 {int (*f) (double a);};
2086int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2087int argc;
2088char **argv;
bec39cab
AC
2089int
2090main ()
2091{
c906108c 2092return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
bec39cab
AC
2093 ;
2094 return 0;
2095}
2096_ACEOF
b4e70030
JB
2097# Don't try gcc -ansi; that turns off useful extensions and
2098# breaks some systems' header files.
2099# AIX -qlanglvl=ansi
2100# Ultrix and OSF/1 -std1
2101# HP-UX 10.20 and later -Ae
2102# HP-UX older versions -Aa -D_HPUX_SOURCE
2103# SVR4 -Xc -D__EXTENSIONS__
2104for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
bec39cab
AC
2105do
2106 CC="$ac_save_CC $ac_arg"
2107 rm -f conftest.$ac_objext
2108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2109 (eval $ac_compile) 2>conftest.er1
2110 ac_status=$?
2111 grep -v '^ *+' conftest.er1 >conftest.err
2112 rm -f conftest.er1
2113 cat conftest.err >&5
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); } &&
b4e70030
JB
2116 { ac_try='test -z "$ac_c_werror_flag"
2117 || test ! -s conftest.err'
bec39cab
AC
2118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2119 (eval $ac_try) 2>&5
2120 ac_status=$?
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }; } &&
2123 { ac_try='test -s conftest.$ac_objext'
2124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2125 (eval $ac_try) 2>&5
2126 ac_status=$?
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); }; }; then
b4e70030
JB
2129 ac_cv_prog_cc_stdc=$ac_arg
2130break
c906108c 2131else
bec39cab
AC
2132 echo "$as_me: failed program was:" >&5
2133sed 's/^/| /' conftest.$ac_ext >&5
2134
c906108c 2135fi
bec39cab 2136rm -f conftest.err conftest.$ac_objext
c906108c 2137done
b4e70030 2138rm -f conftest.$ac_ext conftest.$ac_objext
bec39cab 2139CC=$ac_save_CC
c906108c
SS
2140
2141fi
b4e70030
JB
2142
2143case "x$ac_cv_prog_cc_stdc" in
2144 x|xno)
2145 echo "$as_me:$LINENO: result: none needed" >&5
2146echo "${ECHO_T}none needed" >&6 ;;
bec39cab 2147 *)
b4e70030
JB
2148 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2149echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2150 CC="$CC $ac_cv_prog_cc_stdc" ;;
c906108c
SS
2151esac
2152
b4e70030
JB
2153# Some people use a C++ compiler to compile C. Since we use `exit',
2154# in C++ we need to declare it. In case someone uses the same compiler
2155# for both compiling C and C++ we need to have the C++ compiler decide
2156# the declaration of exit, since it's the most demanding environment.
2157cat >conftest.$ac_ext <<_ACEOF
2158#ifndef __cplusplus
2159 choke me
2160#endif
2161_ACEOF
2162rm -f conftest.$ac_objext
2163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2164 (eval $ac_compile) 2>conftest.er1
2165 ac_status=$?
2166 grep -v '^ *+' conftest.er1 >conftest.err
2167 rm -f conftest.er1
2168 cat conftest.err >&5
2169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2170 (exit $ac_status); } &&
2171 { ac_try='test -z "$ac_c_werror_flag"
2172 || test ! -s conftest.err'
2173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2174 (eval $ac_try) 2>&5
2175 ac_status=$?
2176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2177 (exit $ac_status); }; } &&
2178 { ac_try='test -s conftest.$ac_objext'
2179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2180 (eval $ac_try) 2>&5
2181 ac_status=$?
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); }; }; then
2184 for ac_declaration in \
2185 '' \
2186 'extern "C" void std::exit (int) throw (); using std::exit;' \
2187 'extern "C" void std::exit (int); using std::exit;' \
2188 'extern "C" void exit (int) throw ();' \
2189 'extern "C" void exit (int);' \
2190 'void exit (int);'
2191do
2192 cat >conftest.$ac_ext <<_ACEOF
2193/* confdefs.h. */
2194_ACEOF
2195cat confdefs.h >>conftest.$ac_ext
2196cat >>conftest.$ac_ext <<_ACEOF
2197/* end confdefs.h. */
2198$ac_declaration
2199#include <stdlib.h>
2200int
2201main ()
2202{
2203exit (42);
2204 ;
2205 return 0;
2206}
2207_ACEOF
2208rm -f conftest.$ac_objext
2209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2210 (eval $ac_compile) 2>conftest.er1
2211 ac_status=$?
2212 grep -v '^ *+' conftest.er1 >conftest.err
2213 rm -f conftest.er1
2214 cat conftest.err >&5
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); } &&
2217 { ac_try='test -z "$ac_c_werror_flag"
2218 || test ! -s conftest.err'
2219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2220 (eval $ac_try) 2>&5
2221 ac_status=$?
2222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223 (exit $ac_status); }; } &&
2224 { ac_try='test -s conftest.$ac_objext'
2225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2226 (eval $ac_try) 2>&5
2227 ac_status=$?
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; }; then
2230 :
2231else
2232 echo "$as_me: failed program was:" >&5
2233sed 's/^/| /' conftest.$ac_ext >&5
2234
2235continue
2236fi
2237rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2238 cat >conftest.$ac_ext <<_ACEOF
2239/* confdefs.h. */
2240_ACEOF
2241cat confdefs.h >>conftest.$ac_ext
2242cat >>conftest.$ac_ext <<_ACEOF
2243/* end confdefs.h. */
2244$ac_declaration
2245int
2246main ()
2247{
2248exit (42);
2249 ;
2250 return 0;
2251}
2252_ACEOF
2253rm -f conftest.$ac_objext
2254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2255 (eval $ac_compile) 2>conftest.er1
2256 ac_status=$?
2257 grep -v '^ *+' conftest.er1 >conftest.err
2258 rm -f conftest.er1
2259 cat conftest.err >&5
2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); } &&
2262 { ac_try='test -z "$ac_c_werror_flag"
2263 || test ! -s conftest.err'
2264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265 (eval $ac_try) 2>&5
2266 ac_status=$?
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; } &&
2269 { ac_try='test -s conftest.$ac_objext'
2270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271 (eval $ac_try) 2>&5
2272 ac_status=$?
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; }; then
2275 break
2276else
2277 echo "$as_me: failed program was:" >&5
2278sed 's/^/| /' conftest.$ac_ext >&5
2279
2280fi
2281rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2282done
2283rm -f conftest*
2284if test -n "$ac_declaration"; then
2285 echo '#ifdef __cplusplus' >>confdefs.h
2286 echo $ac_declaration >>confdefs.h
2287 echo '#endif' >>confdefs.h
2288fi
2289
2290else
2291 echo "$as_me: failed program was:" >&5
2292sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2293
b4e70030
JB
2294fi
2295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab
AC
2296ac_ext=c
2297ac_cpp='$CPP $CPPFLAGS'
2298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2300ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c 2301
60ca704f 2302
bec39cab
AC
2303cat >>confdefs.h <<\_ACEOF
2304#define _GNU_SOURCE 1
2305_ACEOF
c906108c
SS
2306
2307
8bb2c122 2308
bec39cab
AC
2309ac_ext=c
2310ac_cpp='$CPP $CPPFLAGS'
2311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2313ac_compiler_gnu=$ac_cv_c_compiler_gnu
b4e70030
JB
2314echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2315echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
bec39cab
AC
2316# On Suns, sometimes $CPP names a directory.
2317if test -n "$CPP" && test -d "$CPP"; then
2318 CPP=
8bb2c122 2319fi
bec39cab
AC
2320if test -z "$CPP"; then
2321 if test "${ac_cv_prog_CPP+set}" = set; then
2322 echo $ECHO_N "(cached) $ECHO_C" >&6
2323else
2324 # Double quotes because CPP needs to be expanded
2325 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2326 do
2327 ac_preproc_ok=false
2328for ac_c_preproc_warn_flag in '' yes
2329do
2330 # Use a header file that comes with gcc, so configuring glibc
2331 # with a fresh cross-compiler works.
2332 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2333 # <limits.h> exists even on freestanding compilers.
2334 # On the NeXT, cc -E runs the code through the compiler's parser,
2335 # not just through cpp. "Syntax error" is here to catch this case.
2336 cat >conftest.$ac_ext <<_ACEOF
2337/* confdefs.h. */
2338_ACEOF
2339cat confdefs.h >>conftest.$ac_ext
2340cat >>conftest.$ac_ext <<_ACEOF
2341/* end confdefs.h. */
2342#ifdef __STDC__
2343# include <limits.h>
2344#else
2345# include <assert.h>
2346#endif
2347 Syntax error
2348_ACEOF
2349if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2351 ac_status=$?
2352 grep -v '^ *+' conftest.er1 >conftest.err
2353 rm -f conftest.er1
2354 cat conftest.err >&5
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); } >/dev/null; then
2357 if test -s conftest.err; then
2358 ac_cpp_err=$ac_c_preproc_warn_flag
2359 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2360 else
2361 ac_cpp_err=
2362 fi
8bb2c122 2363else
bec39cab 2364 ac_cpp_err=yes
8bb2c122 2365fi
bec39cab
AC
2366if test -z "$ac_cpp_err"; then
2367 :
8bb2c122 2368else
bec39cab
AC
2369 echo "$as_me: failed program was:" >&5
2370sed 's/^/| /' conftest.$ac_ext >&5
2371
2372 # Broken: fails on valid input.
2373continue
2374fi
2375rm -f conftest.err conftest.$ac_ext
2376
b4e70030 2377 # OK, works on sane cases. Now check whether non-existent headers
bec39cab
AC
2378 # can be detected and how.
2379 cat >conftest.$ac_ext <<_ACEOF
2380/* confdefs.h. */
2381_ACEOF
2382cat confdefs.h >>conftest.$ac_ext
2383cat >>conftest.$ac_ext <<_ACEOF
2384/* end confdefs.h. */
2385#include <ac_nonexistent.h>
2386_ACEOF
2387if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2388 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2389 ac_status=$?
2390 grep -v '^ *+' conftest.er1 >conftest.err
2391 rm -f conftest.er1
2392 cat conftest.err >&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); } >/dev/null; then
2395 if test -s conftest.err; then
2396 ac_cpp_err=$ac_c_preproc_warn_flag
2397 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2398 else
2399 ac_cpp_err=
2400 fi
8bb2c122 2401else
bec39cab 2402 ac_cpp_err=yes
8bb2c122 2403fi
bec39cab
AC
2404if test -z "$ac_cpp_err"; then
2405 # Broken: success on invalid input.
2406continue
8bb2c122 2407else
bec39cab
AC
2408 echo "$as_me: failed program was:" >&5
2409sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 2410
bec39cab
AC
2411 # Passes both tests.
2412ac_preproc_ok=:
2413break
8bb2c122 2414fi
bec39cab 2415rm -f conftest.err conftest.$ac_ext
8bb2c122 2416
bec39cab
AC
2417done
2418# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2419rm -f conftest.err conftest.$ac_ext
2420if $ac_preproc_ok; then
2421 break
2422fi
8bb2c122 2423
bec39cab
AC
2424 done
2425 ac_cv_prog_CPP=$CPP
ddc9cd0f 2426
c906108c 2427fi
bec39cab
AC
2428 CPP=$ac_cv_prog_CPP
2429else
2430 ac_cv_prog_CPP=$CPP
c906108c 2431fi
b4e70030
JB
2432echo "$as_me:$LINENO: result: $CPP" >&5
2433echo "${ECHO_T}$CPP" >&6
bec39cab
AC
2434ac_preproc_ok=false
2435for ac_c_preproc_warn_flag in '' yes
2436do
2437 # Use a header file that comes with gcc, so configuring glibc
2438 # with a fresh cross-compiler works.
2439 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2440 # <limits.h> exists even on freestanding compilers.
2441 # On the NeXT, cc -E runs the code through the compiler's parser,
2442 # not just through cpp. "Syntax error" is here to catch this case.
2443 cat >conftest.$ac_ext <<_ACEOF
2444/* confdefs.h. */
2445_ACEOF
2446cat confdefs.h >>conftest.$ac_ext
2447cat >>conftest.$ac_ext <<_ACEOF
2448/* end confdefs.h. */
2449#ifdef __STDC__
2450# include <limits.h>
2451#else
2452# include <assert.h>
2453#endif
2454 Syntax error
2455_ACEOF
2456if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2457 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2458 ac_status=$?
2459 grep -v '^ *+' conftest.er1 >conftest.err
2460 rm -f conftest.er1
2461 cat conftest.err >&5
2462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2463 (exit $ac_status); } >/dev/null; then
2464 if test -s conftest.err; then
2465 ac_cpp_err=$ac_c_preproc_warn_flag
2466 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2467 else
2468 ac_cpp_err=
2469 fi
c906108c 2470else
bec39cab 2471 ac_cpp_err=yes
c906108c 2472fi
bec39cab
AC
2473if test -z "$ac_cpp_err"; then
2474 :
c906108c 2475else
bec39cab
AC
2476 echo "$as_me: failed program was:" >&5
2477sed 's/^/| /' conftest.$ac_ext >&5
2478
2479 # Broken: fails on valid input.
2480continue
2481fi
2482rm -f conftest.err conftest.$ac_ext
2483
b4e70030 2484 # OK, works on sane cases. Now check whether non-existent headers
bec39cab
AC
2485 # can be detected and how.
2486 cat >conftest.$ac_ext <<_ACEOF
2487/* confdefs.h. */
2488_ACEOF
2489cat confdefs.h >>conftest.$ac_ext
2490cat >>conftest.$ac_ext <<_ACEOF
2491/* end confdefs.h. */
2492#include <ac_nonexistent.h>
2493_ACEOF
2494if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2495 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2496 ac_status=$?
2497 grep -v '^ *+' conftest.er1 >conftest.err
2498 rm -f conftest.er1
2499 cat conftest.err >&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); } >/dev/null; then
2502 if test -s conftest.err; then
2503 ac_cpp_err=$ac_c_preproc_warn_flag
2504 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2505 else
2506 ac_cpp_err=
2507 fi
c906108c 2508else
bec39cab 2509 ac_cpp_err=yes
c906108c 2510fi
bec39cab
AC
2511if test -z "$ac_cpp_err"; then
2512 # Broken: success on invalid input.
2513continue
c906108c 2514else
bec39cab
AC
2515 echo "$as_me: failed program was:" >&5
2516sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2517
bec39cab
AC
2518 # Passes both tests.
2519ac_preproc_ok=:
2520break
c906108c 2521fi
bec39cab 2522rm -f conftest.err conftest.$ac_ext
c906108c 2523
bec39cab
AC
2524done
2525# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2526rm -f conftest.err conftest.$ac_ext
2527if $ac_preproc_ok; then
c906108c
SS
2528 :
2529else
bec39cab
AC
2530 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2531See \`config.log' for more details." >&5
2532echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2533See \`config.log' for more details." >&2;}
2534 { (exit 1); exit 1; }; }
c906108c 2535fi
c906108c 2536
bec39cab
AC
2537ac_ext=c
2538ac_cpp='$CPP $CPPFLAGS'
2539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2541ac_compiler_gnu=$ac_cv_c_compiler_gnu
2542
2543
b4e70030
JB
2544echo "$as_me:$LINENO: checking for egrep" >&5
2545echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2546if test "${ac_cv_prog_egrep+set}" = set; then
4e8d927d
DJ
2547 echo $ECHO_N "(cached) $ECHO_C" >&6
2548else
b4e70030
JB
2549 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2550 then ac_cv_prog_egrep='grep -E'
2551 else ac_cv_prog_egrep='egrep'
bec39cab 2552 fi
4e8d927d 2553fi
b4e70030
JB
2554echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2555echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2556 EGREP=$ac_cv_prog_egrep
c906108c 2557
bec39cab
AC
2558
2559
b4e70030
JB
2560echo "$as_me:$LINENO: checking for AIX" >&5
2561echo $ECHO_N "checking for AIX... $ECHO_C" >&6
bec39cab
AC
2562cat >conftest.$ac_ext <<_ACEOF
2563/* confdefs.h. */
2564_ACEOF
2565cat confdefs.h >>conftest.$ac_ext
2566cat >>conftest.$ac_ext <<_ACEOF
2567/* end confdefs.h. */
2568#ifdef _AIX
2569 yes
2570#endif
2571
2572_ACEOF
c906108c 2573if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 2574 $EGREP "yes" >/dev/null 2>&1; then
b4e70030
JB
2575 echo "$as_me:$LINENO: result: yes" >&5
2576echo "${ECHO_T}yes" >&6
bec39cab
AC
2577cat >>confdefs.h <<\_ACEOF
2578#define _ALL_SOURCE 1
2579_ACEOF
2580
c906108c 2581else
b4e70030
JB
2582 echo "$as_me:$LINENO: result: no" >&5
2583echo "${ECHO_T}no" >&6
c906108c
SS
2584fi
2585rm -f conftest*
2586
c906108c 2587
b4e70030
JB
2588echo "$as_me:$LINENO: checking for library containing strerror" >&5
2589echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
bec39cab
AC
2590if test "${ac_cv_search_strerror+set}" = set; then
2591 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2592else
bec39cab 2593 ac_func_search_save_LIBS=$LIBS
b4e70030 2594ac_cv_search_strerror=no
bec39cab
AC
2595cat >conftest.$ac_ext <<_ACEOF
2596/* confdefs.h. */
2597_ACEOF
2598cat confdefs.h >>conftest.$ac_ext
2599cat >>conftest.$ac_ext <<_ACEOF
2600/* end confdefs.h. */
c906108c 2601
b4e70030 2602/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
2603#ifdef __cplusplus
2604extern "C"
2605#endif
b4e70030
JB
2606/* We use char because int might match the return type of a gcc2
2607 builtin and then its argument prototype would still apply. */
bec39cab
AC
2608char strerror ();
2609int
2610main ()
2611{
b4e70030 2612strerror ();
bec39cab
AC
2613 ;
2614 return 0;
2615}
2616_ACEOF
b4e70030 2617rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
2618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2619 (eval $ac_link) 2>conftest.er1
2620 ac_status=$?
2621 grep -v '^ *+' conftest.er1 >conftest.err
2622 rm -f conftest.er1
2623 cat conftest.err >&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); } &&
b4e70030
JB
2626 { ac_try='test -z "$ac_c_werror_flag"
2627 || test ! -s conftest.err'
bec39cab
AC
2628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629 (eval $ac_try) 2>&5
2630 ac_status=$?
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); }; } &&
2633 { ac_try='test -s conftest$ac_exeext'
2634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635 (eval $ac_try) 2>&5
2636 ac_status=$?
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; }; then
b4e70030 2639 ac_cv_search_strerror="none required"
c906108c 2640else
bec39cab
AC
2641 echo "$as_me: failed program was:" >&5
2642sed 's/^/| /' conftest.$ac_ext >&5
c906108c
SS
2643
2644fi
bec39cab 2645rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
2646 conftest$ac_exeext conftest.$ac_ext
2647if test "$ac_cv_search_strerror" = no; then
2648 for ac_lib in cposix; do
2649 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2650 cat >conftest.$ac_ext <<_ACEOF
2651/* confdefs.h. */
2652_ACEOF
2653cat confdefs.h >>conftest.$ac_ext
2654cat >>conftest.$ac_ext <<_ACEOF
2655/* end confdefs.h. */
2656
2657/* Override any gcc2 internal prototype to avoid an error. */
2658#ifdef __cplusplus
2659extern "C"
2660#endif
2661/* We use char because int might match the return type of a gcc2
2662 builtin and then its argument prototype would still apply. */
2663char strerror ();
2664int
2665main ()
2666{
2667strerror ();
2668 ;
2669 return 0;
2670}
2671_ACEOF
2672rm -f conftest.$ac_objext conftest$ac_exeext
2673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2674 (eval $ac_link) 2>conftest.er1
2675 ac_status=$?
2676 grep -v '^ *+' conftest.er1 >conftest.err
2677 rm -f conftest.er1
2678 cat conftest.err >&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); } &&
2681 { ac_try='test -z "$ac_c_werror_flag"
2682 || test ! -s conftest.err'
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684 (eval $ac_try) 2>&5
2685 ac_status=$?
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; } &&
2688 { ac_try='test -s conftest$ac_exeext'
2689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690 (eval $ac_try) 2>&5
2691 ac_status=$?
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; }; then
2694 ac_cv_search_strerror="-l$ac_lib"
2695break
4e8d927d 2696else
b4e70030
JB
2697 echo "$as_me: failed program was:" >&5
2698sed 's/^/| /' conftest.$ac_ext >&5
2699
2700fi
2701rm -f conftest.err conftest.$ac_objext \
2702 conftest$ac_exeext conftest.$ac_ext
2703 done
c906108c 2704fi
bec39cab 2705LIBS=$ac_func_search_save_LIBS
c906108c 2706fi
b4e70030
JB
2707echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2708echo "${ECHO_T}$ac_cv_search_strerror" >&6
2709if test "$ac_cv_search_strerror" != no; then
2710 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
bec39cab 2711
c906108c
SS
2712fi
2713
c906108c 2714
c906108c 2715
bec39cab 2716
b4e70030
JB
2717echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2718echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
bec39cab
AC
2719if test "${am_cv_prog_cc_stdc+set}" = set; then
2720 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2721else
bec39cab
AC
2722 am_cv_prog_cc_stdc=no
2723ac_save_CC="$CC"
2724# Don't try gcc -ansi; that turns off useful extensions and
2725# breaks some systems' header files.
2726# AIX -qlanglvl=ansi
2727# Ultrix and OSF/1 -std1
2728# HP-UX 10.20 and later -Ae
2729# HP-UX older versions -Aa -D_HPUX_SOURCE
2730# SVR4 -Xc -D__EXTENSIONS__
2731for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2732do
2733 CC="$ac_save_CC $ac_arg"
2734 cat >conftest.$ac_ext <<_ACEOF
2735/* confdefs.h. */
2736_ACEOF
2737cat confdefs.h >>conftest.$ac_ext
2738cat >>conftest.$ac_ext <<_ACEOF
2739/* end confdefs.h. */
2740#include <stdarg.h>
2741#include <stdio.h>
2742#include <sys/types.h>
2743#include <sys/stat.h>
2744/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2745struct buf { int x; };
2746FILE * (*rcsopen) (struct buf *, struct stat *, int);
2747static char *e (p, i)
2748 char **p;
2749 int i;
2750{
2751 return p[i];
2752}
2753static char *f (char * (*g) (char **, int), char **p, ...)
2754{
2755 char *s;
2756 va_list v;
2757 va_start (v,p);
2758 s = g (p, va_arg (v,int));
2759 va_end (v);
2760 return s;
2761}
2762int test (int i, double x);
2763struct s1 {int (*f) (int a);};
2764struct s2 {int (*f) (double a);};
2765int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2766int argc;
2767char **argv;
c906108c 2768
bec39cab
AC
2769int
2770main ()
2771{
c906108c 2772
bec39cab 2773return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
c906108c 2774
bec39cab
AC
2775 ;
2776 return 0;
2777}
2778_ACEOF
2779rm -f conftest.$ac_objext
2780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2781 (eval $ac_compile) 2>conftest.er1
2782 ac_status=$?
2783 grep -v '^ *+' conftest.er1 >conftest.err
2784 rm -f conftest.er1
2785 cat conftest.err >&5
2786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787 (exit $ac_status); } &&
b4e70030
JB
2788 { ac_try='test -z "$ac_c_werror_flag"
2789 || test ! -s conftest.err'
bec39cab
AC
2790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 (eval $ac_try) 2>&5
2792 ac_status=$?
2793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794 (exit $ac_status); }; } &&
2795 { ac_try='test -s conftest.$ac_objext'
2796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2797 (eval $ac_try) 2>&5
2798 ac_status=$?
2799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2800 (exit $ac_status); }; }; then
2801 am_cv_prog_cc_stdc="$ac_arg"; break
c906108c 2802else
bec39cab
AC
2803 echo "$as_me: failed program was:" >&5
2804sed 's/^/| /' conftest.$ac_ext >&5
c906108c
SS
2805
2806fi
bec39cab
AC
2807rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2808done
2809CC="$ac_save_CC"
c906108c
SS
2810
2811fi
2812
bec39cab 2813if test -z "$am_cv_prog_cc_stdc"; then
b4e70030
JB
2814 echo "$as_me:$LINENO: result: none needed" >&5
2815echo "${ECHO_T}none needed" >&6
c906108c 2816else
b4e70030
JB
2817 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2818echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
c906108c 2819fi
bec39cab
AC
2820case "x$am_cv_prog_cc_stdc" in
2821 x|xno) ;;
2822 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2823esac
c906108c 2824
c906108c 2825
bec39cab
AC
2826ac_aux_dir=
2827for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
2828 if test -f $ac_dir/install-sh; then
2829 ac_aux_dir=$ac_dir
2830 ac_install_sh="$ac_aux_dir/install-sh -c"
2831 break
2832 elif test -f $ac_dir/install.sh; then
2833 ac_aux_dir=$ac_dir
2834 ac_install_sh="$ac_aux_dir/install.sh -c"
2835 break
2836 elif test -f $ac_dir/shtool; then
2837 ac_aux_dir=$ac_dir
2838 ac_install_sh="$ac_aux_dir/shtool install -c"
2839 break
2840 fi
2841done
2842if test -z "$ac_aux_dir"; then
2843 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5
2844echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;}
2845 { (exit 1); exit 1; }; }
c906108c 2846fi
bec39cab
AC
2847ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2848ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2849ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
c906108c 2850
bec39cab
AC
2851# Make sure we can run config.sub.
2852$ac_config_sub sun4 >/dev/null 2>&1 ||
2853 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2854echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2855 { (exit 1); exit 1; }; }
2856
b4e70030
JB
2857echo "$as_me:$LINENO: checking build system type" >&5
2858echo $ECHO_N "checking build system type... $ECHO_C" >&6
bec39cab
AC
2859if test "${ac_cv_build+set}" = set; then
2860 echo $ECHO_N "(cached) $ECHO_C" >&6
2861else
b4e70030
JB
2862 ac_cv_build_alias=$build_alias
2863test -z "$ac_cv_build_alias" &&
2864 ac_cv_build_alias=`$ac_config_guess`
2865test -z "$ac_cv_build_alias" &&
bec39cab
AC
2866 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2867echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2868 { (exit 1); exit 1; }; }
b4e70030
JB
2869ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2870 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2871echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
bec39cab
AC
2872 { (exit 1); exit 1; }; }
2873
2874fi
b4e70030
JB
2875echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2876echo "${ECHO_T}$ac_cv_build" >&6
bec39cab 2877build=$ac_cv_build
b4e70030
JB
2878build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2879build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2880build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
bec39cab
AC
2881
2882
b4e70030
JB
2883echo "$as_me:$LINENO: checking host system type" >&5
2884echo $ECHO_N "checking host system type... $ECHO_C" >&6
bec39cab
AC
2885if test "${ac_cv_host+set}" = set; then
2886 echo $ECHO_N "(cached) $ECHO_C" >&6
2887else
b4e70030
JB
2888 ac_cv_host_alias=$host_alias
2889test -z "$ac_cv_host_alias" &&
2890 ac_cv_host_alias=$ac_cv_build_alias
2891ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2892 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2893echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
bec39cab
AC
2894 { (exit 1); exit 1; }; }
2895
2896fi
b4e70030
JB
2897echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2898echo "${ECHO_T}$ac_cv_host" >&6
bec39cab 2899host=$ac_cv_host
b4e70030
JB
2900host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2901host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2902host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
bec39cab
AC
2903
2904
b4e70030
JB
2905echo "$as_me:$LINENO: checking target system type" >&5
2906echo $ECHO_N "checking target system type... $ECHO_C" >&6
bec39cab
AC
2907if test "${ac_cv_target+set}" = set; then
2908 echo $ECHO_N "(cached) $ECHO_C" >&6
2909else
b4e70030
JB
2910 ac_cv_target_alias=$target_alias
2911test "x$ac_cv_target_alias" = "x" &&
2912 ac_cv_target_alias=$ac_cv_host_alias
2913ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2914 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2915echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
bec39cab
AC
2916 { (exit 1); exit 1; }; }
2917
2918fi
b4e70030
JB
2919echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2920echo "${ECHO_T}$ac_cv_target" >&6
bec39cab 2921target=$ac_cv_target
b4e70030
JB
2922target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2923target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2924target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
c906108c 2925
c906108c 2926
bec39cab
AC
2927# The aliases save the names the user supplied, while $host etc.
2928# will get canonicalized.
2929test -n "$target_alias" &&
2930 test "$program_prefix$program_suffix$program_transform_name" = \
2931 NONENONEs,x,x, &&
2932 program_prefix=${target_alias}-
c906108c 2933
c906108c 2934
bec39cab
AC
2935CONFIG_OBS=
2936CONFIG_DEPS=
2937CONFIG_SRCS=
2938ENABLE_CFLAGS=
c906108c 2939
bec39cab
AC
2940CONFIG_ALL=
2941CONFIG_CLEAN=
2942CONFIG_INSTALL=
2943CONFIG_UNINSTALL=
2944
20e95c23
DJ
2945# If we haven't got the data from the intl directory,
2946# assume NLS is disabled.
2947USE_NLS=no
2948LIBINTL=
2949LIBINTL_DEP=
2950INCINTL=
2951XGETTEXT=
2952GMSGFMT=
2953POSUB=
3841debe
DJ
2954
2955if test -f ../intl/config.intl; then
2956 . ../intl/config.intl
20e95c23
DJ
2957fi
2958echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2959echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
2960if test x"$USE_NLS" != xyes; then
b4e70030
JB
2961 echo "$as_me:$LINENO: result: no" >&5
2962echo "${ECHO_T}no" >&6
c906108c 2963else
20e95c23
DJ
2964 echo "$as_me:$LINENO: result: yes" >&5
2965echo "${ECHO_T}yes" >&6
c906108c 2966
20e95c23
DJ
2967cat >>confdefs.h <<\_ACEOF
2968#define ENABLE_NLS 1
bec39cab 2969_ACEOF
c906108c 2970
c906108c 2971
20e95c23
DJ
2972 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
2973echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
2974 # Look for .po and .gmo files in the source directory.
2975 CATALOGS=
2976 XLINGUAS=
2977 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
2978 # If there aren't any .gmo files the shell will give us the
2979 # literal string "../path/to/srcdir/po/*.gmo" which has to be
2980 # weeded out.
2981 case "$cat" in *\**)
2982 continue;;
2983 esac
2984 # The quadruple backslash is collapsed to a double backslash
2985 # by the backticks, then collapsed again by the double quotes,
2986 # leaving us with one backslash in the sed expression (right
2987 # before the dot that mustn't act as a wildcard).
2988 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2989 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
2990 # The user is allowed to set LINGUAS to a list of languages to
2991 # install catalogs for. If it's empty that means "all of them."
2992 if test "x$LINGUAS" = x; then
2993 CATALOGS="$CATALOGS $cat"
2994 XLINGUAS="$XLINGUAS $lang"
2995 else
2996 case "$LINGUAS" in *$lang*)
2997 CATALOGS="$CATALOGS $cat"
2998 XLINGUAS="$XLINGUAS $lang"
2999 ;;
3000 esac
3001 fi
3002 done
3003 LINGUAS="$XLINGUAS"
3004 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3005echo "${ECHO_T}$LINGUAS" >&6
c906108c 3006
c906108c 3007
20e95c23 3008 DATADIRNAME=share
c906108c 3009
20e95c23 3010 INSTOBJEXT=.mo
c906108c 3011
20e95c23
DJ
3012 GENCAT=gencat
3013
3014 CATOBJEXT=.gmo
3015
3016fi
3017
3018localedir='${datadir}/locale'
c906108c 3019
bec39cab 3020
20e95c23 3021if test x"$USE_NLS" = xyes; then
bec39cab
AC
3022 CONFIG_ALL="$CONFIG_ALL all-po"
3023 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3024 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3025 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3026fi
3027
3028PACKAGE=gdb
3029
3030cat >>confdefs.h <<_ACEOF
3031#define PACKAGE "$PACKAGE"
3032_ACEOF
3033
3034
3035
3036debugdir=${libdir}/debug
3037
3038
b4e70030 3039# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
bec39cab 3040if test "${with_separate_debug_dir+set}" = set; then
b4e70030
JB
3041 withval="$with_separate_debug_dir"
3042 debugdir="${withval}"
3043fi;
bec39cab
AC
3044
3045
3046 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
3047 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3048 ac_define_dir=`eval echo $debugdir`
3049 ac_define_dir=`eval echo $ac_define_dir`
3050
3051cat >>confdefs.h <<_ACEOF
3052#define DEBUGDIR "$ac_define_dir"
3053_ACEOF
3054
3055
3056#AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
3057
aa28a74e
DJ
3058if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
3059 if test "x$prefix" = xNONE; then
3060 test_prefix=/usr/local
3061 else
3062 test_prefix=$prefix
3063 fi
3064else
3065 test_prefix=$exec_prefix
3066fi
3067case ${debugdir} in
3068"${test_prefix}"|"${test_prefix}/"*|\
3069'${exec_prefix}'|'${exec_prefix}/'*)
3070
3071cat >>confdefs.h <<\_ACEOF
3072#define DEBUGDIR_RELOCATABLE 1
3073_ACEOF
3074
3075 ;;
3076esac
3077
b4e70030
JB
3078
3079
bec39cab
AC
3080subdirs="$subdirs doc testsuite"
3081
3082
121ce6e5
DJ
3083# Provide defaults for some variables set by the per-host and per-target
3084# configuration.
3085gdb_host_obs=posix-hdep.o
3086
771b4502
UW
3087if test "${target}" = "${host}"; then
3088 gdb_native=yes
3089else
3090 gdb_native=no
3091fi
3092
bec39cab
AC
3093. $srcdir/configure.host
3094
3095. $srcdir/configure.tgt
3096
3097# Fetch the default architecture and default target vector from BFD.
3098targ=$target; . $srcdir/../bfd/config.bfd
3099
3100# We only want the first architecture, so strip off the others if
3101# there is more than one.
3102targ_archs=`echo $targ_archs | sed 's/ .*//'`
3103
3104if test "x$targ_archs" != x; then
3105
3106cat >>confdefs.h <<_ACEOF
3107#define DEFAULT_BFD_ARCH $targ_archs
3108_ACEOF
3109
3110fi
3111if test "x$targ_defvec" != x; then
3112
3113cat >>confdefs.h <<_ACEOF
3114#define DEFAULT_BFD_VEC $targ_defvec
3115_ACEOF
3116
3117fi
3118
a4ce5b0d
UW
3119TARGET_OBS="${gdb_target_obs}"
3120
3121
bec39cab 3122test "$program_prefix" != NONE &&
b4e70030 3123 program_transform_name="s,^,$program_prefix,;$program_transform_name"
bec39cab
AC
3124# Use a double $ so make ignores it.
3125test "$program_suffix" != NONE &&
b4e70030 3126 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
bec39cab
AC
3127# Double any \ or $. echo might interpret backslashes.
3128# By default was `s,x,x', remove it if useless.
3129cat <<\_ACEOF >conftest.sed
3130s/[\\$]/&&/g;s/;s,x,x,$//
3131_ACEOF
3132program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
b4e70030 3133rm conftest.sed
bec39cab
AC
3134
3135
3136# The CLI cannot be disabled yet, but may be in the future.
3137
3138# Enable CLI.
b4e70030 3139# Check whether --enable-gdbcli or --disable-gdbcli was given.
bec39cab 3140if test "${enable_gdbcli+set}" = set; then
b4e70030
JB
3141 enableval="$enable_gdbcli"
3142 case $enableval in
bec39cab
AC
3143 yes)
3144 ;;
3145 no)
3146 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
3147echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
3148 { (exit 1); exit 1; }; } ;;
3149 *)
3150 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
3151echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
3152 { (exit 1); exit 1; }; } ;;
3153 esac
3154else
3155 enable_gdbcli=yes
b4e70030 3156fi;
bec39cab
AC
3157if test x"$enable_gdbcli" = xyes; then
3158 if test -d $srcdir/cli; then
3159 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
3160 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
3161 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
3162 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
3163 fi
3164fi
3165
3166# Enable MI.
b4e70030 3167# Check whether --enable-gdbmi or --disable-gdbmi was given.
bec39cab 3168if test "${enable_gdbmi+set}" = set; then
b4e70030
JB
3169 enableval="$enable_gdbmi"
3170 case $enableval in
bec39cab
AC
3171 yes | no)
3172 ;;
3173 *)
3174 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
3175echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
3176 { (exit 1); exit 1; }; } ;;
3177 esac
3178else
3179 enable_gdbmi=yes
b4e70030 3180fi;
bec39cab
AC
3181if test x"$enable_gdbmi" = xyes; then
3182 if test -d $srcdir/mi; then
3183 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
3184 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
3185 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
3186 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
3187 fi
3188fi
3189
3190# Enable TUI.
b4e70030 3191# Check whether --enable-tui or --disable-tui was given.
bec39cab 3192if test "${enable_tui+set}" = set; then
b4e70030
JB
3193 enableval="$enable_tui"
3194 case $enableval in
bec39cab
AC
3195 yes | no)
3196 ;;
3197 *)
3198 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
3199echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
3200 { (exit 1); exit 1; }; } ;;
3201 esac
3202else
3203 enable_tui=yes
b4e70030 3204fi;
bec39cab
AC
3205
3206# Enable gdbtk.
b4e70030 3207# Check whether --enable-gdbtk or --disable-gdbtk was given.
bec39cab 3208if test "${enable_gdbtk+set}" = set; then
b4e70030
JB
3209 enableval="$enable_gdbtk"
3210 case $enableval in
bec39cab
AC
3211 yes | no)
3212 ;;
3213 *)
3214 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
3215echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
3216 { (exit 1); exit 1; }; } ;;
3217 esac
3218else
04ac69aa 3219 if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
bec39cab
AC
3220 enable_gdbtk=yes
3221 else
3222 enable_gdbtk=no
3223 fi
b4e70030 3224fi;
bec39cab
AC
3225# We unconditionally disable gdbtk tests on selected platforms.
3226case $host_os in
3227 go32* | windows*)
3228 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
3229echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
3230 enable_gdbtk=no ;;
3231esac
3232
3233# Libunwind support.
20e95c23
DJ
3234echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3235echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3236if test "${ac_cv_header_stdc+set}" = set; then
3237 echo $ECHO_N "(cached) $ECHO_C" >&6
3238else
3239 cat >conftest.$ac_ext <<_ACEOF
3240/* confdefs.h. */
3241_ACEOF
3242cat confdefs.h >>conftest.$ac_ext
3243cat >>conftest.$ac_ext <<_ACEOF
3244/* end confdefs.h. */
3245#include <stdlib.h>
3246#include <stdarg.h>
3247#include <string.h>
3248#include <float.h>
3249
3250int
3251main ()
3252{
3253
3254 ;
3255 return 0;
3256}
3257_ACEOF
3258rm -f conftest.$ac_objext
3259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3260 (eval $ac_compile) 2>conftest.er1
3261 ac_status=$?
3262 grep -v '^ *+' conftest.er1 >conftest.err
3263 rm -f conftest.er1
3264 cat conftest.err >&5
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); } &&
3267 { ac_try='test -z "$ac_c_werror_flag"
3268 || test ! -s conftest.err'
3269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3270 (eval $ac_try) 2>&5
3271 ac_status=$?
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); }; } &&
3274 { ac_try='test -s conftest.$ac_objext'
3275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3276 (eval $ac_try) 2>&5
3277 ac_status=$?
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); }; }; then
3280 ac_cv_header_stdc=yes
3281else
3282 echo "$as_me: failed program was:" >&5
3283sed 's/^/| /' conftest.$ac_ext >&5
3284
3285ac_cv_header_stdc=no
3286fi
3287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3288
3289if test $ac_cv_header_stdc = yes; then
3290 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3291 cat >conftest.$ac_ext <<_ACEOF
3292/* confdefs.h. */
3293_ACEOF
3294cat confdefs.h >>conftest.$ac_ext
3295cat >>conftest.$ac_ext <<_ACEOF
3296/* end confdefs.h. */
3297#include <string.h>
3298
3299_ACEOF
3300if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3301 $EGREP "memchr" >/dev/null 2>&1; then
3302 :
3303else
3304 ac_cv_header_stdc=no
3305fi
3306rm -f conftest*
3307
3308fi
3309
3310if test $ac_cv_header_stdc = yes; then
3311 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3312 cat >conftest.$ac_ext <<_ACEOF
3313/* confdefs.h. */
3314_ACEOF
3315cat confdefs.h >>conftest.$ac_ext
3316cat >>conftest.$ac_ext <<_ACEOF
3317/* end confdefs.h. */
3318#include <stdlib.h>
3319
3320_ACEOF
3321if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3322 $EGREP "free" >/dev/null 2>&1; then
3323 :
3324else
3325 ac_cv_header_stdc=no
3326fi
3327rm -f conftest*
3328
3329fi
3330
3331if test $ac_cv_header_stdc = yes; then
3332 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3333 if test "$cross_compiling" = yes; then
3334 :
3335else
3336 cat >conftest.$ac_ext <<_ACEOF
3337/* confdefs.h. */
3338_ACEOF
3339cat confdefs.h >>conftest.$ac_ext
3340cat >>conftest.$ac_ext <<_ACEOF
3341/* end confdefs.h. */
3342#include <ctype.h>
3343#if ((' ' & 0x0FF) == 0x020)
3344# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3345# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3346#else
3347# define ISLOWER(c) \
3348 (('a' <= (c) && (c) <= 'i') \
3349 || ('j' <= (c) && (c) <= 'r') \
3350 || ('s' <= (c) && (c) <= 'z'))
3351# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3352#endif
3353
3354#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3355int
3356main ()
3357{
3358 int i;
3359 for (i = 0; i < 256; i++)
3360 if (XOR (islower (i), ISLOWER (i))
3361 || toupper (i) != TOUPPER (i))
3362 exit(2);
3363 exit (0);
3364}
3365_ACEOF
3366rm -f conftest$ac_exeext
3367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3368 (eval $ac_link) 2>&5
3369 ac_status=$?
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3373 (eval $ac_try) 2>&5
3374 ac_status=$?
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); }; }; then
3377 :
3378else
3379 echo "$as_me: program exited with status $ac_status" >&5
3380echo "$as_me: failed program was:" >&5
3381sed 's/^/| /' conftest.$ac_ext >&5
3382
3383( exit $ac_status )
3384ac_cv_header_stdc=no
3385fi
3386rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3387fi
3388fi
3389fi
3390echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3391echo "${ECHO_T}$ac_cv_header_stdc" >&6
3392if test $ac_cv_header_stdc = yes; then
3393
3394cat >>confdefs.h <<\_ACEOF
3395#define STDC_HEADERS 1
3396_ACEOF
3397
3398fi
3399
3400# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3411 inttypes.h stdint.h unistd.h
3412do
3413as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3414echo "$as_me:$LINENO: checking for $ac_header" >&5
3415echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3416if eval "test \"\${$as_ac_Header+set}\" = set"; then
3417 echo $ECHO_N "(cached) $ECHO_C" >&6
3418else
3419 cat >conftest.$ac_ext <<_ACEOF
3420/* confdefs.h. */
3421_ACEOF
3422cat confdefs.h >>conftest.$ac_ext
3423cat >>conftest.$ac_ext <<_ACEOF
3424/* end confdefs.h. */
3425$ac_includes_default
3426
3427#include <$ac_header>
3428_ACEOF
3429rm -f conftest.$ac_objext
3430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3431 (eval $ac_compile) 2>conftest.er1
3432 ac_status=$?
3433 grep -v '^ *+' conftest.er1 >conftest.err
3434 rm -f conftest.er1
3435 cat conftest.err >&5
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); } &&
3438 { ac_try='test -z "$ac_c_werror_flag"
3439 || test ! -s conftest.err'
3440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3441 (eval $ac_try) 2>&5
3442 ac_status=$?
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); }; } &&
3445 { ac_try='test -s conftest.$ac_objext'
3446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3447 (eval $ac_try) 2>&5
3448 ac_status=$?
3449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450 (exit $ac_status); }; }; then
3451 eval "$as_ac_Header=yes"
3452else
3453 echo "$as_me: failed program was:" >&5
3454sed 's/^/| /' conftest.$ac_ext >&5
3455
3456eval "$as_ac_Header=no"
3457fi
3458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3459fi
3460echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3461echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3462if test `eval echo '${'$as_ac_Header'}'` = yes; then
3463 cat >>confdefs.h <<_ACEOF
3464#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3465_ACEOF
3466
3467fi
3468
3469done
3470
3471
bec39cab 3472
b4e70030 3473# Check whether --with-libunwind or --without-libunwind was given.
bec39cab 3474if test "${with_libunwind+set}" = set; then
b4e70030
JB
3475 withval="$with_libunwind"
3476 case "${withval}" in
bec39cab
AC
3477 yes) enable_libunwind=yes ;;
3478 no) enable_libunwind=no ;;
3479 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
3480echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
3481 { (exit 1); exit 1; }; } ;;
3482esac
3483else
3484
3485
3486for ac_header in libunwind.h
3487do
3488as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
3489if eval "test \"\${$as_ac_Header+set}\" = set"; then
3490 echo "$as_me:$LINENO: checking for $ac_header" >&5
3491echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3492if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3493 echo $ECHO_N "(cached) $ECHO_C" >&6
3494fi
b4e70030
JB
3495echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3496echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3497else
3498 # Is the header compilable?
b4e70030
JB
3499echo "$as_me:$LINENO: checking $ac_header usability" >&5
3500echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
3501cat >conftest.$ac_ext <<_ACEOF
3502/* confdefs.h. */
3503_ACEOF
3504cat confdefs.h >>conftest.$ac_ext
3505cat >>conftest.$ac_ext <<_ACEOF
3506/* end confdefs.h. */
3507$ac_includes_default
3508#include <$ac_header>
3509_ACEOF
3510rm -f conftest.$ac_objext
3511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3512 (eval $ac_compile) 2>conftest.er1
3513 ac_status=$?
3514 grep -v '^ *+' conftest.er1 >conftest.err
3515 rm -f conftest.er1
3516 cat conftest.err >&5
3517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518 (exit $ac_status); } &&
b4e70030
JB
3519 { ac_try='test -z "$ac_c_werror_flag"
3520 || test ! -s conftest.err'
bec39cab
AC
3521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3522 (eval $ac_try) 2>&5
3523 ac_status=$?
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); }; } &&
3526 { ac_try='test -s conftest.$ac_objext'
3527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3528 (eval $ac_try) 2>&5
3529 ac_status=$?
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); }; }; then
3532 ac_header_compiler=yes
3533else
3534 echo "$as_me: failed program was:" >&5
3535sed 's/^/| /' conftest.$ac_ext >&5
3536
b4e70030 3537ac_header_compiler=no
bec39cab
AC
3538fi
3539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
3540echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3541echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
3542
3543# Is the header present?
b4e70030
JB
3544echo "$as_me:$LINENO: checking $ac_header presence" >&5
3545echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
3546cat >conftest.$ac_ext <<_ACEOF
3547/* confdefs.h. */
3548_ACEOF
3549cat confdefs.h >>conftest.$ac_ext
3550cat >>conftest.$ac_ext <<_ACEOF
3551/* end confdefs.h. */
3552#include <$ac_header>
3553_ACEOF
3554if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3555 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3556 ac_status=$?
3557 grep -v '^ *+' conftest.er1 >conftest.err
3558 rm -f conftest.er1
3559 cat conftest.err >&5
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); } >/dev/null; then
3562 if test -s conftest.err; then
3563 ac_cpp_err=$ac_c_preproc_warn_flag
3564 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3565 else
3566 ac_cpp_err=
3567 fi
3568else
3569 ac_cpp_err=yes
3570fi
3571if test -z "$ac_cpp_err"; then
3572 ac_header_preproc=yes
3573else
3574 echo "$as_me: failed program was:" >&5
3575sed 's/^/| /' conftest.$ac_ext >&5
3576
3577 ac_header_preproc=no
3578fi
3579rm -f conftest.err conftest.$ac_ext
b4e70030
JB
3580echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3581echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
3582
3583# So? What about this header?
3584case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3585 yes:no: )
3586 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3587echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3589echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3590 ac_header_preproc=yes
3591 ;;
3592 no:yes:* )
3593 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3594echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3595 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3596echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3597 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3598echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3599 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3600echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3602echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3603 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3604echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
3605 (
3606 cat <<\_ASBOX
3607## ------------------------------------------ ##
3608## Report this to the AC_PACKAGE_NAME lists. ##
3609## ------------------------------------------ ##
3610_ASBOX
3611 ) |
3612 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
3613 ;;
3614esac
b4e70030
JB
3615echo "$as_me:$LINENO: checking for $ac_header" >&5
3616echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3617if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3618 echo $ECHO_N "(cached) $ECHO_C" >&6
3619else
3620 eval "$as_ac_Header=\$ac_header_preproc"
3621fi
b4e70030
JB
3622echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3623echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3624
3625fi
3626if test `eval echo '${'$as_ac_Header'}'` = yes; then
3627 cat >>confdefs.h <<_ACEOF
3628#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3629_ACEOF
3630
3631fi
3632
3633done
3634
3635
3636for ac_header in libunwind-ia64.h
3637do
3638as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
3639if eval "test \"\${$as_ac_Header+set}\" = set"; then
3640 echo "$as_me:$LINENO: checking for $ac_header" >&5
3641echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3642if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3643 echo $ECHO_N "(cached) $ECHO_C" >&6
3644fi
b4e70030
JB
3645echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3646echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3647else
3648 # Is the header compilable?
b4e70030
JB
3649echo "$as_me:$LINENO: checking $ac_header usability" >&5
3650echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
3651cat >conftest.$ac_ext <<_ACEOF
3652/* confdefs.h. */
3653_ACEOF
3654cat confdefs.h >>conftest.$ac_ext
3655cat >>conftest.$ac_ext <<_ACEOF
3656/* end confdefs.h. */
3657$ac_includes_default
3658#include <$ac_header>
3659_ACEOF
3660rm -f conftest.$ac_objext
3661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3662 (eval $ac_compile) 2>conftest.er1
3663 ac_status=$?
3664 grep -v '^ *+' conftest.er1 >conftest.err
3665 rm -f conftest.er1
3666 cat conftest.err >&5
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); } &&
b4e70030
JB
3669 { ac_try='test -z "$ac_c_werror_flag"
3670 || test ! -s conftest.err'
bec39cab
AC
3671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3672 (eval $ac_try) 2>&5
3673 ac_status=$?
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); }; } &&
3676 { ac_try='test -s conftest.$ac_objext'
3677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3678 (eval $ac_try) 2>&5
3679 ac_status=$?
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }; }; then
3682 ac_header_compiler=yes
3683else
3684 echo "$as_me: failed program was:" >&5
3685sed 's/^/| /' conftest.$ac_ext >&5
3686
b4e70030 3687ac_header_compiler=no
bec39cab
AC
3688fi
3689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
3690echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3691echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
3692
3693# Is the header present?
b4e70030
JB
3694echo "$as_me:$LINENO: checking $ac_header presence" >&5
3695echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
3696cat >conftest.$ac_ext <<_ACEOF
3697/* confdefs.h. */
3698_ACEOF
3699cat confdefs.h >>conftest.$ac_ext
3700cat >>conftest.$ac_ext <<_ACEOF
3701/* end confdefs.h. */
3702#include <$ac_header>
3703_ACEOF
3704if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3705 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3706 ac_status=$?
3707 grep -v '^ *+' conftest.er1 >conftest.err
3708 rm -f conftest.er1
3709 cat conftest.err >&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); } >/dev/null; then
3712 if test -s conftest.err; then
3713 ac_cpp_err=$ac_c_preproc_warn_flag
3714 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3715 else
3716 ac_cpp_err=
3717 fi
3718else
3719 ac_cpp_err=yes
3720fi
3721if test -z "$ac_cpp_err"; then
3722 ac_header_preproc=yes
3723else
3724 echo "$as_me: failed program was:" >&5
3725sed 's/^/| /' conftest.$ac_ext >&5
3726
3727 ac_header_preproc=no
3728fi
3729rm -f conftest.err conftest.$ac_ext
b4e70030
JB
3730echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3731echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
3732
3733# So? What about this header?
3734case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3735 yes:no: )
3736 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3737echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3739echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3740 ac_header_preproc=yes
3741 ;;
3742 no:yes:* )
3743 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3744echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3745 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3746echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3747 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3748echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3749 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3750echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3752echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3753 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3754echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
3755 (
3756 cat <<\_ASBOX
3757## ------------------------------------------ ##
3758## Report this to the AC_PACKAGE_NAME lists. ##
3759## ------------------------------------------ ##
3760_ASBOX
3761 ) |
3762 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
3763 ;;
3764esac
b4e70030
JB
3765echo "$as_me:$LINENO: checking for $ac_header" >&5
3766echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3767if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3768 echo $ECHO_N "(cached) $ECHO_C" >&6
3769else
3770 eval "$as_ac_Header=\$ac_header_preproc"
3771fi
b4e70030
JB
3772echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3773echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3774
3775fi
3776if test `eval echo '${'$as_ac_Header'}'` = yes; then
3777 cat >>confdefs.h <<_ACEOF
3778#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3779_ACEOF
3780
3781fi
3782
3783done
3784
3785 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
3786 enable_libunwind=yes;
3787 fi
3788
b4e70030 3789fi;
bec39cab
AC
3790
3791if test x"$enable_libunwind" = xyes; then
3792
3793for ac_header in libunwind.h
3794do
3795as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
3796if eval "test \"\${$as_ac_Header+set}\" = set"; then
3797 echo "$as_me:$LINENO: checking for $ac_header" >&5
3798echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3799if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
3801fi
b4e70030
JB
3802echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3803echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3804else
3805 # Is the header compilable?
b4e70030
JB
3806echo "$as_me:$LINENO: checking $ac_header usability" >&5
3807echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
3808cat >conftest.$ac_ext <<_ACEOF
3809/* confdefs.h. */
3810_ACEOF
3811cat confdefs.h >>conftest.$ac_ext
3812cat >>conftest.$ac_ext <<_ACEOF
3813/* end confdefs.h. */
3814$ac_includes_default
3815#include <$ac_header>
3816_ACEOF
3817rm -f conftest.$ac_objext
3818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3819 (eval $ac_compile) 2>conftest.er1
3820 ac_status=$?
3821 grep -v '^ *+' conftest.er1 >conftest.err
3822 rm -f conftest.er1
3823 cat conftest.err >&5
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); } &&
b4e70030
JB
3826 { ac_try='test -z "$ac_c_werror_flag"
3827 || test ! -s conftest.err'
bec39cab
AC
3828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3829 (eval $ac_try) 2>&5
3830 ac_status=$?
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); }; } &&
3833 { ac_try='test -s conftest.$ac_objext'
3834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3835 (eval $ac_try) 2>&5
3836 ac_status=$?
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); }; }; then
3839 ac_header_compiler=yes
3840else
3841 echo "$as_me: failed program was:" >&5
3842sed 's/^/| /' conftest.$ac_ext >&5
3843
b4e70030 3844ac_header_compiler=no
bec39cab
AC
3845fi
3846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
3847echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3848echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
3849
3850# Is the header present?
b4e70030
JB
3851echo "$as_me:$LINENO: checking $ac_header presence" >&5
3852echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
3853cat >conftest.$ac_ext <<_ACEOF
3854/* confdefs.h. */
3855_ACEOF
3856cat confdefs.h >>conftest.$ac_ext
3857cat >>conftest.$ac_ext <<_ACEOF
3858/* end confdefs.h. */
3859#include <$ac_header>
3860_ACEOF
3861if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3862 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3863 ac_status=$?
3864 grep -v '^ *+' conftest.er1 >conftest.err
3865 rm -f conftest.er1
3866 cat conftest.err >&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); } >/dev/null; then
3869 if test -s conftest.err; then
3870 ac_cpp_err=$ac_c_preproc_warn_flag
3871 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3872 else
3873 ac_cpp_err=
3874 fi
3875else
3876 ac_cpp_err=yes
3877fi
3878if test -z "$ac_cpp_err"; then
3879 ac_header_preproc=yes
3880else
3881 echo "$as_me: failed program was:" >&5
3882sed 's/^/| /' conftest.$ac_ext >&5
3883
3884 ac_header_preproc=no
3885fi
3886rm -f conftest.err conftest.$ac_ext
b4e70030
JB
3887echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3888echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
3889
3890# So? What about this header?
3891case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3892 yes:no: )
3893 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3894echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3896echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3897 ac_header_preproc=yes
3898 ;;
3899 no:yes:* )
3900 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3901echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3902 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3903echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3904 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3905echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3906 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3907echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3909echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3910 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3911echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
3912 (
3913 cat <<\_ASBOX
3914## ------------------------------------------ ##
3915## Report this to the AC_PACKAGE_NAME lists. ##
3916## ------------------------------------------ ##
3917_ASBOX
3918 ) |
3919 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
3920 ;;
3921esac
b4e70030
JB
3922echo "$as_me:$LINENO: checking for $ac_header" >&5
3923echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3924if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3926else
3927 eval "$as_ac_Header=\$ac_header_preproc"
3928fi
b4e70030
JB
3929echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3930echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3931
3932fi
3933if test `eval echo '${'$as_ac_Header'}'` = yes; then
3934 cat >>confdefs.h <<_ACEOF
3935#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3936_ACEOF
3937
3938fi
3939
3940done
3941
3942
3943for ac_header in libunwind-ia64.h
3944do
3945as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
3946if eval "test \"\${$as_ac_Header+set}\" = set"; then
3947 echo "$as_me:$LINENO: checking for $ac_header" >&5
3948echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3949if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3950 echo $ECHO_N "(cached) $ECHO_C" >&6
3951fi
b4e70030
JB
3952echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3953echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3954else
3955 # Is the header compilable?
b4e70030
JB
3956echo "$as_me:$LINENO: checking $ac_header usability" >&5
3957echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
3958cat >conftest.$ac_ext <<_ACEOF
3959/* confdefs.h. */
3960_ACEOF
3961cat confdefs.h >>conftest.$ac_ext
3962cat >>conftest.$ac_ext <<_ACEOF
3963/* end confdefs.h. */
3964$ac_includes_default
3965#include <$ac_header>
3966_ACEOF
3967rm -f conftest.$ac_objext
3968if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3969 (eval $ac_compile) 2>conftest.er1
3970 ac_status=$?
3971 grep -v '^ *+' conftest.er1 >conftest.err
3972 rm -f conftest.er1
3973 cat conftest.err >&5
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); } &&
b4e70030
JB
3976 { ac_try='test -z "$ac_c_werror_flag"
3977 || test ! -s conftest.err'
bec39cab
AC
3978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3979 (eval $ac_try) 2>&5
3980 ac_status=$?
3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982 (exit $ac_status); }; } &&
3983 { ac_try='test -s conftest.$ac_objext'
3984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3985 (eval $ac_try) 2>&5
3986 ac_status=$?
3987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988 (exit $ac_status); }; }; then
3989 ac_header_compiler=yes
3990else
3991 echo "$as_me: failed program was:" >&5
3992sed 's/^/| /' conftest.$ac_ext >&5
3993
b4e70030 3994ac_header_compiler=no
bec39cab
AC
3995fi
3996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
3997echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3998echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
3999
4000# Is the header present?
b4e70030
JB
4001echo "$as_me:$LINENO: checking $ac_header presence" >&5
4002echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
4003cat >conftest.$ac_ext <<_ACEOF
4004/* confdefs.h. */
4005_ACEOF
4006cat confdefs.h >>conftest.$ac_ext
4007cat >>conftest.$ac_ext <<_ACEOF
4008/* end confdefs.h. */
4009#include <$ac_header>
4010_ACEOF
4011if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4013 ac_status=$?
4014 grep -v '^ *+' conftest.er1 >conftest.err
4015 rm -f conftest.er1
4016 cat conftest.err >&5
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); } >/dev/null; then
4019 if test -s conftest.err; then
4020 ac_cpp_err=$ac_c_preproc_warn_flag
4021 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4022 else
4023 ac_cpp_err=
4024 fi
4025else
4026 ac_cpp_err=yes
4027fi
4028if test -z "$ac_cpp_err"; then
4029 ac_header_preproc=yes
4030else
4031 echo "$as_me: failed program was:" >&5
4032sed 's/^/| /' conftest.$ac_ext >&5
4033
4034 ac_header_preproc=no
4035fi
4036rm -f conftest.err conftest.$ac_ext
b4e70030
JB
4037echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4038echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
4039
4040# So? What about this header?
4041case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4042 yes:no: )
4043 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4044echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4046echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4047 ac_header_preproc=yes
4048 ;;
4049 no:yes:* )
4050 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4051echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4052 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4053echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4054 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4055echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4056 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4057echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4059echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4060 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4061echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
4062 (
4063 cat <<\_ASBOX
4064## ------------------------------------------ ##
4065## Report this to the AC_PACKAGE_NAME lists. ##
4066## ------------------------------------------ ##
4067_ASBOX
4068 ) |
4069 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
4070 ;;
4071esac
b4e70030
JB
4072echo "$as_me:$LINENO: checking for $ac_header" >&5
4073echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4074if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
4075 echo $ECHO_N "(cached) $ECHO_C" >&6
4076else
4077 eval "$as_ac_Header=\$ac_header_preproc"
4078fi
b4e70030
JB
4079echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4080echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
4081
4082fi
4083if test `eval echo '${'$as_ac_Header'}'` = yes; then
4084 cat >>confdefs.h <<_ACEOF
4085#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4086_ACEOF
4087
4088fi
4089
4090done
4091
60ca704f
SE
4092
4093cat >>confdefs.h <<\_ACEOF
bec39cab
AC
4094#define HAVE_LIBUNWIND 1
4095_ACEOF
4096
4097 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
4098 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
4099 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
4100fi
4101
4102# Profiling support.
b4e70030 4103# Check whether --enable-profiling or --disable-profiling was given.
bec39cab 4104if test "${enable_profiling+set}" = set; then
b4e70030
JB
4105 enableval="$enable_profiling"
4106 case $enableval in
bec39cab
AC
4107 yes | no)
4108 ;;
4109 *)
4110 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
4111echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
4112 { (exit 1); exit 1; }; } ;;
4113 esac
4114else
4115 enable_profiling=no
b4e70030 4116fi;
bec39cab
AC
4117
4118
4119
4120for ac_func in monstartup _mcleanup
4121do
4122as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
4123echo "$as_me:$LINENO: checking for $ac_func" >&5
4124echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4125if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
4126 echo $ECHO_N "(cached) $ECHO_C" >&6
4127else
4128 cat >conftest.$ac_ext <<_ACEOF
4129/* confdefs.h. */
4130_ACEOF
4131cat confdefs.h >>conftest.$ac_ext
4132cat >>conftest.$ac_ext <<_ACEOF
4133/* end confdefs.h. */
4134/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4136#define $ac_func innocuous_$ac_func
4137
4138/* System header to define __stub macros and hopefully few prototypes,
4139 which can conflict with char $ac_func (); below.
4140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4141 <limits.h> exists even on freestanding compilers. */
4142
4143#ifdef __STDC__
4144# include <limits.h>
4145#else
4146# include <assert.h>
4147#endif
4148
4149#undef $ac_func
4150
b4e70030 4151/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
4152#ifdef __cplusplus
4153extern "C"
b4e70030 4154{
bec39cab 4155#endif
b4e70030
JB
4156/* We use char because int might match the return type of a gcc2
4157 builtin and then its argument prototype would still apply. */
bec39cab
AC
4158char $ac_func ();
4159/* The GNU C library defines this for functions which it implements
4160 to always fail with ENOSYS. Some functions are actually named
4161 something starting with __ and the normal name is an alias. */
b4e70030 4162#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
bec39cab 4163choke me
b4e70030
JB
4164#else
4165char (*f) () = $ac_func;
4166#endif
4167#ifdef __cplusplus
4168}
bec39cab
AC
4169#endif
4170
4171int
4172main ()
4173{
b4e70030 4174return f != $ac_func;
bec39cab
AC
4175 ;
4176 return 0;
4177}
4178_ACEOF
4179rm -f conftest.$ac_objext conftest$ac_exeext
4180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4181 (eval $ac_link) 2>conftest.er1
4182 ac_status=$?
4183 grep -v '^ *+' conftest.er1 >conftest.err
4184 rm -f conftest.er1
4185 cat conftest.err >&5
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); } &&
b4e70030
JB
4188 { ac_try='test -z "$ac_c_werror_flag"
4189 || test ! -s conftest.err'
bec39cab
AC
4190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4191 (eval $ac_try) 2>&5
4192 ac_status=$?
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; } &&
4195 { ac_try='test -s conftest$ac_exeext'
4196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4197 (eval $ac_try) 2>&5
4198 ac_status=$?
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); }; }; then
4201 eval "$as_ac_var=yes"
4202else
4203 echo "$as_me: failed program was:" >&5
4204sed 's/^/| /' conftest.$ac_ext >&5
4205
b4e70030 4206eval "$as_ac_var=no"
bec39cab
AC
4207fi
4208rm -f conftest.err conftest.$ac_objext \
4209 conftest$ac_exeext conftest.$ac_ext
4210fi
b4e70030
JB
4211echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4212echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
4213if test `eval echo '${'$as_ac_var'}'` = yes; then
4214 cat >>confdefs.h <<_ACEOF
4215#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4216_ACEOF
4217
4218fi
4219done
4220
b4e70030
JB
4221echo "$as_me:$LINENO: checking for _etext" >&5
4222echo $ECHO_N "checking for _etext... $ECHO_C" >&6
bec39cab
AC
4223if test "${ac_cv_var__etext+set}" = set; then
4224 echo $ECHO_N "(cached) $ECHO_C" >&6
4225else
4226 cat >conftest.$ac_ext <<_ACEOF
4227/* confdefs.h. */
4228_ACEOF
4229cat confdefs.h >>conftest.$ac_ext
4230cat >>conftest.$ac_ext <<_ACEOF
4231/* end confdefs.h. */
4232#include <stdlib.h>
4233extern char _etext;
4234
4235int
4236main ()
4237{
4238free (&_etext);
4239 ;
4240 return 0;
4241}
4242_ACEOF
4243rm -f conftest.$ac_objext conftest$ac_exeext
4244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4245 (eval $ac_link) 2>conftest.er1
4246 ac_status=$?
4247 grep -v '^ *+' conftest.er1 >conftest.err
4248 rm -f conftest.er1
4249 cat conftest.err >&5
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); } &&
b4e70030
JB
4252 { ac_try='test -z "$ac_c_werror_flag"
4253 || test ! -s conftest.err'
bec39cab
AC
4254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4255 (eval $ac_try) 2>&5
4256 ac_status=$?
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); }; } &&
4259 { ac_try='test -s conftest$ac_exeext'
4260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4261 (eval $ac_try) 2>&5
4262 ac_status=$?
4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264 (exit $ac_status); }; }; then
4265 ac_cv_var__etext=yes
4266else
4267 echo "$as_me: failed program was:" >&5
4268sed 's/^/| /' conftest.$ac_ext >&5
4269
b4e70030 4270ac_cv_var__etext=no
bec39cab
AC
4271fi
4272rm -f conftest.err conftest.$ac_objext \
4273 conftest$ac_exeext conftest.$ac_ext
4274fi
b4e70030
JB
4275echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
4276echo "${ECHO_T}$ac_cv_var__etext" >&6
bec39cab
AC
4277if test $ac_cv_var__etext = yes; then
4278
4279cat >>confdefs.h <<\_ACEOF
4280#define HAVE__ETEXT 1
4281_ACEOF
4282
01fe12f6
JB
4283fi
4284echo "$as_me:$LINENO: checking for etext" >&5
4285echo $ECHO_N "checking for etext... $ECHO_C" >&6
4286if test "${ac_cv_var_etext+set}" = set; then
4287 echo $ECHO_N "(cached) $ECHO_C" >&6
4288else
4289 cat >conftest.$ac_ext <<_ACEOF
4290/* confdefs.h. */
4291_ACEOF
4292cat confdefs.h >>conftest.$ac_ext
4293cat >>conftest.$ac_ext <<_ACEOF
4294/* end confdefs.h. */
4295#include <stdlib.h>
4296extern char etext;
4297
4298int
4299main ()
4300{
4301free (&etext);
4302 ;
4303 return 0;
4304}
4305_ACEOF
4306rm -f conftest.$ac_objext conftest$ac_exeext
4307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4308 (eval $ac_link) 2>conftest.er1
4309 ac_status=$?
4310 grep -v '^ *+' conftest.er1 >conftest.err
4311 rm -f conftest.er1
4312 cat conftest.err >&5
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); } &&
4315 { ac_try='test -z "$ac_c_werror_flag"
4316 || test ! -s conftest.err'
4317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4318 (eval $ac_try) 2>&5
4319 ac_status=$?
4320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321 (exit $ac_status); }; } &&
4322 { ac_try='test -s conftest$ac_exeext'
4323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4324 (eval $ac_try) 2>&5
4325 ac_status=$?
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); }; }; then
4328 ac_cv_var_etext=yes
4329else
4330 echo "$as_me: failed program was:" >&5
4331sed 's/^/| /' conftest.$ac_ext >&5
4332
4333ac_cv_var_etext=no
4334fi
4335rm -f conftest.err conftest.$ac_objext \
4336 conftest$ac_exeext conftest.$ac_ext
4337fi
4338echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5
4339echo "${ECHO_T}$ac_cv_var_etext" >&6
4340if test $ac_cv_var_etext = yes; then
4341
4342cat >>confdefs.h <<\_ACEOF
4343#define HAVE_ETEXT 1
4344_ACEOF
4345
bec39cab
AC
4346fi
4347if test "$enable_profiling" = yes ; then
4348 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
4349 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
4350echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
4351 { (exit 1); exit 1; }; }
4352 fi
4353 PROFILE_CFLAGS=-pg
4354 OLD_CFLAGS="$CFLAGS"
4355 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
4356
b4e70030
JB
4357 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
4358echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
bec39cab
AC
4359if test "${ac_cv_cc_supports_pg+set}" = set; then
4360 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4361else
bec39cab
AC
4362 cat >conftest.$ac_ext <<_ACEOF
4363/* confdefs.h. */
4364_ACEOF
4365cat confdefs.h >>conftest.$ac_ext
4366cat >>conftest.$ac_ext <<_ACEOF
4367/* end confdefs.h. */
4368
4369int
4370main ()
4371{
4372int x;
4373 ;
4374 return 0;
4375}
4376_ACEOF
4377rm -f conftest.$ac_objext
4378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4379 (eval $ac_compile) 2>conftest.er1
4380 ac_status=$?
4381 grep -v '^ *+' conftest.er1 >conftest.err
4382 rm -f conftest.er1
4383 cat conftest.err >&5
4384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385 (exit $ac_status); } &&
b4e70030
JB
4386 { ac_try='test -z "$ac_c_werror_flag"
4387 || test ! -s conftest.err'
bec39cab
AC
4388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4389 (eval $ac_try) 2>&5
4390 ac_status=$?
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); }; } &&
4393 { ac_try='test -s conftest.$ac_objext'
4394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395 (eval $ac_try) 2>&5
4396 ac_status=$?
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); }; }; then
4399 ac_cv_cc_supports_pg=yes
4400else
4401 echo "$as_me: failed program was:" >&5
4402sed 's/^/| /' conftest.$ac_ext >&5
4403
b4e70030 4404ac_cv_cc_supports_pg=no
bec39cab
AC
4405fi
4406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4407fi
b4e70030
JB
4408echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
4409echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
bec39cab
AC
4410
4411 if test $ac_cv_cc_supports_pg = no; then
4412 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
4413echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
4414 { (exit 1); exit 1; }; }
4415 fi
4416
4417 CFLAGS="$OLD_CFLAGS"
4418fi
4419
4420# --------------------- #
4421# Checks for programs. #
4422# --------------------- #
4423
4424for ac_prog in gawk mawk nawk awk
4425do
4426 # Extract the first word of "$ac_prog", so it can be a program name with args.
4427set dummy $ac_prog; ac_word=$2
b4e70030
JB
4428echo "$as_me:$LINENO: checking for $ac_word" >&5
4429echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4430if test "${ac_cv_prog_AWK+set}" = set; then
4431 echo $ECHO_N "(cached) $ECHO_C" >&6
4432else
4433 if test -n "$AWK"; then
4434 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4435else
4436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437for as_dir in $PATH
4438do
4439 IFS=$as_save_IFS
4440 test -z "$as_dir" && as_dir=.
4441 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4443 ac_cv_prog_AWK="$ac_prog"
4444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4445 break 2
4446 fi
4447done
4448done
4449
4450fi
4451fi
4452AWK=$ac_cv_prog_AWK
4453if test -n "$AWK"; then
b4e70030
JB
4454 echo "$as_me:$LINENO: result: $AWK" >&5
4455echo "${ECHO_T}$AWK" >&6
bec39cab 4456else
b4e70030
JB
4457 echo "$as_me:$LINENO: result: no" >&5
4458echo "${ECHO_T}no" >&6
bec39cab
AC
4459fi
4460
4461 test -n "$AWK" && break
4462done
4463
4464# Find a good install program. We prefer a C program (faster),
4465# so one script is as good as another. But avoid the broken or
4466# incompatible versions:
4467# SysV /etc/install, /usr/sbin/install
4468# SunOS /usr/etc/install
4469# IRIX /sbin/install
4470# AIX /bin/install
4471# AmigaOS /C/install, which installs bootblocks on floppy discs
4472# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4473# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4474# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4475# OS/2's system install, which has a completely different semantic
4476# ./install, which can be erroneously created by make from ./install.sh.
b4e70030
JB
4477echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4478echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
bec39cab
AC
4479if test -z "$INSTALL"; then
4480if test "${ac_cv_path_install+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4482else
4483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484for as_dir in $PATH
4485do
4486 IFS=$as_save_IFS
4487 test -z "$as_dir" && as_dir=.
4488 # Account for people who put trailing slashes in PATH elements.
4489case $as_dir/ in
4490 ./ | .// | /cC/* | \
4491 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4492 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4493 /usr/ucb/* ) ;;
c906108c 4494 *)
bec39cab
AC
4495 # OSF1 and SCO ODT 3.0 have their own names for install.
4496 # Don't use installbsd from OSF since it installs stuff as root
4497 # by default.
4498 for ac_prog in ginstall scoinst install; do
4499 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4500 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
bec39cab
AC
4501 if test $ac_prog = install &&
4502 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4503 # AIX install. It has an incompatible calling convention.
4504 :
4505 elif test $ac_prog = install &&
4506 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4507 # program-specific install script used by HP pwplus--don't use.
4508 :
4509 else
4510 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4511 break 3
4512 fi
4513 fi
4514 done
4515 done
4516 ;;
c906108c 4517esac
bec39cab
AC
4518done
4519
4520
4521fi
4522 if test "${ac_cv_path_install+set}" = set; then
4523 INSTALL=$ac_cv_path_install
4524 else
b4e70030
JB
4525 # As a last resort, use the slow shell script. We don't cache a
4526 # path for INSTALL within a source directory, because that will
bec39cab 4527 # break other packages using the cache if that directory is
b4e70030 4528 # removed, or if the path is relative.
bec39cab
AC
4529 INSTALL=$ac_install_sh
4530 fi
4531fi
b4e70030
JB
4532echo "$as_me:$LINENO: result: $INSTALL" >&5
4533echo "${ECHO_T}$INSTALL" >&6
bec39cab
AC
4534
4535# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4536# It thinks the first close brace ends the variable substitution.
4537test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4538
4539test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4540
4541test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4542
b4e70030
JB
4543echo "$as_me:$LINENO: checking whether ln -s works" >&5
4544echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
bec39cab
AC
4545LN_S=$as_ln_s
4546if test "$LN_S" = "ln -s"; then
b4e70030
JB
4547 echo "$as_me:$LINENO: result: yes" >&5
4548echo "${ECHO_T}yes" >&6
bec39cab 4549else
b4e70030
JB
4550 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4551echo "${ECHO_T}no, using $LN_S" >&6
bec39cab
AC
4552fi
4553
4554if test -n "$ac_tool_prefix"; then
4555 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4556set dummy ${ac_tool_prefix}ranlib; ac_word=$2
b4e70030
JB
4557echo "$as_me:$LINENO: checking for $ac_word" >&5
4558echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4559if test "${ac_cv_prog_RANLIB+set}" = set; then
4560 echo $ECHO_N "(cached) $ECHO_C" >&6
4561else
4562 if test -n "$RANLIB"; then
4563 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4564else
4565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566for as_dir in $PATH
4567do
4568 IFS=$as_save_IFS
4569 test -z "$as_dir" && as_dir=.
4570 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4572 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 break 2
4575 fi
4576done
4577done
4578
4579fi
4580fi
4581RANLIB=$ac_cv_prog_RANLIB
4582if test -n "$RANLIB"; then
b4e70030
JB
4583 echo "$as_me:$LINENO: result: $RANLIB" >&5
4584echo "${ECHO_T}$RANLIB" >&6
bec39cab 4585else
b4e70030
JB
4586 echo "$as_me:$LINENO: result: no" >&5
4587echo "${ECHO_T}no" >&6
bec39cab
AC
4588fi
4589
4590fi
4591if test -z "$ac_cv_prog_RANLIB"; then
4592 ac_ct_RANLIB=$RANLIB
4593 # Extract the first word of "ranlib", so it can be a program name with args.
4594set dummy ranlib; ac_word=$2
b4e70030
JB
4595echo "$as_me:$LINENO: checking for $ac_word" >&5
4596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4597if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4598 echo $ECHO_N "(cached) $ECHO_C" >&6
4599else
4600 if test -n "$ac_ct_RANLIB"; then
4601 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4602else
4603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604for as_dir in $PATH
4605do
4606 IFS=$as_save_IFS
4607 test -z "$as_dir" && as_dir=.
4608 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4610 ac_cv_prog_ac_ct_RANLIB="ranlib"
4611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4612 break 2
4613 fi
4614done
4615done
4616
b4e70030 4617 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
bec39cab
AC
4618fi
4619fi
4620ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4621if test -n "$ac_ct_RANLIB"; then
b4e70030
JB
4622 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4623echo "${ECHO_T}$ac_ct_RANLIB" >&6
bec39cab 4624else
b4e70030
JB
4625 echo "$as_me:$LINENO: result: no" >&5
4626echo "${ECHO_T}no" >&6
bec39cab
AC
4627fi
4628
b4e70030 4629 RANLIB=$ac_ct_RANLIB
bec39cab
AC
4630else
4631 RANLIB="$ac_cv_prog_RANLIB"
4632fi
4633
4634for ac_prog in 'bison -y' byacc
4635do
4636 # Extract the first word of "$ac_prog", so it can be a program name with args.
4637set dummy $ac_prog; ac_word=$2
b4e70030
JB
4638echo "$as_me:$LINENO: checking for $ac_word" >&5
4639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4640if test "${ac_cv_prog_YACC+set}" = set; then
4641 echo $ECHO_N "(cached) $ECHO_C" >&6
4642else
4643 if test -n "$YACC"; then
4644 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4645else
4646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647for as_dir in $PATH
4648do
4649 IFS=$as_save_IFS
4650 test -z "$as_dir" && as_dir=.
4651 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4653 ac_cv_prog_YACC="$ac_prog"
4654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4655 break 2
4656 fi
4657done
4658done
4659
4660fi
4661fi
4662YACC=$ac_cv_prog_YACC
4663if test -n "$YACC"; then
b4e70030
JB
4664 echo "$as_me:$LINENO: result: $YACC" >&5
4665echo "${ECHO_T}$YACC" >&6
bec39cab 4666else
b4e70030
JB
4667 echo "$as_me:$LINENO: result: no" >&5
4668echo "${ECHO_T}no" >&6
bec39cab
AC
4669fi
4670
4671 test -n "$YACC" && break
4672done
4673test -n "$YACC" || YACC="yacc"
4674
4675
4676if test -n "$ac_tool_prefix"; then
4677 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4678set dummy ${ac_tool_prefix}ar; ac_word=$2
b4e70030
JB
4679echo "$as_me:$LINENO: checking for $ac_word" >&5
4680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4681if test "${ac_cv_prog_AR+set}" = set; then
4682 echo $ECHO_N "(cached) $ECHO_C" >&6
4683else
4684 if test -n "$AR"; then
4685 ac_cv_prog_AR="$AR" # Let the user override the test.
4686else
4687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4688for as_dir in $PATH
4689do
4690 IFS=$as_save_IFS
4691 test -z "$as_dir" && as_dir=.
4692 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4693 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4694 ac_cv_prog_AR="${ac_tool_prefix}ar"
4695 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4696 break 2
4697 fi
4698done
4699done
4700
4701fi
4702fi
4703AR=$ac_cv_prog_AR
4704if test -n "$AR"; then
b4e70030
JB
4705 echo "$as_me:$LINENO: result: $AR" >&5
4706echo "${ECHO_T}$AR" >&6
bec39cab 4707else
b4e70030
JB
4708 echo "$as_me:$LINENO: result: no" >&5
4709echo "${ECHO_T}no" >&6
bec39cab
AC
4710fi
4711
4712fi
4713if test -z "$ac_cv_prog_AR"; then
4714 ac_ct_AR=$AR
4715 # Extract the first word of "ar", so it can be a program name with args.
4716set dummy ar; ac_word=$2
b4e70030
JB
4717echo "$as_me:$LINENO: checking for $ac_word" >&5
4718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4719if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4721else
4722 if test -n "$ac_ct_AR"; then
4723 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4724else
4725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726for as_dir in $PATH
4727do
4728 IFS=$as_save_IFS
4729 test -z "$as_dir" && as_dir=.
4730 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4732 ac_cv_prog_ac_ct_AR="ar"
4733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4734 break 2
4735 fi
4736done
4737done
4738
4739fi
4740fi
4741ac_ct_AR=$ac_cv_prog_ac_ct_AR
4742if test -n "$ac_ct_AR"; then
b4e70030
JB
4743 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4744echo "${ECHO_T}$ac_ct_AR" >&6
bec39cab 4745else
b4e70030
JB
4746 echo "$as_me:$LINENO: result: no" >&5
4747echo "${ECHO_T}no" >&6
bec39cab
AC
4748fi
4749
b4e70030 4750 AR=$ac_ct_AR
bec39cab
AC
4751else
4752 AR="$ac_cv_prog_AR"
4753fi
4754
4755if test -n "$ac_tool_prefix"; then
4756 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4757set dummy ${ac_tool_prefix}dlltool; ac_word=$2
b4e70030
JB
4758echo "$as_me:$LINENO: checking for $ac_word" >&5
4759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4760if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4761 echo $ECHO_N "(cached) $ECHO_C" >&6
4762else
4763 if test -n "$DLLTOOL"; then
4764 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4765else
4766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767for as_dir in $PATH
4768do
4769 IFS=$as_save_IFS
4770 test -z "$as_dir" && as_dir=.
4771 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4773 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4775 break 2
4776 fi
4777done
4778done
4779
4780fi
4781fi
4782DLLTOOL=$ac_cv_prog_DLLTOOL
4783if test -n "$DLLTOOL"; then
b4e70030
JB
4784 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4785echo "${ECHO_T}$DLLTOOL" >&6
bec39cab 4786else
b4e70030
JB
4787 echo "$as_me:$LINENO: result: no" >&5
4788echo "${ECHO_T}no" >&6
bec39cab
AC
4789fi
4790
4791fi
4792if test -z "$ac_cv_prog_DLLTOOL"; then
4793 ac_ct_DLLTOOL=$DLLTOOL
4794 # Extract the first word of "dlltool", so it can be a program name with args.
4795set dummy dlltool; ac_word=$2
b4e70030
JB
4796echo "$as_me:$LINENO: checking for $ac_word" >&5
4797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4798if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4799 echo $ECHO_N "(cached) $ECHO_C" >&6
4800else
4801 if test -n "$ac_ct_DLLTOOL"; then
4802 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4803else
4804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805for as_dir in $PATH
4806do
4807 IFS=$as_save_IFS
4808 test -z "$as_dir" && as_dir=.
4809 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4811 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4813 break 2
4814 fi
4815done
4816done
4817
4818fi
4819fi
4820ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4821if test -n "$ac_ct_DLLTOOL"; then
b4e70030
JB
4822 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4823echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
bec39cab 4824else
b4e70030
JB
4825 echo "$as_me:$LINENO: result: no" >&5
4826echo "${ECHO_T}no" >&6
bec39cab
AC
4827fi
4828
b4e70030 4829 DLLTOOL=$ac_ct_DLLTOOL
bec39cab
AC
4830else
4831 DLLTOOL="$ac_cv_prog_DLLTOOL"
4832fi
4833
4834if test -n "$ac_tool_prefix"; then
4835 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4836set dummy ${ac_tool_prefix}windres; ac_word=$2
b4e70030
JB
4837echo "$as_me:$LINENO: checking for $ac_word" >&5
4838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4839if test "${ac_cv_prog_WINDRES+set}" = set; then
4840 echo $ECHO_N "(cached) $ECHO_C" >&6
4841else
4842 if test -n "$WINDRES"; then
4843 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4844else
4845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846for as_dir in $PATH
4847do
4848 IFS=$as_save_IFS
4849 test -z "$as_dir" && as_dir=.
4850 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4851 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4852 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4854 break 2
4855 fi
4856done
4857done
4858
4859fi
4860fi
4861WINDRES=$ac_cv_prog_WINDRES
4862if test -n "$WINDRES"; then
b4e70030
JB
4863 echo "$as_me:$LINENO: result: $WINDRES" >&5
4864echo "${ECHO_T}$WINDRES" >&6
bec39cab 4865else
b4e70030
JB
4866 echo "$as_me:$LINENO: result: no" >&5
4867echo "${ECHO_T}no" >&6
bec39cab
AC
4868fi
4869
4870fi
4871if test -z "$ac_cv_prog_WINDRES"; then
4872 ac_ct_WINDRES=$WINDRES
4873 # Extract the first word of "windres", so it can be a program name with args.
4874set dummy windres; ac_word=$2
b4e70030
JB
4875echo "$as_me:$LINENO: checking for $ac_word" >&5
4876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4877if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4878 echo $ECHO_N "(cached) $ECHO_C" >&6
4879else
4880 if test -n "$ac_ct_WINDRES"; then
4881 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4882else
4883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4884for as_dir in $PATH
4885do
4886 IFS=$as_save_IFS
4887 test -z "$as_dir" && as_dir=.
4888 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4890 ac_cv_prog_ac_ct_WINDRES="windres"
4891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4892 break 2
4893 fi
4894done
4895done
4896
4897fi
4898fi
4899ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4900if test -n "$ac_ct_WINDRES"; then
b4e70030
JB
4901 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4902echo "${ECHO_T}$ac_ct_WINDRES" >&6
bec39cab 4903else
b4e70030
JB
4904 echo "$as_me:$LINENO: result: no" >&5
4905echo "${ECHO_T}no" >&6
c906108c 4906fi
bec39cab 4907
b4e70030 4908 WINDRES=$ac_ct_WINDRES
c906108c 4909else
bec39cab 4910 WINDRES="$ac_cv_prog_WINDRES"
c906108c
SS
4911fi
4912
bec39cab
AC
4913
4914# Needed for GNU/Hurd.
4915if test -n "$ac_tool_prefix"; then
4916 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
4917set dummy ${ac_tool_prefix}mig; ac_word=$2
b4e70030
JB
4918echo "$as_me:$LINENO: checking for $ac_word" >&5
4919echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4920if test "${ac_cv_prog_MIG+set}" = set; then
4921 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4922else
bec39cab
AC
4923 if test -n "$MIG"; then
4924 ac_cv_prog_MIG="$MIG" # Let the user override the test.
4925else
4926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4927for as_dir in $PATH
4928do
4929 IFS=$as_save_IFS
4930 test -z "$as_dir" && as_dir=.
4931 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4933 ac_cv_prog_MIG="${ac_tool_prefix}mig"
4934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4935 break 2
4936 fi
4937done
4938done
4939
c906108c 4940fi
bec39cab
AC
4941fi
4942MIG=$ac_cv_prog_MIG
4943if test -n "$MIG"; then
b4e70030
JB
4944 echo "$as_me:$LINENO: result: $MIG" >&5
4945echo "${ECHO_T}$MIG" >&6
c906108c 4946else
b4e70030
JB
4947 echo "$as_me:$LINENO: result: no" >&5
4948echo "${ECHO_T}no" >&6
c906108c
SS
4949fi
4950
bec39cab
AC
4951fi
4952if test -z "$ac_cv_prog_MIG"; then
4953 ac_ct_MIG=$MIG
4954 # Extract the first word of "mig", so it can be a program name with args.
4955set dummy mig; ac_word=$2
b4e70030
JB
4956echo "$as_me:$LINENO: checking for $ac_word" >&5
4957echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4958if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
4959 echo $ECHO_N "(cached) $ECHO_C" >&6
4960else
4961 if test -n "$ac_ct_MIG"; then
4962 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
4963else
4964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965for as_dir in $PATH
4966do
4967 IFS=$as_save_IFS
4968 test -z "$as_dir" && as_dir=.
4969 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4971 ac_cv_prog_ac_ct_MIG="mig"
4972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4973 break 2
4974 fi
4975done
4976done
c906108c 4977
bec39cab
AC
4978fi
4979fi
4980ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
4981if test -n "$ac_ct_MIG"; then
b4e70030
JB
4982 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
4983echo "${ECHO_T}$ac_ct_MIG" >&6
bec39cab 4984else
b4e70030
JB
4985 echo "$as_me:$LINENO: result: no" >&5
4986echo "${ECHO_T}no" >&6
bec39cab 4987fi
c906108c 4988
b4e70030 4989 MIG=$ac_ct_MIG
bec39cab
AC
4990else
4991 MIG="$ac_cv_prog_MIG"
4992fi
c906108c 4993
c906108c 4994
bec39cab
AC
4995# ---------------------- #
4996# Checks for libraries. #
4997# ---------------------- #
c906108c 4998
bec39cab 4999# We might need to link with -lm; most simulators need it.
c906108c 5000
b4e70030
JB
5001echo "$as_me:$LINENO: checking for main in -lm" >&5
5002echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
bec39cab
AC
5003if test "${ac_cv_lib_m_main+set}" = set; then
5004 echo $ECHO_N "(cached) $ECHO_C" >&6
5005else
5006 ac_check_lib_save_LIBS=$LIBS
5007LIBS="-lm $LIBS"
5008cat >conftest.$ac_ext <<_ACEOF
5009/* confdefs.h. */
5010_ACEOF
5011cat confdefs.h >>conftest.$ac_ext
5012cat >>conftest.$ac_ext <<_ACEOF
5013/* end confdefs.h. */
c906108c 5014
c906108c 5015
bec39cab
AC
5016int
5017main ()
5018{
b4e70030 5019main ();
bec39cab
AC
5020 ;
5021 return 0;
5022}
5023_ACEOF
5024rm -f conftest.$ac_objext conftest$ac_exeext
5025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5026 (eval $ac_link) 2>conftest.er1
5027 ac_status=$?
5028 grep -v '^ *+' conftest.er1 >conftest.err
5029 rm -f conftest.er1
5030 cat conftest.err >&5
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); } &&
b4e70030
JB
5033 { ac_try='test -z "$ac_c_werror_flag"
5034 || test ! -s conftest.err'
bec39cab
AC
5035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5036 (eval $ac_try) 2>&5
5037 ac_status=$?
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); }; } &&
5040 { ac_try='test -s conftest$ac_exeext'
5041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5042 (eval $ac_try) 2>&5
5043 ac_status=$?
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); }; }; then
5046 ac_cv_lib_m_main=yes
5047else
5048 echo "$as_me: failed program was:" >&5
5049sed 's/^/| /' conftest.$ac_ext >&5
5050
b4e70030 5051ac_cv_lib_m_main=no
bec39cab
AC
5052fi
5053rm -f conftest.err conftest.$ac_objext \
5054 conftest$ac_exeext conftest.$ac_ext
5055LIBS=$ac_check_lib_save_LIBS
5056fi
b4e70030
JB
5057echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5058echo "${ECHO_T}$ac_cv_lib_m_main" >&6
bec39cab
AC
5059if test $ac_cv_lib_m_main = yes; then
5060 cat >>confdefs.h <<_ACEOF
5061#define HAVE_LIBM 1
5062_ACEOF
5063
5064 LIBS="-lm $LIBS"
c906108c 5065
c906108c 5066fi
bec39cab
AC
5067
5068
5069# We need to link with -lw to get `wctype' on Solaris before Solaris
5070# 2.6. Solaris 2.6 and beyond have this function in libc, and have a
5071# libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
5072# is known to have this problem). Therefore we avoid libw if we can.
b4e70030
JB
5073echo "$as_me:$LINENO: checking for wctype" >&5
5074echo $ECHO_N "checking for wctype... $ECHO_C" >&6
bec39cab
AC
5075if test "${ac_cv_func_wctype+set}" = set; then
5076 echo $ECHO_N "(cached) $ECHO_C" >&6
5077else
5078 cat >conftest.$ac_ext <<_ACEOF
5079/* confdefs.h. */
5080_ACEOF
5081cat confdefs.h >>conftest.$ac_ext
5082cat >>conftest.$ac_ext <<_ACEOF
5083/* end confdefs.h. */
5084/* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
5085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5086#define wctype innocuous_wctype
5087
5088/* System header to define __stub macros and hopefully few prototypes,
5089 which can conflict with char wctype (); below.
5090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5091 <limits.h> exists even on freestanding compilers. */
5092
5093#ifdef __STDC__
5094# include <limits.h>
5095#else
5096# include <assert.h>
5097#endif
5098
5099#undef wctype
5100
b4e70030 5101/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5102#ifdef __cplusplus
5103extern "C"
b4e70030 5104{
bec39cab 5105#endif
b4e70030
JB
5106/* We use char because int might match the return type of a gcc2
5107 builtin and then its argument prototype would still apply. */
bec39cab
AC
5108char wctype ();
5109/* The GNU C library defines this for functions which it implements
5110 to always fail with ENOSYS. Some functions are actually named
5111 something starting with __ and the normal name is an alias. */
b4e70030 5112#if defined (__stub_wctype) || defined (__stub___wctype)
bec39cab 5113choke me
b4e70030
JB
5114#else
5115char (*f) () = wctype;
5116#endif
5117#ifdef __cplusplus
5118}
bec39cab
AC
5119#endif
5120
5121int
5122main ()
5123{
b4e70030 5124return f != wctype;
bec39cab
AC
5125 ;
5126 return 0;
5127}
5128_ACEOF
5129rm -f conftest.$ac_objext conftest$ac_exeext
5130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5131 (eval $ac_link) 2>conftest.er1
5132 ac_status=$?
5133 grep -v '^ *+' conftest.er1 >conftest.err
5134 rm -f conftest.er1
5135 cat conftest.err >&5
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); } &&
b4e70030
JB
5138 { ac_try='test -z "$ac_c_werror_flag"
5139 || test ! -s conftest.err'
bec39cab
AC
5140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5141 (eval $ac_try) 2>&5
5142 ac_status=$?
5143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); }; } &&
5145 { ac_try='test -s conftest$ac_exeext'
5146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5147 (eval $ac_try) 2>&5
5148 ac_status=$?
5149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150 (exit $ac_status); }; }; then
5151 ac_cv_func_wctype=yes
5152else
5153 echo "$as_me: failed program was:" >&5
5154sed 's/^/| /' conftest.$ac_ext >&5
5155
b4e70030 5156ac_cv_func_wctype=no
bec39cab
AC
5157fi
5158rm -f conftest.err conftest.$ac_objext \
5159 conftest$ac_exeext conftest.$ac_ext
5160fi
b4e70030
JB
5161echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
5162echo "${ECHO_T}$ac_cv_func_wctype" >&6
bec39cab
AC
5163if test $ac_cv_func_wctype = yes; then
5164 :
c906108c 5165else
c906108c 5166
b4e70030
JB
5167echo "$as_me:$LINENO: checking for wctype in -lw" >&5
5168echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
bec39cab
AC
5169if test "${ac_cv_lib_w_wctype+set}" = set; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5171else
5172 ac_check_lib_save_LIBS=$LIBS
5173LIBS="-lw $LIBS"
5174cat >conftest.$ac_ext <<_ACEOF
5175/* confdefs.h. */
5176_ACEOF
5177cat confdefs.h >>conftest.$ac_ext
5178cat >>conftest.$ac_ext <<_ACEOF
5179/* end confdefs.h. */
c906108c 5180
b4e70030 5181/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5182#ifdef __cplusplus
5183extern "C"
5184#endif
b4e70030
JB
5185/* We use char because int might match the return type of a gcc2
5186 builtin and then its argument prototype would still apply. */
bec39cab
AC
5187char wctype ();
5188int
5189main ()
5190{
b4e70030 5191wctype ();
bec39cab
AC
5192 ;
5193 return 0;
5194}
5195_ACEOF
5196rm -f conftest.$ac_objext conftest$ac_exeext
5197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5198 (eval $ac_link) 2>conftest.er1
5199 ac_status=$?
5200 grep -v '^ *+' conftest.er1 >conftest.err
5201 rm -f conftest.er1
5202 cat conftest.err >&5
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); } &&
b4e70030
JB
5205 { ac_try='test -z "$ac_c_werror_flag"
5206 || test ! -s conftest.err'
bec39cab
AC
5207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5208 (eval $ac_try) 2>&5
5209 ac_status=$?
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); }; } &&
5212 { ac_try='test -s conftest$ac_exeext'
5213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5214 (eval $ac_try) 2>&5
5215 ac_status=$?
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); }; }; then
5218 ac_cv_lib_w_wctype=yes
5219else
5220 echo "$as_me: failed program was:" >&5
5221sed 's/^/| /' conftest.$ac_ext >&5
5222
b4e70030 5223ac_cv_lib_w_wctype=no
bec39cab
AC
5224fi
5225rm -f conftest.err conftest.$ac_objext \
5226 conftest$ac_exeext conftest.$ac_ext
5227LIBS=$ac_check_lib_save_LIBS
5228fi
b4e70030
JB
5229echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
5230echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
bec39cab
AC
5231if test $ac_cv_lib_w_wctype = yes; then
5232 cat >>confdefs.h <<_ACEOF
5233#define HAVE_LIBW 1
5234_ACEOF
c906108c 5235
bec39cab 5236 LIBS="-lw $LIBS"
c906108c 5237
bec39cab 5238fi
c906108c 5239
bec39cab 5240fi
c906108c 5241
ddc9cd0f 5242
bec39cab 5243# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
b4e70030
JB
5244echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
5245echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
bec39cab
AC
5246if test "${ac_cv_search_gethostbyname+set}" = set; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
5248else
5249 ac_func_search_save_LIBS=$LIBS
b4e70030 5250ac_cv_search_gethostbyname=no
bec39cab
AC
5251cat >conftest.$ac_ext <<_ACEOF
5252/* confdefs.h. */
5253_ACEOF
5254cat confdefs.h >>conftest.$ac_ext
5255cat >>conftest.$ac_ext <<_ACEOF
5256/* end confdefs.h. */
ddc9cd0f 5257
b4e70030 5258/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5259#ifdef __cplusplus
5260extern "C"
5261#endif
b4e70030
JB
5262/* We use char because int might match the return type of a gcc2
5263 builtin and then its argument prototype would still apply. */
bec39cab
AC
5264char gethostbyname ();
5265int
5266main ()
5267{
b4e70030 5268gethostbyname ();
bec39cab
AC
5269 ;
5270 return 0;
5271}
5272_ACEOF
b4e70030 5273rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
5274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5275 (eval $ac_link) 2>conftest.er1
5276 ac_status=$?
5277 grep -v '^ *+' conftest.er1 >conftest.err
5278 rm -f conftest.er1
5279 cat conftest.err >&5
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); } &&
b4e70030
JB
5282 { ac_try='test -z "$ac_c_werror_flag"
5283 || test ! -s conftest.err'
bec39cab
AC
5284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5285 (eval $ac_try) 2>&5
5286 ac_status=$?
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); }; } &&
5289 { ac_try='test -s conftest$ac_exeext'
5290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5291 (eval $ac_try) 2>&5
5292 ac_status=$?
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); }; }; then
b4e70030 5295 ac_cv_search_gethostbyname="none required"
bec39cab
AC
5296else
5297 echo "$as_me: failed program was:" >&5
5298sed 's/^/| /' conftest.$ac_ext >&5
ddc9cd0f 5299
bec39cab
AC
5300fi
5301rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
5302 conftest$ac_exeext conftest.$ac_ext
5303if test "$ac_cv_search_gethostbyname" = no; then
5304 for ac_lib in nsl; do
5305 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5306 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
5307/* confdefs.h. */
5308_ACEOF
5309cat confdefs.h >>conftest.$ac_ext
5310cat >>conftest.$ac_ext <<_ACEOF
5311/* end confdefs.h. */
ddc9cd0f 5312
b4e70030 5313/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5314#ifdef __cplusplus
5315extern "C"
5316#endif
b4e70030
JB
5317/* We use char because int might match the return type of a gcc2
5318 builtin and then its argument prototype would still apply. */
5319char gethostbyname ();
bec39cab
AC
5320int
5321main ()
5322{
b4e70030 5323gethostbyname ();
bec39cab
AC
5324 ;
5325 return 0;
5326}
5327_ACEOF
b4e70030 5328rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
5329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5330 (eval $ac_link) 2>conftest.er1
5331 ac_status=$?
5332 grep -v '^ *+' conftest.er1 >conftest.err
5333 rm -f conftest.er1
5334 cat conftest.err >&5
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); } &&
b4e70030
JB
5337 { ac_try='test -z "$ac_c_werror_flag"
5338 || test ! -s conftest.err'
bec39cab
AC
5339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5340 (eval $ac_try) 2>&5
5341 ac_status=$?
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }; } &&
5344 { ac_try='test -s conftest$ac_exeext'
5345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5346 (eval $ac_try) 2>&5
5347 ac_status=$?
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); }; }; then
b4e70030
JB
5350 ac_cv_search_gethostbyname="-l$ac_lib"
5351break
bec39cab
AC
5352else
5353 echo "$as_me: failed program was:" >&5
5354sed 's/^/| /' conftest.$ac_ext >&5
5355
5356fi
5357rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
5358 conftest$ac_exeext conftest.$ac_ext
5359 done
bec39cab
AC
5360fi
5361LIBS=$ac_func_search_save_LIBS
5362fi
b4e70030
JB
5363echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
5364echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
5365if test "$ac_cv_search_gethostbyname" != no; then
5366 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
96baa820 5367
bec39cab 5368fi
96baa820 5369
c906108c 5370
b4e70030
JB
5371# Some systems (e.g. Solaris) have `socketpair' in libsocket.
5372echo "$as_me:$LINENO: checking for library containing socketpair" >&5
5373echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
5374if test "${ac_cv_search_socketpair+set}" = set; then
5375 echo $ECHO_N "(cached) $ECHO_C" >&6
5376else
5377 ac_func_search_save_LIBS=$LIBS
5378ac_cv_search_socketpair=no
5379cat >conftest.$ac_ext <<_ACEOF
5380/* confdefs.h. */
5381_ACEOF
5382cat confdefs.h >>conftest.$ac_ext
5383cat >>conftest.$ac_ext <<_ACEOF
5384/* end confdefs.h. */
5385
5386/* Override any gcc2 internal prototype to avoid an error. */
5387#ifdef __cplusplus
5388extern "C"
5389#endif
5390/* We use char because int might match the return type of a gcc2
5391 builtin and then its argument prototype would still apply. */
5392char socketpair ();
5393int
5394main ()
5395{
5396socketpair ();
5397 ;
5398 return 0;
5399}
5400_ACEOF
5401rm -f conftest.$ac_objext conftest$ac_exeext
5402if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5403 (eval $ac_link) 2>conftest.er1
5404 ac_status=$?
5405 grep -v '^ *+' conftest.er1 >conftest.err
5406 rm -f conftest.er1
5407 cat conftest.err >&5
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); } &&
5410 { ac_try='test -z "$ac_c_werror_flag"
5411 || test ! -s conftest.err'
5412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5413 (eval $ac_try) 2>&5
5414 ac_status=$?
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); }; } &&
5417 { ac_try='test -s conftest$ac_exeext'
5418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5419 (eval $ac_try) 2>&5
5420 ac_status=$?
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); }; }; then
5423 ac_cv_search_socketpair="none required"
5424else
5425 echo "$as_me: failed program was:" >&5
5426sed 's/^/| /' conftest.$ac_ext >&5
5427
5428fi
5429rm -f conftest.err conftest.$ac_objext \
5430 conftest$ac_exeext conftest.$ac_ext
5431if test "$ac_cv_search_socketpair" = no; then
5432 for ac_lib in socket; do
5433 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5434 cat >conftest.$ac_ext <<_ACEOF
5435/* confdefs.h. */
5436_ACEOF
5437cat confdefs.h >>conftest.$ac_ext
5438cat >>conftest.$ac_ext <<_ACEOF
5439/* end confdefs.h. */
5440
5441/* Override any gcc2 internal prototype to avoid an error. */
5442#ifdef __cplusplus
5443extern "C"
5444#endif
5445/* We use char because int might match the return type of a gcc2
5446 builtin and then its argument prototype would still apply. */
5447char socketpair ();
5448int
5449main ()
5450{
5451socketpair ();
5452 ;
5453 return 0;
5454}
5455_ACEOF
5456rm -f conftest.$ac_objext conftest$ac_exeext
5457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5458 (eval $ac_link) 2>conftest.er1
5459 ac_status=$?
5460 grep -v '^ *+' conftest.er1 >conftest.err
5461 rm -f conftest.er1
5462 cat conftest.err >&5
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 (exit $ac_status); } &&
5465 { ac_try='test -z "$ac_c_werror_flag"
5466 || test ! -s conftest.err'
5467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5468 (eval $ac_try) 2>&5
5469 ac_status=$?
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); }; } &&
5472 { ac_try='test -s conftest$ac_exeext'
5473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5474 (eval $ac_try) 2>&5
5475 ac_status=$?
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); }; }; then
5478 ac_cv_search_socketpair="-l$ac_lib"
5479break
5480else
5481 echo "$as_me: failed program was:" >&5
5482sed 's/^/| /' conftest.$ac_ext >&5
5483
5484fi
5485rm -f conftest.err conftest.$ac_objext \
5486 conftest$ac_exeext conftest.$ac_ext
5487 done
5488fi
5489LIBS=$ac_func_search_save_LIBS
5490fi
5491echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
5492echo "${ECHO_T}$ac_cv_search_socketpair" >&6
5493if test "$ac_cv_search_socketpair" != no; then
5494 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
5495
5496fi
5497
5498
5499# For the TUI, we need enhanced curses functionality.
bec39cab
AC
5500#
5501# FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
5502# curses library because the latter might not provide all the
5503# functionality we need. However, this leads to problems on systems
5504# where the linker searches /usr/local/lib, but the compiler doesn't
5505# search /usr/local/include, if ncurses is installed in /usr/local. A
5506# default installation of ncurses on alpha*-dec-osf* will lead to such
5507# a situation.
b4e70030
JB
5508echo "$as_me:$LINENO: checking for library containing waddstr" >&5
5509echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
bec39cab
AC
5510if test "${ac_cv_search_waddstr+set}" = set; then
5511 echo $ECHO_N "(cached) $ECHO_C" >&6
5512else
5513 ac_func_search_save_LIBS=$LIBS
b4e70030 5514ac_cv_search_waddstr=no
bec39cab
AC
5515cat >conftest.$ac_ext <<_ACEOF
5516/* confdefs.h. */
5517_ACEOF
5518cat confdefs.h >>conftest.$ac_ext
5519cat >>conftest.$ac_ext <<_ACEOF
5520/* end confdefs.h. */
c906108c 5521
b4e70030 5522/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5523#ifdef __cplusplus
5524extern "C"
5525#endif
b4e70030
JB
5526/* We use char because int might match the return type of a gcc2
5527 builtin and then its argument prototype would still apply. */
bec39cab
AC
5528char waddstr ();
5529int
5530main ()
5531{
b4e70030 5532waddstr ();
bec39cab
AC
5533 ;
5534 return 0;
5535}
5536_ACEOF
b4e70030 5537rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
5538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5539 (eval $ac_link) 2>conftest.er1
5540 ac_status=$?
5541 grep -v '^ *+' conftest.er1 >conftest.err
5542 rm -f conftest.er1
5543 cat conftest.err >&5
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); } &&
b4e70030
JB
5546 { ac_try='test -z "$ac_c_werror_flag"
5547 || test ! -s conftest.err'
bec39cab
AC
5548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5549 (eval $ac_try) 2>&5
5550 ac_status=$?
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); }; } &&
5553 { ac_try='test -s conftest$ac_exeext'
5554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5555 (eval $ac_try) 2>&5
5556 ac_status=$?
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); }; }; then
b4e70030 5559 ac_cv_search_waddstr="none required"
bec39cab
AC
5560else
5561 echo "$as_me: failed program was:" >&5
5562sed 's/^/| /' conftest.$ac_ext >&5
1ba607ad
AC
5563
5564fi
bec39cab 5565rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
5566 conftest$ac_exeext conftest.$ac_ext
5567if test "$ac_cv_search_waddstr" = no; then
5568 for ac_lib in ncurses cursesX curses; do
5569 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5570 cat >conftest.$ac_ext <<_ACEOF
5571/* confdefs.h. */
5572_ACEOF
5573cat confdefs.h >>conftest.$ac_ext
5574cat >>conftest.$ac_ext <<_ACEOF
5575/* end confdefs.h. */
5576
5577/* Override any gcc2 internal prototype to avoid an error. */
5578#ifdef __cplusplus
5579extern "C"
5580#endif
5581/* We use char because int might match the return type of a gcc2
5582 builtin and then its argument prototype would still apply. */
5583char waddstr ();
5584int
5585main ()
5586{
5587waddstr ();
5588 ;
5589 return 0;
5590}
5591_ACEOF
5592rm -f conftest.$ac_objext conftest$ac_exeext
5593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5594 (eval $ac_link) 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_exeext'
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_cv_search_waddstr="-l$ac_lib"
5615break
4e8d927d 5616else
b4e70030
JB
5617 echo "$as_me: failed program was:" >&5
5618sed 's/^/| /' conftest.$ac_ext >&5
5619
5620fi
5621rm -f conftest.err conftest.$ac_objext \
5622 conftest$ac_exeext conftest.$ac_ext
5623 done
1ba607ad 5624fi
bec39cab
AC
5625LIBS=$ac_func_search_save_LIBS
5626fi
b4e70030
JB
5627echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
5628echo "${ECHO_T}$ac_cv_search_waddstr" >&6
5629if test "$ac_cv_search_waddstr" != no; then
5630 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
c906108c 5631
8bb2c122 5632fi
8bb2c122 5633
8bb2c122 5634
d542061a
UW
5635# On HP/UX we may need libxpdl for dlgetmodinfo (used by solib-pa64.c).
5636echo "$as_me:$LINENO: checking for library containing dlgetmodinfo" >&5
5637echo $ECHO_N "checking for library containing dlgetmodinfo... $ECHO_C" >&6
5638if test "${ac_cv_search_dlgetmodinfo+set}" = set; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5640else
5641 ac_func_search_save_LIBS=$LIBS
5642ac_cv_search_dlgetmodinfo=no
5643cat >conftest.$ac_ext <<_ACEOF
5644/* confdefs.h. */
5645_ACEOF
5646cat confdefs.h >>conftest.$ac_ext
5647cat >>conftest.$ac_ext <<_ACEOF
5648/* end confdefs.h. */
5649
5650/* Override any gcc2 internal prototype to avoid an error. */
5651#ifdef __cplusplus
5652extern "C"
5653#endif
5654/* We use char because int might match the return type of a gcc2
5655 builtin and then its argument prototype would still apply. */
5656char dlgetmodinfo ();
5657int
5658main ()
5659{
5660dlgetmodinfo ();
5661 ;
5662 return 0;
5663}
5664_ACEOF
5665rm -f conftest.$ac_objext conftest$ac_exeext
5666if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5667 (eval $ac_link) 2>conftest.er1
5668 ac_status=$?
5669 grep -v '^ *+' conftest.er1 >conftest.err
5670 rm -f conftest.er1
5671 cat conftest.err >&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } &&
5674 { ac_try='test -z "$ac_c_werror_flag"
5675 || test ! -s conftest.err'
5676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5677 (eval $ac_try) 2>&5
5678 ac_status=$?
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); }; } &&
5681 { ac_try='test -s conftest$ac_exeext'
5682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5683 (eval $ac_try) 2>&5
5684 ac_status=$?
5685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686 (exit $ac_status); }; }; then
5687 ac_cv_search_dlgetmodinfo="none required"
5688else
5689 echo "$as_me: failed program was:" >&5
5690sed 's/^/| /' conftest.$ac_ext >&5
5691
5692fi
5693rm -f conftest.err conftest.$ac_objext \
5694 conftest$ac_exeext conftest.$ac_ext
5695if test "$ac_cv_search_dlgetmodinfo" = no; then
5696 for ac_lib in dl xpdl; do
5697 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5698 cat >conftest.$ac_ext <<_ACEOF
5699/* confdefs.h. */
5700_ACEOF
5701cat confdefs.h >>conftest.$ac_ext
5702cat >>conftest.$ac_ext <<_ACEOF
5703/* end confdefs.h. */
5704
5705/* Override any gcc2 internal prototype to avoid an error. */
5706#ifdef __cplusplus
5707extern "C"
5708#endif
5709/* We use char because int might match the return type of a gcc2
5710 builtin and then its argument prototype would still apply. */
5711char dlgetmodinfo ();
5712int
5713main ()
5714{
5715dlgetmodinfo ();
5716 ;
5717 return 0;
5718}
5719_ACEOF
5720rm -f conftest.$ac_objext conftest$ac_exeext
5721if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5722 (eval $ac_link) 2>conftest.er1
5723 ac_status=$?
5724 grep -v '^ *+' conftest.er1 >conftest.err
5725 rm -f conftest.er1
5726 cat conftest.err >&5
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); } &&
5729 { ac_try='test -z "$ac_c_werror_flag"
5730 || test ! -s conftest.err'
5731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5732 (eval $ac_try) 2>&5
5733 ac_status=$?
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); }; } &&
5736 { ac_try='test -s conftest$ac_exeext'
5737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5738 (eval $ac_try) 2>&5
5739 ac_status=$?
5740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741 (exit $ac_status); }; }; then
5742 ac_cv_search_dlgetmodinfo="-l$ac_lib"
5743break
5744else
5745 echo "$as_me: failed program was:" >&5
5746sed 's/^/| /' conftest.$ac_ext >&5
5747
5748fi
5749rm -f conftest.err conftest.$ac_objext \
5750 conftest$ac_exeext conftest.$ac_ext
5751 done
5752fi
5753LIBS=$ac_func_search_save_LIBS
5754fi
5755echo "$as_me:$LINENO: result: $ac_cv_search_dlgetmodinfo" >&5
5756echo "${ECHO_T}$ac_cv_search_dlgetmodinfo" >&6
5757if test "$ac_cv_search_dlgetmodinfo" != no; then
5758 test "$ac_cv_search_dlgetmodinfo" = "none required" || LIBS="$ac_cv_search_dlgetmodinfo $LIBS"
5759
5760fi
5761
5762
bec39cab
AC
5763# Since GDB uses Readline, we need termcap functionality. In many
5764# cases this will be provided by the curses library, but some systems
5765# have a seperate termcap library, or no curses library at all.
8bb2c122 5766
bec39cab
AC
5767case $host_os in
5768 cygwin*)
5769 if test -d $srcdir/libtermcap; then
5770 LIBS="../libtermcap/libtermcap.a $LIBS"
5771 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
5772 fi ;;
5773 go32* | *djgpp*)
5774 ac_cv_search_tgetent="none required"
5775 ;;
7ef34f2c
MM
5776 *mingw32*)
5777 ac_cv_search_tgetent="none required"
5778 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
5779 ;;
bec39cab 5780esac
627af7ea 5781
bec39cab 5782# These are the libraries checked by Readline.
b4e70030
JB
5783echo "$as_me:$LINENO: checking for library containing tgetent" >&5
5784echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
bec39cab
AC
5785if test "${ac_cv_search_tgetent+set}" = set; then
5786 echo $ECHO_N "(cached) $ECHO_C" >&6
5787else
5788 ac_func_search_save_LIBS=$LIBS
b4e70030 5789ac_cv_search_tgetent=no
bec39cab
AC
5790cat >conftest.$ac_ext <<_ACEOF
5791/* confdefs.h. */
5792_ACEOF
5793cat confdefs.h >>conftest.$ac_ext
5794cat >>conftest.$ac_ext <<_ACEOF
5795/* end confdefs.h. */
5796
b4e70030 5797/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5798#ifdef __cplusplus
5799extern "C"
5800#endif
b4e70030
JB
5801/* We use char because int might match the return type of a gcc2
5802 builtin and then its argument prototype would still apply. */
bec39cab
AC
5803char tgetent ();
5804int
5805main ()
5806{
b4e70030 5807tgetent ();
bec39cab
AC
5808 ;
5809 return 0;
5810}
5811_ACEOF
b4e70030 5812rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
5813if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5814 (eval $ac_link) 2>conftest.er1
5815 ac_status=$?
5816 grep -v '^ *+' conftest.er1 >conftest.err
5817 rm -f conftest.er1
5818 cat conftest.err >&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); } &&
b4e70030
JB
5821 { ac_try='test -z "$ac_c_werror_flag"
5822 || test ! -s conftest.err'
bec39cab
AC
5823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5824 (eval $ac_try) 2>&5
5825 ac_status=$?
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); }; } &&
5828 { ac_try='test -s conftest$ac_exeext'
5829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5830 (eval $ac_try) 2>&5
5831 ac_status=$?
5832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833 (exit $ac_status); }; }; then
b4e70030 5834 ac_cv_search_tgetent="none required"
627af7ea 5835else
bec39cab
AC
5836 echo "$as_me: failed program was:" >&5
5837sed 's/^/| /' conftest.$ac_ext >&5
627af7ea 5838
627af7ea 5839fi
bec39cab 5840rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
5841 conftest$ac_exeext conftest.$ac_ext
5842if test "$ac_cv_search_tgetent" = no; then
5843 for ac_lib in termcap tinfo curses ncurses; do
5844 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5845 cat >conftest.$ac_ext <<_ACEOF
5846/* confdefs.h. */
5847_ACEOF
5848cat confdefs.h >>conftest.$ac_ext
5849cat >>conftest.$ac_ext <<_ACEOF
5850/* end confdefs.h. */
5851
5852/* Override any gcc2 internal prototype to avoid an error. */
5853#ifdef __cplusplus
5854extern "C"
5855#endif
5856/* We use char because int might match the return type of a gcc2
5857 builtin and then its argument prototype would still apply. */
5858char tgetent ();
5859int
5860main ()
5861{
5862tgetent ();
5863 ;
5864 return 0;
5865}
5866_ACEOF
5867rm -f conftest.$ac_objext conftest$ac_exeext
5868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5869 (eval $ac_link) 2>conftest.er1
5870 ac_status=$?
5871 grep -v '^ *+' conftest.er1 >conftest.err
5872 rm -f conftest.er1
5873 cat conftest.err >&5
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); } &&
5876 { ac_try='test -z "$ac_c_werror_flag"
5877 || test ! -s conftest.err'
5878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5879 (eval $ac_try) 2>&5
5880 ac_status=$?
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5882 (exit $ac_status); }; } &&
5883 { ac_try='test -s conftest$ac_exeext'
5884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5885 (eval $ac_try) 2>&5
5886 ac_status=$?
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); }; }; then
5889 ac_cv_search_tgetent="-l$ac_lib"
5890break
4e8d927d 5891else
b4e70030
JB
5892 echo "$as_me: failed program was:" >&5
5893sed 's/^/| /' conftest.$ac_ext >&5
5894
5895fi
5896rm -f conftest.err conftest.$ac_objext \
5897 conftest$ac_exeext conftest.$ac_ext
5898 done
bec39cab
AC
5899fi
5900LIBS=$ac_func_search_save_LIBS
5901fi
b4e70030
JB
5902echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
5903echo "${ECHO_T}$ac_cv_search_tgetent" >&6
5904if test "$ac_cv_search_tgetent" != no; then
5905 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
627af7ea 5906
06825bd1
MK
5907fi
5908
06825bd1 5909
bec39cab
AC
5910if test "$ac_cv_search_tgetent" = no; then
5911 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
5912echo "$as_me: error: no termcap library found" >&2;}
5913 { (exit 1); exit 1; }; }
8ee53726
MK
5914fi
5915
3841debe 5916
6a30b0a5
AS
5917# Check whether --with-system-readline or --without-system-readline was given.
5918if test "${with_system_readline+set}" = set; then
5919 withval="$with_system_readline"
5920
5921fi;
5922
5923if test "$with_system_readline" = yes; then
5924 READLINE=-lreadline
5925 READLINE_DEPS=
5926 READLINE_CFLAGS=
5927else
5928 READLINE='$(READLINE_DIR)/libreadline.a'
5929 READLINE_DEPS='$(READLINE)'
5930 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
5931fi
5932
5933
5934
5935
5936
5c39566f
DJ
5937# Check whether --with-expat or --without-expat was given.
5938if test "${with_expat+set}" = set; then
5939 withval="$with_expat"
5940
5941else
5942 with_expat=auto
5943fi;
5944echo "$as_me:$LINENO: checking whether to use expat" >&5
5945echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6
5946echo "$as_me:$LINENO: result: $with_expat" >&5
5947echo "${ECHO_T}$with_expat" >&6
5948
5949if test "${with_expat}" = no; then
5950 { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
5951echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
5952 HAVE_LIBEXPAT=no
5953else
5954
3841debe
DJ
5955 if test "X$prefix" = "XNONE"; then
5956 acl_final_prefix="$ac_default_prefix"
5957 else
5958 acl_final_prefix="$prefix"
5959 fi
5960 if test "X$exec_prefix" = "XNONE"; then
5961 acl_final_exec_prefix='${prefix}'
5962 else
5963 acl_final_exec_prefix="$exec_prefix"
5964 fi
5965 acl_save_prefix="$prefix"
5966 prefix="$acl_final_prefix"
5967 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5968 prefix="$acl_save_prefix"
5969
5970
5971# Check whether --with-gnu-ld or --without-gnu-ld was given.
5972if test "${with_gnu_ld+set}" = set; then
5973 withval="$with_gnu_ld"
5974 test "$withval" = no || with_gnu_ld=yes
5975else
5976 with_gnu_ld=no
5977fi;
5978# Prepare PATH_SEPARATOR.
5979# The user is always right.
5980if test "${PATH_SEPARATOR+set}" != set; then
5981 echo "#! /bin/sh" >conf$$.sh
5982 echo "exit 0" >>conf$$.sh
5983 chmod +x conf$$.sh
5984 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5985 PATH_SEPARATOR=';'
5986 else
5987 PATH_SEPARATOR=:
5988 fi
5989 rm -f conf$$.sh
5990fi
5991ac_prog=ld
5992if test "$GCC" = yes; then
5993 # Check if gcc -print-prog-name=ld gives a path.
5994 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5995echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5996 case $host in
5997 *-*-mingw*)
5998 # gcc leaves a trailing carriage return which upsets mingw
5999 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6000 *)
6001 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6002 esac
6003 case $ac_prog in
6004 # Accept absolute paths.
6005 [\\/]* | [A-Za-z]:[\\/]*)
6006 re_direlt='/[^/][^/]*/\.\./'
6007 # Canonicalize the path of ld
6008 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6009 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6010 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6011 done
6012 test -z "$LD" && LD="$ac_prog"
6013 ;;
6014 "")
6015 # If it fails, then pretend we aren't using GCC.
6016 ac_prog=ld
6017 ;;
6018 *)
6019 # If it is relative, then search for the first ld in PATH.
6020 with_gnu_ld=unknown
6021 ;;
6022 esac
6023elif test "$with_gnu_ld" = yes; then
6024 echo "$as_me:$LINENO: checking for GNU ld" >&5
6025echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
6026else
6027 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6028echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
6029fi
6030if test "${acl_cv_path_LD+set}" = set; then
6031 echo $ECHO_N "(cached) $ECHO_C" >&6
6032else
6033 if test -z "$LD"; then
6034 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6035 for ac_dir in $PATH; do
6036 test -z "$ac_dir" && ac_dir=.
6037 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6038 acl_cv_path_LD="$ac_dir/$ac_prog"
6039 # Check to see if the program is GNU ld. I'd rather use --version,
6040 # but apparently some GNU ld's only accept -v.
6041 # Break only if it was the GNU/non-GNU ld that we prefer.
6042 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
6043 test "$with_gnu_ld" != no && break
6044 else
6045 test "$with_gnu_ld" != yes && break
6046 fi
6047 fi
6048 done
6049 IFS="$ac_save_ifs"
6050else
6051 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6052fi
6053fi
6054
6055LD="$acl_cv_path_LD"
6056if test -n "$LD"; then
6057 echo "$as_me:$LINENO: result: $LD" >&5
6058echo "${ECHO_T}$LD" >&6
6059else
6060 echo "$as_me:$LINENO: result: no" >&5
6061echo "${ECHO_T}no" >&6
6062fi
6063test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6064echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6065 { (exit 1); exit 1; }; }
6066echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6067echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
6068if test "${acl_cv_prog_gnu_ld+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
6070else
6071 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6072if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
6073 acl_cv_prog_gnu_ld=yes
6074else
6075 acl_cv_prog_gnu_ld=no
6076fi
6077fi
6078echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6079echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
6080with_gnu_ld=$acl_cv_prog_gnu_ld
6081
6082
6083
6084 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6085echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
6086if test "${acl_cv_rpath+set}" = set; then
6087 echo $ECHO_N "(cached) $ECHO_C" >&6
6088else
6089
6090 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6091 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6092 . ./conftest.sh
6093 rm -f ./conftest.sh
6094 acl_cv_rpath=done
6095
6096fi
6097echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6098echo "${ECHO_T}$acl_cv_rpath" >&6
6099 wl="$acl_cv_wl"
6100 libext="$acl_cv_libext"
6101 shlibext="$acl_cv_shlibext"
6102 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6103 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6104 hardcode_direct="$acl_cv_hardcode_direct"
6105 hardcode_minus_L="$acl_cv_hardcode_minus_L"
6106 # Check whether --enable-rpath or --disable-rpath was given.
6107if test "${enable_rpath+set}" = set; then
6108 enableval="$enable_rpath"
6109 :
6110else
6111 enable_rpath=yes
6112fi;
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122 use_additional=yes
6123
6124 acl_save_prefix="$prefix"
6125 prefix="$acl_final_prefix"
6126 acl_save_exec_prefix="$exec_prefix"
6127 exec_prefix="$acl_final_exec_prefix"
6128
6129 eval additional_includedir=\"$includedir\"
6130 eval additional_libdir=\"$libdir\"
6131
6132 exec_prefix="$acl_save_exec_prefix"
6133 prefix="$acl_save_prefix"
6134
6135
6136# Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
6137if test "${with_libexpat_prefix+set}" = set; then
6138 withval="$with_libexpat_prefix"
6139
6140 if test "X$withval" = "Xno"; then
6141 use_additional=no
6142 else
6143 if test "X$withval" = "X"; then
6144
6145 acl_save_prefix="$prefix"
6146 prefix="$acl_final_prefix"
6147 acl_save_exec_prefix="$exec_prefix"
6148 exec_prefix="$acl_final_exec_prefix"
6149
6150 eval additional_includedir=\"$includedir\"
6151 eval additional_libdir=\"$libdir\"
6152
6153 exec_prefix="$acl_save_exec_prefix"
6154 prefix="$acl_save_prefix"
6155
6156 else
6157 additional_includedir="$withval/include"
6158 additional_libdir="$withval/lib"
6159 fi
6160 fi
6161
6162fi;
6163 LIBEXPAT=
6164 LTLIBEXPAT=
6165 INCEXPAT=
6166 rpathdirs=
6167 ltrpathdirs=
6168 names_already_handled=
6169 names_next_round='expat '
6170 while test -n "$names_next_round"; do
6171 names_this_round="$names_next_round"
6172 names_next_round=
6173 for name in $names_this_round; do
6174 already_handled=
6175 for n in $names_already_handled; do
6176 if test "$n" = "$name"; then
6177 already_handled=yes
6178 break
6179 fi
6180 done
6181 if test -z "$already_handled"; then
6182 names_already_handled="$names_already_handled $name"
6183 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6184 eval value=\"\$HAVE_LIB$uppername\"
6185 if test -n "$value"; then
6186 if test "$value" = yes; then
6187 eval value=\"\$LIB$uppername\"
6188 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
6189 eval value=\"\$LTLIB$uppername\"
6190 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
6191 else
6192 :
6193 fi
6194 else
6195 found_dir=
6196 found_la=
6197 found_so=
6198 found_a=
6199 if test $use_additional = yes; then
6200 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6201 found_dir="$additional_libdir"
6202 found_so="$additional_libdir/lib$name.$shlibext"
6203 if test -f "$additional_libdir/lib$name.la"; then
6204 found_la="$additional_libdir/lib$name.la"
6205 fi
6206 else
6207 if test -f "$additional_libdir/lib$name.$libext"; then
6208 found_dir="$additional_libdir"
6209 found_a="$additional_libdir/lib$name.$libext"
6210 if test -f "$additional_libdir/lib$name.la"; then
6211 found_la="$additional_libdir/lib$name.la"
6212 fi
6213 fi
6214 fi
6215 fi
6216 if test "X$found_dir" = "X"; then
6217 for x in $LDFLAGS $LTLIBEXPAT; do
6218
6219 acl_save_prefix="$prefix"
6220 prefix="$acl_final_prefix"
6221 acl_save_exec_prefix="$exec_prefix"
6222 exec_prefix="$acl_final_exec_prefix"
6223 eval x=\"$x\"
6224 exec_prefix="$acl_save_exec_prefix"
6225 prefix="$acl_save_prefix"
6226
6227 case "$x" in
6228 -L*)
6229 dir=`echo "X$x" | sed -e 's/^X-L//'`
6230 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6231 found_dir="$dir"
6232 found_so="$dir/lib$name.$shlibext"
6233 if test -f "$dir/lib$name.la"; then
6234 found_la="$dir/lib$name.la"
6235 fi
6236 else
6237 if test -f "$dir/lib$name.$libext"; then
6238 found_dir="$dir"
6239 found_a="$dir/lib$name.$libext"
6240 if test -f "$dir/lib$name.la"; then
6241 found_la="$dir/lib$name.la"
6242 fi
6243 fi
6244 fi
6245 ;;
6246 esac
6247 if test "X$found_dir" != "X"; then
6248 break
6249 fi
6250 done
6251 fi
6252 if test "X$found_dir" != "X"; then
6253 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
6254 if test "X$found_so" != "X"; then
6255 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6256 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6257 else
6258 haveit=
6259 for x in $ltrpathdirs; do
6260 if test "X$x" = "X$found_dir"; then
6261 haveit=yes
6262 break
6263 fi
6264 done
6265 if test -z "$haveit"; then
6266 ltrpathdirs="$ltrpathdirs $found_dir"
6267 fi
6268 if test "$hardcode_direct" = yes; then
6269 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6270 else
6271 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6272 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6273 haveit=
6274 for x in $rpathdirs; do
6275 if test "X$x" = "X$found_dir"; then
6276 haveit=yes
6277 break
6278 fi
6279 done
6280 if test -z "$haveit"; then
6281 rpathdirs="$rpathdirs $found_dir"
6282 fi
6283 else
6284 haveit=
6285 for x in $LDFLAGS $LIBEXPAT; do
6286
6287 acl_save_prefix="$prefix"
6288 prefix="$acl_final_prefix"
6289 acl_save_exec_prefix="$exec_prefix"
6290 exec_prefix="$acl_final_exec_prefix"
6291 eval x=\"$x\"
6292 exec_prefix="$acl_save_exec_prefix"
6293 prefix="$acl_save_prefix"
6294
6295 if test "X$x" = "X-L$found_dir"; then
6296 haveit=yes
6297 break
6298 fi
6299 done
6300 if test -z "$haveit"; then
6301 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
6302 fi
6303 if test "$hardcode_minus_L" != no; then
6304 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6305 else
6306 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
6307 fi
6308 fi
6309 fi
6310 fi
6311 else
6312 if test "X$found_a" != "X"; then
6313 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
6314 else
6315 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
6316 fi
6317 fi
6318 additional_includedir=
6319 case "$found_dir" in
6320 */lib | */lib/)
6321 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6322 additional_includedir="$basedir/include"
6323 ;;
6324 esac
6325 if test "X$additional_includedir" != "X"; then
6326 if test "X$additional_includedir" != "X/usr/include"; then
6327 haveit=
6328 if test "X$additional_includedir" = "X/usr/local/include"; then
6329 if test -n "$GCC"; then
6330 case $host_os in
6331 linux*) haveit=yes;;
6332 esac
6333 fi
6334 fi
6335 if test -z "$haveit"; then
6336 for x in $CPPFLAGS $INCEXPAT; do
6337
6338 acl_save_prefix="$prefix"
6339 prefix="$acl_final_prefix"
6340 acl_save_exec_prefix="$exec_prefix"
6341 exec_prefix="$acl_final_exec_prefix"
6342 eval x=\"$x\"
6343 exec_prefix="$acl_save_exec_prefix"
6344 prefix="$acl_save_prefix"
6345
6346 if test "X$x" = "X-I$additional_includedir"; then
6347 haveit=yes
6348 break
6349 fi
6350 done
6351 if test -z "$haveit"; then
6352 if test -d "$additional_includedir"; then
6353 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
6354 fi
6355 fi
6356 fi
6357 fi
6358 fi
6359 if test -n "$found_la"; then
6360 save_libdir="$libdir"
6361 case "$found_la" in
6362 */* | *\\*) . "$found_la" ;;
6363 *) . "./$found_la" ;;
6364 esac
6365 libdir="$save_libdir"
6366 for dep in $dependency_libs; do
6367 case "$dep" in
6368 -L*)
6369 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6370 if test "X$additional_libdir" != "X/usr/lib"; then
6371 haveit=
6372 if test "X$additional_libdir" = "X/usr/local/lib"; then
6373 if test -n "$GCC"; then
6374 case $host_os in
6375 linux*) haveit=yes;;
6376 esac
6377 fi
6378 fi
6379 if test -z "$haveit"; then
6380 haveit=
6381 for x in $LDFLAGS $LIBEXPAT; do
6382
6383 acl_save_prefix="$prefix"
6384 prefix="$acl_final_prefix"
6385 acl_save_exec_prefix="$exec_prefix"
6386 exec_prefix="$acl_final_exec_prefix"
6387 eval x=\"$x\"
6388 exec_prefix="$acl_save_exec_prefix"
6389 prefix="$acl_save_prefix"
6390
6391 if test "X$x" = "X-L$additional_libdir"; then
6392 haveit=yes
6393 break
6394 fi
6395 done
6396 if test -z "$haveit"; then
6397 if test -d "$additional_libdir"; then
6398 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
6399 fi
6400 fi
6401 haveit=
6402 for x in $LDFLAGS $LTLIBEXPAT; do
6403
6404 acl_save_prefix="$prefix"
6405 prefix="$acl_final_prefix"
6406 acl_save_exec_prefix="$exec_prefix"
6407 exec_prefix="$acl_final_exec_prefix"
6408 eval x=\"$x\"
6409 exec_prefix="$acl_save_exec_prefix"
6410 prefix="$acl_save_prefix"
6411
6412 if test "X$x" = "X-L$additional_libdir"; then
6413 haveit=yes
6414 break
6415 fi
6416 done
6417 if test -z "$haveit"; then
6418 if test -d "$additional_libdir"; then
6419 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
6420 fi
6421 fi
6422 fi
6423 fi
6424 ;;
6425 -R*)
6426 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6427 if test "$enable_rpath" != no; then
6428 haveit=
6429 for x in $rpathdirs; do
6430 if test "X$x" = "X$dir"; then
6431 haveit=yes
6432 break
6433 fi
6434 done
6435 if test -z "$haveit"; then
6436 rpathdirs="$rpathdirs $dir"
6437 fi
6438 haveit=
6439 for x in $ltrpathdirs; do
6440 if test "X$x" = "X$dir"; then
6441 haveit=yes
6442 break
6443 fi
6444 done
6445 if test -z "$haveit"; then
6446 ltrpathdirs="$ltrpathdirs $dir"
6447 fi
6448 fi
6449 ;;
6450 -l*)
6451 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6452 ;;
6453 *.la)
6454 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6455 ;;
6456 *)
6457 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
6458 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
6459 ;;
6460 esac
6461 done
6462 fi
6463 else
6464 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
6465 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
6466 fi
6467 fi
6468 fi
6469 done
6470 done
6471 if test "X$rpathdirs" != "X"; then
6472 if test -n "$hardcode_libdir_separator"; then
6473 alldirs=
6474 for found_dir in $rpathdirs; do
6475 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6476 done
6477 acl_save_libdir="$libdir"
6478 libdir="$alldirs"
6479 eval flag=\"$hardcode_libdir_flag_spec\"
6480 libdir="$acl_save_libdir"
6481 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
6482 else
6483 for found_dir in $rpathdirs; do
6484 acl_save_libdir="$libdir"
6485 libdir="$found_dir"
6486 eval flag=\"$hardcode_libdir_flag_spec\"
6487 libdir="$acl_save_libdir"
6488 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
6489 done
6490 fi
6491 fi
6492 if test "X$ltrpathdirs" != "X"; then
6493 for found_dir in $ltrpathdirs; do
6494 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
6495 done
6496 fi
6497
6498
6499 ac_save_CPPFLAGS="$CPPFLAGS"
6500
6501 for element in $INCEXPAT; do
6502 haveit=
6503 for x in $CPPFLAGS; do
6504
6505 acl_save_prefix="$prefix"
6506 prefix="$acl_final_prefix"
6507 acl_save_exec_prefix="$exec_prefix"
6508 exec_prefix="$acl_final_exec_prefix"
6509 eval x=\"$x\"
6510 exec_prefix="$acl_save_exec_prefix"
6511 prefix="$acl_save_prefix"
6512
6513 if test "X$x" = "X$element"; then
6514 haveit=yes
6515 break
6516 fi
6517 done
6518 if test -z "$haveit"; then
6519 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6520 fi
6521 done
6522
6523
6524 echo "$as_me:$LINENO: checking for libexpat" >&5
6525echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
6526if test "${ac_cv_libexpat+set}" = set; then
6527 echo $ECHO_N "(cached) $ECHO_C" >&6
6528else
6529
6530 ac_save_LIBS="$LIBS"
6531 LIBS="$LIBS $LIBEXPAT"
6532 cat >conftest.$ac_ext <<_ACEOF
6533/* confdefs.h. */
6534_ACEOF
6535cat confdefs.h >>conftest.$ac_ext
6536cat >>conftest.$ac_ext <<_ACEOF
6537/* end confdefs.h. */
6538#include "expat.h"
6539int
6540main ()
6541{
6542XML_Parser p = XML_ParserCreate (0);
6543 ;
6544 return 0;
6545}
6546_ACEOF
6547rm -f conftest.$ac_objext conftest$ac_exeext
6548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6549 (eval $ac_link) 2>conftest.er1
6550 ac_status=$?
6551 grep -v '^ *+' conftest.er1 >conftest.err
6552 rm -f conftest.er1
6553 cat conftest.err >&5
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); } &&
6556 { ac_try='test -z "$ac_c_werror_flag"
6557 || test ! -s conftest.err'
6558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6559 (eval $ac_try) 2>&5
6560 ac_status=$?
6561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562 (exit $ac_status); }; } &&
6563 { ac_try='test -s conftest$ac_exeext'
6564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6565 (eval $ac_try) 2>&5
6566 ac_status=$?
6567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568 (exit $ac_status); }; }; then
6569 ac_cv_libexpat=yes
6570else
6571 echo "$as_me: failed program was:" >&5
6572sed 's/^/| /' conftest.$ac_ext >&5
6573
6574ac_cv_libexpat=no
6575fi
6576rm -f conftest.err conftest.$ac_objext \
6577 conftest$ac_exeext conftest.$ac_ext
6578 LIBS="$ac_save_LIBS"
6579
6580fi
6581echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
6582echo "${ECHO_T}$ac_cv_libexpat" >&6
6583 if test "$ac_cv_libexpat" = yes; then
6584 HAVE_LIBEXPAT=yes
6585
6586cat >>confdefs.h <<\_ACEOF
6587#define HAVE_LIBEXPAT 1
6588_ACEOF
6589
6590 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
6591echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
6592 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
6593echo "${ECHO_T}$LIBEXPAT" >&6
6594 else
6595 HAVE_LIBEXPAT=no
6596 CPPFLAGS="$ac_save_CPPFLAGS"
6597 LIBEXPAT=
6598 LTLIBEXPAT=
6599 fi
6600
6601
6602
6603
6604
6605
5c39566f
DJ
6606 if test "$HAVE_LIBEXPAT" != yes; then
6607 if test "$with_expat" = yes; then
6608 { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
6609echo "$as_me: error: expat is missing or unusable" >&2;}
6610 { (exit 1); exit 1; }; }
6611 else
6612 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
6613echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
6614 fi
6615 else
6616 save_LIBS=$LIBS
6617 LIBS="$LIBS $LIBEXPAT"
ca4ca11e
DJ
6618
6619for ac_func in XML_StopParser
6620do
6621as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6622echo "$as_me:$LINENO: checking for $ac_func" >&5
6623echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6624if eval "test \"\${$as_ac_var+set}\" = set"; then
6625 echo $ECHO_N "(cached) $ECHO_C" >&6
6626else
6627 cat >conftest.$ac_ext <<_ACEOF
6628/* confdefs.h. */
6629_ACEOF
6630cat confdefs.h >>conftest.$ac_ext
6631cat >>conftest.$ac_ext <<_ACEOF
6632/* end confdefs.h. */
6633/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6635#define $ac_func innocuous_$ac_func
6636
6637/* System header to define __stub macros and hopefully few prototypes,
6638 which can conflict with char $ac_func (); below.
6639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6640 <limits.h> exists even on freestanding compilers. */
6641
6642#ifdef __STDC__
6643# include <limits.h>
6644#else
6645# include <assert.h>
6646#endif
6647
6648#undef $ac_func
6649
6650/* Override any gcc2 internal prototype to avoid an error. */
6651#ifdef __cplusplus
6652extern "C"
6653{
6654#endif
6655/* We use char because int might match the return type of a gcc2
6656 builtin and then its argument prototype would still apply. */
6657char $ac_func ();
6658/* The GNU C library defines this for functions which it implements
6659 to always fail with ENOSYS. Some functions are actually named
6660 something starting with __ and the normal name is an alias. */
6661#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6662choke me
6663#else
6664char (*f) () = $ac_func;
6665#endif
6666#ifdef __cplusplus
6667}
6668#endif
6669
6670int
6671main ()
6672{
6673return f != $ac_func;
6674 ;
6675 return 0;
6676}
6677_ACEOF
6678rm -f conftest.$ac_objext conftest$ac_exeext
6679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6680 (eval $ac_link) 2>conftest.er1
6681 ac_status=$?
6682 grep -v '^ *+' conftest.er1 >conftest.err
6683 rm -f conftest.er1
6684 cat conftest.err >&5
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); } &&
6687 { ac_try='test -z "$ac_c_werror_flag"
6688 || test ! -s conftest.err'
6689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6690 (eval $ac_try) 2>&5
6691 ac_status=$?
6692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); }; } &&
6694 { ac_try='test -s conftest$ac_exeext'
6695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6696 (eval $ac_try) 2>&5
6697 ac_status=$?
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); }; }; then
6700 eval "$as_ac_var=yes"
6701else
6702 echo "$as_me: failed program was:" >&5
6703sed 's/^/| /' conftest.$ac_ext >&5
6704
6705eval "$as_ac_var=no"
6706fi
6707rm -f conftest.err conftest.$ac_objext \
6708 conftest$ac_exeext conftest.$ac_ext
6709fi
6710echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6711echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6712if test `eval echo '${'$as_ac_var'}'` = yes; then
6713 cat >>confdefs.h <<_ACEOF
6714#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6715_ACEOF
6716
6717fi
6718done
6719
5c39566f
DJ
6720 LIBS=$save_LIBS
6721 fi
3841debe
DJ
6722fi
6723
bec39cab
AC
6724# ------------------------- #
6725# Checks for header files. #
6726# ------------------------- #
8ee53726 6727
0e5d83e3 6728
bec39cab
AC
6729
6730
6731
6732
6733ac_header_dirent=no
6734for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6735 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
b4e70030
JB
6736echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6737echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6738if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
6739 echo $ECHO_N "(cached) $ECHO_C" >&6
6740else
6741 cat >conftest.$ac_ext <<_ACEOF
6742/* confdefs.h. */
6743_ACEOF
6744cat confdefs.h >>conftest.$ac_ext
6745cat >>conftest.$ac_ext <<_ACEOF
6746/* end confdefs.h. */
6747#include <sys/types.h>
0e5d83e3 6748#include <$ac_hdr>
bec39cab
AC
6749
6750int
6751main ()
6752{
6753if ((DIR *) 0)
6754return 0;
6755 ;
6756 return 0;
6757}
6758_ACEOF
6759rm -f conftest.$ac_objext
6760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6761 (eval $ac_compile) 2>conftest.er1
6762 ac_status=$?
6763 grep -v '^ *+' conftest.er1 >conftest.err
6764 rm -f conftest.er1
6765 cat conftest.err >&5
6766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767 (exit $ac_status); } &&
b4e70030
JB
6768 { ac_try='test -z "$ac_c_werror_flag"
6769 || test ! -s conftest.err'
bec39cab
AC
6770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6771 (eval $ac_try) 2>&5
6772 ac_status=$?
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); }; } &&
6775 { ac_try='test -s conftest.$ac_objext'
6776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777 (eval $ac_try) 2>&5
6778 ac_status=$?
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); }; }; then
6781 eval "$as_ac_Header=yes"
6782else
6783 echo "$as_me: failed program was:" >&5
6784sed 's/^/| /' conftest.$ac_ext >&5
6785
b4e70030 6786eval "$as_ac_Header=no"
bec39cab
AC
6787fi
6788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6789fi
b4e70030
JB
6790echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6791echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
6792if test `eval echo '${'$as_ac_Header'}'` = yes; then
6793 cat >>confdefs.h <<_ACEOF
6794#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6795_ACEOF
6796
6797ac_header_dirent=$ac_hdr; break
0e5d83e3 6798fi
0e5d83e3 6799
bec39cab
AC
6800done
6801# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6802if test $ac_header_dirent = dirent.h; then
b4e70030
JB
6803 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6804echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
bec39cab
AC
6805if test "${ac_cv_search_opendir+set}" = set; then
6806 echo $ECHO_N "(cached) $ECHO_C" >&6
6807else
6808 ac_func_search_save_LIBS=$LIBS
b4e70030 6809ac_cv_search_opendir=no
bec39cab
AC
6810cat >conftest.$ac_ext <<_ACEOF
6811/* confdefs.h. */
6812_ACEOF
6813cat confdefs.h >>conftest.$ac_ext
6814cat >>conftest.$ac_ext <<_ACEOF
6815/* end confdefs.h. */
0e5d83e3 6816
b4e70030 6817/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
6818#ifdef __cplusplus
6819extern "C"
6820#endif
b4e70030
JB
6821/* We use char because int might match the return type of a gcc2
6822 builtin and then its argument prototype would still apply. */
bec39cab
AC
6823char opendir ();
6824int
6825main ()
6826{
b4e70030 6827opendir ();
bec39cab
AC
6828 ;
6829 return 0;
6830}
6831_ACEOF
b4e70030 6832rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
6833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6834 (eval $ac_link) 2>conftest.er1
6835 ac_status=$?
6836 grep -v '^ *+' conftest.er1 >conftest.err
6837 rm -f conftest.er1
6838 cat conftest.err >&5
6839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840 (exit $ac_status); } &&
b4e70030
JB
6841 { ac_try='test -z "$ac_c_werror_flag"
6842 || test ! -s conftest.err'
bec39cab
AC
6843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6844 (eval $ac_try) 2>&5
6845 ac_status=$?
6846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847 (exit $ac_status); }; } &&
6848 { ac_try='test -s conftest$ac_exeext'
6849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6850 (eval $ac_try) 2>&5
6851 ac_status=$?
6852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853 (exit $ac_status); }; }; then
b4e70030 6854 ac_cv_search_opendir="none required"
bec39cab
AC
6855else
6856 echo "$as_me: failed program was:" >&5
6857sed 's/^/| /' conftest.$ac_ext >&5
6858
6859fi
bec39cab 6860rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
6861 conftest$ac_exeext conftest.$ac_ext
6862if test "$ac_cv_search_opendir" = no; then
6863 for ac_lib in dir; do
6864 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6865 cat >conftest.$ac_ext <<_ACEOF
6866/* confdefs.h. */
6867_ACEOF
6868cat confdefs.h >>conftest.$ac_ext
6869cat >>conftest.$ac_ext <<_ACEOF
6870/* end confdefs.h. */
6871
6872/* Override any gcc2 internal prototype to avoid an error. */
6873#ifdef __cplusplus
6874extern "C"
6875#endif
6876/* We use char because int might match the return type of a gcc2
6877 builtin and then its argument prototype would still apply. */
6878char opendir ();
6879int
6880main ()
6881{
6882opendir ();
6883 ;
6884 return 0;
6885}
6886_ACEOF
6887rm -f conftest.$ac_objext conftest$ac_exeext
6888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6889 (eval $ac_link) 2>conftest.er1
6890 ac_status=$?
6891 grep -v '^ *+' conftest.er1 >conftest.err
6892 rm -f conftest.er1
6893 cat conftest.err >&5
6894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895 (exit $ac_status); } &&
6896 { ac_try='test -z "$ac_c_werror_flag"
6897 || test ! -s conftest.err'
6898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6899 (eval $ac_try) 2>&5
6900 ac_status=$?
6901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6902 (exit $ac_status); }; } &&
6903 { ac_try='test -s conftest$ac_exeext'
6904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6905 (eval $ac_try) 2>&5
6906 ac_status=$?
6907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6908 (exit $ac_status); }; }; then
6909 ac_cv_search_opendir="-l$ac_lib"
6910break
4e8d927d 6911else
b4e70030
JB
6912 echo "$as_me: failed program was:" >&5
6913sed 's/^/| /' conftest.$ac_ext >&5
6914
6915fi
6916rm -f conftest.err conftest.$ac_objext \
6917 conftest$ac_exeext conftest.$ac_ext
6918 done
0e5d83e3 6919fi
bec39cab 6920LIBS=$ac_func_search_save_LIBS
0e5d83e3 6921fi
b4e70030
JB
6922echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6923echo "${ECHO_T}$ac_cv_search_opendir" >&6
6924if test "$ac_cv_search_opendir" != no; then
6925 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
0e5d83e3 6926
0e5d83e3
JJ
6927fi
6928
d28f9cdf 6929else
b4e70030
JB
6930 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6931echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
bec39cab
AC
6932if test "${ac_cv_search_opendir+set}" = set; then
6933 echo $ECHO_N "(cached) $ECHO_C" >&6
6934else
6935 ac_func_search_save_LIBS=$LIBS
b4e70030 6936ac_cv_search_opendir=no
bec39cab
AC
6937cat >conftest.$ac_ext <<_ACEOF
6938/* confdefs.h. */
6939_ACEOF
6940cat confdefs.h >>conftest.$ac_ext
6941cat >>conftest.$ac_ext <<_ACEOF
6942/* end confdefs.h. */
d28f9cdf 6943
b4e70030 6944/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
6945#ifdef __cplusplus
6946extern "C"
d28f9cdf 6947#endif
b4e70030
JB
6948/* We use char because int might match the return type of a gcc2
6949 builtin and then its argument prototype would still apply. */
bec39cab
AC
6950char opendir ();
6951int
6952main ()
6953{
b4e70030 6954opendir ();
bec39cab
AC
6955 ;
6956 return 0;
6957}
6958_ACEOF
b4e70030 6959rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
6960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6961 (eval $ac_link) 2>conftest.er1
6962 ac_status=$?
6963 grep -v '^ *+' conftest.er1 >conftest.err
6964 rm -f conftest.er1
6965 cat conftest.err >&5
6966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967 (exit $ac_status); } &&
b4e70030
JB
6968 { ac_try='test -z "$ac_c_werror_flag"
6969 || test ! -s conftest.err'
bec39cab
AC
6970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6971 (eval $ac_try) 2>&5
6972 ac_status=$?
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); }; } &&
6975 { ac_try='test -s conftest$ac_exeext'
6976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6977 (eval $ac_try) 2>&5
6978 ac_status=$?
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); }; }; then
b4e70030 6981 ac_cv_search_opendir="none required"
d28f9cdf 6982else
bec39cab
AC
6983 echo "$as_me: failed program was:" >&5
6984sed 's/^/| /' conftest.$ac_ext >&5
6985
d28f9cdf 6986fi
bec39cab 6987rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
6988 conftest$ac_exeext conftest.$ac_ext
6989if test "$ac_cv_search_opendir" = no; then
6990 for ac_lib in x; do
6991 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6992 cat >conftest.$ac_ext <<_ACEOF
6993/* confdefs.h. */
6994_ACEOF
6995cat confdefs.h >>conftest.$ac_ext
6996cat >>conftest.$ac_ext <<_ACEOF
6997/* end confdefs.h. */
6998
6999/* Override any gcc2 internal prototype to avoid an error. */
7000#ifdef __cplusplus
7001extern "C"
7002#endif
7003/* We use char because int might match the return type of a gcc2
7004 builtin and then its argument prototype would still apply. */
7005char opendir ();
7006int
7007main ()
7008{
7009opendir ();
7010 ;
7011 return 0;
7012}
7013_ACEOF
7014rm -f conftest.$ac_objext conftest$ac_exeext
7015if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7016 (eval $ac_link) 2>conftest.er1
7017 ac_status=$?
7018 grep -v '^ *+' conftest.er1 >conftest.err
7019 rm -f conftest.er1
7020 cat conftest.err >&5
7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); } &&
7023 { ac_try='test -z "$ac_c_werror_flag"
7024 || test ! -s conftest.err'
7025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7026 (eval $ac_try) 2>&5
7027 ac_status=$?
7028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029 (exit $ac_status); }; } &&
7030 { ac_try='test -s conftest$ac_exeext'
7031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7032 (eval $ac_try) 2>&5
7033 ac_status=$?
7034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035 (exit $ac_status); }; }; then
7036 ac_cv_search_opendir="-l$ac_lib"
7037break
4e8d927d 7038else
b4e70030
JB
7039 echo "$as_me: failed program was:" >&5
7040sed 's/^/| /' conftest.$ac_ext >&5
7041
7042fi
7043rm -f conftest.err conftest.$ac_objext \
7044 conftest$ac_exeext conftest.$ac_ext
7045 done
bec39cab
AC
7046fi
7047LIBS=$ac_func_search_save_LIBS
d28f9cdf 7048fi
b4e70030
JB
7049echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7050echo "${ECHO_T}$ac_cv_search_opendir" >&6
7051if test "$ac_cv_search_opendir" != no; then
7052 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
d28f9cdf 7053
d28f9cdf
DJ
7054fi
7055
bec39cab 7056fi
b0b1c2c0 7057
b4e70030
JB
7058echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7059echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
bec39cab
AC
7060if test "${ac_cv_header_stat_broken+set}" = set; then
7061 echo $ECHO_N "(cached) $ECHO_C" >&6
b0b1c2c0 7062else
bec39cab
AC
7063 cat >conftest.$ac_ext <<_ACEOF
7064/* confdefs.h. */
7065_ACEOF
7066cat confdefs.h >>conftest.$ac_ext
7067cat >>conftest.$ac_ext <<_ACEOF
7068/* end confdefs.h. */
7069#include <sys/types.h>
7070#include <sys/stat.h>
b0b1c2c0 7071
b4e70030 7072#if defined(S_ISBLK) && defined(S_IFDIR)
bec39cab
AC
7073# if S_ISBLK (S_IFDIR)
7074You lose.
7075# endif
7076#endif
b0b1c2c0 7077
b4e70030 7078#if defined(S_ISBLK) && defined(S_IFCHR)
bec39cab
AC
7079# if S_ISBLK (S_IFCHR)
7080You lose.
7081# endif
7082#endif
d28f9cdf 7083
b4e70030 7084#if defined(S_ISLNK) && defined(S_IFREG)
bec39cab
AC
7085# if S_ISLNK (S_IFREG)
7086You lose.
7087# endif
7088#endif
d28f9cdf 7089
b4e70030 7090#if defined(S_ISSOCK) && defined(S_IFREG)
bec39cab
AC
7091# if S_ISSOCK (S_IFREG)
7092You lose.
7093# endif
7094#endif
7095
7096_ACEOF
7097if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7098 $EGREP "You lose" >/dev/null 2>&1; then
7099 ac_cv_header_stat_broken=yes
d28f9cdf 7100else
bec39cab 7101 ac_cv_header_stat_broken=no
d28f9cdf
DJ
7102fi
7103rm -f conftest*
d28f9cdf 7104
d28f9cdf 7105fi
b4e70030
JB
7106echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7107echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
bec39cab 7108if test $ac_cv_header_stat_broken = yes; then
d28f9cdf 7109
bec39cab
AC
7110cat >>confdefs.h <<\_ACEOF
7111#define STAT_MACROS_BROKEN 1
7112_ACEOF
8bb2c122 7113
7a292a7a 7114fi
bec39cab 7115
b4e70030
JB
7116echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7117echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
bec39cab
AC
7118if test "${ac_cv_header_stdc+set}" = set; then
7119 echo $ECHO_N "(cached) $ECHO_C" >&6
7a292a7a 7120else
bec39cab
AC
7121 cat >conftest.$ac_ext <<_ACEOF
7122/* confdefs.h. */
7123_ACEOF
7124cat confdefs.h >>conftest.$ac_ext
7125cat >>conftest.$ac_ext <<_ACEOF
7126/* end confdefs.h. */
7127#include <stdlib.h>
7128#include <stdarg.h>
7129#include <string.h>
7130#include <float.h>
7a292a7a 7131
bec39cab
AC
7132int
7133main ()
7134{
7a292a7a 7135
bec39cab
AC
7136 ;
7137 return 0;
7138}
7139_ACEOF
7140rm -f conftest.$ac_objext
7141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7142 (eval $ac_compile) 2>conftest.er1
7143 ac_status=$?
7144 grep -v '^ *+' conftest.er1 >conftest.err
7145 rm -f conftest.er1
7146 cat conftest.err >&5
7147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148 (exit $ac_status); } &&
b4e70030
JB
7149 { ac_try='test -z "$ac_c_werror_flag"
7150 || test ! -s conftest.err'
bec39cab
AC
7151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7152 (eval $ac_try) 2>&5
7153 ac_status=$?
7154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); }; } &&
7156 { ac_try='test -s conftest.$ac_objext'
7157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7158 (eval $ac_try) 2>&5
7159 ac_status=$?
7160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7161 (exit $ac_status); }; }; then
7162 ac_cv_header_stdc=yes
c906108c 7163else
bec39cab
AC
7164 echo "$as_me: failed program was:" >&5
7165sed 's/^/| /' conftest.$ac_ext >&5
c906108c 7166
b4e70030 7167ac_cv_header_stdc=no
c906108c 7168fi
bec39cab 7169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 7170
bec39cab
AC
7171if test $ac_cv_header_stdc = yes; then
7172 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7173 cat >conftest.$ac_ext <<_ACEOF
7174/* confdefs.h. */
7175_ACEOF
7176cat confdefs.h >>conftest.$ac_ext
7177cat >>conftest.$ac_ext <<_ACEOF
7178/* end confdefs.h. */
7179#include <string.h>
c906108c 7180
bec39cab
AC
7181_ACEOF
7182if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7183 $EGREP "memchr" >/dev/null 2>&1; then
7184 :
8bb2c122 7185else
bec39cab 7186 ac_cv_header_stdc=no
8bb2c122 7187fi
bec39cab
AC
7188rm -f conftest*
7189
c906108c
SS
7190fi
7191
bec39cab
AC
7192if test $ac_cv_header_stdc = yes; then
7193 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7194 cat >conftest.$ac_ext <<_ACEOF
7195/* confdefs.h. */
7196_ACEOF
7197cat confdefs.h >>conftest.$ac_ext
7198cat >>conftest.$ac_ext <<_ACEOF
7199/* end confdefs.h. */
7200#include <stdlib.h>
7201
7202_ACEOF
7203if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7204 $EGREP "free" >/dev/null 2>&1; then
7205 :
c906108c 7206else
bec39cab 7207 ac_cv_header_stdc=no
c906108c 7208fi
bec39cab
AC
7209rm -f conftest*
7210
c906108c
SS
7211fi
7212
bec39cab
AC
7213if test $ac_cv_header_stdc = yes; then
7214 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7215 if test "$cross_compiling" = yes; then
7216 :
c906108c 7217else
bec39cab
AC
7218 cat >conftest.$ac_ext <<_ACEOF
7219/* confdefs.h. */
7220_ACEOF
7221cat confdefs.h >>conftest.$ac_ext
7222cat >>conftest.$ac_ext <<_ACEOF
7223/* end confdefs.h. */
7224#include <ctype.h>
7225#if ((' ' & 0x0FF) == 0x020)
7226# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7227# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7228#else
7229# define ISLOWER(c) \
7230 (('a' <= (c) && (c) <= 'i') \
7231 || ('j' <= (c) && (c) <= 'r') \
7232 || ('s' <= (c) && (c) <= 'z'))
7233# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7234#endif
7235
7236#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7237int
7238main ()
7239{
7240 int i;
7241 for (i = 0; i < 256; i++)
7242 if (XOR (islower (i), ISLOWER (i))
7243 || toupper (i) != TOUPPER (i))
b4e70030
JB
7244 exit(2);
7245 exit (0);
bec39cab
AC
7246}
7247_ACEOF
7248rm -f conftest$ac_exeext
7249if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7250 (eval $ac_link) 2>&5
7251 ac_status=$?
7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7255 (eval $ac_try) 2>&5
7256 ac_status=$?
7257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258 (exit $ac_status); }; }; then
7259 :
7260else
7261 echo "$as_me: program exited with status $ac_status" >&5
7262echo "$as_me: failed program was:" >&5
7263sed 's/^/| /' conftest.$ac_ext >&5
7264
7265( exit $ac_status )
7266ac_cv_header_stdc=no
c906108c 7267fi
b4e70030 7268rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 7269fi
c906108c 7270fi
bec39cab 7271fi
b4e70030
JB
7272echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7273echo "${ECHO_T}$ac_cv_header_stdc" >&6
bec39cab 7274if test $ac_cv_header_stdc = yes; then
c906108c 7275
bec39cab
AC
7276cat >>confdefs.h <<\_ACEOF
7277#define STDC_HEADERS 1
7278_ACEOF
c906108c 7279
bec39cab 7280fi
8bb2c122 7281
bec39cab 7282
7cb9022a 7283for ac_header in nlist.h
bec39cab
AC
7284do
7285as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7286if eval "test \"\${$as_ac_Header+set}\" = set"; then
7287 echo "$as_me:$LINENO: checking for $ac_header" >&5
7288echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7289if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7290 echo $ECHO_N "(cached) $ECHO_C" >&6
7291fi
b4e70030
JB
7292echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7293echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7294else
7295 # Is the header compilable?
b4e70030
JB
7296echo "$as_me:$LINENO: checking $ac_header usability" >&5
7297echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7298cat >conftest.$ac_ext <<_ACEOF
7299/* confdefs.h. */
7300_ACEOF
7301cat confdefs.h >>conftest.$ac_ext
7302cat >>conftest.$ac_ext <<_ACEOF
7303/* end confdefs.h. */
7304$ac_includes_default
7305#include <$ac_header>
7306_ACEOF
7307rm -f conftest.$ac_objext
7308if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7309 (eval $ac_compile) 2>conftest.er1
7310 ac_status=$?
7311 grep -v '^ *+' conftest.er1 >conftest.err
7312 rm -f conftest.er1
7313 cat conftest.err >&5
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); } &&
b4e70030
JB
7316 { ac_try='test -z "$ac_c_werror_flag"
7317 || test ! -s conftest.err'
bec39cab
AC
7318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7319 (eval $ac_try) 2>&5
7320 ac_status=$?
7321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322 (exit $ac_status); }; } &&
7323 { ac_try='test -s conftest.$ac_objext'
7324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7325 (eval $ac_try) 2>&5
7326 ac_status=$?
7327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7328 (exit $ac_status); }; }; then
7329 ac_header_compiler=yes
7330else
7331 echo "$as_me: failed program was:" >&5
7332sed 's/^/| /' conftest.$ac_ext >&5
7333
b4e70030 7334ac_header_compiler=no
bec39cab
AC
7335fi
7336rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7337echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7338echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7339
7340# Is the header present?
b4e70030
JB
7341echo "$as_me:$LINENO: checking $ac_header presence" >&5
7342echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7343cat >conftest.$ac_ext <<_ACEOF
7344/* confdefs.h. */
7345_ACEOF
7346cat confdefs.h >>conftest.$ac_ext
7347cat >>conftest.$ac_ext <<_ACEOF
7348/* end confdefs.h. */
7349#include <$ac_header>
7350_ACEOF
7351if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7352 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7353 ac_status=$?
7354 grep -v '^ *+' conftest.er1 >conftest.err
7355 rm -f conftest.er1
7356 cat conftest.err >&5
7357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); } >/dev/null; then
7359 if test -s conftest.err; then
7360 ac_cpp_err=$ac_c_preproc_warn_flag
7361 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7362 else
7363 ac_cpp_err=
7364 fi
c906108c 7365else
bec39cab 7366 ac_cpp_err=yes
c906108c 7367fi
bec39cab
AC
7368if test -z "$ac_cpp_err"; then
7369 ac_header_preproc=yes
c906108c 7370else
bec39cab
AC
7371 echo "$as_me: failed program was:" >&5
7372sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 7373
bec39cab
AC
7374 ac_header_preproc=no
7375fi
7376rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7377echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7378echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 7379
bec39cab
AC
7380# So? What about this header?
7381case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7382 yes:no: )
7383 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7384echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7386echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7387 ac_header_preproc=yes
7388 ;;
7389 no:yes:* )
7390 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7391echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7392 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7393echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7394 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7395echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7396 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7397echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7399echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7400 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7401echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7402 (
7403 cat <<\_ASBOX
7404## ------------------------------------------ ##
7405## Report this to the AC_PACKAGE_NAME lists. ##
7406## ------------------------------------------ ##
7407_ASBOX
7408 ) |
7409 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7410 ;;
7411esac
b4e70030
JB
7412echo "$as_me:$LINENO: checking for $ac_header" >&5
7413echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7414if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7415 echo $ECHO_N "(cached) $ECHO_C" >&6
95ca63c4 7416else
bec39cab 7417 eval "$as_ac_Header=\$ac_header_preproc"
95ca63c4 7418fi
b4e70030
JB
7419echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7420echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 7421
95ca63c4 7422fi
bec39cab
AC
7423if test `eval echo '${'$as_ac_Header'}'` = yes; then
7424 cat >>confdefs.h <<_ACEOF
7425#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7426_ACEOF
7427
95ca63c4
CF
7428fi
7429
bec39cab 7430done
95ca63c4
CF
7431
7432
7cb9022a 7433for ac_header in link.h
bec39cab
AC
7434do
7435as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7436echo "$as_me:$LINENO: checking for $ac_header" >&5
7437echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7438if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7439 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 7440else
7cb9022a 7441 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
7442/* confdefs.h. */
7443_ACEOF
7444cat confdefs.h >>conftest.$ac_ext
7445cat >>conftest.$ac_ext <<_ACEOF
7446/* end confdefs.h. */
7cb9022a
MK
7447#if HAVE_SYS_TYPES_H
7448# include <sys/types.h>
7449#endif
7450#if HAVE_NLIST_H
7451# include <nlist.h>
7452#endif
7453
7454
bec39cab
AC
7455#include <$ac_header>
7456_ACEOF
7457rm -f conftest.$ac_objext
7458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7459 (eval $ac_compile) 2>conftest.er1
7460 ac_status=$?
7461 grep -v '^ *+' conftest.er1 >conftest.err
7462 rm -f conftest.er1
7463 cat conftest.err >&5
7464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); } &&
b4e70030
JB
7466 { ac_try='test -z "$ac_c_werror_flag"
7467 || test ! -s conftest.err'
bec39cab
AC
7468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7469 (eval $ac_try) 2>&5
7470 ac_status=$?
7471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472 (exit $ac_status); }; } &&
7473 { ac_try='test -s conftest.$ac_objext'
7474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7475 (eval $ac_try) 2>&5
7476 ac_status=$?
7477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478 (exit $ac_status); }; }; then
7cb9022a 7479 eval "$as_ac_Header=yes"
bec39cab
AC
7480else
7481 echo "$as_me: failed program was:" >&5
7482sed 's/^/| /' conftest.$ac_ext >&5
7483
b4e70030 7484eval "$as_ac_Header=no"
bec39cab
AC
7485fi
7486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 7487fi
b4e70030
JB
7488echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7489echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7490if test `eval echo '${'$as_ac_Header'}'` = yes; then
7491 cat >>confdefs.h <<_ACEOF
7492#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7493_ACEOF
95ca63c4 7494
bec39cab 7495fi
95ca63c4 7496
bec39cab 7497done
95ca63c4 7498
c906108c 7499
7cb9022a 7500for ac_header in machine/reg.h
bec39cab
AC
7501do
7502as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7503if eval "test \"\${$as_ac_Header+set}\" = set"; then
7504 echo "$as_me:$LINENO: checking for $ac_header" >&5
7505echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7506if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7507 echo $ECHO_N "(cached) $ECHO_C" >&6
7508fi
b4e70030
JB
7509echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7510echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7511else
7512 # Is the header compilable?
b4e70030
JB
7513echo "$as_me:$LINENO: checking $ac_header usability" >&5
7514echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7515cat >conftest.$ac_ext <<_ACEOF
7516/* confdefs.h. */
7517_ACEOF
7518cat confdefs.h >>conftest.$ac_ext
7519cat >>conftest.$ac_ext <<_ACEOF
7520/* end confdefs.h. */
7521$ac_includes_default
7522#include <$ac_header>
7523_ACEOF
7524rm -f conftest.$ac_objext
7525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7526 (eval $ac_compile) 2>conftest.er1
7527 ac_status=$?
7528 grep -v '^ *+' conftest.er1 >conftest.err
7529 rm -f conftest.er1
7530 cat conftest.err >&5
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); } &&
b4e70030
JB
7533 { ac_try='test -z "$ac_c_werror_flag"
7534 || test ! -s conftest.err'
bec39cab
AC
7535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7536 (eval $ac_try) 2>&5
7537 ac_status=$?
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); }; } &&
7540 { ac_try='test -s conftest.$ac_objext'
7541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7542 (eval $ac_try) 2>&5
7543 ac_status=$?
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); }; }; then
7546 ac_header_compiler=yes
7547else
7548 echo "$as_me: failed program was:" >&5
7549sed 's/^/| /' conftest.$ac_ext >&5
7550
b4e70030 7551ac_header_compiler=no
bec39cab
AC
7552fi
7553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7554echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7555echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7556
7557# Is the header present?
b4e70030
JB
7558echo "$as_me:$LINENO: checking $ac_header presence" >&5
7559echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7560cat >conftest.$ac_ext <<_ACEOF
7561/* confdefs.h. */
7562_ACEOF
7563cat confdefs.h >>conftest.$ac_ext
7564cat >>conftest.$ac_ext <<_ACEOF
7565/* end confdefs.h. */
7566#include <$ac_header>
7567_ACEOF
7568if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7569 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7570 ac_status=$?
7571 grep -v '^ *+' conftest.er1 >conftest.err
7572 rm -f conftest.er1
7573 cat conftest.err >&5
7574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); } >/dev/null; then
7576 if test -s conftest.err; then
7577 ac_cpp_err=$ac_c_preproc_warn_flag
7578 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7579 else
7580 ac_cpp_err=
7581 fi
75c6e08a 7582else
bec39cab 7583 ac_cpp_err=yes
75c6e08a 7584fi
bec39cab
AC
7585if test -z "$ac_cpp_err"; then
7586 ac_header_preproc=yes
7587else
7588 echo "$as_me: failed program was:" >&5
7589sed 's/^/| /' conftest.$ac_ext >&5
7590
7591 ac_header_preproc=no
75c6e08a 7592fi
bec39cab 7593rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7594echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7595echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
7596
7597# So? What about this header?
7598case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7599 yes:no: )
7600 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7601echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7603echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7604 ac_header_preproc=yes
7605 ;;
7606 no:yes:* )
7607 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7608echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7609 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7610echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7611 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7612echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7613 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7614echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7616echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7617 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7618echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7619 (
7620 cat <<\_ASBOX
7621## ------------------------------------------ ##
7622## Report this to the AC_PACKAGE_NAME lists. ##
7623## ------------------------------------------ ##
7624_ASBOX
7625 ) |
7626 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7627 ;;
7628esac
b4e70030
JB
7629echo "$as_me:$LINENO: checking for $ac_header" >&5
7630echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7631if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7632 echo $ECHO_N "(cached) $ECHO_C" >&6
75c6e08a 7633else
bec39cab
AC
7634 eval "$as_ac_Header=\$ac_header_preproc"
7635fi
b4e70030
JB
7636echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7637echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 7638
75c6e08a 7639fi
bec39cab
AC
7640if test `eval echo '${'$as_ac_Header'}'` = yes; then
7641 cat >>confdefs.h <<_ACEOF
7642#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7643_ACEOF
75c6e08a 7644
bec39cab 7645fi
75c6e08a 7646
bec39cab 7647done
75c6e08a
MK
7648
7649
9a156167 7650
bec39cab
AC
7651for ac_header in poll.h sys/poll.h
7652do
7653as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7654if eval "test \"\${$as_ac_Header+set}\" = set"; then
7655 echo "$as_me:$LINENO: checking for $ac_header" >&5
7656echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7657if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7658 echo $ECHO_N "(cached) $ECHO_C" >&6
7659fi
b4e70030
JB
7660echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7661echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7662else
7663 # Is the header compilable?
b4e70030
JB
7664echo "$as_me:$LINENO: checking $ac_header usability" >&5
7665echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7666cat >conftest.$ac_ext <<_ACEOF
7667/* confdefs.h. */
7668_ACEOF
7669cat confdefs.h >>conftest.$ac_ext
7670cat >>conftest.$ac_ext <<_ACEOF
7671/* end confdefs.h. */
7672$ac_includes_default
7673#include <$ac_header>
7674_ACEOF
7675rm -f conftest.$ac_objext
7676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7677 (eval $ac_compile) 2>conftest.er1
7678 ac_status=$?
7679 grep -v '^ *+' conftest.er1 >conftest.err
7680 rm -f conftest.er1
7681 cat conftest.err >&5
7682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7683 (exit $ac_status); } &&
b4e70030
JB
7684 { ac_try='test -z "$ac_c_werror_flag"
7685 || test ! -s conftest.err'
bec39cab
AC
7686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7687 (eval $ac_try) 2>&5
7688 ac_status=$?
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); }; } &&
7691 { ac_try='test -s conftest.$ac_objext'
7692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7693 (eval $ac_try) 2>&5
7694 ac_status=$?
7695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696 (exit $ac_status); }; }; then
7697 ac_header_compiler=yes
7698else
7699 echo "$as_me: failed program was:" >&5
7700sed 's/^/| /' conftest.$ac_ext >&5
7701
b4e70030 7702ac_header_compiler=no
bec39cab
AC
7703fi
7704rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7705echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7706echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7707
7708# Is the header present?
b4e70030
JB
7709echo "$as_me:$LINENO: checking $ac_header presence" >&5
7710echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7711cat >conftest.$ac_ext <<_ACEOF
7712/* confdefs.h. */
7713_ACEOF
7714cat confdefs.h >>conftest.$ac_ext
7715cat >>conftest.$ac_ext <<_ACEOF
7716/* end confdefs.h. */
7717#include <$ac_header>
7718_ACEOF
7719if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7720 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7721 ac_status=$?
7722 grep -v '^ *+' conftest.er1 >conftest.err
7723 rm -f conftest.er1
7724 cat conftest.err >&5
7725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726 (exit $ac_status); } >/dev/null; then
7727 if test -s conftest.err; then
7728 ac_cpp_err=$ac_c_preproc_warn_flag
7729 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7730 else
7731 ac_cpp_err=
7732 fi
9a156167 7733else
bec39cab 7734 ac_cpp_err=yes
9a156167 7735fi
bec39cab
AC
7736if test -z "$ac_cpp_err"; then
7737 ac_header_preproc=yes
7738else
7739 echo "$as_me: failed program was:" >&5
7740sed 's/^/| /' conftest.$ac_ext >&5
9a156167 7741
bec39cab 7742 ac_header_preproc=no
9a156167 7743fi
bec39cab 7744rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7745echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7746echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 7747
bec39cab
AC
7748# So? What about this header?
7749case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7750 yes:no: )
7751 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7752echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7754echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7755 ac_header_preproc=yes
7756 ;;
7757 no:yes:* )
7758 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7759echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7760 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7761echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7762 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7763echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7764 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7765echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7767echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7768 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7769echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7770 (
7771 cat <<\_ASBOX
7772## ------------------------------------------ ##
7773## Report this to the AC_PACKAGE_NAME lists. ##
7774## ------------------------------------------ ##
7775_ASBOX
7776 ) |
7777 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7778 ;;
7779esac
b4e70030
JB
7780echo "$as_me:$LINENO: checking for $ac_header" >&5
7781echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7782if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7783 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 7784else
bec39cab 7785 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 7786fi
b4e70030
JB
7787echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7788echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167 7789
bec39cab
AC
7790fi
7791if test `eval echo '${'$as_ac_Header'}'` = yes; then
7792 cat >>confdefs.h <<_ACEOF
7793#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7794_ACEOF
9a156167 7795
bec39cab 7796fi
9a156167 7797
bec39cab 7798done
9a156167 7799
9a156167 7800
9a156167 7801
bec39cab
AC
7802
7803for ac_header in proc_service.h thread_db.h gnu/libc-version.h
7804do
7805as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7806if eval "test \"\${$as_ac_Header+set}\" = set"; then
7807 echo "$as_me:$LINENO: checking for $ac_header" >&5
7808echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7809if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7810 echo $ECHO_N "(cached) $ECHO_C" >&6
7811fi
b4e70030
JB
7812echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7813echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7814else
7815 # Is the header compilable?
b4e70030
JB
7816echo "$as_me:$LINENO: checking $ac_header usability" >&5
7817echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7818cat >conftest.$ac_ext <<_ACEOF
7819/* confdefs.h. */
7820_ACEOF
7821cat confdefs.h >>conftest.$ac_ext
7822cat >>conftest.$ac_ext <<_ACEOF
436868fb
DP
7823/* end confdefs.h. */
7824$ac_includes_default
7825#include <$ac_header>
7826_ACEOF
7827rm -f conftest.$ac_objext
7828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7829 (eval $ac_compile) 2>conftest.er1
7830 ac_status=$?
7831 grep -v '^ *+' conftest.er1 >conftest.err
7832 rm -f conftest.er1
7833 cat conftest.err >&5
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); } &&
7836 { ac_try='test -z "$ac_c_werror_flag"
7837 || test ! -s conftest.err'
7838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7839 (eval $ac_try) 2>&5
7840 ac_status=$?
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); }; } &&
7843 { ac_try='test -s conftest.$ac_objext'
7844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7845 (eval $ac_try) 2>&5
7846 ac_status=$?
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); }; }; then
7849 ac_header_compiler=yes
7850else
7851 echo "$as_me: failed program was:" >&5
7852sed 's/^/| /' conftest.$ac_ext >&5
7853
7854ac_header_compiler=no
7855fi
7856rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7857echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7858echo "${ECHO_T}$ac_header_compiler" >&6
7859
7860# Is the header present?
7861echo "$as_me:$LINENO: checking $ac_header presence" >&5
7862echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7863cat >conftest.$ac_ext <<_ACEOF
7864/* confdefs.h. */
7865_ACEOF
7866cat confdefs.h >>conftest.$ac_ext
7867cat >>conftest.$ac_ext <<_ACEOF
7868/* end confdefs.h. */
7869#include <$ac_header>
7870_ACEOF
7871if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7872 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7873 ac_status=$?
7874 grep -v '^ *+' conftest.er1 >conftest.err
7875 rm -f conftest.er1
7876 cat conftest.err >&5
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); } >/dev/null; then
7879 if test -s conftest.err; then
7880 ac_cpp_err=$ac_c_preproc_warn_flag
7881 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7882 else
7883 ac_cpp_err=
7884 fi
7885else
7886 ac_cpp_err=yes
7887fi
7888if test -z "$ac_cpp_err"; then
7889 ac_header_preproc=yes
7890else
7891 echo "$as_me: failed program was:" >&5
7892sed 's/^/| /' conftest.$ac_ext >&5
7893
7894 ac_header_preproc=no
7895fi
7896rm -f conftest.err conftest.$ac_ext
7897echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7898echo "${ECHO_T}$ac_header_preproc" >&6
7899
7900# So? What about this header?
7901case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7902 yes:no: )
7903 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7904echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7906echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7907 ac_header_preproc=yes
7908 ;;
7909 no:yes:* )
7910 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7911echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7912 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7913echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7914 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7915echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7916 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7917echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7918 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7919echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7920 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7921echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7922 (
7923 cat <<\_ASBOX
7924## ------------------------------------------ ##
7925## Report this to the AC_PACKAGE_NAME lists. ##
7926## ------------------------------------------ ##
7927_ASBOX
7928 ) |
7929 sed "s/^/$as_me: WARNING: /" >&2
7930 ;;
7931esac
7932echo "$as_me:$LINENO: checking for $ac_header" >&5
7933echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7934if eval "test \"\${$as_ac_Header+set}\" = set"; then
7935 echo $ECHO_N "(cached) $ECHO_C" >&6
7936else
7937 eval "$as_ac_Header=\$ac_header_preproc"
7938fi
7939echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7940echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7941
7942fi
7943if test `eval echo '${'$as_ac_Header'}'` = yes; then
7944 cat >>confdefs.h <<_ACEOF
7945#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7946_ACEOF
7947
7948fi
7949
7950done
7951
7952
7953for ac_header in signal.h
7954do
7955as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7956if eval "test \"\${$as_ac_Header+set}\" = set"; then
7957 echo "$as_me:$LINENO: checking for $ac_header" >&5
7958echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7959if eval "test \"\${$as_ac_Header+set}\" = set"; then
7960 echo $ECHO_N "(cached) $ECHO_C" >&6
7961fi
7962echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7963echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7964else
7965 # Is the header compilable?
7966echo "$as_me:$LINENO: checking $ac_header usability" >&5
7967echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7968cat >conftest.$ac_ext <<_ACEOF
7969/* confdefs.h. */
7970_ACEOF
7971cat confdefs.h >>conftest.$ac_ext
7972cat >>conftest.$ac_ext <<_ACEOF
bec39cab
AC
7973/* end confdefs.h. */
7974$ac_includes_default
7975#include <$ac_header>
7976_ACEOF
7977rm -f conftest.$ac_objext
7978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7979 (eval $ac_compile) 2>conftest.er1
7980 ac_status=$?
7981 grep -v '^ *+' conftest.er1 >conftest.err
7982 rm -f conftest.er1
7983 cat conftest.err >&5
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); } &&
b4e70030
JB
7986 { ac_try='test -z "$ac_c_werror_flag"
7987 || test ! -s conftest.err'
bec39cab
AC
7988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7989 (eval $ac_try) 2>&5
7990 ac_status=$?
7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992 (exit $ac_status); }; } &&
7993 { ac_try='test -s conftest.$ac_objext'
7994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7995 (eval $ac_try) 2>&5
7996 ac_status=$?
7997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998 (exit $ac_status); }; }; then
7999 ac_header_compiler=yes
8000else
8001 echo "$as_me: failed program was:" >&5
8002sed 's/^/| /' conftest.$ac_ext >&5
8003
b4e70030 8004ac_header_compiler=no
bec39cab
AC
8005fi
8006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8007echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8008echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8009
8010# Is the header present?
b4e70030
JB
8011echo "$as_me:$LINENO: checking $ac_header presence" >&5
8012echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8013cat >conftest.$ac_ext <<_ACEOF
8014/* confdefs.h. */
8015_ACEOF
8016cat confdefs.h >>conftest.$ac_ext
8017cat >>conftest.$ac_ext <<_ACEOF
8018/* end confdefs.h. */
8019#include <$ac_header>
8020_ACEOF
8021if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8022 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8023 ac_status=$?
8024 grep -v '^ *+' conftest.er1 >conftest.err
8025 rm -f conftest.er1
8026 cat conftest.err >&5
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); } >/dev/null; then
8029 if test -s conftest.err; then
8030 ac_cpp_err=$ac_c_preproc_warn_flag
8031 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8032 else
8033 ac_cpp_err=
8034 fi
9a156167 8035else
bec39cab 8036 ac_cpp_err=yes
9a156167 8037fi
bec39cab
AC
8038if test -z "$ac_cpp_err"; then
8039 ac_header_preproc=yes
8040else
8041 echo "$as_me: failed program was:" >&5
8042sed 's/^/| /' conftest.$ac_ext >&5
9a156167 8043
bec39cab 8044 ac_header_preproc=no
9a156167 8045fi
bec39cab 8046rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8047echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8048echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 8049
bec39cab
AC
8050# So? What about this header?
8051case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8052 yes:no: )
8053 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8054echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8056echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8057 ac_header_preproc=yes
8058 ;;
8059 no:yes:* )
8060 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8061echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8062 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8063echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8064 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8065echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8066 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8067echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8069echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8070 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8071echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8072 (
8073 cat <<\_ASBOX
8074## ------------------------------------------ ##
8075## Report this to the AC_PACKAGE_NAME lists. ##
8076## ------------------------------------------ ##
8077_ASBOX
8078 ) |
8079 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8080 ;;
8081esac
b4e70030
JB
8082echo "$as_me:$LINENO: checking for $ac_header" >&5
8083echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8084if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8085 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 8086else
bec39cab 8087 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 8088fi
b4e70030
JB
8089echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8090echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167
MK
8091
8092fi
bec39cab
AC
8093if test `eval echo '${'$as_ac_Header'}'` = yes; then
8094 cat >>confdefs.h <<_ACEOF
8095#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8096_ACEOF
9a156167 8097
bec39cab
AC
8098fi
8099
8100done
9a156167 8101
c890192f 8102
bec39cab
AC
8103for ac_header in stddef.h
8104do
8105as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8106if eval "test \"\${$as_ac_Header+set}\" = set"; then
8107 echo "$as_me:$LINENO: checking for $ac_header" >&5
8108echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8109if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8110 echo $ECHO_N "(cached) $ECHO_C" >&6
8111fi
b4e70030
JB
8112echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8113echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8114else
8115 # Is the header compilable?
b4e70030
JB
8116echo "$as_me:$LINENO: checking $ac_header usability" >&5
8117echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8118cat >conftest.$ac_ext <<_ACEOF
8119/* confdefs.h. */
8120_ACEOF
8121cat confdefs.h >>conftest.$ac_ext
8122cat >>conftest.$ac_ext <<_ACEOF
8123/* end confdefs.h. */
8124$ac_includes_default
8125#include <$ac_header>
8126_ACEOF
8127rm -f conftest.$ac_objext
8128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8129 (eval $ac_compile) 2>conftest.er1
8130 ac_status=$?
8131 grep -v '^ *+' conftest.er1 >conftest.err
8132 rm -f conftest.er1
8133 cat conftest.err >&5
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); } &&
b4e70030
JB
8136 { ac_try='test -z "$ac_c_werror_flag"
8137 || test ! -s conftest.err'
bec39cab
AC
8138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8139 (eval $ac_try) 2>&5
8140 ac_status=$?
8141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142 (exit $ac_status); }; } &&
8143 { ac_try='test -s conftest.$ac_objext'
8144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8145 (eval $ac_try) 2>&5
8146 ac_status=$?
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); }; }; then
8149 ac_header_compiler=yes
8150else
8151 echo "$as_me: failed program was:" >&5
8152sed 's/^/| /' conftest.$ac_ext >&5
8153
b4e70030 8154ac_header_compiler=no
bec39cab
AC
8155fi
8156rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8157echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8158echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8159
8160# Is the header present?
b4e70030
JB
8161echo "$as_me:$LINENO: checking $ac_header presence" >&5
8162echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8163cat >conftest.$ac_ext <<_ACEOF
8164/* confdefs.h. */
8165_ACEOF
8166cat confdefs.h >>conftest.$ac_ext
8167cat >>conftest.$ac_ext <<_ACEOF
8168/* end confdefs.h. */
8169#include <$ac_header>
8170_ACEOF
8171if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8172 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8173 ac_status=$?
8174 grep -v '^ *+' conftest.er1 >conftest.err
8175 rm -f conftest.er1
8176 cat conftest.err >&5
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); } >/dev/null; then
8179 if test -s conftest.err; then
8180 ac_cpp_err=$ac_c_preproc_warn_flag
8181 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8182 else
8183 ac_cpp_err=
8184 fi
c890192f 8185else
bec39cab
AC
8186 ac_cpp_err=yes
8187fi
8188if test -z "$ac_cpp_err"; then
8189 ac_header_preproc=yes
c890192f 8190else
bec39cab
AC
8191 echo "$as_me: failed program was:" >&5
8192sed 's/^/| /' conftest.$ac_ext >&5
8193
8194 ac_header_preproc=no
c890192f 8195fi
bec39cab 8196rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8197echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8198echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8199
8200# So? What about this header?
8201case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8202 yes:no: )
8203 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8204echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8206echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8207 ac_header_preproc=yes
8208 ;;
8209 no:yes:* )
8210 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8211echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8212 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8213echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8214 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8215echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8216 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8217echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8219echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8220 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8221echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8222 (
8223 cat <<\_ASBOX
8224## ------------------------------------------ ##
8225## Report this to the AC_PACKAGE_NAME lists. ##
8226## ------------------------------------------ ##
8227_ASBOX
8228 ) |
8229 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8230 ;;
8231esac
b4e70030
JB
8232echo "$as_me:$LINENO: checking for $ac_header" >&5
8233echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8234if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8235 echo $ECHO_N "(cached) $ECHO_C" >&6
c890192f 8236else
bec39cab 8237 eval "$as_ac_Header=\$ac_header_preproc"
c890192f 8238fi
b4e70030
JB
8239echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8240echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 8241
c890192f 8242fi
bec39cab
AC
8243if test `eval echo '${'$as_ac_Header'}'` = yes; then
8244 cat >>confdefs.h <<_ACEOF
8245#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8246_ACEOF
c890192f 8247
c890192f
MK
8248fi
8249
bec39cab 8250done
9a156167 8251
bec39cab
AC
8252
8253for ac_header in stdlib.h
8254do
8255as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8256if eval "test \"\${$as_ac_Header+set}\" = set"; then
8257 echo "$as_me:$LINENO: checking for $ac_header" >&5
8258echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8259if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8260 echo $ECHO_N "(cached) $ECHO_C" >&6
8261fi
b4e70030
JB
8262echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8263echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8264else
8265 # Is the header compilable?
b4e70030
JB
8266echo "$as_me:$LINENO: checking $ac_header usability" >&5
8267echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8268cat >conftest.$ac_ext <<_ACEOF
8269/* confdefs.h. */
8270_ACEOF
8271cat confdefs.h >>conftest.$ac_ext
8272cat >>conftest.$ac_ext <<_ACEOF
8273/* end confdefs.h. */
8274$ac_includes_default
8275#include <$ac_header>
8276_ACEOF
8277rm -f conftest.$ac_objext
8278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8279 (eval $ac_compile) 2>conftest.er1
8280 ac_status=$?
8281 grep -v '^ *+' conftest.er1 >conftest.err
8282 rm -f conftest.er1
8283 cat conftest.err >&5
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); } &&
b4e70030
JB
8286 { ac_try='test -z "$ac_c_werror_flag"
8287 || test ! -s conftest.err'
bec39cab
AC
8288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8289 (eval $ac_try) 2>&5
8290 ac_status=$?
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); }; } &&
8293 { ac_try='test -s conftest.$ac_objext'
8294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8295 (eval $ac_try) 2>&5
8296 ac_status=$?
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); }; }; then
8299 ac_header_compiler=yes
8300else
8301 echo "$as_me: failed program was:" >&5
8302sed 's/^/| /' conftest.$ac_ext >&5
8303
b4e70030 8304ac_header_compiler=no
bec39cab
AC
8305fi
8306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8307echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8308echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8309
8310# Is the header present?
b4e70030
JB
8311echo "$as_me:$LINENO: checking $ac_header presence" >&5
8312echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8313cat >conftest.$ac_ext <<_ACEOF
8314/* confdefs.h. */
8315_ACEOF
8316cat confdefs.h >>conftest.$ac_ext
8317cat >>conftest.$ac_ext <<_ACEOF
8318/* end confdefs.h. */
8319#include <$ac_header>
8320_ACEOF
8321if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8323 ac_status=$?
8324 grep -v '^ *+' conftest.er1 >conftest.err
8325 rm -f conftest.er1
8326 cat conftest.err >&5
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); } >/dev/null; then
8329 if test -s conftest.err; then
8330 ac_cpp_err=$ac_c_preproc_warn_flag
8331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8332 else
8333 ac_cpp_err=
8334 fi
9a156167 8335else
bec39cab
AC
8336 ac_cpp_err=yes
8337fi
8338if test -z "$ac_cpp_err"; then
8339 ac_header_preproc=yes
9a156167 8340else
bec39cab
AC
8341 echo "$as_me: failed program was:" >&5
8342sed 's/^/| /' conftest.$ac_ext >&5
8343
8344 ac_header_preproc=no
9a156167 8345fi
bec39cab 8346rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8347echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8348echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8349
8350# So? What about this header?
8351case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8352 yes:no: )
8353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8354echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8356echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8357 ac_header_preproc=yes
8358 ;;
8359 no:yes:* )
8360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8361echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8363echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8364 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8365echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8366 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8367echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8369echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8370 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8371echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8372 (
8373 cat <<\_ASBOX
8374## ------------------------------------------ ##
8375## Report this to the AC_PACKAGE_NAME lists. ##
8376## ------------------------------------------ ##
8377_ASBOX
8378 ) |
8379 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8380 ;;
8381esac
b4e70030
JB
8382echo "$as_me:$LINENO: checking for $ac_header" >&5
8383echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8384if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8385 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 8386else
bec39cab 8387 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 8388fi
b4e70030
JB
8389echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8390echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 8391
9a156167 8392fi
bec39cab
AC
8393if test `eval echo '${'$as_ac_Header'}'` = yes; then
8394 cat >>confdefs.h <<_ACEOF
8395#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8396_ACEOF
9a156167 8397
9a156167
MK
8398fi
8399
bec39cab
AC
8400done
8401
06825bd1 8402
bec39cab
AC
8403for ac_header in stdint.h
8404do
8405as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8406if eval "test \"\${$as_ac_Header+set}\" = set"; then
8407 echo "$as_me:$LINENO: checking for $ac_header" >&5
8408echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8409if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8410 echo $ECHO_N "(cached) $ECHO_C" >&6
8411fi
b4e70030
JB
8412echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8413echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8414else
8415 # Is the header compilable?
b4e70030
JB
8416echo "$as_me:$LINENO: checking $ac_header usability" >&5
8417echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8418cat >conftest.$ac_ext <<_ACEOF
8419/* confdefs.h. */
8420_ACEOF
8421cat confdefs.h >>conftest.$ac_ext
8422cat >>conftest.$ac_ext <<_ACEOF
8423/* end confdefs.h. */
8424$ac_includes_default
8425#include <$ac_header>
8426_ACEOF
8427rm -f conftest.$ac_objext
8428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8429 (eval $ac_compile) 2>conftest.er1
8430 ac_status=$?
8431 grep -v '^ *+' conftest.er1 >conftest.err
8432 rm -f conftest.er1
8433 cat conftest.err >&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); } &&
b4e70030
JB
8436 { ac_try='test -z "$ac_c_werror_flag"
8437 || test ! -s conftest.err'
bec39cab
AC
8438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8439 (eval $ac_try) 2>&5
8440 ac_status=$?
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); }; } &&
8443 { ac_try='test -s conftest.$ac_objext'
8444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8445 (eval $ac_try) 2>&5
8446 ac_status=$?
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); }; }; then
8449 ac_header_compiler=yes
8450else
8451 echo "$as_me: failed program was:" >&5
8452sed 's/^/| /' conftest.$ac_ext >&5
8453
b4e70030 8454ac_header_compiler=no
bec39cab
AC
8455fi
8456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8457echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8458echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8459
8460# Is the header present?
b4e70030
JB
8461echo "$as_me:$LINENO: checking $ac_header presence" >&5
8462echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8463cat >conftest.$ac_ext <<_ACEOF
8464/* confdefs.h. */
8465_ACEOF
8466cat confdefs.h >>conftest.$ac_ext
8467cat >>conftest.$ac_ext <<_ACEOF
8468/* end confdefs.h. */
8469#include <$ac_header>
8470_ACEOF
8471if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8472 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8473 ac_status=$?
8474 grep -v '^ *+' conftest.er1 >conftest.err
8475 rm -f conftest.er1
8476 cat conftest.err >&5
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); } >/dev/null; then
8479 if test -s conftest.err; then
8480 ac_cpp_err=$ac_c_preproc_warn_flag
8481 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8482 else
8483 ac_cpp_err=
8484 fi
06825bd1 8485else
bec39cab
AC
8486 ac_cpp_err=yes
8487fi
8488if test -z "$ac_cpp_err"; then
8489 ac_header_preproc=yes
06825bd1 8490else
bec39cab
AC
8491 echo "$as_me: failed program was:" >&5
8492sed 's/^/| /' conftest.$ac_ext >&5
8493
8494 ac_header_preproc=no
06825bd1 8495fi
bec39cab 8496rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8497echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8498echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8499
8500# So? What about this header?
8501case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8502 yes:no: )
8503 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8504echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8506echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8507 ac_header_preproc=yes
8508 ;;
8509 no:yes:* )
8510 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8511echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8512 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8513echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8514 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8515echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8516 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8517echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8519echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8520 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8521echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8522 (
8523 cat <<\_ASBOX
8524## ------------------------------------------ ##
8525## Report this to the AC_PACKAGE_NAME lists. ##
8526## ------------------------------------------ ##
8527_ASBOX
8528 ) |
8529 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8530 ;;
8531esac
b4e70030
JB
8532echo "$as_me:$LINENO: checking for $ac_header" >&5
8533echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8534if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8535 echo $ECHO_N "(cached) $ECHO_C" >&6
06825bd1 8536else
bec39cab 8537 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 8538fi
b4e70030
JB
8539echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8540echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 8541
06825bd1 8542fi
bec39cab
AC
8543if test `eval echo '${'$as_ac_Header'}'` = yes; then
8544 cat >>confdefs.h <<_ACEOF
8545#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8546_ACEOF
06825bd1 8547
06825bd1 8548fi
4f0be353 8549
bec39cab 8550done
4f0be353 8551
06825bd1 8552
06825bd1 8553
bec39cab
AC
8554
8555for ac_header in string.h memory.h strings.h
8556do
8557as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8558if eval "test \"\${$as_ac_Header+set}\" = set"; then
8559 echo "$as_me:$LINENO: checking for $ac_header" >&5
8560echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8561if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8562 echo $ECHO_N "(cached) $ECHO_C" >&6
8563fi
b4e70030
JB
8564echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8565echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8566else
8567 # Is the header compilable?
b4e70030
JB
8568echo "$as_me:$LINENO: checking $ac_header usability" >&5
8569echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8570cat >conftest.$ac_ext <<_ACEOF
8571/* confdefs.h. */
8572_ACEOF
8573cat confdefs.h >>conftest.$ac_ext
8574cat >>conftest.$ac_ext <<_ACEOF
8575/* end confdefs.h. */
8576$ac_includes_default
8577#include <$ac_header>
8578_ACEOF
8579rm -f conftest.$ac_objext
8580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8581 (eval $ac_compile) 2>conftest.er1
8582 ac_status=$?
8583 grep -v '^ *+' conftest.er1 >conftest.err
8584 rm -f conftest.er1
8585 cat conftest.err >&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); } &&
b4e70030
JB
8588 { ac_try='test -z "$ac_c_werror_flag"
8589 || test ! -s conftest.err'
bec39cab
AC
8590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8591 (eval $ac_try) 2>&5
8592 ac_status=$?
8593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8594 (exit $ac_status); }; } &&
8595 { ac_try='test -s conftest.$ac_objext'
8596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8597 (eval $ac_try) 2>&5
8598 ac_status=$?
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); }; }; then
8601 ac_header_compiler=yes
8602else
8603 echo "$as_me: failed program was:" >&5
8604sed 's/^/| /' conftest.$ac_ext >&5
8605
b4e70030 8606ac_header_compiler=no
bec39cab
AC
8607fi
8608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8609echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8610echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8611
8612# Is the header present?
b4e70030
JB
8613echo "$as_me:$LINENO: checking $ac_header presence" >&5
8614echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8615cat >conftest.$ac_ext <<_ACEOF
8616/* confdefs.h. */
8617_ACEOF
8618cat confdefs.h >>conftest.$ac_ext
8619cat >>conftest.$ac_ext <<_ACEOF
8620/* end confdefs.h. */
8621#include <$ac_header>
8622_ACEOF
8623if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8624 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8625 ac_status=$?
8626 grep -v '^ *+' conftest.er1 >conftest.err
8627 rm -f conftest.er1
8628 cat conftest.err >&5
8629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630 (exit $ac_status); } >/dev/null; then
8631 if test -s conftest.err; then
8632 ac_cpp_err=$ac_c_preproc_warn_flag
8633 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8634 else
8635 ac_cpp_err=
8636 fi
06825bd1 8637else
bec39cab
AC
8638 ac_cpp_err=yes
8639fi
8640if test -z "$ac_cpp_err"; then
8641 ac_header_preproc=yes
06825bd1 8642else
bec39cab
AC
8643 echo "$as_me: failed program was:" >&5
8644sed 's/^/| /' conftest.$ac_ext >&5
8645
8646 ac_header_preproc=no
06825bd1 8647fi
bec39cab 8648rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8649echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8650echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8651
8652# So? What about this header?
8653case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8654 yes:no: )
8655 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8656echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8658echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8659 ac_header_preproc=yes
8660 ;;
8661 no:yes:* )
8662 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8663echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8664 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8665echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8666 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8667echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8668 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8669echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8671echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8672 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8673echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8674 (
8675 cat <<\_ASBOX
8676## ------------------------------------------ ##
8677## Report this to the AC_PACKAGE_NAME lists. ##
8678## ------------------------------------------ ##
8679_ASBOX
8680 ) |
8681 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8682 ;;
8683esac
b4e70030
JB
8684echo "$as_me:$LINENO: checking for $ac_header" >&5
8685echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8686if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8687 echo $ECHO_N "(cached) $ECHO_C" >&6
8688else
8689 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 8690fi
b4e70030
JB
8691echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8692echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
06825bd1 8693
06825bd1 8694fi
bec39cab
AC
8695if test `eval echo '${'$as_ac_Header'}'` = yes; then
8696 cat >>confdefs.h <<_ACEOF
8697#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8698_ACEOF
06825bd1 8699
06825bd1
MK
8700fi
8701
bec39cab 8702done
5ee754fc 8703
bec39cab
AC
8704
8705for ac_header in sys/fault.h
5ee754fc 8706do
bec39cab 8707as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8708if eval "test \"\${$as_ac_Header+set}\" = set"; then
8709 echo "$as_me:$LINENO: checking for $ac_header" >&5
8710echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8711if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8712 echo $ECHO_N "(cached) $ECHO_C" >&6
8713fi
b4e70030
JB
8714echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8715echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8716else
8717 # Is the header compilable?
b4e70030
JB
8718echo "$as_me:$LINENO: checking $ac_header usability" >&5
8719echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8720cat >conftest.$ac_ext <<_ACEOF
8721/* confdefs.h. */
8722_ACEOF
8723cat confdefs.h >>conftest.$ac_ext
8724cat >>conftest.$ac_ext <<_ACEOF
8725/* end confdefs.h. */
8726$ac_includes_default
8727#include <$ac_header>
8728_ACEOF
8729rm -f conftest.$ac_objext
8730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8731 (eval $ac_compile) 2>conftest.er1
8732 ac_status=$?
8733 grep -v '^ *+' conftest.er1 >conftest.err
8734 rm -f conftest.er1
8735 cat conftest.err >&5
8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737 (exit $ac_status); } &&
b4e70030
JB
8738 { ac_try='test -z "$ac_c_werror_flag"
8739 || test ! -s conftest.err'
bec39cab
AC
8740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8741 (eval $ac_try) 2>&5
8742 ac_status=$?
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); }; } &&
8745 { ac_try='test -s conftest.$ac_objext'
8746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8747 (eval $ac_try) 2>&5
8748 ac_status=$?
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); }; }; then
8751 ac_header_compiler=yes
8752else
8753 echo "$as_me: failed program was:" >&5
8754sed 's/^/| /' conftest.$ac_ext >&5
8755
b4e70030 8756ac_header_compiler=no
bec39cab
AC
8757fi
8758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8759echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8760echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8761
8762# Is the header present?
b4e70030
JB
8763echo "$as_me:$LINENO: checking $ac_header presence" >&5
8764echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8765cat >conftest.$ac_ext <<_ACEOF
8766/* confdefs.h. */
8767_ACEOF
8768cat confdefs.h >>conftest.$ac_ext
8769cat >>conftest.$ac_ext <<_ACEOF
8770/* end confdefs.h. */
8771#include <$ac_header>
8772_ACEOF
8773if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8774 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8775 ac_status=$?
8776 grep -v '^ *+' conftest.er1 >conftest.err
8777 rm -f conftest.er1
8778 cat conftest.err >&5
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); } >/dev/null; then
8781 if test -s conftest.err; then
8782 ac_cpp_err=$ac_c_preproc_warn_flag
8783 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8784 else
8785 ac_cpp_err=
8786 fi
5ee754fc 8787else
bec39cab 8788 ac_cpp_err=yes
5ee754fc 8789fi
bec39cab
AC
8790if test -z "$ac_cpp_err"; then
8791 ac_header_preproc=yes
8792else
8793 echo "$as_me: failed program was:" >&5
8794sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 8795
bec39cab 8796 ac_header_preproc=no
5ee754fc 8797fi
bec39cab 8798rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8799echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8800echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8801
8802# So? What about this header?
8803case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8804 yes:no: )
8805 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8806echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8808echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8809 ac_header_preproc=yes
8810 ;;
8811 no:yes:* )
8812 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8813echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8814 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8815echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8816 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8817echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8818 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8819echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8821echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8822 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8823echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8824 (
8825 cat <<\_ASBOX
8826## ------------------------------------------ ##
8827## Report this to the AC_PACKAGE_NAME lists. ##
8828## ------------------------------------------ ##
8829_ASBOX
8830 ) |
8831 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8832 ;;
8833esac
b4e70030
JB
8834echo "$as_me:$LINENO: checking for $ac_header" >&5
8835echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8836if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8837 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 8838else
bec39cab 8839 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 8840fi
b4e70030
JB
8841echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8842echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c906108c 8843
5ee754fc 8844fi
bec39cab
AC
8845if test `eval echo '${'$as_ac_Header'}'` = yes; then
8846 cat >>confdefs.h <<_ACEOF
8847#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8848_ACEOF
c906108c 8849
5ee754fc 8850fi
bec39cab
AC
8851
8852done
8853
8854
8855for ac_header in sys/file.h
8856do
8857as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8858if eval "test \"\${$as_ac_Header+set}\" = set"; then
8859 echo "$as_me:$LINENO: checking for $ac_header" >&5
8860echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8861if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8862 echo $ECHO_N "(cached) $ECHO_C" >&6
8863fi
b4e70030
JB
8864echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8865echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8866else
8867 # Is the header compilable?
b4e70030
JB
8868echo "$as_me:$LINENO: checking $ac_header usability" >&5
8869echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8870cat >conftest.$ac_ext <<_ACEOF
8871/* confdefs.h. */
8872_ACEOF
8873cat confdefs.h >>conftest.$ac_ext
8874cat >>conftest.$ac_ext <<_ACEOF
8875/* end confdefs.h. */
8876$ac_includes_default
8877#include <$ac_header>
8878_ACEOF
8879rm -f conftest.$ac_objext
8880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8881 (eval $ac_compile) 2>conftest.er1
8882 ac_status=$?
8883 grep -v '^ *+' conftest.er1 >conftest.err
8884 rm -f conftest.er1
8885 cat conftest.err >&5
8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 (exit $ac_status); } &&
b4e70030
JB
8888 { ac_try='test -z "$ac_c_werror_flag"
8889 || test ! -s conftest.err'
bec39cab
AC
8890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8891 (eval $ac_try) 2>&5
8892 ac_status=$?
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); }; } &&
8895 { ac_try='test -s conftest.$ac_objext'
8896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8897 (eval $ac_try) 2>&5
8898 ac_status=$?
8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); }; }; then
8901 ac_header_compiler=yes
8902else
8903 echo "$as_me: failed program was:" >&5
8904sed 's/^/| /' conftest.$ac_ext >&5
8905
b4e70030 8906ac_header_compiler=no
bec39cab
AC
8907fi
8908rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8909echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8910echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8911
8912# Is the header present?
b4e70030
JB
8913echo "$as_me:$LINENO: checking $ac_header presence" >&5
8914echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8915cat >conftest.$ac_ext <<_ACEOF
8916/* confdefs.h. */
8917_ACEOF
8918cat confdefs.h >>conftest.$ac_ext
8919cat >>conftest.$ac_ext <<_ACEOF
8920/* end confdefs.h. */
8921#include <$ac_header>
8922_ACEOF
8923if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8924 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8925 ac_status=$?
8926 grep -v '^ *+' conftest.er1 >conftest.err
8927 rm -f conftest.er1
8928 cat conftest.err >&5
8929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); } >/dev/null; then
8931 if test -s conftest.err; then
8932 ac_cpp_err=$ac_c_preproc_warn_flag
8933 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8934 else
8935 ac_cpp_err=
8936 fi
5ee754fc 8937else
bec39cab 8938 ac_cpp_err=yes
5ee754fc 8939fi
bec39cab
AC
8940if test -z "$ac_cpp_err"; then
8941 ac_header_preproc=yes
8942else
8943 echo "$as_me: failed program was:" >&5
8944sed 's/^/| /' conftest.$ac_ext >&5
c906108c 8945
bec39cab 8946 ac_header_preproc=no
5ee754fc 8947fi
bec39cab 8948rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8949echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8950echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 8951
bec39cab
AC
8952# So? What about this header?
8953case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8954 yes:no: )
8955 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8956echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8958echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8959 ac_header_preproc=yes
8960 ;;
8961 no:yes:* )
8962 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8963echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8964 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8965echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8966 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8967echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8968 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8969echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8971echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8972 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8973echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8974 (
8975 cat <<\_ASBOX
8976## ------------------------------------------ ##
8977## Report this to the AC_PACKAGE_NAME lists. ##
8978## ------------------------------------------ ##
8979_ASBOX
8980 ) |
8981 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8982 ;;
8983esac
b4e70030
JB
8984echo "$as_me:$LINENO: checking for $ac_header" >&5
8985echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8986if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8987 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 8988else
bec39cab
AC
8989 eval "$as_ac_Header=\$ac_header_preproc"
8990fi
b4e70030
JB
8991echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8992echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 8993
bec39cab
AC
8994fi
8995if test `eval echo '${'$as_ac_Header'}'` = yes; then
8996 cat >>confdefs.h <<_ACEOF
8997#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8998_ACEOF
5ee754fc 8999
bec39cab 9000fi
5ee754fc 9001
bec39cab 9002done
5ee754fc 9003
5ee754fc 9004
bec39cab
AC
9005for ac_header in sys/filio.h
9006do
9007as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9008if eval "test \"\${$as_ac_Header+set}\" = set"; then
9009 echo "$as_me:$LINENO: checking for $ac_header" >&5
9010echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9011if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9012 echo $ECHO_N "(cached) $ECHO_C" >&6
9013fi
b4e70030
JB
9014echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9015echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9016else
9017 # Is the header compilable?
b4e70030
JB
9018echo "$as_me:$LINENO: checking $ac_header usability" >&5
9019echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9020cat >conftest.$ac_ext <<_ACEOF
9021/* confdefs.h. */
9022_ACEOF
9023cat confdefs.h >>conftest.$ac_ext
9024cat >>conftest.$ac_ext <<_ACEOF
9025/* end confdefs.h. */
9026$ac_includes_default
9027#include <$ac_header>
9028_ACEOF
9029rm -f conftest.$ac_objext
9030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9031 (eval $ac_compile) 2>conftest.er1
9032 ac_status=$?
9033 grep -v '^ *+' conftest.er1 >conftest.err
9034 rm -f conftest.er1
9035 cat conftest.err >&5
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); } &&
b4e70030
JB
9038 { ac_try='test -z "$ac_c_werror_flag"
9039 || test ! -s conftest.err'
bec39cab
AC
9040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9041 (eval $ac_try) 2>&5
9042 ac_status=$?
9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); }; } &&
9045 { ac_try='test -s conftest.$ac_objext'
9046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9047 (eval $ac_try) 2>&5
9048 ac_status=$?
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 (exit $ac_status); }; }; then
9051 ac_header_compiler=yes
9052else
9053 echo "$as_me: failed program was:" >&5
9054sed 's/^/| /' conftest.$ac_ext >&5
9055
b4e70030 9056ac_header_compiler=no
bec39cab
AC
9057fi
9058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9059echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9060echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9061
9062# Is the header present?
b4e70030
JB
9063echo "$as_me:$LINENO: checking $ac_header presence" >&5
9064echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9065cat >conftest.$ac_ext <<_ACEOF
9066/* confdefs.h. */
9067_ACEOF
9068cat confdefs.h >>conftest.$ac_ext
9069cat >>conftest.$ac_ext <<_ACEOF
9070/* end confdefs.h. */
9071#include <$ac_header>
9072_ACEOF
9073if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9074 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9075 ac_status=$?
9076 grep -v '^ *+' conftest.er1 >conftest.err
9077 rm -f conftest.er1
9078 cat conftest.err >&5
9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 (exit $ac_status); } >/dev/null; then
9081 if test -s conftest.err; then
9082 ac_cpp_err=$ac_c_preproc_warn_flag
9083 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9084 else
9085 ac_cpp_err=
9086 fi
5ee754fc 9087else
bec39cab 9088 ac_cpp_err=yes
5ee754fc 9089fi
bec39cab
AC
9090if test -z "$ac_cpp_err"; then
9091 ac_header_preproc=yes
9092else
9093 echo "$as_me: failed program was:" >&5
9094sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 9095
bec39cab 9096 ac_header_preproc=no
5ee754fc 9097fi
bec39cab 9098rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9099echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9100echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9101
bec39cab
AC
9102# So? What about this header?
9103case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9104 yes:no: )
9105 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9106echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9108echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9109 ac_header_preproc=yes
9110 ;;
9111 no:yes:* )
9112 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9113echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9114 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9115echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9116 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9117echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9118 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9119echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9120 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9121echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9122 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9123echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9124 (
9125 cat <<\_ASBOX
9126## ------------------------------------------ ##
9127## Report this to the AC_PACKAGE_NAME lists. ##
9128## ------------------------------------------ ##
9129_ASBOX
9130 ) |
9131 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9132 ;;
9133esac
b4e70030
JB
9134echo "$as_me:$LINENO: checking for $ac_header" >&5
9135echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9136if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 9137 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 9138else
bec39cab 9139 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9140fi
b4e70030
JB
9141echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9142echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 9143
5ee754fc 9144fi
bec39cab
AC
9145if test `eval echo '${'$as_ac_Header'}'` = yes; then
9146 cat >>confdefs.h <<_ACEOF
9147#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9148_ACEOF
5ee754fc
MK
9149
9150fi
9151
bec39cab
AC
9152done
9153
9154
9155for ac_header in sys/ioctl.h
9156do
9157as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9158if eval "test \"\${$as_ac_Header+set}\" = set"; then
9159 echo "$as_me:$LINENO: checking for $ac_header" >&5
9160echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9161if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9162 echo $ECHO_N "(cached) $ECHO_C" >&6
9163fi
b4e70030
JB
9164echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9165echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9166else
9167 # Is the header compilable?
b4e70030
JB
9168echo "$as_me:$LINENO: checking $ac_header usability" >&5
9169echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9170cat >conftest.$ac_ext <<_ACEOF
9171/* confdefs.h. */
9172_ACEOF
9173cat confdefs.h >>conftest.$ac_ext
9174cat >>conftest.$ac_ext <<_ACEOF
9175/* end confdefs.h. */
9176$ac_includes_default
9177#include <$ac_header>
9178_ACEOF
9179rm -f conftest.$ac_objext
9180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9181 (eval $ac_compile) 2>conftest.er1
9182 ac_status=$?
9183 grep -v '^ *+' conftest.er1 >conftest.err
9184 rm -f conftest.er1
9185 cat conftest.err >&5
9186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187 (exit $ac_status); } &&
b4e70030
JB
9188 { ac_try='test -z "$ac_c_werror_flag"
9189 || test ! -s conftest.err'
bec39cab
AC
9190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9191 (eval $ac_try) 2>&5
9192 ac_status=$?
9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194 (exit $ac_status); }; } &&
9195 { ac_try='test -s conftest.$ac_objext'
9196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9197 (eval $ac_try) 2>&5
9198 ac_status=$?
9199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200 (exit $ac_status); }; }; then
9201 ac_header_compiler=yes
9202else
9203 echo "$as_me: failed program was:" >&5
9204sed 's/^/| /' conftest.$ac_ext >&5
9205
b4e70030 9206ac_header_compiler=no
bec39cab
AC
9207fi
9208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9209echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9210echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9211
9212# Is the header present?
b4e70030
JB
9213echo "$as_me:$LINENO: checking $ac_header presence" >&5
9214echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9215cat >conftest.$ac_ext <<_ACEOF
9216/* confdefs.h. */
9217_ACEOF
9218cat confdefs.h >>conftest.$ac_ext
9219cat >>conftest.$ac_ext <<_ACEOF
9220/* end confdefs.h. */
9221#include <$ac_header>
9222_ACEOF
9223if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9224 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9225 ac_status=$?
9226 grep -v '^ *+' conftest.er1 >conftest.err
9227 rm -f conftest.er1
9228 cat conftest.err >&5
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); } >/dev/null; then
9231 if test -s conftest.err; then
9232 ac_cpp_err=$ac_c_preproc_warn_flag
9233 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9234 else
9235 ac_cpp_err=
9236 fi
5ee754fc 9237else
bec39cab 9238 ac_cpp_err=yes
5ee754fc 9239fi
bec39cab
AC
9240if test -z "$ac_cpp_err"; then
9241 ac_header_preproc=yes
9242else
9243 echo "$as_me: failed program was:" >&5
9244sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 9245
bec39cab 9246 ac_header_preproc=no
5ee754fc 9247fi
bec39cab 9248rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9249echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9250echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9251
bec39cab
AC
9252# So? What about this header?
9253case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9254 yes:no: )
9255 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9256echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9258echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9259 ac_header_preproc=yes
9260 ;;
9261 no:yes:* )
9262 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9263echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9264 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9265echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9266 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9267echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9268 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9269echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9271echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9272 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9273echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9274 (
9275 cat <<\_ASBOX
9276## ------------------------------------------ ##
9277## Report this to the AC_PACKAGE_NAME lists. ##
9278## ------------------------------------------ ##
9279_ASBOX
9280 ) |
9281 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9282 ;;
9283esac
b4e70030
JB
9284echo "$as_me:$LINENO: checking for $ac_header" >&5
9285echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9286if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 9287 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 9288else
bec39cab 9289 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9290fi
b4e70030
JB
9291echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9292echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc
MK
9293
9294fi
bec39cab
AC
9295if test `eval echo '${'$as_ac_Header'}'` = yes; then
9296 cat >>confdefs.h <<_ACEOF
9297#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9298_ACEOF
9299
5ee754fc
MK
9300fi
9301
bec39cab 9302done
5ee754fc 9303
5ee754fc 9304
bec39cab 9305for ac_header in sys/param.h
5ee754fc 9306do
bec39cab 9307as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9308if eval "test \"\${$as_ac_Header+set}\" = set"; then
9309 echo "$as_me:$LINENO: checking for $ac_header" >&5
9310echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9311if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9312 echo $ECHO_N "(cached) $ECHO_C" >&6
9313fi
b4e70030
JB
9314echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9315echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9316else
9317 # Is the header compilable?
b4e70030
JB
9318echo "$as_me:$LINENO: checking $ac_header usability" >&5
9319echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9320cat >conftest.$ac_ext <<_ACEOF
9321/* confdefs.h. */
9322_ACEOF
9323cat confdefs.h >>conftest.$ac_ext
9324cat >>conftest.$ac_ext <<_ACEOF
9325/* end confdefs.h. */
9326$ac_includes_default
9327#include <$ac_header>
9328_ACEOF
9329rm -f conftest.$ac_objext
9330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9331 (eval $ac_compile) 2>conftest.er1
9332 ac_status=$?
9333 grep -v '^ *+' conftest.er1 >conftest.err
9334 rm -f conftest.er1
9335 cat conftest.err >&5
9336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337 (exit $ac_status); } &&
b4e70030
JB
9338 { ac_try='test -z "$ac_c_werror_flag"
9339 || test ! -s conftest.err'
bec39cab
AC
9340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9341 (eval $ac_try) 2>&5
9342 ac_status=$?
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); }; } &&
9345 { ac_try='test -s conftest.$ac_objext'
9346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9347 (eval $ac_try) 2>&5
9348 ac_status=$?
9349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350 (exit $ac_status); }; }; then
9351 ac_header_compiler=yes
9352else
9353 echo "$as_me: failed program was:" >&5
9354sed 's/^/| /' conftest.$ac_ext >&5
9355
b4e70030 9356ac_header_compiler=no
bec39cab
AC
9357fi
9358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9359echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9360echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9361
9362# Is the header present?
b4e70030
JB
9363echo "$as_me:$LINENO: checking $ac_header presence" >&5
9364echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9365cat >conftest.$ac_ext <<_ACEOF
9366/* confdefs.h. */
9367_ACEOF
9368cat confdefs.h >>conftest.$ac_ext
9369cat >>conftest.$ac_ext <<_ACEOF
9370/* end confdefs.h. */
9371#include <$ac_header>
9372_ACEOF
9373if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9374 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9375 ac_status=$?
9376 grep -v '^ *+' conftest.er1 >conftest.err
9377 rm -f conftest.er1
9378 cat conftest.err >&5
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); } >/dev/null; then
9381 if test -s conftest.err; then
9382 ac_cpp_err=$ac_c_preproc_warn_flag
9383 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9384 else
9385 ac_cpp_err=
9386 fi
5ee754fc 9387else
bec39cab 9388 ac_cpp_err=yes
5ee754fc 9389fi
bec39cab
AC
9390if test -z "$ac_cpp_err"; then
9391 ac_header_preproc=yes
9392else
9393 echo "$as_me: failed program was:" >&5
9394sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 9395
bec39cab 9396 ac_header_preproc=no
5ee754fc 9397fi
bec39cab 9398rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9399echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9400echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
9401
9402# So? What about this header?
9403case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9404 yes:no: )
9405 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9406echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9408echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9409 ac_header_preproc=yes
9410 ;;
9411 no:yes:* )
9412 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9413echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9414 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9415echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9416 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9417echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9418 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9419echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9421echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9422 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9423echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9424 (
9425 cat <<\_ASBOX
9426## ------------------------------------------ ##
9427## Report this to the AC_PACKAGE_NAME lists. ##
9428## ------------------------------------------ ##
9429_ASBOX
9430 ) |
9431 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9432 ;;
9433esac
b4e70030
JB
9434echo "$as_me:$LINENO: checking for $ac_header" >&5
9435echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9436if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 9437 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 9438else
bec39cab 9439 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9440fi
b4e70030
JB
9441echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9442echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 9443
5ee754fc 9444fi
bec39cab
AC
9445if test `eval echo '${'$as_ac_Header'}'` = yes; then
9446 cat >>confdefs.h <<_ACEOF
9447#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9448_ACEOF
9449
5ee754fc 9450fi
bec39cab 9451
5ee754fc
MK
9452done
9453
bec39cab 9454
7eb368b3
NR
9455for ac_header in sys/resource.h
9456do
9457as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9458if eval "test \"\${$as_ac_Header+set}\" = set"; then
9459 echo "$as_me:$LINENO: checking for $ac_header" >&5
9460echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9461if eval "test \"\${$as_ac_Header+set}\" = set"; then
9462 echo $ECHO_N "(cached) $ECHO_C" >&6
9463fi
9464echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9465echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9466else
9467 # Is the header compilable?
9468echo "$as_me:$LINENO: checking $ac_header usability" >&5
9469echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9470cat >conftest.$ac_ext <<_ACEOF
9471/* confdefs.h. */
9472_ACEOF
9473cat confdefs.h >>conftest.$ac_ext
9474cat >>conftest.$ac_ext <<_ACEOF
9475/* end confdefs.h. */
9476$ac_includes_default
9477#include <$ac_header>
9478_ACEOF
9479rm -f conftest.$ac_objext
9480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9481 (eval $ac_compile) 2>conftest.er1
9482 ac_status=$?
9483 grep -v '^ *+' conftest.er1 >conftest.err
9484 rm -f conftest.er1
9485 cat conftest.err >&5
9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); } &&
9488 { ac_try='test -z "$ac_c_werror_flag"
9489 || test ! -s conftest.err'
9490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9491 (eval $ac_try) 2>&5
9492 ac_status=$?
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); }; } &&
9495 { ac_try='test -s conftest.$ac_objext'
9496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9497 (eval $ac_try) 2>&5
9498 ac_status=$?
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); }; }; then
9501 ac_header_compiler=yes
9502else
9503 echo "$as_me: failed program was:" >&5
9504sed 's/^/| /' conftest.$ac_ext >&5
9505
9506ac_header_compiler=no
9507fi
9508rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9509echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9510echo "${ECHO_T}$ac_header_compiler" >&6
9511
9512# Is the header present?
9513echo "$as_me:$LINENO: checking $ac_header presence" >&5
9514echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9515cat >conftest.$ac_ext <<_ACEOF
9516/* confdefs.h. */
9517_ACEOF
9518cat confdefs.h >>conftest.$ac_ext
9519cat >>conftest.$ac_ext <<_ACEOF
9520/* end confdefs.h. */
9521#include <$ac_header>
9522_ACEOF
9523if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9524 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9525 ac_status=$?
9526 grep -v '^ *+' conftest.er1 >conftest.err
9527 rm -f conftest.er1
9528 cat conftest.err >&5
9529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9530 (exit $ac_status); } >/dev/null; then
9531 if test -s conftest.err; then
9532 ac_cpp_err=$ac_c_preproc_warn_flag
9533 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9534 else
9535 ac_cpp_err=
9536 fi
9537else
9538 ac_cpp_err=yes
9539fi
9540if test -z "$ac_cpp_err"; then
9541 ac_header_preproc=yes
9542else
9543 echo "$as_me: failed program was:" >&5
9544sed 's/^/| /' conftest.$ac_ext >&5
9545
9546 ac_header_preproc=no
9547fi
9548rm -f conftest.err conftest.$ac_ext
9549echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9550echo "${ECHO_T}$ac_header_preproc" >&6
9551
9552# So? What about this header?
9553case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9554 yes:no: )
9555 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9556echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9558echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9559 ac_header_preproc=yes
9560 ;;
9561 no:yes:* )
9562 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9563echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9564 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9565echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9566 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9567echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9568 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9569echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9571echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9572 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9573echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9574 (
9575 cat <<\_ASBOX
9576## ------------------------------------------ ##
9577## Report this to the AC_PACKAGE_NAME lists. ##
9578## ------------------------------------------ ##
9579_ASBOX
9580 ) |
9581 sed "s/^/$as_me: WARNING: /" >&2
9582 ;;
9583esac
9584echo "$as_me:$LINENO: checking for $ac_header" >&5
9585echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9586if eval "test \"\${$as_ac_Header+set}\" = set"; then
9587 echo $ECHO_N "(cached) $ECHO_C" >&6
9588else
9589 eval "$as_ac_Header=\$ac_header_preproc"
9590fi
9591echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9592echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9593
9594fi
9595if test `eval echo '${'$as_ac_Header'}'` = yes; then
9596 cat >>confdefs.h <<_ACEOF
9597#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9598_ACEOF
9599
9600fi
9601
9602done
9603
9604
bec39cab 9605for ac_header in sys/proc.h
5ee754fc 9606do
bec39cab 9607as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9608echo "$as_me:$LINENO: checking for $ac_header" >&5
9609echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9610if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 9611 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 9612else
7cb9022a 9613 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
9614/* confdefs.h. */
9615_ACEOF
9616cat confdefs.h >>conftest.$ac_ext
9617cat >>conftest.$ac_ext <<_ACEOF
9618/* end confdefs.h. */
7cb9022a
MK
9619#if HAVE_SYS_PARAM_H
9620# include <sys/param.h>
9621#endif
9622
9623
bec39cab
AC
9624#include <$ac_header>
9625_ACEOF
9626rm -f conftest.$ac_objext
9627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9628 (eval $ac_compile) 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); } &&
b4e70030
JB
9635 { ac_try='test -z "$ac_c_werror_flag"
9636 || test ! -s conftest.err'
bec39cab
AC
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_objext'
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
7cb9022a 9648 eval "$as_ac_Header=yes"
bec39cab
AC
9649else
9650 echo "$as_me: failed program was:" >&5
9651sed 's/^/| /' conftest.$ac_ext >&5
9652
b4e70030 9653eval "$as_ac_Header=no"
bec39cab
AC
9654fi
9655rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 9656fi
b4e70030
JB
9657echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9658echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9659if test `eval echo '${'$as_ac_Header'}'` = yes; then
9660 cat >>confdefs.h <<_ACEOF
9661#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9662_ACEOF
9663
5ee754fc 9664fi
bec39cab 9665
5ee754fc
MK
9666done
9667
bec39cab
AC
9668
9669for ac_header in sys/procfs.h
5ee754fc 9670do
bec39cab 9671as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9672if eval "test \"\${$as_ac_Header+set}\" = set"; then
9673 echo "$as_me:$LINENO: checking for $ac_header" >&5
9674echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9675if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9676 echo $ECHO_N "(cached) $ECHO_C" >&6
9677fi
b4e70030
JB
9678echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9679echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9680else
9681 # Is the header compilable?
b4e70030
JB
9682echo "$as_me:$LINENO: checking $ac_header usability" >&5
9683echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9684cat >conftest.$ac_ext <<_ACEOF
9685/* confdefs.h. */
9686_ACEOF
9687cat confdefs.h >>conftest.$ac_ext
9688cat >>conftest.$ac_ext <<_ACEOF
9689/* end confdefs.h. */
9690$ac_includes_default
9691#include <$ac_header>
9692_ACEOF
9693rm -f conftest.$ac_objext
9694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9695 (eval $ac_compile) 2>conftest.er1
9696 ac_status=$?
9697 grep -v '^ *+' conftest.er1 >conftest.err
9698 rm -f conftest.er1
9699 cat conftest.err >&5
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); } &&
b4e70030
JB
9702 { ac_try='test -z "$ac_c_werror_flag"
9703 || test ! -s conftest.err'
bec39cab
AC
9704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9705 (eval $ac_try) 2>&5
9706 ac_status=$?
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); }; } &&
9709 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
9715 ac_header_compiler=yes
9716else
9717 echo "$as_me: failed program was:" >&5
9718sed 's/^/| /' conftest.$ac_ext >&5
9719
b4e70030 9720ac_header_compiler=no
bec39cab
AC
9721fi
9722rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9723echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9724echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9725
9726# Is the header present?
b4e70030
JB
9727echo "$as_me:$LINENO: checking $ac_header presence" >&5
9728echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9729cat >conftest.$ac_ext <<_ACEOF
9730/* confdefs.h. */
9731_ACEOF
9732cat confdefs.h >>conftest.$ac_ext
9733cat >>conftest.$ac_ext <<_ACEOF
9734/* end confdefs.h. */
9735#include <$ac_header>
9736_ACEOF
9737if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9738 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9739 ac_status=$?
9740 grep -v '^ *+' conftest.er1 >conftest.err
9741 rm -f conftest.er1
9742 cat conftest.err >&5
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); } >/dev/null; then
9745 if test -s conftest.err; then
9746 ac_cpp_err=$ac_c_preproc_warn_flag
9747 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9748 else
9749 ac_cpp_err=
9750 fi
9751else
9752 ac_cpp_err=yes
5ee754fc 9753fi
bec39cab
AC
9754if test -z "$ac_cpp_err"; then
9755 ac_header_preproc=yes
5ee754fc 9756else
bec39cab
AC
9757 echo "$as_me: failed program was:" >&5
9758sed 's/^/| /' conftest.$ac_ext >&5
9759
9760 ac_header_preproc=no
5ee754fc 9761fi
bec39cab 9762rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9763echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9764echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9765
bec39cab
AC
9766# So? What about this header?
9767case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9768 yes:no: )
9769 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9770echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9772echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9773 ac_header_preproc=yes
9774 ;;
9775 no:yes:* )
9776 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9777echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9778 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9779echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9780 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9781echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9782 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9783echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9785echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9786 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9787echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9788 (
9789 cat <<\_ASBOX
9790## ------------------------------------------ ##
9791## Report this to the AC_PACKAGE_NAME lists. ##
9792## ------------------------------------------ ##
9793_ASBOX
9794 ) |
9795 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9796 ;;
9797esac
b4e70030
JB
9798echo "$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
bec39cab
AC
9801 echo $ECHO_N "(cached) $ECHO_C" >&6
9802else
9803 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9804fi
b4e70030
JB
9805echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9806echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9807
5ee754fc 9808fi
bec39cab
AC
9809if test `eval echo '${'$as_ac_Header'}'` = yes; then
9810 cat >>confdefs.h <<_ACEOF
9811#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9812_ACEOF
9813
5ee754fc 9814fi
bec39cab 9815
5ee754fc
MK
9816done
9817
bec39cab
AC
9818
9819
9820for ac_header in sys/ptrace.h ptrace.h
5ee754fc 9821do
bec39cab 9822as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9823if eval "test \"\${$as_ac_Header+set}\" = set"; then
9824 echo "$as_me:$LINENO: checking for $ac_header" >&5
9825echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9826if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9827 echo $ECHO_N "(cached) $ECHO_C" >&6
9828fi
b4e70030
JB
9829echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9830echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9831else
9832 # Is the header compilable?
b4e70030
JB
9833echo "$as_me:$LINENO: checking $ac_header usability" >&5
9834echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9835cat >conftest.$ac_ext <<_ACEOF
9836/* confdefs.h. */
9837_ACEOF
9838cat confdefs.h >>conftest.$ac_ext
9839cat >>conftest.$ac_ext <<_ACEOF
9840/* end confdefs.h. */
9841$ac_includes_default
9842#include <$ac_header>
9843_ACEOF
9844rm -f conftest.$ac_objext
9845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9846 (eval $ac_compile) 2>conftest.er1
9847 ac_status=$?
9848 grep -v '^ *+' conftest.er1 >conftest.err
9849 rm -f conftest.er1
9850 cat conftest.err >&5
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); } &&
b4e70030
JB
9853 { ac_try='test -z "$ac_c_werror_flag"
9854 || test ! -s conftest.err'
bec39cab
AC
9855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9856 (eval $ac_try) 2>&5
9857 ac_status=$?
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); }; } &&
9860 { ac_try='test -s conftest.$ac_objext'
9861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9862 (eval $ac_try) 2>&5
9863 ac_status=$?
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); }; }; then
9866 ac_header_compiler=yes
9867else
9868 echo "$as_me: failed program was:" >&5
9869sed 's/^/| /' conftest.$ac_ext >&5
9870
b4e70030 9871ac_header_compiler=no
bec39cab
AC
9872fi
9873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9874echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9875echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9876
9877# Is the header present?
b4e70030
JB
9878echo "$as_me:$LINENO: checking $ac_header presence" >&5
9879echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9880cat >conftest.$ac_ext <<_ACEOF
9881/* confdefs.h. */
9882_ACEOF
9883cat confdefs.h >>conftest.$ac_ext
9884cat >>conftest.$ac_ext <<_ACEOF
9885/* end confdefs.h. */
9886#include <$ac_header>
9887_ACEOF
9888if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9889 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9890 ac_status=$?
9891 grep -v '^ *+' conftest.er1 >conftest.err
9892 rm -f conftest.er1
9893 cat conftest.err >&5
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); } >/dev/null; then
9896 if test -s conftest.err; then
9897 ac_cpp_err=$ac_c_preproc_warn_flag
9898 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9899 else
9900 ac_cpp_err=
9901 fi
9902else
9903 ac_cpp_err=yes
5ee754fc 9904fi
bec39cab
AC
9905if test -z "$ac_cpp_err"; then
9906 ac_header_preproc=yes
5ee754fc 9907else
bec39cab
AC
9908 echo "$as_me: failed program was:" >&5
9909sed 's/^/| /' conftest.$ac_ext >&5
9910
9911 ac_header_preproc=no
5ee754fc 9912fi
bec39cab 9913rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9914echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9915echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9916
bec39cab
AC
9917# So? What about this header?
9918case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9919 yes:no: )
9920 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9921echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9923echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9924 ac_header_preproc=yes
9925 ;;
9926 no:yes:* )
9927 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9928echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9929 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9930echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9931 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9932echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9933 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9934echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9936echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9937 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9938echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9939 (
9940 cat <<\_ASBOX
9941## ------------------------------------------ ##
9942## Report this to the AC_PACKAGE_NAME lists. ##
9943## ------------------------------------------ ##
9944_ASBOX
9945 ) |
9946 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9947 ;;
9948esac
b4e70030
JB
9949echo "$as_me:$LINENO: checking for $ac_header" >&5
9950echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9951if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9952 echo $ECHO_N "(cached) $ECHO_C" >&6
9953else
9954 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9955fi
b4e70030
JB
9956echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9957echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9958
5ee754fc 9959fi
bec39cab
AC
9960if test `eval echo '${'$as_ac_Header'}'` = yes; then
9961 cat >>confdefs.h <<_ACEOF
9962#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9963_ACEOF
9964
5ee754fc 9965fi
bec39cab 9966
5ee754fc
MK
9967done
9968
bec39cab
AC
9969
9970
9971for ac_header in sys/reg.h sys/debugreg.h
5ee754fc 9972do
bec39cab 9973as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9974if eval "test \"\${$as_ac_Header+set}\" = set"; then
9975 echo "$as_me:$LINENO: checking for $ac_header" >&5
9976echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9977if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9978 echo $ECHO_N "(cached) $ECHO_C" >&6
9979fi
b4e70030
JB
9980echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9981echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9982else
9983 # Is the header compilable?
b4e70030
JB
9984echo "$as_me:$LINENO: checking $ac_header usability" >&5
9985echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9986cat >conftest.$ac_ext <<_ACEOF
9987/* confdefs.h. */
9988_ACEOF
9989cat confdefs.h >>conftest.$ac_ext
9990cat >>conftest.$ac_ext <<_ACEOF
9991/* end confdefs.h. */
9992$ac_includes_default
9993#include <$ac_header>
9994_ACEOF
9995rm -f conftest.$ac_objext
9996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9997 (eval $ac_compile) 2>conftest.er1
9998 ac_status=$?
9999 grep -v '^ *+' conftest.er1 >conftest.err
10000 rm -f conftest.er1
10001 cat conftest.err >&5
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); } &&
b4e70030
JB
10004 { ac_try='test -z "$ac_c_werror_flag"
10005 || test ! -s conftest.err'
bec39cab
AC
10006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10007 (eval $ac_try) 2>&5
10008 ac_status=$?
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); }; } &&
10011 { ac_try='test -s conftest.$ac_objext'
10012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10013 (eval $ac_try) 2>&5
10014 ac_status=$?
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); }; }; then
10017 ac_header_compiler=yes
10018else
10019 echo "$as_me: failed program was:" >&5
10020sed 's/^/| /' conftest.$ac_ext >&5
10021
b4e70030 10022ac_header_compiler=no
bec39cab
AC
10023fi
10024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10025echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10026echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10027
10028# Is the header present?
b4e70030
JB
10029echo "$as_me:$LINENO: checking $ac_header presence" >&5
10030echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10031cat >conftest.$ac_ext <<_ACEOF
10032/* confdefs.h. */
10033_ACEOF
10034cat confdefs.h >>conftest.$ac_ext
10035cat >>conftest.$ac_ext <<_ACEOF
10036/* end confdefs.h. */
10037#include <$ac_header>
10038_ACEOF
10039if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10040 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10041 ac_status=$?
10042 grep -v '^ *+' conftest.er1 >conftest.err
10043 rm -f conftest.er1
10044 cat conftest.err >&5
10045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046 (exit $ac_status); } >/dev/null; then
10047 if test -s conftest.err; then
10048 ac_cpp_err=$ac_c_preproc_warn_flag
10049 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10050 else
10051 ac_cpp_err=
10052 fi
10053else
10054 ac_cpp_err=yes
5ee754fc 10055fi
bec39cab
AC
10056if test -z "$ac_cpp_err"; then
10057 ac_header_preproc=yes
5ee754fc 10058else
bec39cab
AC
10059 echo "$as_me: failed program was:" >&5
10060sed 's/^/| /' conftest.$ac_ext >&5
10061
10062 ac_header_preproc=no
5ee754fc 10063fi
bec39cab 10064rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10065echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10066echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10067
bec39cab
AC
10068# So? What about this header?
10069case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10070 yes:no: )
10071 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10072echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10074echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10075 ac_header_preproc=yes
10076 ;;
10077 no:yes:* )
10078 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10079echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10080 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10081echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10082 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10083echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10084 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10085echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10086 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10087echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10088 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10089echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10090 (
10091 cat <<\_ASBOX
10092## ------------------------------------------ ##
10093## Report this to the AC_PACKAGE_NAME lists. ##
10094## ------------------------------------------ ##
10095_ASBOX
10096 ) |
10097 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10098 ;;
10099esac
b4e70030
JB
10100echo "$as_me:$LINENO: checking for $ac_header" >&5
10101echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10102if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10103 echo $ECHO_N "(cached) $ECHO_C" >&6
10104else
10105 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10106fi
b4e70030
JB
10107echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10108echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10109
5ee754fc 10110fi
bec39cab
AC
10111if test `eval echo '${'$as_ac_Header'}'` = yes; then
10112 cat >>confdefs.h <<_ACEOF
10113#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10114_ACEOF
10115
5ee754fc 10116fi
bec39cab 10117
5ee754fc
MK
10118done
10119
bec39cab
AC
10120
10121for ac_header in sys/select.h
5ee754fc 10122do
bec39cab 10123as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10124if eval "test \"\${$as_ac_Header+set}\" = set"; then
10125 echo "$as_me:$LINENO: checking for $ac_header" >&5
10126echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10127if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10128 echo $ECHO_N "(cached) $ECHO_C" >&6
10129fi
b4e70030
JB
10130echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10131echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10132else
10133 # Is the header compilable?
b4e70030
JB
10134echo "$as_me:$LINENO: checking $ac_header usability" >&5
10135echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10136cat >conftest.$ac_ext <<_ACEOF
10137/* confdefs.h. */
10138_ACEOF
10139cat confdefs.h >>conftest.$ac_ext
10140cat >>conftest.$ac_ext <<_ACEOF
10141/* end confdefs.h. */
10142$ac_includes_default
10143#include <$ac_header>
10144_ACEOF
10145rm -f conftest.$ac_objext
10146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10147 (eval $ac_compile) 2>conftest.er1
10148 ac_status=$?
10149 grep -v '^ *+' conftest.er1 >conftest.err
10150 rm -f conftest.er1
10151 cat conftest.err >&5
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); } &&
b4e70030
JB
10154 { ac_try='test -z "$ac_c_werror_flag"
10155 || test ! -s conftest.err'
bec39cab
AC
10156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10157 (eval $ac_try) 2>&5
10158 ac_status=$?
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); }; } &&
10161 { ac_try='test -s conftest.$ac_objext'
10162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10163 (eval $ac_try) 2>&5
10164 ac_status=$?
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); }; }; then
10167 ac_header_compiler=yes
10168else
10169 echo "$as_me: failed program was:" >&5
10170sed 's/^/| /' conftest.$ac_ext >&5
10171
b4e70030 10172ac_header_compiler=no
bec39cab
AC
10173fi
10174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10175echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10176echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10177
10178# Is the header present?
b4e70030
JB
10179echo "$as_me:$LINENO: checking $ac_header presence" >&5
10180echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10181cat >conftest.$ac_ext <<_ACEOF
10182/* confdefs.h. */
10183_ACEOF
10184cat confdefs.h >>conftest.$ac_ext
10185cat >>conftest.$ac_ext <<_ACEOF
10186/* end confdefs.h. */
10187#include <$ac_header>
10188_ACEOF
10189if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10190 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10191 ac_status=$?
10192 grep -v '^ *+' conftest.er1 >conftest.err
10193 rm -f conftest.er1
10194 cat conftest.err >&5
10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196 (exit $ac_status); } >/dev/null; then
10197 if test -s conftest.err; then
10198 ac_cpp_err=$ac_c_preproc_warn_flag
10199 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10200 else
10201 ac_cpp_err=
10202 fi
10203else
10204 ac_cpp_err=yes
5ee754fc 10205fi
bec39cab
AC
10206if test -z "$ac_cpp_err"; then
10207 ac_header_preproc=yes
5ee754fc 10208else
bec39cab
AC
10209 echo "$as_me: failed program was:" >&5
10210sed 's/^/| /' conftest.$ac_ext >&5
10211
10212 ac_header_preproc=no
5ee754fc 10213fi
bec39cab 10214rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10215echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10216echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10217
bec39cab
AC
10218# So? What about this header?
10219case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10220 yes:no: )
10221 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10222echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10223 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10224echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10225 ac_header_preproc=yes
10226 ;;
10227 no:yes:* )
10228 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10229echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10230 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10231echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10232 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10233echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10234 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10235echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10237echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10238 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10239echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10240 (
10241 cat <<\_ASBOX
10242## ------------------------------------------ ##
10243## Report this to the AC_PACKAGE_NAME lists. ##
10244## ------------------------------------------ ##
10245_ASBOX
10246 ) |
10247 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10248 ;;
10249esac
b4e70030
JB
10250echo "$as_me:$LINENO: checking for $ac_header" >&5
10251echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10252if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10253 echo $ECHO_N "(cached) $ECHO_C" >&6
10254else
10255 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10256fi
b4e70030
JB
10257echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10258echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10259
5ee754fc 10260fi
bec39cab
AC
10261if test `eval echo '${'$as_ac_Header'}'` = yes; then
10262 cat >>confdefs.h <<_ACEOF
10263#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10264_ACEOF
10265
5ee754fc 10266fi
bec39cab 10267
5ee754fc
MK
10268done
10269
bec39cab
AC
10270
10271for ac_header in sys/syscall.h
5ee754fc 10272do
bec39cab 10273as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10274if eval "test \"\${$as_ac_Header+set}\" = set"; then
10275 echo "$as_me:$LINENO: checking for $ac_header" >&5
10276echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10277if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10278 echo $ECHO_N "(cached) $ECHO_C" >&6
10279fi
b4e70030
JB
10280echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10281echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10282else
10283 # Is the header compilable?
b4e70030
JB
10284echo "$as_me:$LINENO: checking $ac_header usability" >&5
10285echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10286cat >conftest.$ac_ext <<_ACEOF
10287/* confdefs.h. */
10288_ACEOF
10289cat confdefs.h >>conftest.$ac_ext
10290cat >>conftest.$ac_ext <<_ACEOF
10291/* end confdefs.h. */
10292$ac_includes_default
10293#include <$ac_header>
10294_ACEOF
10295rm -f conftest.$ac_objext
10296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10297 (eval $ac_compile) 2>conftest.er1
10298 ac_status=$?
10299 grep -v '^ *+' conftest.er1 >conftest.err
10300 rm -f conftest.er1
10301 cat conftest.err >&5
10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303 (exit $ac_status); } &&
b4e70030
JB
10304 { ac_try='test -z "$ac_c_werror_flag"
10305 || test ! -s conftest.err'
bec39cab
AC
10306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10307 (eval $ac_try) 2>&5
10308 ac_status=$?
10309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10310 (exit $ac_status); }; } &&
10311 { ac_try='test -s conftest.$ac_objext'
10312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10313 (eval $ac_try) 2>&5
10314 ac_status=$?
10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); }; }; then
10317 ac_header_compiler=yes
10318else
10319 echo "$as_me: failed program was:" >&5
10320sed 's/^/| /' conftest.$ac_ext >&5
10321
b4e70030 10322ac_header_compiler=no
bec39cab
AC
10323fi
10324rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10325echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10326echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10327
10328# Is the header present?
b4e70030
JB
10329echo "$as_me:$LINENO: checking $ac_header presence" >&5
10330echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10331cat >conftest.$ac_ext <<_ACEOF
10332/* confdefs.h. */
10333_ACEOF
10334cat confdefs.h >>conftest.$ac_ext
10335cat >>conftest.$ac_ext <<_ACEOF
10336/* end confdefs.h. */
10337#include <$ac_header>
10338_ACEOF
10339if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10340 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10341 ac_status=$?
10342 grep -v '^ *+' conftest.er1 >conftest.err
10343 rm -f conftest.er1
10344 cat conftest.err >&5
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); } >/dev/null; then
10347 if test -s conftest.err; then
10348 ac_cpp_err=$ac_c_preproc_warn_flag
10349 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10350 else
10351 ac_cpp_err=
10352 fi
10353else
10354 ac_cpp_err=yes
5ee754fc 10355fi
bec39cab
AC
10356if test -z "$ac_cpp_err"; then
10357 ac_header_preproc=yes
5ee754fc 10358else
bec39cab
AC
10359 echo "$as_me: failed program was:" >&5
10360sed 's/^/| /' conftest.$ac_ext >&5
10361
10362 ac_header_preproc=no
5ee754fc 10363fi
bec39cab 10364rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10365echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10366echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10367
bec39cab
AC
10368# So? What about this header?
10369case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10370 yes:no: )
10371 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10372echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10373 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10374echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10375 ac_header_preproc=yes
10376 ;;
10377 no:yes:* )
10378 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10379echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10380 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10381echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10382 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10383echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10384 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10385echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10387echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10388 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10389echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10390 (
10391 cat <<\_ASBOX
10392## ------------------------------------------ ##
10393## Report this to the AC_PACKAGE_NAME lists. ##
10394## ------------------------------------------ ##
10395_ASBOX
10396 ) |
10397 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10398 ;;
10399esac
b4e70030
JB
10400echo "$as_me:$LINENO: checking for $ac_header" >&5
10401echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10402if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10403 echo $ECHO_N "(cached) $ECHO_C" >&6
10404else
10405 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10406fi
b4e70030
JB
10407echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10408echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10409
5ee754fc 10410fi
bec39cab
AC
10411if test `eval echo '${'$as_ac_Header'}'` = yes; then
10412 cat >>confdefs.h <<_ACEOF
10413#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10414_ACEOF
10415
5ee754fc 10416fi
bec39cab 10417
5ee754fc
MK
10418done
10419
bec39cab
AC
10420
10421for ac_header in sys/types.h
5ee754fc 10422do
bec39cab 10423as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10424if eval "test \"\${$as_ac_Header+set}\" = set"; then
10425 echo "$as_me:$LINENO: checking for $ac_header" >&5
10426echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10427if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10428 echo $ECHO_N "(cached) $ECHO_C" >&6
10429fi
b4e70030
JB
10430echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10431echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10432else
10433 # Is the header compilable?
b4e70030
JB
10434echo "$as_me:$LINENO: checking $ac_header usability" >&5
10435echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10436cat >conftest.$ac_ext <<_ACEOF
10437/* confdefs.h. */
10438_ACEOF
10439cat confdefs.h >>conftest.$ac_ext
10440cat >>conftest.$ac_ext <<_ACEOF
10441/* end confdefs.h. */
10442$ac_includes_default
10443#include <$ac_header>
10444_ACEOF
10445rm -f conftest.$ac_objext
10446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10447 (eval $ac_compile) 2>conftest.er1
10448 ac_status=$?
10449 grep -v '^ *+' conftest.er1 >conftest.err
10450 rm -f conftest.er1
10451 cat conftest.err >&5
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); } &&
b4e70030
JB
10454 { ac_try='test -z "$ac_c_werror_flag"
10455 || test ! -s conftest.err'
bec39cab
AC
10456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10457 (eval $ac_try) 2>&5
10458 ac_status=$?
10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); }; } &&
10461 { ac_try='test -s conftest.$ac_objext'
10462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10463 (eval $ac_try) 2>&5
10464 ac_status=$?
10465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466 (exit $ac_status); }; }; then
10467 ac_header_compiler=yes
10468else
10469 echo "$as_me: failed program was:" >&5
10470sed 's/^/| /' conftest.$ac_ext >&5
10471
b4e70030 10472ac_header_compiler=no
bec39cab
AC
10473fi
10474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10475echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10476echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10477
10478# Is the header present?
b4e70030
JB
10479echo "$as_me:$LINENO: checking $ac_header presence" >&5
10480echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10481cat >conftest.$ac_ext <<_ACEOF
10482/* confdefs.h. */
10483_ACEOF
10484cat confdefs.h >>conftest.$ac_ext
10485cat >>conftest.$ac_ext <<_ACEOF
10486/* end confdefs.h. */
10487#include <$ac_header>
10488_ACEOF
10489if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10491 ac_status=$?
10492 grep -v '^ *+' conftest.er1 >conftest.err
10493 rm -f conftest.er1
10494 cat conftest.err >&5
10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496 (exit $ac_status); } >/dev/null; then
10497 if test -s conftest.err; then
10498 ac_cpp_err=$ac_c_preproc_warn_flag
10499 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10500 else
10501 ac_cpp_err=
10502 fi
10503else
10504 ac_cpp_err=yes
5ee754fc 10505fi
bec39cab
AC
10506if test -z "$ac_cpp_err"; then
10507 ac_header_preproc=yes
5ee754fc 10508else
bec39cab
AC
10509 echo "$as_me: failed program was:" >&5
10510sed 's/^/| /' conftest.$ac_ext >&5
10511
10512 ac_header_preproc=no
5ee754fc 10513fi
bec39cab 10514rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10515echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10516echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10517
bec39cab
AC
10518# So? What about this header?
10519case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10520 yes:no: )
10521 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10522echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10524echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10525 ac_header_preproc=yes
10526 ;;
10527 no:yes:* )
10528 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10529echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10530 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10531echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10532 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10533echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10534 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10535echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10537echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10538 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10539echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10540 (
10541 cat <<\_ASBOX
10542## ------------------------------------------ ##
10543## Report this to the AC_PACKAGE_NAME lists. ##
10544## ------------------------------------------ ##
10545_ASBOX
10546 ) |
10547 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10548 ;;
10549esac
b4e70030
JB
10550echo "$as_me:$LINENO: checking for $ac_header" >&5
10551echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10552if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10553 echo $ECHO_N "(cached) $ECHO_C" >&6
10554else
10555 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10556fi
b4e70030
JB
10557echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10558echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10559
5ee754fc 10560fi
bec39cab
AC
10561if test `eval echo '${'$as_ac_Header'}'` = yes; then
10562 cat >>confdefs.h <<_ACEOF
10563#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10564_ACEOF
10565
5ee754fc 10566fi
bec39cab 10567
5ee754fc
MK
10568done
10569
bec39cab
AC
10570
10571for ac_header in sys/user.h
5ee754fc 10572do
bec39cab 10573as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10574echo "$as_me:$LINENO: checking for $ac_header" >&5
10575echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10576if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 10577 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 10578else
7cb9022a 10579 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
10580/* confdefs.h. */
10581_ACEOF
10582cat confdefs.h >>conftest.$ac_ext
10583cat >>conftest.$ac_ext <<_ACEOF
10584/* end confdefs.h. */
7cb9022a
MK
10585#if HAVE_SYS_PARAM_H
10586# include <sys/param.h>
10587#endif
10588
10589
bec39cab
AC
10590#include <$ac_header>
10591_ACEOF
10592rm -f conftest.$ac_objext
10593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10594 (eval $ac_compile) 2>conftest.er1
10595 ac_status=$?
10596 grep -v '^ *+' conftest.er1 >conftest.err
10597 rm -f conftest.er1
10598 cat conftest.err >&5
10599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600 (exit $ac_status); } &&
b4e70030
JB
10601 { ac_try='test -z "$ac_c_werror_flag"
10602 || test ! -s conftest.err'
bec39cab
AC
10603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10604 (eval $ac_try) 2>&5
10605 ac_status=$?
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); }; } &&
10608 { ac_try='test -s conftest.$ac_objext'
10609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10610 (eval $ac_try) 2>&5
10611 ac_status=$?
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); }; }; then
7cb9022a 10614 eval "$as_ac_Header=yes"
bec39cab
AC
10615else
10616 echo "$as_me: failed program was:" >&5
10617sed 's/^/| /' conftest.$ac_ext >&5
10618
b4e70030 10619eval "$as_ac_Header=no"
bec39cab
AC
10620fi
10621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 10622fi
b4e70030
JB
10623echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10624echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10625if test `eval echo '${'$as_ac_Header'}'` = yes; then
10626 cat >>confdefs.h <<_ACEOF
10627#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10628_ACEOF
10629
5ee754fc 10630fi
bec39cab 10631
5ee754fc
MK
10632done
10633
bec39cab
AC
10634
10635
10636for ac_header in sys/wait.h wait.h
5ee754fc 10637do
bec39cab 10638as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10639if eval "test \"\${$as_ac_Header+set}\" = set"; then
10640 echo "$as_me:$LINENO: checking for $ac_header" >&5
10641echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10642if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10643 echo $ECHO_N "(cached) $ECHO_C" >&6
10644fi
b4e70030
JB
10645echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10646echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10647else
10648 # Is the header compilable?
b4e70030
JB
10649echo "$as_me:$LINENO: checking $ac_header usability" >&5
10650echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10651cat >conftest.$ac_ext <<_ACEOF
10652/* confdefs.h. */
10653_ACEOF
10654cat confdefs.h >>conftest.$ac_ext
10655cat >>conftest.$ac_ext <<_ACEOF
10656/* end confdefs.h. */
10657$ac_includes_default
10658#include <$ac_header>
10659_ACEOF
10660rm -f conftest.$ac_objext
10661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10662 (eval $ac_compile) 2>conftest.er1
10663 ac_status=$?
10664 grep -v '^ *+' conftest.er1 >conftest.err
10665 rm -f conftest.er1
10666 cat conftest.err >&5
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); } &&
b4e70030
JB
10669 { ac_try='test -z "$ac_c_werror_flag"
10670 || test ! -s conftest.err'
bec39cab
AC
10671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10672 (eval $ac_try) 2>&5
10673 ac_status=$?
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); }; } &&
10676 { ac_try='test -s conftest.$ac_objext'
10677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10678 (eval $ac_try) 2>&5
10679 ac_status=$?
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 (exit $ac_status); }; }; then
10682 ac_header_compiler=yes
10683else
10684 echo "$as_me: failed program was:" >&5
10685sed 's/^/| /' conftest.$ac_ext >&5
10686
b4e70030 10687ac_header_compiler=no
bec39cab
AC
10688fi
10689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10690echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10691echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10692
10693# Is the header present?
b4e70030
JB
10694echo "$as_me:$LINENO: checking $ac_header presence" >&5
10695echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10696cat >conftest.$ac_ext <<_ACEOF
10697/* confdefs.h. */
10698_ACEOF
10699cat confdefs.h >>conftest.$ac_ext
10700cat >>conftest.$ac_ext <<_ACEOF
10701/* end confdefs.h. */
10702#include <$ac_header>
10703_ACEOF
10704if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10705 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10706 ac_status=$?
10707 grep -v '^ *+' conftest.er1 >conftest.err
10708 rm -f conftest.er1
10709 cat conftest.err >&5
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); } >/dev/null; then
10712 if test -s conftest.err; then
10713 ac_cpp_err=$ac_c_preproc_warn_flag
10714 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10715 else
10716 ac_cpp_err=
10717 fi
10718else
10719 ac_cpp_err=yes
5ee754fc 10720fi
bec39cab
AC
10721if test -z "$ac_cpp_err"; then
10722 ac_header_preproc=yes
5ee754fc 10723else
bec39cab
AC
10724 echo "$as_me: failed program was:" >&5
10725sed 's/^/| /' conftest.$ac_ext >&5
10726
10727 ac_header_preproc=no
5ee754fc 10728fi
bec39cab 10729rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10730echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10731echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10732
bec39cab
AC
10733# So? What about this header?
10734case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10735 yes:no: )
10736 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10737echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10739echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10740 ac_header_preproc=yes
10741 ;;
10742 no:yes:* )
10743 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10744echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10745 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10746echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10747 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10748echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10749 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10750echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10752echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10753 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10754echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10755 (
10756 cat <<\_ASBOX
10757## ------------------------------------------ ##
10758## Report this to the AC_PACKAGE_NAME lists. ##
10759## ------------------------------------------ ##
10760_ASBOX
10761 ) |
10762 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10763 ;;
10764esac
b4e70030
JB
10765echo "$as_me:$LINENO: checking for $ac_header" >&5
10766echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10767if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10768 echo $ECHO_N "(cached) $ECHO_C" >&6
10769else
10770 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 10771fi
b4e70030
JB
10772echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10773echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10774
9608ab8b 10775fi
bec39cab
AC
10776if test `eval echo '${'$as_ac_Header'}'` = yes; then
10777 cat >>confdefs.h <<_ACEOF
10778#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10779_ACEOF
10780
9608ab8b 10781fi
bec39cab 10782
9608ab8b 10783done
5ee754fc 10784
bec39cab
AC
10785
10786
10787
10788for ac_header in termios.h termio.h sgtty.h
5ee754fc 10789do
bec39cab 10790as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10791if eval "test \"\${$as_ac_Header+set}\" = set"; then
10792 echo "$as_me:$LINENO: checking for $ac_header" >&5
10793echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10794if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10795 echo $ECHO_N "(cached) $ECHO_C" >&6
10796fi
b4e70030
JB
10797echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10798echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10799else
10800 # Is the header compilable?
b4e70030
JB
10801echo "$as_me:$LINENO: checking $ac_header usability" >&5
10802echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10803cat >conftest.$ac_ext <<_ACEOF
10804/* confdefs.h. */
10805_ACEOF
10806cat confdefs.h >>conftest.$ac_ext
10807cat >>conftest.$ac_ext <<_ACEOF
10808/* end confdefs.h. */
10809$ac_includes_default
10810#include <$ac_header>
10811_ACEOF
10812rm -f conftest.$ac_objext
10813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10814 (eval $ac_compile) 2>conftest.er1
10815 ac_status=$?
10816 grep -v '^ *+' conftest.er1 >conftest.err
10817 rm -f conftest.er1
10818 cat conftest.err >&5
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); } &&
b4e70030
JB
10821 { ac_try='test -z "$ac_c_werror_flag"
10822 || test ! -s conftest.err'
bec39cab
AC
10823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10824 (eval $ac_try) 2>&5
10825 ac_status=$?
10826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10827 (exit $ac_status); }; } &&
10828 { ac_try='test -s conftest.$ac_objext'
10829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10830 (eval $ac_try) 2>&5
10831 ac_status=$?
10832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10833 (exit $ac_status); }; }; then
10834 ac_header_compiler=yes
10835else
10836 echo "$as_me: failed program was:" >&5
10837sed 's/^/| /' conftest.$ac_ext >&5
10838
b4e70030 10839ac_header_compiler=no
bec39cab
AC
10840fi
10841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10842echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10843echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10844
10845# Is the header present?
b4e70030
JB
10846echo "$as_me:$LINENO: checking $ac_header presence" >&5
10847echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10848cat >conftest.$ac_ext <<_ACEOF
10849/* confdefs.h. */
10850_ACEOF
10851cat confdefs.h >>conftest.$ac_ext
10852cat >>conftest.$ac_ext <<_ACEOF
10853/* end confdefs.h. */
10854#include <$ac_header>
10855_ACEOF
10856if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10857 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10858 ac_status=$?
10859 grep -v '^ *+' conftest.er1 >conftest.err
10860 rm -f conftest.er1
10861 cat conftest.err >&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); } >/dev/null; then
10864 if test -s conftest.err; then
10865 ac_cpp_err=$ac_c_preproc_warn_flag
10866 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10867 else
10868 ac_cpp_err=
10869 fi
10870else
10871 ac_cpp_err=yes
9608ab8b 10872fi
bec39cab
AC
10873if test -z "$ac_cpp_err"; then
10874 ac_header_preproc=yes
9608ab8b 10875else
bec39cab
AC
10876 echo "$as_me: failed program was:" >&5
10877sed 's/^/| /' conftest.$ac_ext >&5
10878
10879 ac_header_preproc=no
9608ab8b 10880fi
bec39cab 10881rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10882echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10883echo "${ECHO_T}$ac_header_preproc" >&6
9608ab8b 10884
bec39cab
AC
10885# So? What about this header?
10886case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10887 yes:no: )
10888 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10889echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10891echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10892 ac_header_preproc=yes
10893 ;;
10894 no:yes:* )
10895 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10896echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10897 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10898echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10899 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10900echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10901 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10902echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10904echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10905 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10906echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10907 (
10908 cat <<\_ASBOX
10909## ------------------------------------------ ##
10910## Report this to the AC_PACKAGE_NAME lists. ##
10911## ------------------------------------------ ##
10912_ASBOX
10913 ) |
10914 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10915 ;;
10916esac
b4e70030
JB
10917echo "$as_me:$LINENO: checking for $ac_header" >&5
10918echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10919if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10920 echo $ECHO_N "(cached) $ECHO_C" >&6
10921else
10922 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 10923fi
b4e70030
JB
10924echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10925echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10926
9608ab8b 10927fi
bec39cab
AC
10928if test `eval echo '${'$as_ac_Header'}'` = yes; then
10929 cat >>confdefs.h <<_ACEOF
10930#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10931_ACEOF
10932
9608ab8b 10933fi
bec39cab 10934
5ee754fc 10935done
9608ab8b 10936
bec39cab
AC
10937
10938for ac_header in unistd.h
78434e59 10939do
bec39cab 10940as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10941if eval "test \"\${$as_ac_Header+set}\" = set"; then
10942 echo "$as_me:$LINENO: checking for $ac_header" >&5
10943echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10944if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10945 echo $ECHO_N "(cached) $ECHO_C" >&6
10946fi
b4e70030
JB
10947echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10948echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10949else
10950 # Is the header compilable?
b4e70030
JB
10951echo "$as_me:$LINENO: checking $ac_header usability" >&5
10952echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10953cat >conftest.$ac_ext <<_ACEOF
10954/* confdefs.h. */
10955_ACEOF
10956cat confdefs.h >>conftest.$ac_ext
10957cat >>conftest.$ac_ext <<_ACEOF
10958/* end confdefs.h. */
10959$ac_includes_default
10960#include <$ac_header>
10961_ACEOF
10962rm -f conftest.$ac_objext
10963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10964 (eval $ac_compile) 2>conftest.er1
10965 ac_status=$?
10966 grep -v '^ *+' conftest.er1 >conftest.err
10967 rm -f conftest.er1
10968 cat conftest.err >&5
10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970 (exit $ac_status); } &&
b4e70030
JB
10971 { ac_try='test -z "$ac_c_werror_flag"
10972 || test ! -s conftest.err'
bec39cab
AC
10973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10974 (eval $ac_try) 2>&5
10975 ac_status=$?
10976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977 (exit $ac_status); }; } &&
10978 { ac_try='test -s conftest.$ac_objext'
10979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10980 (eval $ac_try) 2>&5
10981 ac_status=$?
10982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10983 (exit $ac_status); }; }; then
10984 ac_header_compiler=yes
10985else
10986 echo "$as_me: failed program was:" >&5
10987sed 's/^/| /' conftest.$ac_ext >&5
10988
b4e70030 10989ac_header_compiler=no
bec39cab
AC
10990fi
10991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10992echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10993echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10994
10995# Is the header present?
b4e70030
JB
10996echo "$as_me:$LINENO: checking $ac_header presence" >&5
10997echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10998cat >conftest.$ac_ext <<_ACEOF
10999/* confdefs.h. */
11000_ACEOF
11001cat confdefs.h >>conftest.$ac_ext
11002cat >>conftest.$ac_ext <<_ACEOF
11003/* end confdefs.h. */
11004#include <$ac_header>
11005_ACEOF
11006if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11007 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11008 ac_status=$?
11009 grep -v '^ *+' conftest.er1 >conftest.err
11010 rm -f conftest.er1
11011 cat conftest.err >&5
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); } >/dev/null; then
11014 if test -s conftest.err; then
11015 ac_cpp_err=$ac_c_preproc_warn_flag
11016 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11017 else
11018 ac_cpp_err=
11019 fi
11020else
11021 ac_cpp_err=yes
78434e59 11022fi
bec39cab
AC
11023if test -z "$ac_cpp_err"; then
11024 ac_header_preproc=yes
78434e59 11025else
bec39cab
AC
11026 echo "$as_me: failed program was:" >&5
11027sed 's/^/| /' conftest.$ac_ext >&5
11028
11029 ac_header_preproc=no
78434e59 11030fi
bec39cab 11031rm -f conftest.err conftest.$ac_ext
b4e70030
JB
11032echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11033echo "${ECHO_T}$ac_header_preproc" >&6
78434e59 11034
bec39cab
AC
11035# So? What about this header?
11036case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11037 yes:no: )
11038 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11039echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11041echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11042 ac_header_preproc=yes
11043 ;;
11044 no:yes:* )
11045 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11046echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11047 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11048echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11049 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11050echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11051 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11052echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11054echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11055 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11056echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
11057 (
11058 cat <<\_ASBOX
11059## ------------------------------------------ ##
11060## Report this to the AC_PACKAGE_NAME lists. ##
11061## ------------------------------------------ ##
11062_ASBOX
11063 ) |
11064 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
11065 ;;
11066esac
b4e70030
JB
11067echo "$as_me:$LINENO: checking for $ac_header" >&5
11068echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11069if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11070 echo $ECHO_N "(cached) $ECHO_C" >&6
11071else
11072 eval "$as_ac_Header=\$ac_header_preproc"
086ec9eb 11073fi
b4e70030
JB
11074echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11075echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 11076
086ec9eb 11077fi
bec39cab
AC
11078if test `eval echo '${'$as_ac_Header'}'` = yes; then
11079 cat >>confdefs.h <<_ACEOF
11080#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11081_ACEOF
11082
086ec9eb 11083fi
bec39cab 11084
086ec9eb
MK
11085done
11086
9608ab8b 11087
b1d19a62 11088# On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
5ee754fc
MK
11089# between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
11090# think that we don't have <curses.h> if we're using GCC.
11091case $host_os in
b1d19a62 11092 solaris2.[789])
5ee754fc 11093 if test "$GCC" = yes; then
bec39cab
AC
11094
11095cat >>confdefs.h <<\_ACEOF
5ee754fc 11096#define _MSE_INT_H 1
bec39cab 11097_ACEOF
5ee754fc
MK
11098
11099 fi ;;
11100esac
bec39cab
AC
11101
11102
11103
11104
11105for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
5ee754fc 11106do
bec39cab 11107as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11108if eval "test \"\${$as_ac_Header+set}\" = set"; then
11109 echo "$as_me:$LINENO: checking for $ac_header" >&5
11110echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11111if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11112 echo $ECHO_N "(cached) $ECHO_C" >&6
11113fi
b4e70030
JB
11114echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11115echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11116else
11117 # Is the header compilable?
b4e70030
JB
11118echo "$as_me:$LINENO: checking $ac_header usability" >&5
11119echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
11120cat >conftest.$ac_ext <<_ACEOF
11121/* confdefs.h. */
11122_ACEOF
11123cat confdefs.h >>conftest.$ac_ext
11124cat >>conftest.$ac_ext <<_ACEOF
11125/* end confdefs.h. */
11126$ac_includes_default
11127#include <$ac_header>
11128_ACEOF
11129rm -f conftest.$ac_objext
11130if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11131 (eval $ac_compile) 2>conftest.er1
11132 ac_status=$?
11133 grep -v '^ *+' conftest.er1 >conftest.err
11134 rm -f conftest.er1
11135 cat conftest.err >&5
11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); } &&
b4e70030
JB
11138 { ac_try='test -z "$ac_c_werror_flag"
11139 || test ! -s conftest.err'
bec39cab
AC
11140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11141 (eval $ac_try) 2>&5
11142 ac_status=$?
11143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144 (exit $ac_status); }; } &&
11145 { ac_try='test -s conftest.$ac_objext'
11146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11147 (eval $ac_try) 2>&5
11148 ac_status=$?
11149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150 (exit $ac_status); }; }; then
11151 ac_header_compiler=yes
11152else
11153 echo "$as_me: failed program was:" >&5
11154sed 's/^/| /' conftest.$ac_ext >&5
11155
b4e70030 11156ac_header_compiler=no
bec39cab
AC
11157fi
11158rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
11159echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11160echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
11161
11162# Is the header present?
b4e70030
JB
11163echo "$as_me:$LINENO: checking $ac_header presence" >&5
11164echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
11165cat >conftest.$ac_ext <<_ACEOF
11166/* confdefs.h. */
11167_ACEOF
11168cat confdefs.h >>conftest.$ac_ext
11169cat >>conftest.$ac_ext <<_ACEOF
11170/* end confdefs.h. */
11171#include <$ac_header>
11172_ACEOF
11173if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11174 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11175 ac_status=$?
11176 grep -v '^ *+' conftest.er1 >conftest.err
11177 rm -f conftest.er1
11178 cat conftest.err >&5
11179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11180 (exit $ac_status); } >/dev/null; then
11181 if test -s conftest.err; then
11182 ac_cpp_err=$ac_c_preproc_warn_flag
11183 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11184 else
11185 ac_cpp_err=
11186 fi
11187else
11188 ac_cpp_err=yes
c906108c 11189fi
bec39cab
AC
11190if test -z "$ac_cpp_err"; then
11191 ac_header_preproc=yes
11192else
11193 echo "$as_me: failed program was:" >&5
11194sed 's/^/| /' conftest.$ac_ext >&5
11195
11196 ac_header_preproc=no
c906108c 11197fi
bec39cab 11198rm -f conftest.err conftest.$ac_ext
b4e70030
JB
11199echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11200echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
11201
11202# So? What about this header?
11203case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11204 yes:no: )
11205 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11206echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11207 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11208echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11209 ac_header_preproc=yes
11210 ;;
11211 no:yes:* )
11212 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11213echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11214 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11215echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11216 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11217echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11218 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11219echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11221echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11222 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11223echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
11224 (
11225 cat <<\_ASBOX
11226## ------------------------------------------ ##
11227## Report this to the AC_PACKAGE_NAME lists. ##
11228## ------------------------------------------ ##
11229_ASBOX
11230 ) |
11231 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
11232 ;;
11233esac
b4e70030
JB
11234echo "$as_me:$LINENO: checking for $ac_header" >&5
11235echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11236if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 11237 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 11238else
bec39cab 11239 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 11240fi
b4e70030
JB
11241echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11242echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11243
11244fi
11245if test `eval echo '${'$as_ac_Header'}'` = yes; then
11246 cat >>confdefs.h <<_ACEOF
11247#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11248_ACEOF
11249
11250fi
11251
5ee754fc 11252done
c906108c 11253
bec39cab 11254
065a1afc 11255for ac_header in ncurses/term.h
3b78cdbb 11256do
bec39cab 11257as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11258if eval "test \"\${$as_ac_Header+set}\" = set"; then
11259 echo "$as_me:$LINENO: checking for $ac_header" >&5
11260echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11261if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11262 echo $ECHO_N "(cached) $ECHO_C" >&6
11263fi
b4e70030
JB
11264echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11265echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11266else
11267 # Is the header compilable?
b4e70030
JB
11268echo "$as_me:$LINENO: checking $ac_header usability" >&5
11269echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
11270cat >conftest.$ac_ext <<_ACEOF
11271/* confdefs.h. */
11272_ACEOF
11273cat confdefs.h >>conftest.$ac_ext
11274cat >>conftest.$ac_ext <<_ACEOF
11275/* end confdefs.h. */
11276$ac_includes_default
11277#include <$ac_header>
11278_ACEOF
11279rm -f conftest.$ac_objext
11280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11281 (eval $ac_compile) 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_objext'
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
11301 ac_header_compiler=yes
11302else
11303 echo "$as_me: failed program was:" >&5
11304sed 's/^/| /' conftest.$ac_ext >&5
11305
b4e70030 11306ac_header_compiler=no
bec39cab
AC
11307fi
11308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
11309echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11310echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
11311
11312# Is the header present?
b4e70030
JB
11313echo "$as_me:$LINENO: checking $ac_header presence" >&5
11314echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
11315cat >conftest.$ac_ext <<_ACEOF
11316/* confdefs.h. */
11317_ACEOF
11318cat confdefs.h >>conftest.$ac_ext
11319cat >>conftest.$ac_ext <<_ACEOF
11320/* end confdefs.h. */
11321#include <$ac_header>
11322_ACEOF
11323if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11324 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11325 ac_status=$?
11326 grep -v '^ *+' conftest.er1 >conftest.err
11327 rm -f conftest.er1
11328 cat conftest.err >&5
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); } >/dev/null; then
11331 if test -s conftest.err; then
11332 ac_cpp_err=$ac_c_preproc_warn_flag
11333 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11334 else
11335 ac_cpp_err=
11336 fi
11337else
11338 ac_cpp_err=yes
3b78cdbb 11339fi
bec39cab
AC
11340if test -z "$ac_cpp_err"; then
11341 ac_header_preproc=yes
11342else
11343 echo "$as_me: failed program was:" >&5
11344sed 's/^/| /' conftest.$ac_ext >&5
11345
11346 ac_header_preproc=no
3b78cdbb 11347fi
bec39cab 11348rm -f conftest.err conftest.$ac_ext
b4e70030
JB
11349echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11350echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
11351
11352# So? What about this header?
11353case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11354 yes:no: )
11355 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11356echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11358echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11359 ac_header_preproc=yes
11360 ;;
11361 no:yes:* )
11362 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11363echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11364 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11365echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11366 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11367echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11368 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11369echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11371echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11372 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11373echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
11374 (
11375 cat <<\_ASBOX
11376## ------------------------------------------ ##
11377## Report this to the AC_PACKAGE_NAME lists. ##
11378## ------------------------------------------ ##
11379_ASBOX
11380 ) |
11381 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
11382 ;;
11383esac
b4e70030
JB
11384echo "$as_me:$LINENO: checking for $ac_header" >&5
11385echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11386if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 11387 echo $ECHO_N "(cached) $ECHO_C" >&6
3b78cdbb 11388else
bec39cab
AC
11389 eval "$as_ac_Header=\$ac_header_preproc"
11390fi
b4e70030
JB
11391echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11392echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 11393
3b78cdbb 11394fi
bec39cab
AC
11395if test `eval echo '${'$as_ac_Header'}'` = yes; then
11396 cat >>confdefs.h <<_ACEOF
11397#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11398_ACEOF
11399
11400fi
11401
3b78cdbb
DA
11402done
11403
c906108c 11404
065a1afc
JB
11405for ac_header in term.h
11406do
11407as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11408echo "$as_me:$LINENO: checking for $ac_header" >&5
11409echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11410if eval "test \"\${$as_ac_Header+set}\" = set"; then
065a1afc
JB
11411 echo $ECHO_N "(cached) $ECHO_C" >&6
11412else
11413 cat >conftest.$ac_ext <<_ACEOF
11414/* confdefs.h. */
11415_ACEOF
11416cat confdefs.h >>conftest.$ac_ext
11417cat >>conftest.$ac_ext <<_ACEOF
11418/* end confdefs.h. */
11419#if HAVE_CURSES_H
11420# include <curses.h>
11421#endif
11422
11423
11424#include <$ac_header>
11425_ACEOF
11426rm -f conftest.$ac_objext
11427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11428 (eval $ac_compile) 2>conftest.er1
11429 ac_status=$?
11430 grep -v '^ *+' conftest.er1 >conftest.err
11431 rm -f conftest.er1
11432 cat conftest.err >&5
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); } &&
b4e70030
JB
11435 { ac_try='test -z "$ac_c_werror_flag"
11436 || test ! -s conftest.err'
065a1afc
JB
11437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11438 (eval $ac_try) 2>&5
11439 ac_status=$?
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); }; } &&
11442 { ac_try='test -s conftest.$ac_objext'
11443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11444 (eval $ac_try) 2>&5
11445 ac_status=$?
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); }; }; then
11448 eval "$as_ac_Header=yes"
11449else
11450 echo "$as_me: failed program was:" >&5
11451sed 's/^/| /' conftest.$ac_ext >&5
11452
b4e70030 11453eval "$as_ac_Header=no"
065a1afc
JB
11454fi
11455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11456fi
b4e70030
JB
11457echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11458echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
065a1afc
JB
11459if test `eval echo '${'$as_ac_Header'}'` = yes; then
11460 cat >>confdefs.h <<_ACEOF
11461#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11462_ACEOF
11463
11464fi
11465
11466done
11467
11468
d542061a
UW
11469# Check for HP/UX 64-bit shared library support
11470
11471for ac_header in elf_hp.h
11472do
11473as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11474if eval "test \"\${$as_ac_Header+set}\" = set"; then
11475 echo "$as_me:$LINENO: checking for $ac_header" >&5
11476echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11477if eval "test \"\${$as_ac_Header+set}\" = set"; then
11478 echo $ECHO_N "(cached) $ECHO_C" >&6
11479fi
11480echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11481echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11482else
11483 # Is the header compilable?
11484echo "$as_me:$LINENO: checking $ac_header usability" >&5
11485echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11486cat >conftest.$ac_ext <<_ACEOF
11487/* confdefs.h. */
11488_ACEOF
11489cat confdefs.h >>conftest.$ac_ext
11490cat >>conftest.$ac_ext <<_ACEOF
11491/* end confdefs.h. */
11492$ac_includes_default
11493#include <$ac_header>
11494_ACEOF
11495rm -f conftest.$ac_objext
11496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11497 (eval $ac_compile) 2>conftest.er1
11498 ac_status=$?
11499 grep -v '^ *+' conftest.er1 >conftest.err
11500 rm -f conftest.er1
11501 cat conftest.err >&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); } &&
11504 { ac_try='test -z "$ac_c_werror_flag"
11505 || test ! -s conftest.err'
11506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11507 (eval $ac_try) 2>&5
11508 ac_status=$?
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); }; } &&
11511 { ac_try='test -s conftest.$ac_objext'
11512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11513 (eval $ac_try) 2>&5
11514 ac_status=$?
11515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11516 (exit $ac_status); }; }; then
11517 ac_header_compiler=yes
11518else
11519 echo "$as_me: failed program was:" >&5
11520sed 's/^/| /' conftest.$ac_ext >&5
11521
11522ac_header_compiler=no
11523fi
11524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11525echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11526echo "${ECHO_T}$ac_header_compiler" >&6
11527
11528# Is the header present?
11529echo "$as_me:$LINENO: checking $ac_header presence" >&5
11530echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11531cat >conftest.$ac_ext <<_ACEOF
11532/* confdefs.h. */
11533_ACEOF
11534cat confdefs.h >>conftest.$ac_ext
11535cat >>conftest.$ac_ext <<_ACEOF
11536/* end confdefs.h. */
11537#include <$ac_header>
11538_ACEOF
11539if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11540 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11541 ac_status=$?
11542 grep -v '^ *+' conftest.er1 >conftest.err
11543 rm -f conftest.er1
11544 cat conftest.err >&5
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); } >/dev/null; then
11547 if test -s conftest.err; then
11548 ac_cpp_err=$ac_c_preproc_warn_flag
11549 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11550 else
11551 ac_cpp_err=
11552 fi
11553else
11554 ac_cpp_err=yes
11555fi
11556if test -z "$ac_cpp_err"; then
11557 ac_header_preproc=yes
11558else
11559 echo "$as_me: failed program was:" >&5
11560sed 's/^/| /' conftest.$ac_ext >&5
11561
11562 ac_header_preproc=no
11563fi
11564rm -f conftest.err conftest.$ac_ext
11565echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11566echo "${ECHO_T}$ac_header_preproc" >&6
11567
11568# So? What about this header?
11569case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11570 yes:no: )
11571 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11572echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11574echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11575 ac_header_preproc=yes
11576 ;;
11577 no:yes:* )
11578 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11579echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11580 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11581echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11582 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11583echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11584 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11585echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11587echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11588 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11589echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11590 (
11591 cat <<\_ASBOX
11592## ------------------------------------------ ##
11593## Report this to the AC_PACKAGE_NAME lists. ##
11594## ------------------------------------------ ##
11595_ASBOX
11596 ) |
11597 sed "s/^/$as_me: WARNING: /" >&2
11598 ;;
11599esac
11600echo "$as_me:$LINENO: checking for $ac_header" >&5
11601echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11602if eval "test \"\${$as_ac_Header+set}\" = set"; then
11603 echo $ECHO_N "(cached) $ECHO_C" >&6
11604else
11605 eval "$as_ac_Header=\$ac_header_preproc"
11606fi
11607echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11608echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11609
11610fi
11611if test `eval echo '${'$as_ac_Header'}'` = yes; then
11612 cat >>confdefs.h <<_ACEOF
11613#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11614_ACEOF
11615
11616fi
11617
11618done
11619
11620
5ee754fc
MK
11621# FIXME: kettenis/20030102: In most cases we include these
11622# unconditionally, so what's the point in checking these?
bec39cab
AC
11623
11624
11625for ac_header in ctype.h time.h
c906108c 11626do
bec39cab 11627as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11628if eval "test \"\${$as_ac_Header+set}\" = set"; then
11629 echo "$as_me:$LINENO: checking for $ac_header" >&5
11630echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11631if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11632 echo $ECHO_N "(cached) $ECHO_C" >&6
11633fi
b4e70030
JB
11634echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11635echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11636else
11637 # Is the header compilable?
b4e70030
JB
11638echo "$as_me:$LINENO: checking $ac_header usability" >&5
11639echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
11640cat >conftest.$ac_ext <<_ACEOF
11641/* confdefs.h. */
11642_ACEOF
11643cat confdefs.h >>conftest.$ac_ext
11644cat >>conftest.$ac_ext <<_ACEOF
11645/* end confdefs.h. */
11646$ac_includes_default
11647#include <$ac_header>
11648_ACEOF
11649rm -f conftest.$ac_objext
11650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11651 (eval $ac_compile) 2>conftest.er1
11652 ac_status=$?
11653 grep -v '^ *+' conftest.er1 >conftest.err
11654 rm -f conftest.er1
11655 cat conftest.err >&5
11656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11657 (exit $ac_status); } &&
b4e70030
JB
11658 { ac_try='test -z "$ac_c_werror_flag"
11659 || test ! -s conftest.err'
bec39cab
AC
11660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11661 (eval $ac_try) 2>&5
11662 ac_status=$?
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); }; } &&
11665 { ac_try='test -s conftest.$ac_objext'
11666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11667 (eval $ac_try) 2>&5
11668 ac_status=$?
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); }; }; then
11671 ac_header_compiler=yes
11672else
11673 echo "$as_me: failed program was:" >&5
11674sed 's/^/| /' conftest.$ac_ext >&5
11675
b4e70030 11676ac_header_compiler=no
bec39cab
AC
11677fi
11678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
11679echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11680echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
11681
11682# Is the header present?
b4e70030
JB
11683echo "$as_me:$LINENO: checking $ac_header presence" >&5
11684echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
11685cat >conftest.$ac_ext <<_ACEOF
11686/* confdefs.h. */
11687_ACEOF
11688cat confdefs.h >>conftest.$ac_ext
11689cat >>conftest.$ac_ext <<_ACEOF
11690/* end confdefs.h. */
11691#include <$ac_header>
11692_ACEOF
11693if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11694 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11695 ac_status=$?
11696 grep -v '^ *+' conftest.er1 >conftest.err
11697 rm -f conftest.er1
11698 cat conftest.err >&5
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); } >/dev/null; then
11701 if test -s conftest.err; then
11702 ac_cpp_err=$ac_c_preproc_warn_flag
11703 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11704 else
11705 ac_cpp_err=
11706 fi
11707else
11708 ac_cpp_err=yes
c906108c 11709fi
bec39cab
AC
11710if test -z "$ac_cpp_err"; then
11711 ac_header_preproc=yes
11712else
11713 echo "$as_me: failed program was:" >&5
11714sed 's/^/| /' conftest.$ac_ext >&5
11715
11716 ac_header_preproc=no
c906108c 11717fi
bec39cab 11718rm -f conftest.err conftest.$ac_ext
b4e70030
JB
11719echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11720echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
11721
11722# So? What about this header?
11723case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11724 yes:no: )
11725 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11726echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11728echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11729 ac_header_preproc=yes
11730 ;;
11731 no:yes:* )
11732 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11733echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11734 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11735echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11736 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11737echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11738 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11739echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11740 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11741echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11742 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11743echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
11744 (
11745 cat <<\_ASBOX
11746## ------------------------------------------ ##
11747## Report this to the AC_PACKAGE_NAME lists. ##
11748## ------------------------------------------ ##
11749_ASBOX
11750 ) |
11751 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
11752 ;;
11753esac
b4e70030
JB
11754echo "$as_me:$LINENO: checking for $ac_header" >&5
11755echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11756if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 11757 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 11758else
bec39cab
AC
11759 eval "$as_ac_Header=\$ac_header_preproc"
11760fi
b4e70030
JB
11761echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11762echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11763
11764fi
11765if test `eval echo '${'$as_ac_Header'}'` = yes; then
11766 cat >>confdefs.h <<_ACEOF
11767#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11768_ACEOF
11769
c906108c 11770fi
bec39cab 11771
c906108c
SS
11772done
11773
5ee754fc 11774
4e8d927d 11775# Create a header we can use portably to get the standard integer types.
666ec76f 11776
4e8d927d
DJ
11777
11778inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
11779
11780acx_cv_header_stdint=stddef.h
11781acx_cv_header_stdint_kind="(already complete)"
11782for i in stdint.h $inttype_headers; do
11783 unset ac_cv_type_uintptr_t
11784 unset ac_cv_type_uintmax_t
11785 unset ac_cv_type_int_least32_t
11786 unset ac_cv_type_int_fast32_t
11787 unset ac_cv_type_uint64_t
11788 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
b4e70030
JB
11789 echo "$as_me:$LINENO: checking for uintmax_t" >&5
11790echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
4e8d927d 11791if test "${ac_cv_type_uintmax_t+set}" = set; then
bec39cab 11792 echo $ECHO_N "(cached) $ECHO_C" >&6
40a7debc 11793else
bec39cab
AC
11794 cat >conftest.$ac_ext <<_ACEOF
11795/* confdefs.h. */
11796_ACEOF
11797cat confdefs.h >>conftest.$ac_ext
11798cat >>conftest.$ac_ext <<_ACEOF
11799/* end confdefs.h. */
4e8d927d
DJ
11800#include <sys/types.h>
11801#include <$i>
11802
bec39cab
AC
11803int
11804main ()
11805{
b4e70030 11806if ((uintmax_t *) 0)
4e8d927d 11807 return 0;
b4e70030 11808if (sizeof (uintmax_t))
4e8d927d
DJ
11809 return 0;
11810 ;
bec39cab
AC
11811 return 0;
11812}
11813_ACEOF
11814rm -f conftest.$ac_objext
11815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11816 (eval $ac_compile) 2>conftest.er1
11817 ac_status=$?
11818 grep -v '^ *+' conftest.er1 >conftest.err
11819 rm -f conftest.er1
11820 cat conftest.err >&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); } &&
b4e70030
JB
11823 { ac_try='test -z "$ac_c_werror_flag"
11824 || test ! -s conftest.err'
bec39cab
AC
11825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11826 (eval $ac_try) 2>&5
11827 ac_status=$?
11828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829 (exit $ac_status); }; } &&
11830 { ac_try='test -s conftest.$ac_objext'
11831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11832 (eval $ac_try) 2>&5
11833 ac_status=$?
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); }; }; then
4e8d927d 11836 ac_cv_type_uintmax_t=yes
40a7debc 11837else
bec39cab
AC
11838 echo "$as_me: failed program was:" >&5
11839sed 's/^/| /' conftest.$ac_ext >&5
11840
b4e70030 11841ac_cv_type_uintmax_t=no
40a7debc 11842fi
bec39cab 11843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40a7debc 11844fi
b4e70030
JB
11845echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
11846echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
4e8d927d
DJ
11847if test $ac_cv_type_uintmax_t = yes; then
11848 acx_cv_header_stdint=$i
666ec76f 11849else
4e8d927d 11850 continue
666ec76f 11851fi
4e8d927d 11852
b4e70030
JB
11853 echo "$as_me:$LINENO: checking for uintptr_t" >&5
11854echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4e8d927d 11855if test "${ac_cv_type_uintptr_t+set}" = set; then
bec39cab
AC
11856 echo $ECHO_N "(cached) $ECHO_C" >&6
11857else
11858 cat >conftest.$ac_ext <<_ACEOF
11859/* confdefs.h. */
11860_ACEOF
11861cat confdefs.h >>conftest.$ac_ext
11862cat >>conftest.$ac_ext <<_ACEOF
11863/* end confdefs.h. */
4e8d927d
DJ
11864#include <sys/types.h>
11865#include <$i>
11866
666ec76f
MK
11867int
11868main ()
11869{
b4e70030 11870if ((uintptr_t *) 0)
4e8d927d 11871 return 0;
b4e70030 11872if (sizeof (uintptr_t))
4e8d927d 11873 return 0;
666ec76f
MK
11874 ;
11875 return 0;
11876}
11877_ACEOF
11878rm -f conftest.$ac_objext
11879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11880 (eval $ac_compile) 2>conftest.er1
11881 ac_status=$?
11882 grep -v '^ *+' conftest.er1 >conftest.err
11883 rm -f conftest.er1
11884 cat conftest.err >&5
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); } &&
b4e70030
JB
11887 { ac_try='test -z "$ac_c_werror_flag"
11888 || test ! -s conftest.err'
666ec76f
MK
11889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11890 (eval $ac_try) 2>&5
11891 ac_status=$?
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); }; } &&
11894 { ac_try='test -s conftest.$ac_objext'
11895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11896 (eval $ac_try) 2>&5
11897 ac_status=$?
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); }; }; then
4e8d927d 11900 ac_cv_type_uintptr_t=yes
666ec76f
MK
11901else
11902 echo "$as_me: failed program was:" >&5
11903sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 11904
b4e70030 11905ac_cv_type_uintptr_t=no
a3828db0
MK
11906fi
11907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11908fi
b4e70030
JB
11909echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11910echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4e8d927d
DJ
11911if test $ac_cv_type_uintptr_t = yes; then
11912 :
a3828db0 11913else
4e8d927d 11914 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 11915fi
4e8d927d 11916
b4e70030
JB
11917 echo "$as_me:$LINENO: checking for int_least32_t" >&5
11918echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
4e8d927d 11919if test "${ac_cv_type_int_least32_t+set}" = set; then
a3828db0
MK
11920 echo $ECHO_N "(cached) $ECHO_C" >&6
11921else
11922 cat >conftest.$ac_ext <<_ACEOF
666ec76f
MK
11923/* confdefs.h. */
11924_ACEOF
11925cat confdefs.h >>conftest.$ac_ext
11926cat >>conftest.$ac_ext <<_ACEOF
11927/* end confdefs.h. */
4e8d927d
DJ
11928#include <sys/types.h>
11929#include <$i>
11930
bec39cab
AC
11931int
11932main ()
11933{
b4e70030 11934if ((int_least32_t *) 0)
4e8d927d 11935 return 0;
b4e70030 11936if (sizeof (int_least32_t))
4e8d927d 11937 return 0;
bec39cab
AC
11938 ;
11939 return 0;
11940}
11941_ACEOF
11942rm -f conftest.$ac_objext
11943if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11944 (eval $ac_compile) 2>conftest.er1
11945 ac_status=$?
11946 grep -v '^ *+' conftest.er1 >conftest.err
11947 rm -f conftest.er1
11948 cat conftest.err >&5
11949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950 (exit $ac_status); } &&
b4e70030
JB
11951 { ac_try='test -z "$ac_c_werror_flag"
11952 || test ! -s conftest.err'
bec39cab
AC
11953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11954 (eval $ac_try) 2>&5
11955 ac_status=$?
11956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957 (exit $ac_status); }; } &&
11958 { ac_try='test -s conftest.$ac_objext'
11959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11960 (eval $ac_try) 2>&5
11961 ac_status=$?
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); }; }; then
4e8d927d 11964 ac_cv_type_int_least32_t=yes
b9362cc7 11965else
bec39cab
AC
11966 echo "$as_me: failed program was:" >&5
11967sed 's/^/| /' conftest.$ac_ext >&5
11968
b4e70030 11969ac_cv_type_int_least32_t=no
b9362cc7 11970fi
bec39cab 11971rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b9362cc7 11972fi
b4e70030
JB
11973echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
11974echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
4e8d927d
DJ
11975if test $ac_cv_type_int_least32_t = yes; then
11976 :
a3828db0 11977else
4e8d927d 11978 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 11979fi
5ee754fc 11980
b4e70030
JB
11981 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
11982echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
4e8d927d 11983if test "${ac_cv_type_int_fast32_t+set}" = set; then
bec39cab
AC
11984 echo $ECHO_N "(cached) $ECHO_C" >&6
11985else
11986 cat >conftest.$ac_ext <<_ACEOF
11987/* confdefs.h. */
11988_ACEOF
11989cat confdefs.h >>conftest.$ac_ext
11990cat >>conftest.$ac_ext <<_ACEOF
11991/* end confdefs.h. */
4e8d927d
DJ
11992#include <sys/types.h>
11993#include <$i>
11994
bec39cab
AC
11995int
11996main ()
11997{
b4e70030 11998if ((int_fast32_t *) 0)
4e8d927d 11999 return 0;
b4e70030 12000if (sizeof (int_fast32_t))
4e8d927d 12001 return 0;
bec39cab
AC
12002 ;
12003 return 0;
12004}
12005_ACEOF
12006rm -f conftest.$ac_objext
12007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12008 (eval $ac_compile) 2>conftest.er1
12009 ac_status=$?
12010 grep -v '^ *+' conftest.er1 >conftest.err
12011 rm -f conftest.er1
12012 cat conftest.err >&5
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); } &&
b4e70030
JB
12015 { ac_try='test -z "$ac_c_werror_flag"
12016 || test ! -s conftest.err'
bec39cab
AC
12017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12018 (eval $ac_try) 2>&5
12019 ac_status=$?
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); }; } &&
12022 { ac_try='test -s conftest.$ac_objext'
12023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12024 (eval $ac_try) 2>&5
12025 ac_status=$?
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); }; }; then
4e8d927d 12028 ac_cv_type_int_fast32_t=yes
c906108c 12029else
bec39cab
AC
12030 echo "$as_me: failed program was:" >&5
12031sed 's/^/| /' conftest.$ac_ext >&5
12032
b4e70030 12033ac_cv_type_int_fast32_t=no
c906108c 12034fi
bec39cab 12035rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 12036fi
b4e70030
JB
12037echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
12038echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
4e8d927d
DJ
12039if test $ac_cv_type_int_fast32_t = yes; then
12040 :
a3828db0 12041else
4e8d927d 12042 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 12043fi
4e8d927d 12044
b4e70030
JB
12045 echo "$as_me:$LINENO: checking for uint64_t" >&5
12046echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
4e8d927d 12047if test "${ac_cv_type_uint64_t+set}" = set; then
bec39cab
AC
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12049else
12050 cat >conftest.$ac_ext <<_ACEOF
12051/* confdefs.h. */
12052_ACEOF
12053cat confdefs.h >>conftest.$ac_ext
12054cat >>conftest.$ac_ext <<_ACEOF
12055/* end confdefs.h. */
4e8d927d
DJ
12056#include <sys/types.h>
12057#include <$i>
12058
bec39cab
AC
12059int
12060main ()
12061{
b4e70030 12062if ((uint64_t *) 0)
4e8d927d 12063 return 0;
b4e70030 12064if (sizeof (uint64_t))
4e8d927d 12065 return 0;
bec39cab
AC
12066 ;
12067 return 0;
12068}
12069_ACEOF
12070rm -f conftest.$ac_objext
12071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12072 (eval $ac_compile) 2>conftest.er1
12073 ac_status=$?
12074 grep -v '^ *+' conftest.er1 >conftest.err
12075 rm -f conftest.er1
12076 cat conftest.err >&5
12077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078 (exit $ac_status); } &&
b4e70030
JB
12079 { ac_try='test -z "$ac_c_werror_flag"
12080 || test ! -s conftest.err'
bec39cab
AC
12081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12082 (eval $ac_try) 2>&5
12083 ac_status=$?
12084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); }; } &&
12086 { ac_try='test -s conftest.$ac_objext'
12087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12088 (eval $ac_try) 2>&5
12089 ac_status=$?
12090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); }; }; then
4e8d927d 12092 ac_cv_type_uint64_t=yes
c906108c 12093else
bec39cab
AC
12094 echo "$as_me: failed program was:" >&5
12095sed 's/^/| /' conftest.$ac_ext >&5
12096
b4e70030 12097ac_cv_type_uint64_t=no
c906108c 12098fi
bec39cab 12099rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 12100fi
b4e70030
JB
12101echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
12102echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
4e8d927d
DJ
12103if test $ac_cv_type_uint64_t = yes; then
12104 :
a3828db0 12105else
4e8d927d 12106 acx_cv_header_stdint_kind="(lacks uint64_t)"
c906108c
SS
12107fi
12108
4e8d927d
DJ
12109 break
12110done
12111if test "$acx_cv_header_stdint" = stddef.h; then
3841debe 12112 acx_cv_header_stdint_kind="(lacks uintmax_t)"
4e8d927d 12113 for i in stdint.h $inttype_headers; do
3841debe 12114 unset ac_cv_type_uintptr_t
4e8d927d
DJ
12115 unset ac_cv_type_uint32_t
12116 unset ac_cv_type_uint64_t
12117 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
b4e70030
JB
12118 echo "$as_me:$LINENO: checking for uint32_t" >&5
12119echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
4e8d927d 12120if test "${ac_cv_type_uint32_t+set}" = set; then
bec39cab 12121 echo $ECHO_N "(cached) $ECHO_C" >&6
bce58c09 12122else
bec39cab
AC
12123 cat >conftest.$ac_ext <<_ACEOF
12124/* confdefs.h. */
12125_ACEOF
12126cat confdefs.h >>conftest.$ac_ext
12127cat >>conftest.$ac_ext <<_ACEOF
12128/* end confdefs.h. */
4e8d927d
DJ
12129#include <sys/types.h>
12130#include <$i>
12131
a3828db0
MK
12132int
12133main ()
12134{
b4e70030 12135if ((uint32_t *) 0)
4e8d927d 12136 return 0;
b4e70030 12137if (sizeof (uint32_t))
4e8d927d 12138 return 0;
a3828db0
MK
12139 ;
12140 return 0;
12141}
bec39cab
AC
12142_ACEOF
12143rm -f conftest.$ac_objext
12144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12145 (eval $ac_compile) 2>conftest.er1
12146 ac_status=$?
12147 grep -v '^ *+' conftest.er1 >conftest.err
12148 rm -f conftest.er1
12149 cat conftest.err >&5
12150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12151 (exit $ac_status); } &&
b4e70030
JB
12152 { ac_try='test -z "$ac_c_werror_flag"
12153 || test ! -s conftest.err'
bec39cab
AC
12154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12155 (eval $ac_try) 2>&5
12156 ac_status=$?
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); }; } &&
12159 { ac_try='test -s conftest.$ac_objext'
12160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12161 (eval $ac_try) 2>&5
12162 ac_status=$?
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); }; }; then
4e8d927d 12165 ac_cv_type_uint32_t=yes
bce58c09 12166else
bec39cab
AC
12167 echo "$as_me: failed program was:" >&5
12168sed 's/^/| /' conftest.$ac_ext >&5
12169
b4e70030 12170ac_cv_type_uint32_t=no
bce58c09 12171fi
bec39cab 12172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bce58c09 12173fi
b4e70030
JB
12174echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
12175echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
4e8d927d
DJ
12176if test $ac_cv_type_uint32_t = yes; then
12177 acx_cv_header_stdint=$i
a3828db0 12178else
4e8d927d 12179 continue
e5a7de23 12180fi
4e8d927d 12181
b4e70030
JB
12182 echo "$as_me:$LINENO: checking for uint64_t" >&5
12183echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
4e8d927d 12184if test "${ac_cv_type_uint64_t+set}" = set; then
e5a7de23
EZ
12185 echo $ECHO_N "(cached) $ECHO_C" >&6
12186else
12187 cat >conftest.$ac_ext <<_ACEOF
12188/* confdefs.h. */
12189_ACEOF
12190cat confdefs.h >>conftest.$ac_ext
12191cat >>conftest.$ac_ext <<_ACEOF
12192/* end confdefs.h. */
4e8d927d
DJ
12193#include <sys/types.h>
12194#include <$i>
12195
e5a7de23
EZ
12196int
12197main ()
12198{
b4e70030 12199if ((uint64_t *) 0)
4e8d927d 12200 return 0;
b4e70030 12201if (sizeof (uint64_t))
4e8d927d 12202 return 0;
e5a7de23
EZ
12203 ;
12204 return 0;
12205}
12206_ACEOF
12207rm -f conftest.$ac_objext
12208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12209 (eval $ac_compile) 2>conftest.er1
12210 ac_status=$?
12211 grep -v '^ *+' conftest.er1 >conftest.err
12212 rm -f conftest.er1
12213 cat conftest.err >&5
12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); } &&
b4e70030
JB
12216 { ac_try='test -z "$ac_c_werror_flag"
12217 || test ! -s conftest.err'
e5a7de23
EZ
12218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12219 (eval $ac_try) 2>&5
12220 ac_status=$?
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); }; } &&
12223 { ac_try='test -s conftest.$ac_objext'
12224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225 (eval $ac_try) 2>&5
12226 ac_status=$?
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }; }; then
4e8d927d 12229 ac_cv_type_uint64_t=yes
e5a7de23
EZ
12230else
12231 echo "$as_me: failed program was:" >&5
12232sed 's/^/| /' conftest.$ac_ext >&5
12233
b4e70030 12234ac_cv_type_uint64_t=no
e5a7de23
EZ
12235fi
12236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12237fi
b4e70030
JB
12238echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
12239echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
3841debe
DJ
12240
12241 echo "$as_me:$LINENO: checking for uintptr_t" >&5
12242echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
12243if test "${ac_cv_type_uintptr_t+set}" = set; then
12244 echo $ECHO_N "(cached) $ECHO_C" >&6
12245else
12246 cat >conftest.$ac_ext <<_ACEOF
12247/* confdefs.h. */
12248_ACEOF
12249cat confdefs.h >>conftest.$ac_ext
12250cat >>conftest.$ac_ext <<_ACEOF
12251/* end confdefs.h. */
12252#include <sys/types.h>
12253#include <$i>
12254
12255int
12256main ()
12257{
12258if ((uintptr_t *) 0)
12259 return 0;
12260if (sizeof (uintptr_t))
12261 return 0;
12262 ;
12263 return 0;
12264}
12265_ACEOF
12266rm -f conftest.$ac_objext
12267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12268 (eval $ac_compile) 2>conftest.er1
12269 ac_status=$?
12270 grep -v '^ *+' conftest.er1 >conftest.err
12271 rm -f conftest.er1
12272 cat conftest.err >&5
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); } &&
12275 { ac_try='test -z "$ac_c_werror_flag"
12276 || test ! -s conftest.err'
12277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12278 (eval $ac_try) 2>&5
12279 ac_status=$?
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); }; } &&
12282 { ac_try='test -s conftest.$ac_objext'
12283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12284 (eval $ac_try) 2>&5
12285 ac_status=$?
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); }; }; then
12288 ac_cv_type_uintptr_t=yes
e5a7de23 12289else
3841debe
DJ
12290 echo "$as_me: failed program was:" >&5
12291sed 's/^/| /' conftest.$ac_ext >&5
12292
12293ac_cv_type_uintptr_t=no
4e8d927d 12294fi
3841debe
DJ
12295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12296fi
12297echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12298echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
e5a7de23 12299
4e8d927d
DJ
12300 break
12301 done
e5a7de23 12302fi
4e8d927d
DJ
12303if test "$acx_cv_header_stdint" = stddef.h; then
12304 acx_cv_header_stdint_kind="(u_intXX_t style)"
12305 for i in sys/types.h $inttype_headers; do
12306 unset ac_cv_type_u_int32_t
12307 unset ac_cv_type_u_int64_t
12308 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
b4e70030
JB
12309 echo "$as_me:$LINENO: checking for u_int32_t" >&5
12310echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
4e8d927d 12311if test "${ac_cv_type_u_int32_t+set}" = set; then
e5a7de23
EZ
12312 echo $ECHO_N "(cached) $ECHO_C" >&6
12313else
12314 cat >conftest.$ac_ext <<_ACEOF
12315/* confdefs.h. */
12316_ACEOF
12317cat confdefs.h >>conftest.$ac_ext
12318cat >>conftest.$ac_ext <<_ACEOF
12319/* end confdefs.h. */
4e8d927d
DJ
12320#include <sys/types.h>
12321#include <$i>
12322
e5a7de23
EZ
12323int
12324main ()
12325{
b4e70030 12326if ((u_int32_t *) 0)
4e8d927d 12327 return 0;
b4e70030 12328if (sizeof (u_int32_t))
4e8d927d 12329 return 0;
e5a7de23
EZ
12330 ;
12331 return 0;
12332}
12333_ACEOF
12334rm -f conftest.$ac_objext
12335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12336 (eval $ac_compile) 2>conftest.er1
12337 ac_status=$?
12338 grep -v '^ *+' conftest.er1 >conftest.err
12339 rm -f conftest.er1
12340 cat conftest.err >&5
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); } &&
b4e70030
JB
12343 { ac_try='test -z "$ac_c_werror_flag"
12344 || test ! -s conftest.err'
e5a7de23
EZ
12345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12346 (eval $ac_try) 2>&5
12347 ac_status=$?
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); }; } &&
12350 { ac_try='test -s conftest.$ac_objext'
12351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12352 (eval $ac_try) 2>&5
12353 ac_status=$?
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); }; }; then
4e8d927d 12356 ac_cv_type_u_int32_t=yes
e5a7de23
EZ
12357else
12358 echo "$as_me: failed program was:" >&5
12359sed 's/^/| /' conftest.$ac_ext >&5
12360
b4e70030 12361ac_cv_type_u_int32_t=no
e5a7de23
EZ
12362fi
12363rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12364fi
b4e70030
JB
12365echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
12366echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
4e8d927d
DJ
12367if test $ac_cv_type_u_int32_t = yes; then
12368 acx_cv_header_stdint=$i
e5a7de23 12369else
4e8d927d 12370 continue
a3828db0 12371fi
5ee754fc 12372
b4e70030
JB
12373 echo "$as_me:$LINENO: checking for u_int64_t" >&5
12374echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
4e8d927d 12375if test "${ac_cv_type_u_int64_t+set}" = set; then
bec39cab
AC
12376 echo $ECHO_N "(cached) $ECHO_C" >&6
12377else
12378 cat >conftest.$ac_ext <<_ACEOF
12379/* confdefs.h. */
12380_ACEOF
12381cat confdefs.h >>conftest.$ac_ext
12382cat >>conftest.$ac_ext <<_ACEOF
12383/* end confdefs.h. */
4e8d927d
DJ
12384#include <sys/types.h>
12385#include <$i>
12386
bec39cab
AC
12387int
12388main ()
12389{
b4e70030 12390if ((u_int64_t *) 0)
4e8d927d 12391 return 0;
b4e70030 12392if (sizeof (u_int64_t))
4e8d927d 12393 return 0;
bec39cab
AC
12394 ;
12395 return 0;
12396}
12397_ACEOF
a3828db0
MK
12398rm -f conftest.$ac_objext
12399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12400 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
12401 ac_status=$?
12402 grep -v '^ *+' conftest.er1 >conftest.err
12403 rm -f conftest.er1
12404 cat conftest.err >&5
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); } &&
b4e70030
JB
12407 { ac_try='test -z "$ac_c_werror_flag"
12408 || test ! -s conftest.err'
bec39cab
AC
12409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12410 (eval $ac_try) 2>&5
12411 ac_status=$?
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); }; } &&
a3828db0 12414 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
12415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12416 (eval $ac_try) 2>&5
12417 ac_status=$?
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); }; }; then
4e8d927d 12420 ac_cv_type_u_int64_t=yes
bec39cab
AC
12421else
12422 echo "$as_me: failed program was:" >&5
12423sed 's/^/| /' conftest.$ac_ext >&5
12424
b4e70030 12425ac_cv_type_u_int64_t=no
4e8d927d 12426fi
4e8d927d
DJ
12427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12428fi
b4e70030
JB
12429echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
12430echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
4e8d927d
DJ
12431
12432 break
12433 done
12434fi
12435if test "$acx_cv_header_stdint" = stddef.h; then
12436 acx_cv_header_stdint_kind="(using manual detection)"
12437fi
12438
12439test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
12440test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
12441test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
12442test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
12443test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
12444
12445# ----------------- Summarize what we found so far
12446
b4e70030
JB
12447echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5
12448echo $ECHO_N "checking what to include in gdb_stdint.h... $ECHO_C" >&6
4e8d927d 12449
b4e70030 12450case `$as_basename gdb_stdint.h ||
4e8d927d
DJ
12451$as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
12452 Xgdb_stdint.h : 'X\(//\)$' \| \
b4e70030
JB
12453 Xgdb_stdint.h : 'X\(/\)$' \| \
12454 . : '\(.\)' 2>/dev/null ||
4e8d927d 12455echo X/gdb_stdint.h |
b4e70030
JB
12456 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12457 /^X\/\(\/\/\)$/{ s//\1/; q; }
12458 /^X\/\(\/\).*/{ s//\1/; q; }
12459 s/.*/./; q'` in
4e8d927d
DJ
12460 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
12461echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12462 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
12463echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12464 *) ;;
12465esac
12466
b4e70030
JB
12467echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
12468echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
4e8d927d
DJ
12469
12470# ----------------- done included file, check C basic types --------
12471
12472# Lacking an uintptr_t? Test size of void *
12473case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
b4e70030
JB
12474 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
12475echo $ECHO_N "checking for void *... $ECHO_C" >&6
4e8d927d
DJ
12476if test "${ac_cv_type_void_p+set}" = set; then
12477 echo $ECHO_N "(cached) $ECHO_C" >&6
12478else
12479 cat >conftest.$ac_ext <<_ACEOF
a3828db0 12480/* confdefs.h. */
bec39cab
AC
12481_ACEOF
12482cat confdefs.h >>conftest.$ac_ext
12483cat >>conftest.$ac_ext <<_ACEOF
12484/* end confdefs.h. */
a3828db0 12485$ac_includes_default
bec39cab
AC
12486int
12487main ()
12488{
b4e70030 12489if ((void * *) 0)
4e8d927d 12490 return 0;
b4e70030 12491if (sizeof (void *))
4e8d927d 12492 return 0;
bec39cab
AC
12493 ;
12494 return 0;
12495}
12496_ACEOF
a3828db0
MK
12497rm -f conftest.$ac_objext
12498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12499 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
12500 ac_status=$?
12501 grep -v '^ *+' conftest.er1 >conftest.err
12502 rm -f conftest.er1
12503 cat conftest.err >&5
12504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505 (exit $ac_status); } &&
b4e70030
JB
12506 { ac_try='test -z "$ac_c_werror_flag"
12507 || test ! -s conftest.err'
bec39cab
AC
12508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12509 (eval $ac_try) 2>&5
12510 ac_status=$?
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); }; } &&
a3828db0 12513 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
12514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12515 (eval $ac_try) 2>&5
12516 ac_status=$?
12517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518 (exit $ac_status); }; }; then
4e8d927d 12519 ac_cv_type_void_p=yes
46711df8 12520else
bec39cab
AC
12521 echo "$as_me: failed program was:" >&5
12522sed 's/^/| /' conftest.$ac_ext >&5
12523
b4e70030 12524ac_cv_type_void_p=no
a3828db0 12525fi
4e8d927d 12526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d3ea6809 12527fi
b4e70030
JB
12528echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
12529echo "${ECHO_T}$ac_cv_type_void_p" >&6
d3ea6809 12530
b4e70030
JB
12531echo "$as_me:$LINENO: checking size of void *" >&5
12532echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4e8d927d 12533if test "${ac_cv_sizeof_void_p+set}" = set; then
d3ea6809
MM
12534 echo $ECHO_N "(cached) $ECHO_C" >&6
12535else
4e8d927d 12536 if test "$ac_cv_type_void_p" = yes; then
b4e70030 12537 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
12538 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12539 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12540 # This bug is HP SR number 8606223364.
12541 if test "$cross_compiling" = yes; then
12542 # Depending upon the size, compute the lo and hi bounds.
12543cat >conftest.$ac_ext <<_ACEOF
d3ea6809
MM
12544/* confdefs.h. */
12545_ACEOF
12546cat confdefs.h >>conftest.$ac_ext
12547cat >>conftest.$ac_ext <<_ACEOF
12548/* end confdefs.h. */
12549$ac_includes_default
12550int
12551main ()
12552{
b4e70030 12553static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4e8d927d
DJ
12554test_array [0] = 0
12555
d3ea6809
MM
12556 ;
12557 return 0;
12558}
12559_ACEOF
12560rm -f conftest.$ac_objext
12561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12562 (eval $ac_compile) 2>conftest.er1
12563 ac_status=$?
12564 grep -v '^ *+' conftest.er1 >conftest.err
12565 rm -f conftest.er1
12566 cat conftest.err >&5
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); } &&
b4e70030
JB
12569 { ac_try='test -z "$ac_c_werror_flag"
12570 || test ! -s conftest.err'
d3ea6809
MM
12571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12572 (eval $ac_try) 2>&5
12573 ac_status=$?
12574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575 (exit $ac_status); }; } &&
12576 { ac_try='test -s conftest.$ac_objext'
12577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12578 (eval $ac_try) 2>&5
12579 ac_status=$?
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); }; }; then
4e8d927d
DJ
12582 ac_lo=0 ac_mid=0
12583 while :; do
12584 cat >conftest.$ac_ext <<_ACEOF
d3ea6809
MM
12585/* confdefs.h. */
12586_ACEOF
12587cat confdefs.h >>conftest.$ac_ext
12588cat >>conftest.$ac_ext <<_ACEOF
12589/* end confdefs.h. */
12590$ac_includes_default
12591int
12592main ()
12593{
b4e70030 12594static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4e8d927d
DJ
12595test_array [0] = 0
12596
d3ea6809
MM
12597 ;
12598 return 0;
12599}
12600_ACEOF
12601rm -f conftest.$ac_objext
12602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12603 (eval $ac_compile) 2>conftest.er1
12604 ac_status=$?
12605 grep -v '^ *+' conftest.er1 >conftest.err
12606 rm -f conftest.er1
12607 cat conftest.err >&5
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); } &&
b4e70030
JB
12610 { ac_try='test -z "$ac_c_werror_flag"
12611 || test ! -s conftest.err'
d3ea6809
MM
12612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12613 (eval $ac_try) 2>&5
12614 ac_status=$?
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); }; } &&
12617 { ac_try='test -s conftest.$ac_objext'
12618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12619 (eval $ac_try) 2>&5
12620 ac_status=$?
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); }; }; then
4e8d927d 12623 ac_hi=$ac_mid; break
d3ea6809
MM
12624else
12625 echo "$as_me: failed program was:" >&5
12626sed 's/^/| /' conftest.$ac_ext >&5
12627
b4e70030
JB
12628ac_lo=`expr $ac_mid + 1`
12629 if test $ac_lo -le $ac_mid; then
12630 ac_lo= ac_hi=
12631 break
12632 fi
12633 ac_mid=`expr 2 '*' $ac_mid + 1`
a3828db0 12634fi
4e8d927d
DJ
12635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12636 done
bec39cab 12637else
4e8d927d
DJ
12638 echo "$as_me: failed program was:" >&5
12639sed 's/^/| /' conftest.$ac_ext >&5
12640
b4e70030 12641cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
12642/* confdefs.h. */
12643_ACEOF
12644cat confdefs.h >>conftest.$ac_ext
12645cat >>conftest.$ac_ext <<_ACEOF
12646/* end confdefs.h. */
4e8d927d 12647$ac_includes_default
bec39cab
AC
12648int
12649main ()
12650{
b4e70030 12651static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4e8d927d
DJ
12652test_array [0] = 0
12653
bec39cab
AC
12654 ;
12655 return 0;
12656}
12657_ACEOF
a3828db0
MK
12658rm -f conftest.$ac_objext
12659if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12660 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
12661 ac_status=$?
12662 grep -v '^ *+' conftest.er1 >conftest.err
12663 rm -f conftest.er1
12664 cat conftest.err >&5
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); } &&
b4e70030
JB
12667 { ac_try='test -z "$ac_c_werror_flag"
12668 || test ! -s conftest.err'
bec39cab
AC
12669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12670 (eval $ac_try) 2>&5
12671 ac_status=$?
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); }; } &&
a3828db0 12674 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
12675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12676 (eval $ac_try) 2>&5
12677 ac_status=$?
12678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); }; }; then
4e8d927d
DJ
12680 ac_hi=-1 ac_mid=-1
12681 while :; do
12682 cat >conftest.$ac_ext <<_ACEOF
f9f87d2c
MK
12683/* confdefs.h. */
12684_ACEOF
12685cat confdefs.h >>conftest.$ac_ext
12686cat >>conftest.$ac_ext <<_ACEOF
12687/* end confdefs.h. */
4e8d927d 12688$ac_includes_default
f9f87d2c
MK
12689int
12690main ()
12691{
b4e70030 12692static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4e8d927d
DJ
12693test_array [0] = 0
12694
f9f87d2c
MK
12695 ;
12696 return 0;
12697}
12698_ACEOF
12699rm -f conftest.$ac_objext
12700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12701 (eval $ac_compile) 2>conftest.er1
12702 ac_status=$?
12703 grep -v '^ *+' conftest.er1 >conftest.err
12704 rm -f conftest.er1
12705 cat conftest.err >&5
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); } &&
b4e70030
JB
12708 { ac_try='test -z "$ac_c_werror_flag"
12709 || test ! -s conftest.err'
f9f87d2c
MK
12710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12711 (eval $ac_try) 2>&5
12712 ac_status=$?
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); }; } &&
12715 { ac_try='test -s conftest.$ac_objext'
12716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12717 (eval $ac_try) 2>&5
12718 ac_status=$?
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); }; }; then
4e8d927d 12721 ac_lo=$ac_mid; break
f9f87d2c
MK
12722else
12723 echo "$as_me: failed program was:" >&5
12724sed 's/^/| /' conftest.$ac_ext >&5
12725
b4e70030
JB
12726ac_hi=`expr '(' $ac_mid ')' - 1`
12727 if test $ac_mid -le $ac_hi; then
12728 ac_lo= ac_hi=
12729 break
12730 fi
12731 ac_mid=`expr 2 '*' $ac_mid`
f9f87d2c 12732fi
4e8d927d
DJ
12733rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12734 done
12735else
12736 echo "$as_me: failed program was:" >&5
12737sed 's/^/| /' conftest.$ac_ext >&5
f9f87d2c 12738
b4e70030 12739ac_lo= ac_hi=
4e8d927d 12740fi
4e8d927d 12741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3be60c3d 12742fi
4e8d927d
DJ
12743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12744# Binary search between lo and hi bounds.
12745while test "x$ac_lo" != "x$ac_hi"; do
12746 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3be60c3d
MK
12747 cat >conftest.$ac_ext <<_ACEOF
12748/* confdefs.h. */
12749_ACEOF
12750cat confdefs.h >>conftest.$ac_ext
12751cat >>conftest.$ac_ext <<_ACEOF
12752/* end confdefs.h. */
4e8d927d 12753$ac_includes_default
3be60c3d
MK
12754int
12755main ()
12756{
b4e70030 12757static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4e8d927d
DJ
12758test_array [0] = 0
12759
3be60c3d
MK
12760 ;
12761 return 0;
12762}
12763_ACEOF
12764rm -f conftest.$ac_objext
12765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12766 (eval $ac_compile) 2>conftest.er1
12767 ac_status=$?
12768 grep -v '^ *+' conftest.er1 >conftest.err
12769 rm -f conftest.er1
12770 cat conftest.err >&5
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); } &&
b4e70030
JB
12773 { ac_try='test -z "$ac_c_werror_flag"
12774 || test ! -s conftest.err'
3be60c3d
MK
12775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12776 (eval $ac_try) 2>&5
12777 ac_status=$?
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); }; } &&
12780 { ac_try='test -s conftest.$ac_objext'
12781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12782 (eval $ac_try) 2>&5
12783 ac_status=$?
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); }; }; then
4e8d927d 12786 ac_hi=$ac_mid
3be60c3d
MK
12787else
12788 echo "$as_me: failed program was:" >&5
12789sed 's/^/| /' conftest.$ac_ext >&5
12790
b4e70030 12791ac_lo=`expr '(' $ac_mid ')' + 1`
3be60c3d 12792fi
4e8d927d
DJ
12793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12794done
12795case $ac_lo in
12796?*) ac_cv_sizeof_void_p=$ac_lo;;
b4e70030 12797'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4e8d927d 12798See \`config.log' for more details." >&5
b4e70030 12799echo "$as_me: error: cannot compute sizeof (void *), 77
4e8d927d 12800See \`config.log' for more details." >&2;}
b4e70030 12801 { (exit 1); exit 1; }; } ;;
4e8d927d 12802esac
b4e70030
JB
12803else
12804 if test "$cross_compiling" = yes; then
12805 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12806See \`config.log' for more details." >&5
12807echo "$as_me: error: cannot run test program while cross compiling
12808See \`config.log' for more details." >&2;}
12809 { (exit 1); exit 1; }; }
4e8d927d
DJ
12810else
12811 cat >conftest.$ac_ext <<_ACEOF
12812/* confdefs.h. */
3be60c3d 12813_ACEOF
4e8d927d
DJ
12814cat confdefs.h >>conftest.$ac_ext
12815cat >>conftest.$ac_ext <<_ACEOF
12816/* end confdefs.h. */
12817$ac_includes_default
b4e70030
JB
12818long longval () { return (long) (sizeof (void *)); }
12819unsigned long ulongval () { return (long) (sizeof (void *)); }
4e8d927d
DJ
12820#include <stdio.h>
12821#include <stdlib.h>
12822int
12823main ()
12824{
12825
12826 FILE *f = fopen ("conftest.val", "w");
12827 if (! f)
b4e70030
JB
12828 exit (1);
12829 if (((long) (sizeof (void *))) < 0)
4e8d927d 12830 {
b4e70030
JB
12831 long i = longval ();
12832 if (i != ((long) (sizeof (void *))))
12833 exit (1);
4e8d927d
DJ
12834 fprintf (f, "%ld\n", i);
12835 }
12836 else
12837 {
b4e70030
JB
12838 unsigned long i = ulongval ();
12839 if (i != ((long) (sizeof (void *))))
12840 exit (1);
4e8d927d
DJ
12841 fprintf (f, "%lu\n", i);
12842 }
b4e70030 12843 exit (ferror (f) || fclose (f) != 0);
3be60c3d 12844
4e8d927d
DJ
12845 ;
12846 return 0;
12847}
12848_ACEOF
12849rm -f conftest$ac_exeext
12850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12851 (eval $ac_link) 2>&5
12852 ac_status=$?
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12856 (eval $ac_try) 2>&5
12857 ac_status=$?
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); }; }; then
12860 ac_cv_sizeof_void_p=`cat conftest.val`
12861else
12862 echo "$as_me: program exited with status $ac_status" >&5
12863echo "$as_me: failed program was:" >&5
12864sed 's/^/| /' conftest.$ac_ext >&5
3be60c3d 12865
4e8d927d 12866( exit $ac_status )
b4e70030 12867{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4e8d927d 12868See \`config.log' for more details." >&5
b4e70030 12869echo "$as_me: error: cannot compute sizeof (void *), 77
4e8d927d 12870See \`config.log' for more details." >&2;}
b4e70030
JB
12871 { (exit 1); exit 1; }; }
12872fi
12873rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f9f87d2c 12874fi
4e8d927d
DJ
12875fi
12876rm -f conftest.val
12877else
12878 ac_cv_sizeof_void_p=0
12879fi
12880fi
b4e70030
JB
12881echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
12882echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4e8d927d
DJ
12883cat >>confdefs.h <<_ACEOF
12884#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12885_ACEOF
f9f87d2c 12886
4e8d927d
DJ
12887 ;;
12888esac
46711df8 12889
4e8d927d
DJ
12890# Lacking an uint64_t? Test size of long
12891case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
b4e70030
JB
12892 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
12893echo $ECHO_N "checking for long... $ECHO_C" >&6
4e8d927d 12894if test "${ac_cv_type_long+set}" = set; then
bec39cab 12895 echo $ECHO_N "(cached) $ECHO_C" >&6
46711df8 12896else
bec39cab
AC
12897 cat >conftest.$ac_ext <<_ACEOF
12898/* confdefs.h. */
12899_ACEOF
12900cat confdefs.h >>conftest.$ac_ext
12901cat >>conftest.$ac_ext <<_ACEOF
12902/* end confdefs.h. */
4e8d927d 12903$ac_includes_default
bec39cab 12904int
46711df8
MK
12905main ()
12906{
b4e70030 12907if ((long *) 0)
4e8d927d 12908 return 0;
b4e70030 12909if (sizeof (long))
4e8d927d 12910 return 0;
a3828db0
MK
12911 ;
12912 return 0;
46711df8 12913}
bec39cab 12914_ACEOF
a3828db0
MK
12915rm -f conftest.$ac_objext
12916if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12917 (eval $ac_compile) 2>conftest.er1
12918 ac_status=$?
12919 grep -v '^ *+' conftest.er1 >conftest.err
12920 rm -f conftest.er1
12921 cat conftest.err >&5
12922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 (exit $ac_status); } &&
b4e70030
JB
12924 { ac_try='test -z "$ac_c_werror_flag"
12925 || test ! -s conftest.err'
a3828db0
MK
12926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12927 (eval $ac_try) 2>&5
bec39cab
AC
12928 ac_status=$?
12929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0
MK
12930 (exit $ac_status); }; } &&
12931 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
12932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12933 (eval $ac_try) 2>&5
12934 ac_status=$?
12935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12936 (exit $ac_status); }; }; then
4e8d927d 12937 ac_cv_type_long=yes
46711df8 12938else
a3828db0 12939 echo "$as_me: failed program was:" >&5
bec39cab
AC
12940sed 's/^/| /' conftest.$ac_ext >&5
12941
b4e70030 12942ac_cv_type_long=no
46711df8 12943fi
4e8d927d 12944rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46711df8 12945fi
b4e70030
JB
12946echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12947echo "${ECHO_T}$ac_cv_type_long" >&6
46711df8 12948
b4e70030
JB
12949echo "$as_me:$LINENO: checking size of long" >&5
12950echo $ECHO_N "checking size of long... $ECHO_C" >&6
4e8d927d 12951if test "${ac_cv_sizeof_long+set}" = set; then
bec39cab 12952 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 12953else
4e8d927d 12954 if test "$ac_cv_type_long" = yes; then
b4e70030 12955 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
12956 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12957 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12958 # This bug is HP SR number 8606223364.
12959 if test "$cross_compiling" = yes; then
12960 # Depending upon the size, compute the lo and hi bounds.
12961cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
12962/* confdefs.h. */
12963_ACEOF
12964cat confdefs.h >>conftest.$ac_ext
12965cat >>conftest.$ac_ext <<_ACEOF
12966/* end confdefs.h. */
4e8d927d 12967$ac_includes_default
4e8d927d
DJ
12968int
12969main ()
12970{
b4e70030 12971static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4e8d927d 12972test_array [0] = 0
a3828db0 12973
4e8d927d
DJ
12974 ;
12975 return 0;
12976}
bec39cab
AC
12977_ACEOF
12978rm -f conftest.$ac_objext
12979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12980 (eval $ac_compile) 2>conftest.er1
12981 ac_status=$?
12982 grep -v '^ *+' conftest.er1 >conftest.err
12983 rm -f conftest.er1
12984 cat conftest.err >&5
12985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986 (exit $ac_status); } &&
b4e70030
JB
12987 { ac_try='test -z "$ac_c_werror_flag"
12988 || test ! -s conftest.err'
bec39cab
AC
12989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12990 (eval $ac_try) 2>&5
12991 ac_status=$?
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); }; } &&
12994 { ac_try='test -s conftest.$ac_objext'
12995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12996 (eval $ac_try) 2>&5
12997 ac_status=$?
12998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12999 (exit $ac_status); }; }; then
4e8d927d
DJ
13000 ac_lo=0 ac_mid=0
13001 while :; do
13002 cat >conftest.$ac_ext <<_ACEOF
13003/* confdefs.h. */
13004_ACEOF
13005cat confdefs.h >>conftest.$ac_ext
13006cat >>conftest.$ac_ext <<_ACEOF
13007/* end confdefs.h. */
13008$ac_includes_default
4e8d927d
DJ
13009int
13010main ()
13011{
b4e70030 13012static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4e8d927d
DJ
13013test_array [0] = 0
13014
13015 ;
13016 return 0;
13017}
13018_ACEOF
13019rm -f conftest.$ac_objext
13020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13021 (eval $ac_compile) 2>conftest.er1
13022 ac_status=$?
13023 grep -v '^ *+' conftest.er1 >conftest.err
13024 rm -f conftest.er1
13025 cat conftest.err >&5
13026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027 (exit $ac_status); } &&
b4e70030
JB
13028 { ac_try='test -z "$ac_c_werror_flag"
13029 || test ! -s conftest.err'
4e8d927d
DJ
13030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13031 (eval $ac_try) 2>&5
13032 ac_status=$?
13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); }; } &&
13035 { ac_try='test -s conftest.$ac_objext'
13036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13037 (eval $ac_try) 2>&5
13038 ac_status=$?
13039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); }; }; then
13041 ac_hi=$ac_mid; break
13042else
13043 echo "$as_me: failed program was:" >&5
13044sed 's/^/| /' conftest.$ac_ext >&5
13045
b4e70030
JB
13046ac_lo=`expr $ac_mid + 1`
13047 if test $ac_lo -le $ac_mid; then
13048 ac_lo= ac_hi=
13049 break
13050 fi
13051 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 13052fi
4e8d927d
DJ
13053rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13054 done
13055else
13056 echo "$as_me: failed program was:" >&5
13057sed 's/^/| /' conftest.$ac_ext >&5
13058
b4e70030 13059cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
13060/* confdefs.h. */
13061_ACEOF
13062cat confdefs.h >>conftest.$ac_ext
13063cat >>conftest.$ac_ext <<_ACEOF
13064/* end confdefs.h. */
13065$ac_includes_default
4e8d927d
DJ
13066int
13067main ()
13068{
b4e70030 13069static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4e8d927d
DJ
13070test_array [0] = 0
13071
13072 ;
13073 return 0;
13074}
13075_ACEOF
13076rm -f conftest.$ac_objext
13077if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13078 (eval $ac_compile) 2>conftest.er1
13079 ac_status=$?
13080 grep -v '^ *+' conftest.er1 >conftest.err
13081 rm -f conftest.er1
13082 cat conftest.err >&5
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); } &&
b4e70030
JB
13085 { ac_try='test -z "$ac_c_werror_flag"
13086 || test ! -s conftest.err'
4e8d927d
DJ
13087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13088 (eval $ac_try) 2>&5
13089 ac_status=$?
13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); }; } &&
13092 { ac_try='test -s conftest.$ac_objext'
13093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13094 (eval $ac_try) 2>&5
13095 ac_status=$?
13096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097 (exit $ac_status); }; }; then
13098 ac_hi=-1 ac_mid=-1
13099 while :; do
13100 cat >conftest.$ac_ext <<_ACEOF
13101/* confdefs.h. */
13102_ACEOF
13103cat confdefs.h >>conftest.$ac_ext
13104cat >>conftest.$ac_ext <<_ACEOF
13105/* end confdefs.h. */
13106$ac_includes_default
4e8d927d
DJ
13107int
13108main ()
13109{
b4e70030 13110static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4e8d927d
DJ
13111test_array [0] = 0
13112
13113 ;
13114 return 0;
13115}
13116_ACEOF
13117rm -f conftest.$ac_objext
13118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13119 (eval $ac_compile) 2>conftest.er1
13120 ac_status=$?
13121 grep -v '^ *+' conftest.er1 >conftest.err
13122 rm -f conftest.er1
13123 cat conftest.err >&5
13124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125 (exit $ac_status); } &&
b4e70030
JB
13126 { ac_try='test -z "$ac_c_werror_flag"
13127 || test ! -s conftest.err'
4e8d927d
DJ
13128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13129 (eval $ac_try) 2>&5
13130 ac_status=$?
13131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132 (exit $ac_status); }; } &&
13133 { ac_try='test -s conftest.$ac_objext'
13134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13135 (eval $ac_try) 2>&5
13136 ac_status=$?
13137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138 (exit $ac_status); }; }; then
13139 ac_lo=$ac_mid; break
13140else
13141 echo "$as_me: failed program was:" >&5
13142sed 's/^/| /' conftest.$ac_ext >&5
13143
b4e70030
JB
13144ac_hi=`expr '(' $ac_mid ')' - 1`
13145 if test $ac_mid -le $ac_hi; then
13146 ac_lo= ac_hi=
13147 break
13148 fi
13149 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 13150fi
4e8d927d
DJ
13151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13152 done
13153else
13154 echo "$as_me: failed program was:" >&5
13155sed 's/^/| /' conftest.$ac_ext >&5
13156
b4e70030 13157ac_lo= ac_hi=
4e8d927d 13158fi
4e8d927d
DJ
13159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13160fi
4e8d927d
DJ
13161rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13162# Binary search between lo and hi bounds.
13163while test "x$ac_lo" != "x$ac_hi"; do
13164 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13165 cat >conftest.$ac_ext <<_ACEOF
13166/* confdefs.h. */
13167_ACEOF
13168cat confdefs.h >>conftest.$ac_ext
13169cat >>conftest.$ac_ext <<_ACEOF
13170/* end confdefs.h. */
13171$ac_includes_default
4e8d927d
DJ
13172int
13173main ()
13174{
b4e70030 13175static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4e8d927d
DJ
13176test_array [0] = 0
13177
13178 ;
13179 return 0;
13180}
13181_ACEOF
13182rm -f conftest.$ac_objext
13183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13184 (eval $ac_compile) 2>conftest.er1
13185 ac_status=$?
13186 grep -v '^ *+' conftest.er1 >conftest.err
13187 rm -f conftest.er1
13188 cat conftest.err >&5
13189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13190 (exit $ac_status); } &&
b4e70030
JB
13191 { ac_try='test -z "$ac_c_werror_flag"
13192 || test ! -s conftest.err'
4e8d927d
DJ
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); }; } &&
13198 { ac_try='test -s conftest.$ac_objext'
13199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13200 (eval $ac_try) 2>&5
13201 ac_status=$?
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); }; }; then
13204 ac_hi=$ac_mid
13205else
13206 echo "$as_me: failed program was:" >&5
13207sed 's/^/| /' conftest.$ac_ext >&5
13208
b4e70030 13209ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 13210fi
4e8d927d
DJ
13211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13212done
13213case $ac_lo in
13214?*) ac_cv_sizeof_long=$ac_lo;;
b4e70030 13215'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4e8d927d 13216See \`config.log' for more details." >&5
b4e70030 13217echo "$as_me: error: cannot compute sizeof (long), 77
4e8d927d 13218See \`config.log' for more details." >&2;}
b4e70030 13219 { (exit 1); exit 1; }; } ;;
4e8d927d 13220esac
b4e70030
JB
13221else
13222 if test "$cross_compiling" = yes; then
13223 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13224See \`config.log' for more details." >&5
13225echo "$as_me: error: cannot run test program while cross compiling
13226See \`config.log' for more details." >&2;}
13227 { (exit 1); exit 1; }; }
4e8d927d
DJ
13228else
13229 cat >conftest.$ac_ext <<_ACEOF
13230/* confdefs.h. */
13231_ACEOF
13232cat confdefs.h >>conftest.$ac_ext
13233cat >>conftest.$ac_ext <<_ACEOF
13234/* end confdefs.h. */
13235$ac_includes_default
b4e70030
JB
13236long longval () { return (long) (sizeof (long)); }
13237unsigned long ulongval () { return (long) (sizeof (long)); }
4e8d927d
DJ
13238#include <stdio.h>
13239#include <stdlib.h>
13240int
13241main ()
13242{
13243
13244 FILE *f = fopen ("conftest.val", "w");
13245 if (! f)
b4e70030
JB
13246 exit (1);
13247 if (((long) (sizeof (long))) < 0)
4e8d927d 13248 {
b4e70030
JB
13249 long i = longval ();
13250 if (i != ((long) (sizeof (long))))
13251 exit (1);
4e8d927d
DJ
13252 fprintf (f, "%ld\n", i);
13253 }
13254 else
13255 {
b4e70030
JB
13256 unsigned long i = ulongval ();
13257 if (i != ((long) (sizeof (long))))
13258 exit (1);
4e8d927d
DJ
13259 fprintf (f, "%lu\n", i);
13260 }
b4e70030 13261 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
13262
13263 ;
13264 return 0;
13265}
13266_ACEOF
13267rm -f conftest$ac_exeext
13268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13269 (eval $ac_link) 2>&5
13270 ac_status=$?
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13274 (eval $ac_try) 2>&5
13275 ac_status=$?
13276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277 (exit $ac_status); }; }; then
13278 ac_cv_sizeof_long=`cat conftest.val`
13279else
13280 echo "$as_me: program exited with status $ac_status" >&5
13281echo "$as_me: failed program was:" >&5
13282sed 's/^/| /' conftest.$ac_ext >&5
13283
13284( exit $ac_status )
b4e70030 13285{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4e8d927d 13286See \`config.log' for more details." >&5
b4e70030 13287echo "$as_me: error: cannot compute sizeof (long), 77
4e8d927d 13288See \`config.log' for more details." >&2;}
b4e70030
JB
13289 { (exit 1); exit 1; }; }
13290fi
13291rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 13292fi
4e8d927d
DJ
13293fi
13294rm -f conftest.val
13295else
13296 ac_cv_sizeof_long=0
13297fi
13298fi
b4e70030
JB
13299echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13300echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4e8d927d
DJ
13301cat >>confdefs.h <<_ACEOF
13302#define SIZEOF_LONG $ac_cv_sizeof_long
13303_ACEOF
13304
13305 ;;
13306esac
13307
13308if test $acx_cv_header_stdint = stddef.h; then
13309 # Lacking a good header? Test size of everything and deduce all types.
b4e70030
JB
13310 echo "$as_me:$LINENO: checking for int" >&5
13311echo $ECHO_N "checking for int... $ECHO_C" >&6
4e8d927d
DJ
13312if test "${ac_cv_type_int+set}" = set; then
13313 echo $ECHO_N "(cached) $ECHO_C" >&6
13314else
13315 cat >conftest.$ac_ext <<_ACEOF
13316/* confdefs.h. */
13317_ACEOF
13318cat confdefs.h >>conftest.$ac_ext
13319cat >>conftest.$ac_ext <<_ACEOF
13320/* end confdefs.h. */
13321$ac_includes_default
4e8d927d
DJ
13322int
13323main ()
13324{
b4e70030 13325if ((int *) 0)
4e8d927d 13326 return 0;
b4e70030 13327if (sizeof (int))
4e8d927d
DJ
13328 return 0;
13329 ;
13330 return 0;
13331}
13332_ACEOF
13333rm -f conftest.$ac_objext
13334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13335 (eval $ac_compile) 2>conftest.er1
13336 ac_status=$?
13337 grep -v '^ *+' conftest.er1 >conftest.err
13338 rm -f conftest.er1
13339 cat conftest.err >&5
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); } &&
b4e70030
JB
13342 { ac_try='test -z "$ac_c_werror_flag"
13343 || test ! -s conftest.err'
4e8d927d
DJ
13344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13345 (eval $ac_try) 2>&5
13346 ac_status=$?
13347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348 (exit $ac_status); }; } &&
13349 { ac_try='test -s conftest.$ac_objext'
13350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13351 (eval $ac_try) 2>&5
13352 ac_status=$?
13353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354 (exit $ac_status); }; }; then
13355 ac_cv_type_int=yes
13356else
13357 echo "$as_me: failed program was:" >&5
13358sed 's/^/| /' conftest.$ac_ext >&5
13359
b4e70030 13360ac_cv_type_int=no
4e8d927d 13361fi
4e8d927d
DJ
13362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13363fi
b4e70030
JB
13364echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13365echo "${ECHO_T}$ac_cv_type_int" >&6
4e8d927d 13366
b4e70030
JB
13367echo "$as_me:$LINENO: checking size of int" >&5
13368echo $ECHO_N "checking size of int... $ECHO_C" >&6
4e8d927d
DJ
13369if test "${ac_cv_sizeof_int+set}" = set; then
13370 echo $ECHO_N "(cached) $ECHO_C" >&6
13371else
13372 if test "$ac_cv_type_int" = yes; then
b4e70030 13373 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
13374 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13375 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13376 # This bug is HP SR number 8606223364.
13377 if test "$cross_compiling" = yes; then
13378 # Depending upon the size, compute the lo and hi bounds.
13379cat >conftest.$ac_ext <<_ACEOF
13380/* confdefs.h. */
13381_ACEOF
13382cat confdefs.h >>conftest.$ac_ext
13383cat >>conftest.$ac_ext <<_ACEOF
13384/* end confdefs.h. */
13385$ac_includes_default
4e8d927d
DJ
13386int
13387main ()
13388{
b4e70030 13389static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4e8d927d
DJ
13390test_array [0] = 0
13391
13392 ;
13393 return 0;
13394}
13395_ACEOF
13396rm -f conftest.$ac_objext
13397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13398 (eval $ac_compile) 2>conftest.er1
13399 ac_status=$?
13400 grep -v '^ *+' conftest.er1 >conftest.err
13401 rm -f conftest.er1
13402 cat conftest.err >&5
13403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404 (exit $ac_status); } &&
b4e70030
JB
13405 { ac_try='test -z "$ac_c_werror_flag"
13406 || test ! -s conftest.err'
4e8d927d
DJ
13407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13408 (eval $ac_try) 2>&5
13409 ac_status=$?
13410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13411 (exit $ac_status); }; } &&
13412 { ac_try='test -s conftest.$ac_objext'
13413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13414 (eval $ac_try) 2>&5
13415 ac_status=$?
13416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13417 (exit $ac_status); }; }; then
13418 ac_lo=0 ac_mid=0
13419 while :; do
13420 cat >conftest.$ac_ext <<_ACEOF
13421/* confdefs.h. */
13422_ACEOF
13423cat confdefs.h >>conftest.$ac_ext
13424cat >>conftest.$ac_ext <<_ACEOF
13425/* end confdefs.h. */
13426$ac_includes_default
4e8d927d
DJ
13427int
13428main ()
13429{
b4e70030 13430static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4e8d927d
DJ
13431test_array [0] = 0
13432
13433 ;
13434 return 0;
13435}
13436_ACEOF
13437rm -f conftest.$ac_objext
13438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13439 (eval $ac_compile) 2>conftest.er1
13440 ac_status=$?
13441 grep -v '^ *+' conftest.er1 >conftest.err
13442 rm -f conftest.er1
13443 cat conftest.err >&5
13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); } &&
b4e70030
JB
13446 { ac_try='test -z "$ac_c_werror_flag"
13447 || test ! -s conftest.err'
4e8d927d
DJ
13448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13449 (eval $ac_try) 2>&5
13450 ac_status=$?
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); }; } &&
13453 { ac_try='test -s conftest.$ac_objext'
13454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13455 (eval $ac_try) 2>&5
13456 ac_status=$?
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); }; }; then
13459 ac_hi=$ac_mid; break
13460else
13461 echo "$as_me: failed program was:" >&5
13462sed 's/^/| /' conftest.$ac_ext >&5
13463
b4e70030
JB
13464ac_lo=`expr $ac_mid + 1`
13465 if test $ac_lo -le $ac_mid; then
13466 ac_lo= ac_hi=
13467 break
13468 fi
13469 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 13470fi
4e8d927d
DJ
13471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13472 done
13473else
13474 echo "$as_me: failed program was:" >&5
13475sed 's/^/| /' conftest.$ac_ext >&5
13476
b4e70030 13477cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
13478/* confdefs.h. */
13479_ACEOF
13480cat confdefs.h >>conftest.$ac_ext
13481cat >>conftest.$ac_ext <<_ACEOF
13482/* end confdefs.h. */
13483$ac_includes_default
4e8d927d
DJ
13484int
13485main ()
13486{
b4e70030 13487static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4e8d927d
DJ
13488test_array [0] = 0
13489
13490 ;
13491 return 0;
13492}
13493_ACEOF
13494rm -f conftest.$ac_objext
13495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13496 (eval $ac_compile) 2>conftest.er1
13497 ac_status=$?
13498 grep -v '^ *+' conftest.er1 >conftest.err
13499 rm -f conftest.er1
13500 cat conftest.err >&5
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); } &&
b4e70030
JB
13503 { ac_try='test -z "$ac_c_werror_flag"
13504 || test ! -s conftest.err'
4e8d927d
DJ
13505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13506 (eval $ac_try) 2>&5
13507 ac_status=$?
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); }; } &&
13510 { ac_try='test -s conftest.$ac_objext'
13511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13512 (eval $ac_try) 2>&5
13513 ac_status=$?
13514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13515 (exit $ac_status); }; }; then
13516 ac_hi=-1 ac_mid=-1
13517 while :; do
13518 cat >conftest.$ac_ext <<_ACEOF
13519/* confdefs.h. */
13520_ACEOF
13521cat confdefs.h >>conftest.$ac_ext
13522cat >>conftest.$ac_ext <<_ACEOF
13523/* end confdefs.h. */
13524$ac_includes_default
4e8d927d
DJ
13525int
13526main ()
13527{
b4e70030 13528static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4e8d927d
DJ
13529test_array [0] = 0
13530
13531 ;
13532 return 0;
13533}
13534_ACEOF
13535rm -f conftest.$ac_objext
13536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13537 (eval $ac_compile) 2>conftest.er1
13538 ac_status=$?
13539 grep -v '^ *+' conftest.er1 >conftest.err
13540 rm -f conftest.er1
13541 cat conftest.err >&5
13542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); } &&
b4e70030
JB
13544 { ac_try='test -z "$ac_c_werror_flag"
13545 || test ! -s conftest.err'
4e8d927d
DJ
13546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13547 (eval $ac_try) 2>&5
13548 ac_status=$?
13549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13550 (exit $ac_status); }; } &&
13551 { ac_try='test -s conftest.$ac_objext'
13552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13553 (eval $ac_try) 2>&5
13554 ac_status=$?
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); }; }; then
13557 ac_lo=$ac_mid; break
13558else
13559 echo "$as_me: failed program was:" >&5
13560sed 's/^/| /' conftest.$ac_ext >&5
13561
b4e70030
JB
13562ac_hi=`expr '(' $ac_mid ')' - 1`
13563 if test $ac_mid -le $ac_hi; then
13564 ac_lo= ac_hi=
13565 break
13566 fi
13567 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 13568fi
4e8d927d
DJ
13569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13570 done
13571else
13572 echo "$as_me: failed program was:" >&5
13573sed 's/^/| /' conftest.$ac_ext >&5
13574
b4e70030 13575ac_lo= ac_hi=
4e8d927d 13576fi
4e8d927d
DJ
13577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13578fi
4e8d927d
DJ
13579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13580# Binary search between lo and hi bounds.
13581while test "x$ac_lo" != "x$ac_hi"; do
13582 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13583 cat >conftest.$ac_ext <<_ACEOF
13584/* confdefs.h. */
13585_ACEOF
13586cat confdefs.h >>conftest.$ac_ext
13587cat >>conftest.$ac_ext <<_ACEOF
13588/* end confdefs.h. */
13589$ac_includes_default
4e8d927d
DJ
13590int
13591main ()
13592{
b4e70030 13593static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4e8d927d
DJ
13594test_array [0] = 0
13595
13596 ;
13597 return 0;
13598}
13599_ACEOF
13600rm -f conftest.$ac_objext
13601if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13602 (eval $ac_compile) 2>conftest.er1
13603 ac_status=$?
13604 grep -v '^ *+' conftest.er1 >conftest.err
13605 rm -f conftest.er1
13606 cat conftest.err >&5
13607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608 (exit $ac_status); } &&
b4e70030
JB
13609 { ac_try='test -z "$ac_c_werror_flag"
13610 || test ! -s conftest.err'
4e8d927d
DJ
13611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13612 (eval $ac_try) 2>&5
13613 ac_status=$?
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); }; } &&
13616 { ac_try='test -s conftest.$ac_objext'
13617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13618 (eval $ac_try) 2>&5
13619 ac_status=$?
13620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13621 (exit $ac_status); }; }; then
13622 ac_hi=$ac_mid
13623else
13624 echo "$as_me: failed program was:" >&5
13625sed 's/^/| /' conftest.$ac_ext >&5
13626
b4e70030 13627ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 13628fi
4e8d927d
DJ
13629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13630done
13631case $ac_lo in
13632?*) ac_cv_sizeof_int=$ac_lo;;
b4e70030 13633'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4e8d927d 13634See \`config.log' for more details." >&5
b4e70030 13635echo "$as_me: error: cannot compute sizeof (int), 77
4e8d927d 13636See \`config.log' for more details." >&2;}
b4e70030 13637 { (exit 1); exit 1; }; } ;;
4e8d927d 13638esac
b4e70030
JB
13639else
13640 if test "$cross_compiling" = yes; then
13641 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13642See \`config.log' for more details." >&5
13643echo "$as_me: error: cannot run test program while cross compiling
13644See \`config.log' for more details." >&2;}
13645 { (exit 1); exit 1; }; }
4e8d927d
DJ
13646else
13647 cat >conftest.$ac_ext <<_ACEOF
13648/* confdefs.h. */
13649_ACEOF
13650cat confdefs.h >>conftest.$ac_ext
13651cat >>conftest.$ac_ext <<_ACEOF
13652/* end confdefs.h. */
13653$ac_includes_default
b4e70030
JB
13654long longval () { return (long) (sizeof (int)); }
13655unsigned long ulongval () { return (long) (sizeof (int)); }
4e8d927d
DJ
13656#include <stdio.h>
13657#include <stdlib.h>
13658int
13659main ()
13660{
13661
13662 FILE *f = fopen ("conftest.val", "w");
13663 if (! f)
b4e70030
JB
13664 exit (1);
13665 if (((long) (sizeof (int))) < 0)
4e8d927d 13666 {
b4e70030
JB
13667 long i = longval ();
13668 if (i != ((long) (sizeof (int))))
13669 exit (1);
4e8d927d
DJ
13670 fprintf (f, "%ld\n", i);
13671 }
13672 else
13673 {
b4e70030
JB
13674 unsigned long i = ulongval ();
13675 if (i != ((long) (sizeof (int))))
13676 exit (1);
4e8d927d
DJ
13677 fprintf (f, "%lu\n", i);
13678 }
b4e70030 13679 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
13680
13681 ;
13682 return 0;
13683}
13684_ACEOF
13685rm -f conftest$ac_exeext
13686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13687 (eval $ac_link) 2>&5
13688 ac_status=$?
13689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13692 (eval $ac_try) 2>&5
13693 ac_status=$?
13694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695 (exit $ac_status); }; }; then
13696 ac_cv_sizeof_int=`cat conftest.val`
13697else
13698 echo "$as_me: program exited with status $ac_status" >&5
13699echo "$as_me: failed program was:" >&5
13700sed 's/^/| /' conftest.$ac_ext >&5
13701
13702( exit $ac_status )
b4e70030 13703{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4e8d927d 13704See \`config.log' for more details." >&5
b4e70030 13705echo "$as_me: error: cannot compute sizeof (int), 77
4e8d927d 13706See \`config.log' for more details." >&2;}
b4e70030
JB
13707 { (exit 1); exit 1; }; }
13708fi
13709rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 13710fi
4e8d927d
DJ
13711fi
13712rm -f conftest.val
13713else
13714 ac_cv_sizeof_int=0
13715fi
13716fi
b4e70030
JB
13717echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13718echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4e8d927d
DJ
13719cat >>confdefs.h <<_ACEOF
13720#define SIZEOF_INT $ac_cv_sizeof_int
13721_ACEOF
13722
13723
b4e70030
JB
13724 echo "$as_me:$LINENO: checking for short" >&5
13725echo $ECHO_N "checking for short... $ECHO_C" >&6
4e8d927d
DJ
13726if test "${ac_cv_type_short+set}" = set; then
13727 echo $ECHO_N "(cached) $ECHO_C" >&6
13728else
13729 cat >conftest.$ac_ext <<_ACEOF
13730/* confdefs.h. */
13731_ACEOF
13732cat confdefs.h >>conftest.$ac_ext
13733cat >>conftest.$ac_ext <<_ACEOF
13734/* end confdefs.h. */
13735$ac_includes_default
4e8d927d
DJ
13736int
13737main ()
13738{
b4e70030 13739if ((short *) 0)
4e8d927d 13740 return 0;
b4e70030 13741if (sizeof (short))
4e8d927d
DJ
13742 return 0;
13743 ;
13744 return 0;
13745}
13746_ACEOF
13747rm -f conftest.$ac_objext
13748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13749 (eval $ac_compile) 2>conftest.er1
13750 ac_status=$?
13751 grep -v '^ *+' conftest.er1 >conftest.err
13752 rm -f conftest.er1
13753 cat conftest.err >&5
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); } &&
b4e70030
JB
13756 { ac_try='test -z "$ac_c_werror_flag"
13757 || test ! -s conftest.err'
4e8d927d
DJ
13758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13759 (eval $ac_try) 2>&5
13760 ac_status=$?
13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); }; } &&
13763 { ac_try='test -s conftest.$ac_objext'
13764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13765 (eval $ac_try) 2>&5
13766 ac_status=$?
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); }; }; then
13769 ac_cv_type_short=yes
13770else
13771 echo "$as_me: failed program was:" >&5
13772sed 's/^/| /' conftest.$ac_ext >&5
13773
b4e70030 13774ac_cv_type_short=no
4e8d927d 13775fi
4e8d927d
DJ
13776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13777fi
b4e70030
JB
13778echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13779echo "${ECHO_T}$ac_cv_type_short" >&6
4e8d927d 13780
b4e70030
JB
13781echo "$as_me:$LINENO: checking size of short" >&5
13782echo $ECHO_N "checking size of short... $ECHO_C" >&6
4e8d927d
DJ
13783if test "${ac_cv_sizeof_short+set}" = set; then
13784 echo $ECHO_N "(cached) $ECHO_C" >&6
13785else
13786 if test "$ac_cv_type_short" = yes; then
b4e70030 13787 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
13788 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13789 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13790 # This bug is HP SR number 8606223364.
13791 if test "$cross_compiling" = yes; then
13792 # Depending upon the size, compute the lo and hi bounds.
13793cat >conftest.$ac_ext <<_ACEOF
13794/* confdefs.h. */
13795_ACEOF
13796cat confdefs.h >>conftest.$ac_ext
13797cat >>conftest.$ac_ext <<_ACEOF
13798/* end confdefs.h. */
13799$ac_includes_default
4e8d927d
DJ
13800int
13801main ()
13802{
b4e70030 13803static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4e8d927d
DJ
13804test_array [0] = 0
13805
13806 ;
13807 return 0;
13808}
13809_ACEOF
13810rm -f conftest.$ac_objext
13811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13812 (eval $ac_compile) 2>conftest.er1
13813 ac_status=$?
13814 grep -v '^ *+' conftest.er1 >conftest.err
13815 rm -f conftest.er1
13816 cat conftest.err >&5
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); } &&
b4e70030
JB
13819 { ac_try='test -z "$ac_c_werror_flag"
13820 || test ! -s conftest.err'
4e8d927d
DJ
13821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13822 (eval $ac_try) 2>&5
13823 ac_status=$?
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); }; } &&
13826 { ac_try='test -s conftest.$ac_objext'
13827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13828 (eval $ac_try) 2>&5
13829 ac_status=$?
13830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831 (exit $ac_status); }; }; then
13832 ac_lo=0 ac_mid=0
13833 while :; do
13834 cat >conftest.$ac_ext <<_ACEOF
13835/* confdefs.h. */
13836_ACEOF
13837cat confdefs.h >>conftest.$ac_ext
13838cat >>conftest.$ac_ext <<_ACEOF
13839/* end confdefs.h. */
13840$ac_includes_default
4e8d927d
DJ
13841int
13842main ()
13843{
b4e70030 13844static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4e8d927d
DJ
13845test_array [0] = 0
13846
13847 ;
13848 return 0;
13849}
13850_ACEOF
13851rm -f conftest.$ac_objext
13852if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13853 (eval $ac_compile) 2>conftest.er1
13854 ac_status=$?
13855 grep -v '^ *+' conftest.er1 >conftest.err
13856 rm -f conftest.er1
13857 cat conftest.err >&5
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); } &&
b4e70030
JB
13860 { ac_try='test -z "$ac_c_werror_flag"
13861 || test ! -s conftest.err'
4e8d927d
DJ
13862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13863 (eval $ac_try) 2>&5
13864 ac_status=$?
13865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866 (exit $ac_status); }; } &&
13867 { ac_try='test -s conftest.$ac_objext'
13868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13869 (eval $ac_try) 2>&5
13870 ac_status=$?
13871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872 (exit $ac_status); }; }; then
13873 ac_hi=$ac_mid; break
13874else
13875 echo "$as_me: failed program was:" >&5
13876sed 's/^/| /' conftest.$ac_ext >&5
13877
b4e70030
JB
13878ac_lo=`expr $ac_mid + 1`
13879 if test $ac_lo -le $ac_mid; then
13880 ac_lo= ac_hi=
13881 break
13882 fi
13883 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 13884fi
4e8d927d
DJ
13885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13886 done
13887else
13888 echo "$as_me: failed program was:" >&5
13889sed 's/^/| /' conftest.$ac_ext >&5
13890
b4e70030 13891cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
13892/* confdefs.h. */
13893_ACEOF
13894cat confdefs.h >>conftest.$ac_ext
13895cat >>conftest.$ac_ext <<_ACEOF
13896/* end confdefs.h. */
13897$ac_includes_default
4e8d927d
DJ
13898int
13899main ()
13900{
b4e70030 13901static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4e8d927d
DJ
13902test_array [0] = 0
13903
13904 ;
13905 return 0;
13906}
13907_ACEOF
13908rm -f conftest.$ac_objext
13909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13910 (eval $ac_compile) 2>conftest.er1
13911 ac_status=$?
13912 grep -v '^ *+' conftest.er1 >conftest.err
13913 rm -f conftest.er1
13914 cat conftest.err >&5
13915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916 (exit $ac_status); } &&
b4e70030
JB
13917 { ac_try='test -z "$ac_c_werror_flag"
13918 || test ! -s conftest.err'
4e8d927d
DJ
13919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13920 (eval $ac_try) 2>&5
13921 ac_status=$?
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); }; } &&
13924 { ac_try='test -s conftest.$ac_objext'
13925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13926 (eval $ac_try) 2>&5
13927 ac_status=$?
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); }; }; then
13930 ac_hi=-1 ac_mid=-1
13931 while :; do
13932 cat >conftest.$ac_ext <<_ACEOF
13933/* confdefs.h. */
13934_ACEOF
13935cat confdefs.h >>conftest.$ac_ext
13936cat >>conftest.$ac_ext <<_ACEOF
13937/* end confdefs.h. */
13938$ac_includes_default
4e8d927d
DJ
13939int
13940main ()
13941{
b4e70030 13942static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4e8d927d
DJ
13943test_array [0] = 0
13944
13945 ;
13946 return 0;
13947}
13948_ACEOF
13949rm -f conftest.$ac_objext
13950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13951 (eval $ac_compile) 2>conftest.er1
13952 ac_status=$?
13953 grep -v '^ *+' conftest.er1 >conftest.err
13954 rm -f conftest.er1
13955 cat conftest.err >&5
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); } &&
b4e70030
JB
13958 { ac_try='test -z "$ac_c_werror_flag"
13959 || test ! -s conftest.err'
4e8d927d
DJ
13960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13961 (eval $ac_try) 2>&5
13962 ac_status=$?
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); }; } &&
13965 { ac_try='test -s conftest.$ac_objext'
13966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13967 (eval $ac_try) 2>&5
13968 ac_status=$?
13969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 (exit $ac_status); }; }; then
13971 ac_lo=$ac_mid; break
13972else
13973 echo "$as_me: failed program was:" >&5
13974sed 's/^/| /' conftest.$ac_ext >&5
13975
b4e70030
JB
13976ac_hi=`expr '(' $ac_mid ')' - 1`
13977 if test $ac_mid -le $ac_hi; then
13978 ac_lo= ac_hi=
13979 break
13980 fi
13981 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 13982fi
4e8d927d
DJ
13983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13984 done
13985else
13986 echo "$as_me: failed program was:" >&5
13987sed 's/^/| /' conftest.$ac_ext >&5
13988
b4e70030 13989ac_lo= ac_hi=
4e8d927d 13990fi
4e8d927d
DJ
13991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13992fi
4e8d927d
DJ
13993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13994# Binary search between lo and hi bounds.
13995while test "x$ac_lo" != "x$ac_hi"; do
13996 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13997 cat >conftest.$ac_ext <<_ACEOF
13998/* confdefs.h. */
13999_ACEOF
14000cat confdefs.h >>conftest.$ac_ext
14001cat >>conftest.$ac_ext <<_ACEOF
14002/* end confdefs.h. */
14003$ac_includes_default
4e8d927d
DJ
14004int
14005main ()
14006{
b4e70030 14007static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4e8d927d
DJ
14008test_array [0] = 0
14009
14010 ;
14011 return 0;
14012}
14013_ACEOF
14014rm -f conftest.$ac_objext
14015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14016 (eval $ac_compile) 2>conftest.er1
14017 ac_status=$?
14018 grep -v '^ *+' conftest.er1 >conftest.err
14019 rm -f conftest.er1
14020 cat conftest.err >&5
14021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022 (exit $ac_status); } &&
b4e70030
JB
14023 { ac_try='test -z "$ac_c_werror_flag"
14024 || test ! -s conftest.err'
4e8d927d
DJ
14025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14026 (eval $ac_try) 2>&5
14027 ac_status=$?
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); }; } &&
14030 { ac_try='test -s conftest.$ac_objext'
14031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14032 (eval $ac_try) 2>&5
14033 ac_status=$?
14034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035 (exit $ac_status); }; }; then
14036 ac_hi=$ac_mid
14037else
14038 echo "$as_me: failed program was:" >&5
14039sed 's/^/| /' conftest.$ac_ext >&5
14040
b4e70030 14041ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 14042fi
4e8d927d
DJ
14043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14044done
14045case $ac_lo in
14046?*) ac_cv_sizeof_short=$ac_lo;;
b4e70030 14047'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4e8d927d 14048See \`config.log' for more details." >&5
b4e70030 14049echo "$as_me: error: cannot compute sizeof (short), 77
4e8d927d 14050See \`config.log' for more details." >&2;}
b4e70030 14051 { (exit 1); exit 1; }; } ;;
4e8d927d 14052esac
b4e70030
JB
14053else
14054 if test "$cross_compiling" = yes; then
14055 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14056See \`config.log' for more details." >&5
14057echo "$as_me: error: cannot run test program while cross compiling
14058See \`config.log' for more details." >&2;}
14059 { (exit 1); exit 1; }; }
4e8d927d
DJ
14060else
14061 cat >conftest.$ac_ext <<_ACEOF
14062/* confdefs.h. */
14063_ACEOF
14064cat confdefs.h >>conftest.$ac_ext
14065cat >>conftest.$ac_ext <<_ACEOF
14066/* end confdefs.h. */
14067$ac_includes_default
b4e70030
JB
14068long longval () { return (long) (sizeof (short)); }
14069unsigned long ulongval () { return (long) (sizeof (short)); }
4e8d927d
DJ
14070#include <stdio.h>
14071#include <stdlib.h>
14072int
14073main ()
14074{
14075
14076 FILE *f = fopen ("conftest.val", "w");
14077 if (! f)
b4e70030
JB
14078 exit (1);
14079 if (((long) (sizeof (short))) < 0)
4e8d927d 14080 {
b4e70030
JB
14081 long i = longval ();
14082 if (i != ((long) (sizeof (short))))
14083 exit (1);
4e8d927d
DJ
14084 fprintf (f, "%ld\n", i);
14085 }
14086 else
14087 {
b4e70030
JB
14088 unsigned long i = ulongval ();
14089 if (i != ((long) (sizeof (short))))
14090 exit (1);
4e8d927d
DJ
14091 fprintf (f, "%lu\n", i);
14092 }
b4e70030 14093 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
14094
14095 ;
14096 return 0;
14097}
14098_ACEOF
14099rm -f conftest$ac_exeext
14100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14101 (eval $ac_link) 2>&5
14102 ac_status=$?
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14106 (eval $ac_try) 2>&5
14107 ac_status=$?
14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); }; }; then
14110 ac_cv_sizeof_short=`cat conftest.val`
14111else
14112 echo "$as_me: program exited with status $ac_status" >&5
14113echo "$as_me: failed program was:" >&5
14114sed 's/^/| /' conftest.$ac_ext >&5
14115
14116( exit $ac_status )
b4e70030 14117{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4e8d927d 14118See \`config.log' for more details." >&5
b4e70030 14119echo "$as_me: error: cannot compute sizeof (short), 77
4e8d927d 14120See \`config.log' for more details." >&2;}
b4e70030
JB
14121 { (exit 1); exit 1; }; }
14122fi
14123rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 14124fi
4e8d927d
DJ
14125fi
14126rm -f conftest.val
14127else
14128 ac_cv_sizeof_short=0
14129fi
14130fi
b4e70030
JB
14131echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14132echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4e8d927d
DJ
14133cat >>confdefs.h <<_ACEOF
14134#define SIZEOF_SHORT $ac_cv_sizeof_short
14135_ACEOF
14136
14137
b4e70030
JB
14138 echo "$as_me:$LINENO: checking for char" >&5
14139echo $ECHO_N "checking for char... $ECHO_C" >&6
4e8d927d
DJ
14140if test "${ac_cv_type_char+set}" = set; then
14141 echo $ECHO_N "(cached) $ECHO_C" >&6
14142else
14143 cat >conftest.$ac_ext <<_ACEOF
14144/* confdefs.h. */
14145_ACEOF
14146cat confdefs.h >>conftest.$ac_ext
14147cat >>conftest.$ac_ext <<_ACEOF
14148/* end confdefs.h. */
14149$ac_includes_default
4e8d927d
DJ
14150int
14151main ()
14152{
b4e70030 14153if ((char *) 0)
4e8d927d 14154 return 0;
b4e70030 14155if (sizeof (char))
4e8d927d
DJ
14156 return 0;
14157 ;
14158 return 0;
14159}
14160_ACEOF
14161rm -f conftest.$ac_objext
14162if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14163 (eval $ac_compile) 2>conftest.er1
14164 ac_status=$?
14165 grep -v '^ *+' conftest.er1 >conftest.err
14166 rm -f conftest.er1
14167 cat conftest.err >&5
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); } &&
b4e70030
JB
14170 { ac_try='test -z "$ac_c_werror_flag"
14171 || test ! -s conftest.err'
4e8d927d
DJ
14172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14173 (eval $ac_try) 2>&5
14174 ac_status=$?
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); }; } &&
14177 { ac_try='test -s conftest.$ac_objext'
14178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14179 (eval $ac_try) 2>&5
14180 ac_status=$?
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); }; }; then
14183 ac_cv_type_char=yes
14184else
14185 echo "$as_me: failed program was:" >&5
14186sed 's/^/| /' conftest.$ac_ext >&5
14187
b4e70030 14188ac_cv_type_char=no
4e8d927d 14189fi
4e8d927d
DJ
14190rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14191fi
b4e70030
JB
14192echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14193echo "${ECHO_T}$ac_cv_type_char" >&6
4e8d927d 14194
b4e70030
JB
14195echo "$as_me:$LINENO: checking size of char" >&5
14196echo $ECHO_N "checking size of char... $ECHO_C" >&6
4e8d927d
DJ
14197if test "${ac_cv_sizeof_char+set}" = set; then
14198 echo $ECHO_N "(cached) $ECHO_C" >&6
14199else
14200 if test "$ac_cv_type_char" = yes; then
b4e70030 14201 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
14202 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14203 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14204 # This bug is HP SR number 8606223364.
14205 if test "$cross_compiling" = yes; then
14206 # Depending upon the size, compute the lo and hi bounds.
14207cat >conftest.$ac_ext <<_ACEOF
14208/* confdefs.h. */
14209_ACEOF
14210cat confdefs.h >>conftest.$ac_ext
14211cat >>conftest.$ac_ext <<_ACEOF
14212/* end confdefs.h. */
14213$ac_includes_default
4e8d927d
DJ
14214int
14215main ()
14216{
b4e70030 14217static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4e8d927d
DJ
14218test_array [0] = 0
14219
14220 ;
14221 return 0;
14222}
14223_ACEOF
14224rm -f conftest.$ac_objext
14225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14226 (eval $ac_compile) 2>conftest.er1
14227 ac_status=$?
14228 grep -v '^ *+' conftest.er1 >conftest.err
14229 rm -f conftest.er1
14230 cat conftest.err >&5
14231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14232 (exit $ac_status); } &&
b4e70030
JB
14233 { ac_try='test -z "$ac_c_werror_flag"
14234 || test ! -s conftest.err'
4e8d927d
DJ
14235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14236 (eval $ac_try) 2>&5
14237 ac_status=$?
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); }; } &&
14240 { ac_try='test -s conftest.$ac_objext'
14241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14242 (eval $ac_try) 2>&5
14243 ac_status=$?
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); }; }; then
14246 ac_lo=0 ac_mid=0
14247 while :; do
14248 cat >conftest.$ac_ext <<_ACEOF
14249/* confdefs.h. */
14250_ACEOF
14251cat confdefs.h >>conftest.$ac_ext
14252cat >>conftest.$ac_ext <<_ACEOF
14253/* end confdefs.h. */
14254$ac_includes_default
4e8d927d
DJ
14255int
14256main ()
14257{
b4e70030 14258static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4e8d927d
DJ
14259test_array [0] = 0
14260
14261 ;
14262 return 0;
14263}
14264_ACEOF
14265rm -f conftest.$ac_objext
14266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14267 (eval $ac_compile) 2>conftest.er1
14268 ac_status=$?
14269 grep -v '^ *+' conftest.er1 >conftest.err
14270 rm -f conftest.er1
14271 cat conftest.err >&5
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); } &&
b4e70030
JB
14274 { ac_try='test -z "$ac_c_werror_flag"
14275 || test ! -s conftest.err'
4e8d927d
DJ
14276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14277 (eval $ac_try) 2>&5
14278 ac_status=$?
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); }; } &&
14281 { ac_try='test -s conftest.$ac_objext'
14282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14283 (eval $ac_try) 2>&5
14284 ac_status=$?
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); }; }; then
14287 ac_hi=$ac_mid; break
14288else
14289 echo "$as_me: failed program was:" >&5
14290sed 's/^/| /' conftest.$ac_ext >&5
14291
b4e70030
JB
14292ac_lo=`expr $ac_mid + 1`
14293 if test $ac_lo -le $ac_mid; then
14294 ac_lo= ac_hi=
14295 break
14296 fi
14297 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 14298fi
4e8d927d
DJ
14299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14300 done
14301else
14302 echo "$as_me: failed program was:" >&5
14303sed 's/^/| /' conftest.$ac_ext >&5
14304
b4e70030 14305cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
14306/* confdefs.h. */
14307_ACEOF
14308cat confdefs.h >>conftest.$ac_ext
14309cat >>conftest.$ac_ext <<_ACEOF
14310/* end confdefs.h. */
14311$ac_includes_default
4e8d927d
DJ
14312int
14313main ()
14314{
b4e70030 14315static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4e8d927d
DJ
14316test_array [0] = 0
14317
14318 ;
14319 return 0;
14320}
14321_ACEOF
14322rm -f conftest.$ac_objext
14323if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14324 (eval $ac_compile) 2>conftest.er1
14325 ac_status=$?
14326 grep -v '^ *+' conftest.er1 >conftest.err
14327 rm -f conftest.er1
14328 cat conftest.err >&5
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); } &&
b4e70030
JB
14331 { ac_try='test -z "$ac_c_werror_flag"
14332 || test ! -s conftest.err'
4e8d927d
DJ
14333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14334 (eval $ac_try) 2>&5
14335 ac_status=$?
14336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337 (exit $ac_status); }; } &&
14338 { ac_try='test -s conftest.$ac_objext'
14339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14340 (eval $ac_try) 2>&5
14341 ac_status=$?
14342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343 (exit $ac_status); }; }; then
14344 ac_hi=-1 ac_mid=-1
14345 while :; do
14346 cat >conftest.$ac_ext <<_ACEOF
14347/* confdefs.h. */
14348_ACEOF
14349cat confdefs.h >>conftest.$ac_ext
14350cat >>conftest.$ac_ext <<_ACEOF
14351/* end confdefs.h. */
14352$ac_includes_default
4e8d927d
DJ
14353int
14354main ()
14355{
b4e70030 14356static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4e8d927d
DJ
14357test_array [0] = 0
14358
14359 ;
14360 return 0;
14361}
14362_ACEOF
14363rm -f conftest.$ac_objext
14364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14365 (eval $ac_compile) 2>conftest.er1
14366 ac_status=$?
14367 grep -v '^ *+' conftest.er1 >conftest.err
14368 rm -f conftest.er1
14369 cat conftest.err >&5
14370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371 (exit $ac_status); } &&
b4e70030
JB
14372 { ac_try='test -z "$ac_c_werror_flag"
14373 || test ! -s conftest.err'
4e8d927d
DJ
14374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14375 (eval $ac_try) 2>&5
14376 ac_status=$?
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); }; } &&
14379 { ac_try='test -s conftest.$ac_objext'
14380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14381 (eval $ac_try) 2>&5
14382 ac_status=$?
14383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14384 (exit $ac_status); }; }; then
14385 ac_lo=$ac_mid; break
14386else
14387 echo "$as_me: failed program was:" >&5
14388sed 's/^/| /' conftest.$ac_ext >&5
14389
b4e70030
JB
14390ac_hi=`expr '(' $ac_mid ')' - 1`
14391 if test $ac_mid -le $ac_hi; then
14392 ac_lo= ac_hi=
14393 break
14394 fi
14395 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 14396fi
4e8d927d
DJ
14397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14398 done
14399else
14400 echo "$as_me: failed program was:" >&5
14401sed 's/^/| /' conftest.$ac_ext >&5
14402
b4e70030 14403ac_lo= ac_hi=
4e8d927d 14404fi
4e8d927d
DJ
14405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14406fi
4e8d927d
DJ
14407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14408# Binary search between lo and hi bounds.
14409while test "x$ac_lo" != "x$ac_hi"; do
14410 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14411 cat >conftest.$ac_ext <<_ACEOF
14412/* confdefs.h. */
14413_ACEOF
14414cat confdefs.h >>conftest.$ac_ext
14415cat >>conftest.$ac_ext <<_ACEOF
14416/* end confdefs.h. */
14417$ac_includes_default
4e8d927d
DJ
14418int
14419main ()
14420{
b4e70030 14421static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4e8d927d
DJ
14422test_array [0] = 0
14423
14424 ;
14425 return 0;
14426}
14427_ACEOF
14428rm -f conftest.$ac_objext
14429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14430 (eval $ac_compile) 2>conftest.er1
14431 ac_status=$?
14432 grep -v '^ *+' conftest.er1 >conftest.err
14433 rm -f conftest.er1
14434 cat conftest.err >&5
14435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436 (exit $ac_status); } &&
b4e70030
JB
14437 { ac_try='test -z "$ac_c_werror_flag"
14438 || test ! -s conftest.err'
4e8d927d
DJ
14439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14440 (eval $ac_try) 2>&5
14441 ac_status=$?
14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443 (exit $ac_status); }; } &&
14444 { ac_try='test -s conftest.$ac_objext'
14445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14446 (eval $ac_try) 2>&5
14447 ac_status=$?
14448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449 (exit $ac_status); }; }; then
14450 ac_hi=$ac_mid
14451else
14452 echo "$as_me: failed program was:" >&5
14453sed 's/^/| /' conftest.$ac_ext >&5
14454
b4e70030 14455ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 14456fi
4e8d927d
DJ
14457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14458done
14459case $ac_lo in
14460?*) ac_cv_sizeof_char=$ac_lo;;
b4e70030 14461'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4e8d927d 14462See \`config.log' for more details." >&5
b4e70030 14463echo "$as_me: error: cannot compute sizeof (char), 77
4e8d927d 14464See \`config.log' for more details." >&2;}
b4e70030 14465 { (exit 1); exit 1; }; } ;;
4e8d927d 14466esac
b4e70030
JB
14467else
14468 if test "$cross_compiling" = yes; then
14469 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14470See \`config.log' for more details." >&5
14471echo "$as_me: error: cannot run test program while cross compiling
14472See \`config.log' for more details." >&2;}
14473 { (exit 1); exit 1; }; }
4e8d927d
DJ
14474else
14475 cat >conftest.$ac_ext <<_ACEOF
14476/* confdefs.h. */
14477_ACEOF
14478cat confdefs.h >>conftest.$ac_ext
14479cat >>conftest.$ac_ext <<_ACEOF
14480/* end confdefs.h. */
14481$ac_includes_default
b4e70030
JB
14482long longval () { return (long) (sizeof (char)); }
14483unsigned long ulongval () { return (long) (sizeof (char)); }
4e8d927d
DJ
14484#include <stdio.h>
14485#include <stdlib.h>
14486int
14487main ()
14488{
14489
14490 FILE *f = fopen ("conftest.val", "w");
14491 if (! f)
b4e70030
JB
14492 exit (1);
14493 if (((long) (sizeof (char))) < 0)
4e8d927d 14494 {
b4e70030
JB
14495 long i = longval ();
14496 if (i != ((long) (sizeof (char))))
14497 exit (1);
4e8d927d
DJ
14498 fprintf (f, "%ld\n", i);
14499 }
14500 else
14501 {
b4e70030
JB
14502 unsigned long i = ulongval ();
14503 if (i != ((long) (sizeof (char))))
14504 exit (1);
4e8d927d
DJ
14505 fprintf (f, "%lu\n", i);
14506 }
b4e70030 14507 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
14508
14509 ;
14510 return 0;
14511}
14512_ACEOF
14513rm -f conftest$ac_exeext
14514if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14515 (eval $ac_link) 2>&5
14516 ac_status=$?
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14520 (eval $ac_try) 2>&5
14521 ac_status=$?
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); }; }; then
14524 ac_cv_sizeof_char=`cat conftest.val`
14525else
14526 echo "$as_me: program exited with status $ac_status" >&5
14527echo "$as_me: failed program was:" >&5
14528sed 's/^/| /' conftest.$ac_ext >&5
14529
14530( exit $ac_status )
b4e70030 14531{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4e8d927d 14532See \`config.log' for more details." >&5
b4e70030 14533echo "$as_me: error: cannot compute sizeof (char), 77
4e8d927d 14534See \`config.log' for more details." >&2;}
b4e70030
JB
14535 { (exit 1); exit 1; }; }
14536fi
14537rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 14538fi
4e8d927d
DJ
14539fi
14540rm -f conftest.val
14541else
14542 ac_cv_sizeof_char=0
14543fi
14544fi
b4e70030
JB
14545echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14546echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4e8d927d
DJ
14547cat >>confdefs.h <<_ACEOF
14548#define SIZEOF_CHAR $ac_cv_sizeof_char
14549_ACEOF
14550
14551
14552
b4e70030
JB
14553 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
14554echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
4e8d927d
DJ
14555 case "$ac_cv_sizeof_char" in
14556 1) acx_cv_type_int8_t=char ;;
14557 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
14558echo "$as_me: error: no 8-bit type" >&2;}
14559 { (exit please report a bug); exit please report a bug; }; }
14560 esac
b4e70030
JB
14561 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
14562echo "${ECHO_T}$acx_cv_type_int8_t" >&6
4e8d927d 14563
b4e70030
JB
14564 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
14565echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
4e8d927d
DJ
14566 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
14567 2:*) acx_cv_type_int16_t=int ;;
14568 *:2) acx_cv_type_int16_t=short ;;
14569 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
14570echo "$as_me: error: no 16-bit type" >&2;}
14571 { (exit please report a bug); exit please report a bug; }; }
14572 esac
b4e70030
JB
14573 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
14574echo "${ECHO_T}$acx_cv_type_int16_t" >&6
4e8d927d 14575
b4e70030
JB
14576 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
14577echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
4e8d927d
DJ
14578 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
14579 4:*) acx_cv_type_int32_t=int ;;
14580 *:4) acx_cv_type_int32_t=long ;;
14581 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
14582echo "$as_me: error: no 32-bit type" >&2;}
14583 { (exit please report a bug); exit please report a bug; }; }
14584 esac
b4e70030
JB
14585 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
14586echo "${ECHO_T}$acx_cv_type_int32_t" >&6
4e8d927d
DJ
14587fi
14588
14589# These tests are here to make the output prettier
14590
14591if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
14592 case "$ac_cv_sizeof_long" in
14593 8) acx_cv_type_int64_t=long ;;
14594 esac
b4e70030
JB
14595 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
14596echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
14597 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
14598echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
4e8d927d
DJ
14599fi
14600
14601# Now we can use the above types
14602
14603if test "$ac_cv_type_uintptr_t" != yes; then
b4e70030
JB
14604 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
14605echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
4e8d927d
DJ
14606 case $ac_cv_sizeof_void_p in
14607 2) acx_cv_type_intptr_t=int16_t ;;
14608 4) acx_cv_type_intptr_t=int32_t ;;
14609 8) acx_cv_type_intptr_t=int64_t ;;
14610 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
14611echo "$as_me: error: no equivalent for intptr_t" >&2;}
14612 { (exit please report a bug); exit please report a bug; }; }
14613 esac
b4e70030
JB
14614 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
14615echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
4e8d927d
DJ
14616fi
14617
14618# ----------------- done all checks, emit header -------------
b4e70030 14619 ac_config_commands="$ac_config_commands gdb_stdint.h"
4e8d927d
DJ
14620
14621
14622
14623
14624# ------------------------- #
14625# Checks for declarations. #
14626# ------------------------- #
14627
b4e70030
JB
14628echo "$as_me:$LINENO: checking whether free is declared" >&5
14629echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
4e8d927d
DJ
14630if test "${ac_cv_have_decl_free+set}" = set; then
14631 echo $ECHO_N "(cached) $ECHO_C" >&6
14632else
14633 cat >conftest.$ac_ext <<_ACEOF
14634/* confdefs.h. */
14635_ACEOF
14636cat confdefs.h >>conftest.$ac_ext
14637cat >>conftest.$ac_ext <<_ACEOF
14638/* end confdefs.h. */
14639$ac_includes_default
14640int
14641main ()
14642{
14643#ifndef free
14644 char *p = (char *) free;
4e8d927d
DJ
14645#endif
14646
14647 ;
14648 return 0;
14649}
14650_ACEOF
14651rm -f conftest.$ac_objext
14652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14653 (eval $ac_compile) 2>conftest.er1
14654 ac_status=$?
14655 grep -v '^ *+' conftest.er1 >conftest.err
14656 rm -f conftest.er1
14657 cat conftest.err >&5
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); } &&
b4e70030
JB
14660 { ac_try='test -z "$ac_c_werror_flag"
14661 || test ! -s conftest.err'
4e8d927d
DJ
14662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14663 (eval $ac_try) 2>&5
14664 ac_status=$?
14665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666 (exit $ac_status); }; } &&
14667 { ac_try='test -s conftest.$ac_objext'
14668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14669 (eval $ac_try) 2>&5
14670 ac_status=$?
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); }; }; then
14673 ac_cv_have_decl_free=yes
14674else
14675 echo "$as_me: failed program was:" >&5
14676sed 's/^/| /' conftest.$ac_ext >&5
14677
b4e70030 14678ac_cv_have_decl_free=no
4e8d927d 14679fi
4e8d927d
DJ
14680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14681fi
b4e70030
JB
14682echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
14683echo "${ECHO_T}$ac_cv_have_decl_free" >&6
4e8d927d
DJ
14684if test $ac_cv_have_decl_free = yes; then
14685
14686cat >>confdefs.h <<_ACEOF
14687#define HAVE_DECL_FREE 1
14688_ACEOF
14689
14690
14691else
14692 cat >>confdefs.h <<_ACEOF
14693#define HAVE_DECL_FREE 0
14694_ACEOF
14695
14696
14697fi
b4e70030
JB
14698echo "$as_me:$LINENO: checking whether malloc is declared" >&5
14699echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
4e8d927d
DJ
14700if test "${ac_cv_have_decl_malloc+set}" = set; then
14701 echo $ECHO_N "(cached) $ECHO_C" >&6
14702else
14703 cat >conftest.$ac_ext <<_ACEOF
14704/* confdefs.h. */
14705_ACEOF
14706cat confdefs.h >>conftest.$ac_ext
14707cat >>conftest.$ac_ext <<_ACEOF
14708/* end confdefs.h. */
14709$ac_includes_default
14710int
14711main ()
14712{
14713#ifndef malloc
14714 char *p = (char *) malloc;
4e8d927d
DJ
14715#endif
14716
14717 ;
14718 return 0;
14719}
14720_ACEOF
14721rm -f conftest.$ac_objext
14722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14723 (eval $ac_compile) 2>conftest.er1
14724 ac_status=$?
14725 grep -v '^ *+' conftest.er1 >conftest.err
14726 rm -f conftest.er1
14727 cat conftest.err >&5
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); } &&
b4e70030
JB
14730 { ac_try='test -z "$ac_c_werror_flag"
14731 || test ! -s conftest.err'
4e8d927d
DJ
14732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14733 (eval $ac_try) 2>&5
14734 ac_status=$?
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); }; } &&
14737 { ac_try='test -s conftest.$ac_objext'
14738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14739 (eval $ac_try) 2>&5
14740 ac_status=$?
14741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); }; }; then
14743 ac_cv_have_decl_malloc=yes
14744else
14745 echo "$as_me: failed program was:" >&5
14746sed 's/^/| /' conftest.$ac_ext >&5
14747
b4e70030 14748ac_cv_have_decl_malloc=no
4e8d927d 14749fi
4e8d927d
DJ
14750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14751fi
b4e70030
JB
14752echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
14753echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
4e8d927d
DJ
14754if test $ac_cv_have_decl_malloc = yes; then
14755
14756cat >>confdefs.h <<_ACEOF
14757#define HAVE_DECL_MALLOC 1
14758_ACEOF
14759
14760
14761else
14762 cat >>confdefs.h <<_ACEOF
14763#define HAVE_DECL_MALLOC 0
14764_ACEOF
14765
14766
14767fi
b4e70030
JB
14768echo "$as_me:$LINENO: checking whether realloc is declared" >&5
14769echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
4e8d927d
DJ
14770if test "${ac_cv_have_decl_realloc+set}" = set; then
14771 echo $ECHO_N "(cached) $ECHO_C" >&6
14772else
14773 cat >conftest.$ac_ext <<_ACEOF
14774/* confdefs.h. */
14775_ACEOF
14776cat confdefs.h >>conftest.$ac_ext
14777cat >>conftest.$ac_ext <<_ACEOF
14778/* end confdefs.h. */
14779$ac_includes_default
14780int
14781main ()
14782{
14783#ifndef realloc
14784 char *p = (char *) realloc;
4e8d927d
DJ
14785#endif
14786
14787 ;
14788 return 0;
14789}
14790_ACEOF
14791rm -f conftest.$ac_objext
14792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14793 (eval $ac_compile) 2>conftest.er1
14794 ac_status=$?
14795 grep -v '^ *+' conftest.er1 >conftest.err
14796 rm -f conftest.er1
14797 cat conftest.err >&5
14798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799 (exit $ac_status); } &&
b4e70030
JB
14800 { ac_try='test -z "$ac_c_werror_flag"
14801 || test ! -s conftest.err'
4e8d927d
DJ
14802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14803 (eval $ac_try) 2>&5
14804 ac_status=$?
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); }; } &&
14807 { ac_try='test -s conftest.$ac_objext'
14808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14809 (eval $ac_try) 2>&5
14810 ac_status=$?
14811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14812 (exit $ac_status); }; }; then
14813 ac_cv_have_decl_realloc=yes
14814else
14815 echo "$as_me: failed program was:" >&5
14816sed 's/^/| /' conftest.$ac_ext >&5
14817
b4e70030 14818ac_cv_have_decl_realloc=no
4e8d927d 14819fi
4e8d927d
DJ
14820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14821fi
b4e70030
JB
14822echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
14823echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
4e8d927d
DJ
14824if test $ac_cv_have_decl_realloc = yes; then
14825
14826cat >>confdefs.h <<_ACEOF
14827#define HAVE_DECL_REALLOC 1
14828_ACEOF
14829
14830
14831else
14832 cat >>confdefs.h <<_ACEOF
14833#define HAVE_DECL_REALLOC 0
14834_ACEOF
14835
14836
14837fi
14838
14839
b4e70030
JB
14840echo "$as_me:$LINENO: checking whether strerror is declared" >&5
14841echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
4e8d927d
DJ
14842if test "${ac_cv_have_decl_strerror+set}" = set; then
14843 echo $ECHO_N "(cached) $ECHO_C" >&6
14844else
14845 cat >conftest.$ac_ext <<_ACEOF
14846/* confdefs.h. */
14847_ACEOF
14848cat confdefs.h >>conftest.$ac_ext
14849cat >>conftest.$ac_ext <<_ACEOF
14850/* end confdefs.h. */
14851$ac_includes_default
14852int
14853main ()
14854{
14855#ifndef strerror
14856 char *p = (char *) strerror;
4e8d927d
DJ
14857#endif
14858
14859 ;
14860 return 0;
14861}
14862_ACEOF
14863rm -f conftest.$ac_objext
14864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14865 (eval $ac_compile) 2>conftest.er1
14866 ac_status=$?
14867 grep -v '^ *+' conftest.er1 >conftest.err
14868 rm -f conftest.er1
14869 cat conftest.err >&5
14870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871 (exit $ac_status); } &&
b4e70030
JB
14872 { ac_try='test -z "$ac_c_werror_flag"
14873 || test ! -s conftest.err'
4e8d927d
DJ
14874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14875 (eval $ac_try) 2>&5
14876 ac_status=$?
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); }; } &&
14879 { ac_try='test -s conftest.$ac_objext'
14880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14881 (eval $ac_try) 2>&5
14882 ac_status=$?
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); }; }; then
14885 ac_cv_have_decl_strerror=yes
14886else
14887 echo "$as_me: failed program was:" >&5
14888sed 's/^/| /' conftest.$ac_ext >&5
14889
b4e70030 14890ac_cv_have_decl_strerror=no
4e8d927d 14891fi
4e8d927d
DJ
14892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14893fi
b4e70030
JB
14894echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
14895echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
4e8d927d
DJ
14896if test $ac_cv_have_decl_strerror = yes; then
14897
14898cat >>confdefs.h <<_ACEOF
14899#define HAVE_DECL_STRERROR 1
14900_ACEOF
14901
14902
14903else
14904 cat >>confdefs.h <<_ACEOF
14905#define HAVE_DECL_STRERROR 0
14906_ACEOF
14907
14908
14909fi
b4e70030
JB
14910echo "$as_me:$LINENO: checking whether strstr is declared" >&5
14911echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
4e8d927d
DJ
14912if test "${ac_cv_have_decl_strstr+set}" = set; then
14913 echo $ECHO_N "(cached) $ECHO_C" >&6
14914else
14915 cat >conftest.$ac_ext <<_ACEOF
14916/* confdefs.h. */
14917_ACEOF
14918cat confdefs.h >>conftest.$ac_ext
14919cat >>conftest.$ac_ext <<_ACEOF
14920/* end confdefs.h. */
14921$ac_includes_default
14922int
14923main ()
14924{
14925#ifndef strstr
14926 char *p = (char *) strstr;
4e8d927d
DJ
14927#endif
14928
14929 ;
14930 return 0;
14931}
14932_ACEOF
14933rm -f conftest.$ac_objext
14934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14935 (eval $ac_compile) 2>conftest.er1
14936 ac_status=$?
14937 grep -v '^ *+' conftest.er1 >conftest.err
14938 rm -f conftest.er1
14939 cat conftest.err >&5
14940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); } &&
b4e70030
JB
14942 { ac_try='test -z "$ac_c_werror_flag"
14943 || test ! -s conftest.err'
4e8d927d
DJ
14944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14945 (eval $ac_try) 2>&5
14946 ac_status=$?
14947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948 (exit $ac_status); }; } &&
14949 { ac_try='test -s conftest.$ac_objext'
14950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14951 (eval $ac_try) 2>&5
14952 ac_status=$?
14953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14954 (exit $ac_status); }; }; then
14955 ac_cv_have_decl_strstr=yes
14956else
14957 echo "$as_me: failed program was:" >&5
14958sed 's/^/| /' conftest.$ac_ext >&5
14959
b4e70030 14960ac_cv_have_decl_strstr=no
4e8d927d 14961fi
4e8d927d
DJ
14962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14963fi
b4e70030
JB
14964echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
14965echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
4e8d927d
DJ
14966if test $ac_cv_have_decl_strstr = yes; then
14967
14968cat >>confdefs.h <<_ACEOF
14969#define HAVE_DECL_STRSTR 1
14970_ACEOF
14971
14972
14973else
14974 cat >>confdefs.h <<_ACEOF
14975#define HAVE_DECL_STRSTR 0
14976_ACEOF
14977
14978
14979fi
14980
14981
b4e70030
JB
14982echo "$as_me:$LINENO: checking whether getopt is declared" >&5
14983echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
4e8d927d
DJ
14984if test "${ac_cv_have_decl_getopt+set}" = set; then
14985 echo $ECHO_N "(cached) $ECHO_C" >&6
14986else
14987 cat >conftest.$ac_ext <<_ACEOF
14988/* confdefs.h. */
14989_ACEOF
14990cat confdefs.h >>conftest.$ac_ext
14991cat >>conftest.$ac_ext <<_ACEOF
14992/* end confdefs.h. */
14993$ac_includes_default
14994int
14995main ()
14996{
14997#ifndef getopt
14998 char *p = (char *) getopt;
4e8d927d
DJ
14999#endif
15000
15001 ;
15002 return 0;
15003}
15004_ACEOF
15005rm -f conftest.$ac_objext
15006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15007 (eval $ac_compile) 2>conftest.er1
15008 ac_status=$?
15009 grep -v '^ *+' conftest.er1 >conftest.err
15010 rm -f conftest.er1
15011 cat conftest.err >&5
15012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013 (exit $ac_status); } &&
b4e70030
JB
15014 { ac_try='test -z "$ac_c_werror_flag"
15015 || test ! -s conftest.err'
4e8d927d
DJ
15016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15017 (eval $ac_try) 2>&5
15018 ac_status=$?
15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); }; } &&
15021 { ac_try='test -s conftest.$ac_objext'
15022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15023 (eval $ac_try) 2>&5
15024 ac_status=$?
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); }; }; then
15027 ac_cv_have_decl_getopt=yes
15028else
15029 echo "$as_me: failed program was:" >&5
15030sed 's/^/| /' conftest.$ac_ext >&5
15031
b4e70030 15032ac_cv_have_decl_getopt=no
4e8d927d 15033fi
4e8d927d
DJ
15034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15035fi
b4e70030
JB
15036echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
15037echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
4e8d927d
DJ
15038if test $ac_cv_have_decl_getopt = yes; then
15039
15040cat >>confdefs.h <<_ACEOF
15041#define HAVE_DECL_GETOPT 1
15042_ACEOF
15043
15044
15045else
15046 cat >>confdefs.h <<_ACEOF
15047#define HAVE_DECL_GETOPT 0
15048_ACEOF
15049
15050
15051fi
b4e70030
JB
15052echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
15053echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
4e8d927d
DJ
15054if test "${ac_cv_have_decl_snprintf+set}" = set; then
15055 echo $ECHO_N "(cached) $ECHO_C" >&6
15056else
15057 cat >conftest.$ac_ext <<_ACEOF
15058/* confdefs.h. */
15059_ACEOF
15060cat confdefs.h >>conftest.$ac_ext
15061cat >>conftest.$ac_ext <<_ACEOF
15062/* end confdefs.h. */
15063$ac_includes_default
15064int
15065main ()
15066{
15067#ifndef snprintf
15068 char *p = (char *) snprintf;
4e8d927d
DJ
15069#endif
15070
15071 ;
15072 return 0;
15073}
15074_ACEOF
15075rm -f conftest.$ac_objext
15076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15077 (eval $ac_compile) 2>conftest.er1
15078 ac_status=$?
15079 grep -v '^ *+' conftest.er1 >conftest.err
15080 rm -f conftest.er1
15081 cat conftest.err >&5
15082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083 (exit $ac_status); } &&
b4e70030
JB
15084 { ac_try='test -z "$ac_c_werror_flag"
15085 || test ! -s conftest.err'
4e8d927d
DJ
15086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15087 (eval $ac_try) 2>&5
15088 ac_status=$?
15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 (exit $ac_status); }; } &&
15091 { ac_try='test -s conftest.$ac_objext'
15092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15093 (eval $ac_try) 2>&5
15094 ac_status=$?
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); }; }; then
15097 ac_cv_have_decl_snprintf=yes
15098else
15099 echo "$as_me: failed program was:" >&5
15100sed 's/^/| /' conftest.$ac_ext >&5
15101
b4e70030 15102ac_cv_have_decl_snprintf=no
4e8d927d 15103fi
4e8d927d
DJ
15104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15105fi
b4e70030
JB
15106echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
15107echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
4e8d927d
DJ
15108if test $ac_cv_have_decl_snprintf = yes; then
15109
15110cat >>confdefs.h <<_ACEOF
15111#define HAVE_DECL_SNPRINTF 1
15112_ACEOF
15113
15114
15115else
15116 cat >>confdefs.h <<_ACEOF
15117#define HAVE_DECL_SNPRINTF 0
15118_ACEOF
15119
15120
15121fi
b4e70030
JB
15122echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
15123echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
4e8d927d
DJ
15124if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
15125 echo $ECHO_N "(cached) $ECHO_C" >&6
15126else
15127 cat >conftest.$ac_ext <<_ACEOF
15128/* confdefs.h. */
15129_ACEOF
15130cat confdefs.h >>conftest.$ac_ext
15131cat >>conftest.$ac_ext <<_ACEOF
15132/* end confdefs.h. */
15133$ac_includes_default
15134int
15135main ()
15136{
15137#ifndef vsnprintf
15138 char *p = (char *) vsnprintf;
4e8d927d
DJ
15139#endif
15140
15141 ;
15142 return 0;
15143}
15144_ACEOF
15145rm -f conftest.$ac_objext
15146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15147 (eval $ac_compile) 2>conftest.er1
15148 ac_status=$?
15149 grep -v '^ *+' conftest.er1 >conftest.err
15150 rm -f conftest.er1
15151 cat conftest.err >&5
15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153 (exit $ac_status); } &&
b4e70030
JB
15154 { ac_try='test -z "$ac_c_werror_flag"
15155 || test ! -s conftest.err'
4e8d927d
DJ
15156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15157 (eval $ac_try) 2>&5
15158 ac_status=$?
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); }; } &&
15161 { ac_try='test -s conftest.$ac_objext'
15162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15163 (eval $ac_try) 2>&5
15164 ac_status=$?
15165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166 (exit $ac_status); }; }; then
15167 ac_cv_have_decl_vsnprintf=yes
15168else
15169 echo "$as_me: failed program was:" >&5
15170sed 's/^/| /' conftest.$ac_ext >&5
15171
b4e70030 15172ac_cv_have_decl_vsnprintf=no
4e8d927d 15173fi
4e8d927d
DJ
15174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15175fi
b4e70030
JB
15176echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
15177echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
4e8d927d
DJ
15178if test $ac_cv_have_decl_vsnprintf = yes; then
15179
15180cat >>confdefs.h <<_ACEOF
15181#define HAVE_DECL_VSNPRINTF 1
15182_ACEOF
15183
15184
15185else
15186 cat >>confdefs.h <<_ACEOF
15187#define HAVE_DECL_VSNPRINTF 0
15188_ACEOF
15189
15190
15191fi
15192
15193
15194
15195# ----------------------- #
15196# Checks for structures. #
15197# ----------------------- #
15198
b4e70030
JB
15199echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
15200echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
4e8d927d
DJ
15201if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
15202 echo $ECHO_N "(cached) $ECHO_C" >&6
15203else
15204 cat >conftest.$ac_ext <<_ACEOF
15205/* confdefs.h. */
15206_ACEOF
15207cat confdefs.h >>conftest.$ac_ext
15208cat >>conftest.$ac_ext <<_ACEOF
15209/* end confdefs.h. */
15210$ac_includes_default
15211int
15212main ()
15213{
15214static struct stat ac_aggr;
15215if (ac_aggr.st_blocks)
15216return 0;
15217 ;
15218 return 0;
15219}
15220_ACEOF
15221rm -f conftest.$ac_objext
15222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15223 (eval $ac_compile) 2>conftest.er1
15224 ac_status=$?
15225 grep -v '^ *+' conftest.er1 >conftest.err
15226 rm -f conftest.er1
15227 cat conftest.err >&5
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); } &&
b4e70030
JB
15230 { ac_try='test -z "$ac_c_werror_flag"
15231 || test ! -s conftest.err'
4e8d927d
DJ
15232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15233 (eval $ac_try) 2>&5
15234 ac_status=$?
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); }; } &&
15237 { ac_try='test -s conftest.$ac_objext'
15238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15239 (eval $ac_try) 2>&5
15240 ac_status=$?
15241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); }; }; then
15243 ac_cv_member_struct_stat_st_blocks=yes
15244else
15245 echo "$as_me: failed program was:" >&5
15246sed 's/^/| /' conftest.$ac_ext >&5
15247
b4e70030 15248cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
15249/* confdefs.h. */
15250_ACEOF
15251cat confdefs.h >>conftest.$ac_ext
15252cat >>conftest.$ac_ext <<_ACEOF
15253/* end confdefs.h. */
15254$ac_includes_default
15255int
15256main ()
15257{
15258static struct stat ac_aggr;
15259if (sizeof ac_aggr.st_blocks)
15260return 0;
15261 ;
15262 return 0;
15263}
15264_ACEOF
15265rm -f conftest.$ac_objext
15266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15267 (eval $ac_compile) 2>conftest.er1
15268 ac_status=$?
15269 grep -v '^ *+' conftest.er1 >conftest.err
15270 rm -f conftest.er1
15271 cat conftest.err >&5
15272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 (exit $ac_status); } &&
b4e70030
JB
15274 { ac_try='test -z "$ac_c_werror_flag"
15275 || test ! -s conftest.err'
4e8d927d
DJ
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); }; } &&
15281 { ac_try='test -s conftest.$ac_objext'
15282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15283 (eval $ac_try) 2>&5
15284 ac_status=$?
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); }; }; then
15287 ac_cv_member_struct_stat_st_blocks=yes
15288else
15289 echo "$as_me: failed program was:" >&5
15290sed 's/^/| /' conftest.$ac_ext >&5
15291
b4e70030 15292ac_cv_member_struct_stat_st_blocks=no
4e8d927d 15293fi
4e8d927d
DJ
15294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15295fi
4e8d927d
DJ
15296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15297fi
b4e70030
JB
15298echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
15299echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
4e8d927d
DJ
15300if test $ac_cv_member_struct_stat_st_blocks = yes; then
15301
15302cat >>confdefs.h <<_ACEOF
15303#define HAVE_STRUCT_STAT_ST_BLOCKS 1
15304_ACEOF
15305
15306
15307fi
15308
b4e70030
JB
15309echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
15310echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
4e8d927d
DJ
15311if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
15312 echo $ECHO_N "(cached) $ECHO_C" >&6
15313else
15314 cat >conftest.$ac_ext <<_ACEOF
15315/* confdefs.h. */
15316_ACEOF
15317cat confdefs.h >>conftest.$ac_ext
15318cat >>conftest.$ac_ext <<_ACEOF
15319/* end confdefs.h. */
15320$ac_includes_default
15321int
15322main ()
15323{
15324static struct stat ac_aggr;
15325if (ac_aggr.st_blksize)
15326return 0;
15327 ;
15328 return 0;
15329}
15330_ACEOF
15331rm -f conftest.$ac_objext
15332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15333 (eval $ac_compile) 2>conftest.er1
15334 ac_status=$?
15335 grep -v '^ *+' conftest.er1 >conftest.err
15336 rm -f conftest.er1
15337 cat conftest.err >&5
15338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15339 (exit $ac_status); } &&
b4e70030
JB
15340 { ac_try='test -z "$ac_c_werror_flag"
15341 || test ! -s conftest.err'
4e8d927d
DJ
15342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15343 (eval $ac_try) 2>&5
15344 ac_status=$?
15345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15346 (exit $ac_status); }; } &&
15347 { ac_try='test -s conftest.$ac_objext'
15348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15349 (eval $ac_try) 2>&5
15350 ac_status=$?
15351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352 (exit $ac_status); }; }; then
15353 ac_cv_member_struct_stat_st_blksize=yes
15354else
15355 echo "$as_me: failed program was:" >&5
15356sed 's/^/| /' conftest.$ac_ext >&5
15357
b4e70030 15358cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
15359/* confdefs.h. */
15360_ACEOF
15361cat confdefs.h >>conftest.$ac_ext
15362cat >>conftest.$ac_ext <<_ACEOF
15363/* end confdefs.h. */
15364$ac_includes_default
15365int
15366main ()
15367{
15368static struct stat ac_aggr;
15369if (sizeof ac_aggr.st_blksize)
15370return 0;
15371 ;
15372 return 0;
15373}
15374_ACEOF
15375rm -f conftest.$ac_objext
15376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15377 (eval $ac_compile) 2>conftest.er1
15378 ac_status=$?
15379 grep -v '^ *+' conftest.er1 >conftest.err
15380 rm -f conftest.er1
15381 cat conftest.err >&5
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); } &&
b4e70030
JB
15384 { ac_try='test -z "$ac_c_werror_flag"
15385 || test ! -s conftest.err'
4e8d927d
DJ
15386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15387 (eval $ac_try) 2>&5
15388 ac_status=$?
15389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390 (exit $ac_status); }; } &&
15391 { ac_try='test -s conftest.$ac_objext'
15392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15393 (eval $ac_try) 2>&5
15394 ac_status=$?
15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396 (exit $ac_status); }; }; then
15397 ac_cv_member_struct_stat_st_blksize=yes
15398else
15399 echo "$as_me: failed program was:" >&5
15400sed 's/^/| /' conftest.$ac_ext >&5
15401
b4e70030 15402ac_cv_member_struct_stat_st_blksize=no
4e8d927d 15403fi
4e8d927d
DJ
15404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15405fi
4e8d927d
DJ
15406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15407fi
b4e70030
JB
15408echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
15409echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
4e8d927d
DJ
15410if test $ac_cv_member_struct_stat_st_blksize = yes; then
15411
15412cat >>confdefs.h <<_ACEOF
15413#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
15414_ACEOF
15415
15416
15417fi
15418
15419
15420# ------------------ #
15421# Checks for types. #
15422# ------------------ #
15423
b4e70030
JB
15424echo "$as_me:$LINENO: checking return type of signal handlers" >&5
15425echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4e8d927d
DJ
15426if test "${ac_cv_type_signal+set}" = set; then
15427 echo $ECHO_N "(cached) $ECHO_C" >&6
15428else
15429 cat >conftest.$ac_ext <<_ACEOF
15430/* confdefs.h. */
15431_ACEOF
15432cat confdefs.h >>conftest.$ac_ext
15433cat >>conftest.$ac_ext <<_ACEOF
15434/* end confdefs.h. */
15435#include <sys/types.h>
15436#include <signal.h>
b4e70030
JB
15437#ifdef signal
15438# undef signal
15439#endif
15440#ifdef __cplusplus
15441extern "C" void (*signal (int, void (*)(int)))(int);
15442#else
15443void (*signal ()) ();
15444#endif
4e8d927d
DJ
15445
15446int
15447main ()
15448{
b4e70030 15449int i;
4e8d927d
DJ
15450 ;
15451 return 0;
15452}
15453_ACEOF
15454rm -f conftest.$ac_objext
15455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15456 (eval $ac_compile) 2>conftest.er1
15457 ac_status=$?
15458 grep -v '^ *+' conftest.er1 >conftest.err
15459 rm -f conftest.er1
15460 cat conftest.err >&5
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); } &&
b4e70030
JB
15463 { ac_try='test -z "$ac_c_werror_flag"
15464 || test ! -s conftest.err'
4e8d927d
DJ
15465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15466 (eval $ac_try) 2>&5
15467 ac_status=$?
15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469 (exit $ac_status); }; } &&
15470 { ac_try='test -s conftest.$ac_objext'
15471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15472 (eval $ac_try) 2>&5
15473 ac_status=$?
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); }; }; then
b4e70030 15476 ac_cv_type_signal=void
4e8d927d
DJ
15477else
15478 echo "$as_me: failed program was:" >&5
15479sed 's/^/| /' conftest.$ac_ext >&5
15480
b4e70030 15481ac_cv_type_signal=int
4e8d927d 15482fi
4e8d927d
DJ
15483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15484fi
b4e70030
JB
15485echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
15486echo "${ECHO_T}$ac_cv_type_signal" >&6
4e8d927d
DJ
15487
15488cat >>confdefs.h <<_ACEOF
15489#define RETSIGTYPE $ac_cv_type_signal
15490_ACEOF
15491
15492
b4e70030
JB
15493echo "$as_me:$LINENO: checking for socklen_t" >&5
15494echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
4e8d927d
DJ
15495if test "${ac_cv_type_socklen_t+set}" = set; then
15496 echo $ECHO_N "(cached) $ECHO_C" >&6
15497else
15498 cat >conftest.$ac_ext <<_ACEOF
15499/* confdefs.h. */
15500_ACEOF
15501cat confdefs.h >>conftest.$ac_ext
15502cat >>conftest.$ac_ext <<_ACEOF
15503/* end confdefs.h. */
15504#include <sys/types.h>
15505#include <sys/socket.h>
15506
15507
4e8d927d
DJ
15508int
15509main ()
15510{
b4e70030 15511if ((socklen_t *) 0)
4e8d927d 15512 return 0;
b4e70030 15513if (sizeof (socklen_t))
4e8d927d
DJ
15514 return 0;
15515 ;
15516 return 0;
15517}
15518_ACEOF
15519rm -f conftest.$ac_objext
15520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15521 (eval $ac_compile) 2>conftest.er1
15522 ac_status=$?
15523 grep -v '^ *+' conftest.er1 >conftest.err
15524 rm -f conftest.er1
15525 cat conftest.err >&5
15526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15527 (exit $ac_status); } &&
b4e70030
JB
15528 { ac_try='test -z "$ac_c_werror_flag"
15529 || test ! -s conftest.err'
4e8d927d
DJ
15530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15531 (eval $ac_try) 2>&5
15532 ac_status=$?
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); }; } &&
15535 { ac_try='test -s conftest.$ac_objext'
15536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15537 (eval $ac_try) 2>&5
15538 ac_status=$?
15539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540 (exit $ac_status); }; }; then
15541 ac_cv_type_socklen_t=yes
15542else
15543 echo "$as_me: failed program was:" >&5
15544sed 's/^/| /' conftest.$ac_ext >&5
15545
b4e70030 15546ac_cv_type_socklen_t=no
4e8d927d 15547fi
4e8d927d
DJ
15548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15549fi
b4e70030
JB
15550echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
15551echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
4e8d927d
DJ
15552if test $ac_cv_type_socklen_t = yes; then
15553
15554cat >>confdefs.h <<_ACEOF
15555#define HAVE_SOCKLEN_T 1
15556_ACEOF
15557
15558
15559fi
15560
b4e70030
JB
15561echo "$as_me:$LINENO: checking for uintptr_t" >&5
15562echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4e8d927d
DJ
15563if test "${ac_cv_type_uintptr_t+set}" = set; then
15564 echo $ECHO_N "(cached) $ECHO_C" >&6
15565else
15566 cat >conftest.$ac_ext <<_ACEOF
15567/* confdefs.h. */
15568_ACEOF
15569cat confdefs.h >>conftest.$ac_ext
15570cat >>conftest.$ac_ext <<_ACEOF
15571/* end confdefs.h. */
15572#include <stdint.h>
15573
4e8d927d
DJ
15574int
15575main ()
15576{
b4e70030 15577if ((uintptr_t *) 0)
4e8d927d 15578 return 0;
b4e70030 15579if (sizeof (uintptr_t))
4e8d927d
DJ
15580 return 0;
15581 ;
15582 return 0;
15583}
15584_ACEOF
15585rm -f conftest.$ac_objext
15586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15587 (eval $ac_compile) 2>conftest.er1
15588 ac_status=$?
15589 grep -v '^ *+' conftest.er1 >conftest.err
15590 rm -f conftest.er1
15591 cat conftest.err >&5
15592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15593 (exit $ac_status); } &&
b4e70030
JB
15594 { ac_try='test -z "$ac_c_werror_flag"
15595 || test ! -s conftest.err'
4e8d927d
DJ
15596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15597 (eval $ac_try) 2>&5
15598 ac_status=$?
15599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600 (exit $ac_status); }; } &&
15601 { ac_try='test -s conftest.$ac_objext'
15602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15603 (eval $ac_try) 2>&5
15604 ac_status=$?
15605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606 (exit $ac_status); }; }; then
15607 ac_cv_type_uintptr_t=yes
15608else
15609 echo "$as_me: failed program was:" >&5
15610sed 's/^/| /' conftest.$ac_ext >&5
15611
b4e70030 15612ac_cv_type_uintptr_t=no
4e8d927d 15613fi
4e8d927d
DJ
15614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15615fi
b4e70030
JB
15616echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
15617echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4e8d927d
DJ
15618if test $ac_cv_type_uintptr_t = yes; then
15619
15620cat >>confdefs.h <<_ACEOF
15621#define HAVE_UINTPTR_T 1
15622_ACEOF
15623
15624
15625fi
15626
15627
15628# ------------------------------------- #
15629# Checks for compiler characteristics. #
15630# ------------------------------------- #
15631
b4e70030
JB
15632echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15633echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4e8d927d
DJ
15634if test "${ac_cv_c_const+set}" = set; then
15635 echo $ECHO_N "(cached) $ECHO_C" >&6
15636else
15637 cat >conftest.$ac_ext <<_ACEOF
15638/* confdefs.h. */
15639_ACEOF
15640cat confdefs.h >>conftest.$ac_ext
15641cat >>conftest.$ac_ext <<_ACEOF
15642/* end confdefs.h. */
15643
15644int
15645main ()
15646{
15647/* FIXME: Include the comments suggested by Paul. */
15648#ifndef __cplusplus
15649 /* Ultrix mips cc rejects this. */
15650 typedef int charset[2];
15651 const charset x;
15652 /* SunOS 4.1.1 cc rejects this. */
15653 char const *const *ccp;
15654 char **p;
15655 /* NEC SVR4.0.2 mips cc rejects this. */
15656 struct point {int x, y;};
15657 static struct point const zero = {0,0};
15658 /* AIX XL C 1.02.0.0 rejects this.
15659 It does not let you subtract one const X* pointer from another in
15660 an arm of an if-expression whose if-part is not a constant
15661 expression */
15662 const char *g = "string";
15663 ccp = &g + (g ? g-g : 0);
15664 /* HPUX 7.0 cc rejects these. */
15665 ++ccp;
15666 p = (char**) ccp;
15667 ccp = (char const *const *) p;
15668 { /* SCO 3.2v4 cc rejects this. */
15669 char *t;
15670 char const *s = 0 ? (char *) 0 : (char const *) 0;
15671
15672 *t++ = 0;
4e8d927d
DJ
15673 }
15674 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15675 int x[] = {25, 17};
15676 const int *foo = &x[0];
15677 ++foo;
15678 }
15679 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15680 typedef const int *iptr;
15681 iptr p = 0;
15682 ++p;
15683 }
15684 { /* AIX XL C 1.02.0.0 rejects this saying
15685 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15686 struct s { int j; const int *ap[3]; };
15687 struct s *b; b->j = 5;
15688 }
15689 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15690 const int foo = 10;
4e8d927d 15691 }
4e8d927d
DJ
15692#endif
15693
15694 ;
15695 return 0;
15696}
15697_ACEOF
15698rm -f conftest.$ac_objext
15699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15700 (eval $ac_compile) 2>conftest.er1
15701 ac_status=$?
15702 grep -v '^ *+' conftest.er1 >conftest.err
15703 rm -f conftest.er1
15704 cat conftest.err >&5
15705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706 (exit $ac_status); } &&
b4e70030
JB
15707 { ac_try='test -z "$ac_c_werror_flag"
15708 || test ! -s conftest.err'
4e8d927d
DJ
15709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15710 (eval $ac_try) 2>&5
15711 ac_status=$?
15712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713 (exit $ac_status); }; } &&
15714 { ac_try='test -s conftest.$ac_objext'
15715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15716 (eval $ac_try) 2>&5
15717 ac_status=$?
15718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15719 (exit $ac_status); }; }; then
15720 ac_cv_c_const=yes
15721else
15722 echo "$as_me: failed program was:" >&5
15723sed 's/^/| /' conftest.$ac_ext >&5
15724
b4e70030 15725ac_cv_c_const=no
4e8d927d 15726fi
4e8d927d
DJ
15727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15728fi
b4e70030
JB
15729echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15730echo "${ECHO_T}$ac_cv_c_const" >&6
4e8d927d
DJ
15731if test $ac_cv_c_const = no; then
15732
15733cat >>confdefs.h <<\_ACEOF
15734#define const
15735_ACEOF
15736
15737fi
15738
b4e70030
JB
15739echo "$as_me:$LINENO: checking for inline" >&5
15740echo $ECHO_N "checking for inline... $ECHO_C" >&6
4e8d927d
DJ
15741if test "${ac_cv_c_inline+set}" = set; then
15742 echo $ECHO_N "(cached) $ECHO_C" >&6
15743else
15744 ac_cv_c_inline=no
15745for ac_kw in inline __inline__ __inline; do
15746 cat >conftest.$ac_ext <<_ACEOF
15747/* confdefs.h. */
15748_ACEOF
15749cat confdefs.h >>conftest.$ac_ext
15750cat >>conftest.$ac_ext <<_ACEOF
15751/* end confdefs.h. */
15752#ifndef __cplusplus
15753typedef int foo_t;
15754static $ac_kw foo_t static_foo () {return 0; }
15755$ac_kw foo_t foo () {return 0; }
15756#endif
15757
15758_ACEOF
15759rm -f conftest.$ac_objext
15760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15761 (eval $ac_compile) 2>conftest.er1
15762 ac_status=$?
15763 grep -v '^ *+' conftest.er1 >conftest.err
15764 rm -f conftest.er1
15765 cat conftest.err >&5
15766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767 (exit $ac_status); } &&
b4e70030
JB
15768 { ac_try='test -z "$ac_c_werror_flag"
15769 || test ! -s conftest.err'
4e8d927d
DJ
15770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15771 (eval $ac_try) 2>&5
15772 ac_status=$?
15773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15774 (exit $ac_status); }; } &&
15775 { ac_try='test -s conftest.$ac_objext'
15776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15777 (eval $ac_try) 2>&5
15778 ac_status=$?
15779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15780 (exit $ac_status); }; }; then
b4e70030 15781 ac_cv_c_inline=$ac_kw; break
4e8d927d
DJ
15782else
15783 echo "$as_me: failed program was:" >&5
15784sed 's/^/| /' conftest.$ac_ext >&5
15785
4e8d927d 15786fi
4e8d927d 15787rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
15788done
15789
15790fi
b4e70030
JB
15791echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15792echo "${ECHO_T}$ac_cv_c_inline" >&6
bec39cab 15793
bec39cab 15794
a3828db0
MK
15795case $ac_cv_c_inline in
15796 inline | yes) ;;
15797 *)
15798 case $ac_cv_c_inline in
15799 no) ac_val=;;
15800 *) ac_val=$ac_cv_c_inline;;
15801 esac
15802 cat >>confdefs.h <<_ACEOF
15803#ifndef __cplusplus
15804#define inline $ac_val
15805#endif
15806_ACEOF
bec39cab
AC
15807 ;;
15808esac
bec39cab 15809
9b913628
TJB
15810echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
15811echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
15812if test "${ac_cv_c_bigendian+set}" = set; then
15813 echo $ECHO_N "(cached) $ECHO_C" >&6
15814else
15815 # See if sys/param.h defines the BYTE_ORDER macro.
15816cat >conftest.$ac_ext <<_ACEOF
15817/* confdefs.h. */
15818_ACEOF
15819cat confdefs.h >>conftest.$ac_ext
15820cat >>conftest.$ac_ext <<_ACEOF
15821/* end confdefs.h. */
15822#include <sys/types.h>
15823#include <sys/param.h>
15824
15825int
15826main ()
15827{
15828#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
15829 bogus endian macros
15830#endif
15831
15832 ;
15833 return 0;
15834}
15835_ACEOF
15836rm -f conftest.$ac_objext
15837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15838 (eval $ac_compile) 2>conftest.er1
15839 ac_status=$?
15840 grep -v '^ *+' conftest.er1 >conftest.err
15841 rm -f conftest.er1
15842 cat conftest.err >&5
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); } &&
15845 { ac_try='test -z "$ac_c_werror_flag"
15846 || test ! -s conftest.err'
15847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15848 (eval $ac_try) 2>&5
15849 ac_status=$?
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); }; } &&
15852 { ac_try='test -s conftest.$ac_objext'
15853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15854 (eval $ac_try) 2>&5
15855 ac_status=$?
15856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857 (exit $ac_status); }; }; then
15858 # It does; now see whether it defined to BIG_ENDIAN or not.
15859cat >conftest.$ac_ext <<_ACEOF
15860/* confdefs.h. */
15861_ACEOF
15862cat confdefs.h >>conftest.$ac_ext
15863cat >>conftest.$ac_ext <<_ACEOF
15864/* end confdefs.h. */
15865#include <sys/types.h>
15866#include <sys/param.h>
15867
15868int
15869main ()
15870{
15871#if BYTE_ORDER != BIG_ENDIAN
15872 not big endian
15873#endif
15874
15875 ;
15876 return 0;
15877}
15878_ACEOF
15879rm -f conftest.$ac_objext
15880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15881 (eval $ac_compile) 2>conftest.er1
15882 ac_status=$?
15883 grep -v '^ *+' conftest.er1 >conftest.err
15884 rm -f conftest.er1
15885 cat conftest.err >&5
15886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887 (exit $ac_status); } &&
15888 { ac_try='test -z "$ac_c_werror_flag"
15889 || test ! -s conftest.err'
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); }; } &&
15895 { ac_try='test -s conftest.$ac_objext'
15896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15897 (eval $ac_try) 2>&5
15898 ac_status=$?
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); }; }; then
15901 ac_cv_c_bigendian=yes
15902else
15903 echo "$as_me: failed program was:" >&5
15904sed 's/^/| /' conftest.$ac_ext >&5
15905
15906ac_cv_c_bigendian=no
15907fi
15908rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15909else
15910 echo "$as_me: failed program was:" >&5
15911sed 's/^/| /' conftest.$ac_ext >&5
15912
15913# It does not; compile a test program.
15914if test "$cross_compiling" = yes; then
15915 # try to guess the endianness by grepping values into an object file
15916 ac_cv_c_bigendian=unknown
15917 cat >conftest.$ac_ext <<_ACEOF
15918/* confdefs.h. */
15919_ACEOF
15920cat confdefs.h >>conftest.$ac_ext
15921cat >>conftest.$ac_ext <<_ACEOF
15922/* end confdefs.h. */
15923short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15924short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15925void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
15926short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15927short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15928void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
15929int
15930main ()
15931{
15932 _ascii (); _ebcdic ();
15933 ;
15934 return 0;
15935}
15936_ACEOF
15937rm -f conftest.$ac_objext
15938if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15939 (eval $ac_compile) 2>conftest.er1
15940 ac_status=$?
15941 grep -v '^ *+' conftest.er1 >conftest.err
15942 rm -f conftest.er1
15943 cat conftest.err >&5
15944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15945 (exit $ac_status); } &&
15946 { ac_try='test -z "$ac_c_werror_flag"
15947 || test ! -s conftest.err'
15948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15949 (eval $ac_try) 2>&5
15950 ac_status=$?
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); }; } &&
15953 { ac_try='test -s conftest.$ac_objext'
15954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15955 (eval $ac_try) 2>&5
15956 ac_status=$?
15957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958 (exit $ac_status); }; }; then
15959 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
15960 ac_cv_c_bigendian=yes
15961fi
15962if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15963 if test "$ac_cv_c_bigendian" = unknown; then
15964 ac_cv_c_bigendian=no
15965 else
15966 # finding both strings is unlikely to happen, but who knows?
15967 ac_cv_c_bigendian=unknown
15968 fi
15969fi
15970else
15971 echo "$as_me: failed program was:" >&5
15972sed 's/^/| /' conftest.$ac_ext >&5
15973
15974fi
15975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15976else
15977 cat >conftest.$ac_ext <<_ACEOF
15978/* confdefs.h. */
15979_ACEOF
15980cat confdefs.h >>conftest.$ac_ext
15981cat >>conftest.$ac_ext <<_ACEOF
15982/* end confdefs.h. */
15983int
15984main ()
15985{
15986 /* Are we little or big endian? From Harbison&Steele. */
15987 union
15988 {
15989 long l;
15990 char c[sizeof (long)];
15991 } u;
15992 u.l = 1;
15993 exit (u.c[sizeof (long) - 1] == 1);
15994}
15995_ACEOF
15996rm -f conftest$ac_exeext
15997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15998 (eval $ac_link) 2>&5
15999 ac_status=$?
16000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16003 (eval $ac_try) 2>&5
16004 ac_status=$?
16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); }; }; then
16007 ac_cv_c_bigendian=no
16008else
16009 echo "$as_me: program exited with status $ac_status" >&5
16010echo "$as_me: failed program was:" >&5
16011sed 's/^/| /' conftest.$ac_ext >&5
16012
16013( exit $ac_status )
16014ac_cv_c_bigendian=yes
16015fi
16016rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16017fi
16018fi
16019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16020fi
16021echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
16022echo "${ECHO_T}$ac_cv_c_bigendian" >&6
16023case $ac_cv_c_bigendian in
16024 yes)
16025
16026cat >>confdefs.h <<\_ACEOF
16027#define WORDS_BIGENDIAN 1
16028_ACEOF
16029 ;;
16030 no)
16031 ;;
16032 *)
16033 { { echo "$as_me:$LINENO: error: unknown endianness
16034presetting ac_cv_c_bigendian=no (or yes) will help" >&5
16035echo "$as_me: error: unknown endianness
16036presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
16037 { (exit 1); exit 1; }; } ;;
16038esac
16039
74c1b268 16040
a3828db0
MK
16041# ------------------------------ #
16042# Checks for library functions. #
16043# ------------------------------ #
bec39cab 16044
a3828db0
MK
16045# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16046# for constant arguments. Useless!
b4e70030
JB
16047echo "$as_me:$LINENO: checking for working alloca.h" >&5
16048echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
a3828db0 16049if test "${ac_cv_working_alloca_h+set}" = set; then
bec39cab
AC
16050 echo $ECHO_N "(cached) $ECHO_C" >&6
16051else
16052 cat >conftest.$ac_ext <<_ACEOF
16053/* confdefs.h. */
16054_ACEOF
16055cat confdefs.h >>conftest.$ac_ext
16056cat >>conftest.$ac_ext <<_ACEOF
16057/* end confdefs.h. */
a3828db0 16058#include <alloca.h>
bec39cab
AC
16059int
16060main ()
16061{
a3828db0 16062char *p = (char *) alloca (2 * sizeof (int));
bec39cab
AC
16063 ;
16064 return 0;
16065}
16066_ACEOF
16067rm -f conftest.$ac_objext conftest$ac_exeext
16068if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16069 (eval $ac_link) 2>conftest.er1
16070 ac_status=$?
16071 grep -v '^ *+' conftest.er1 >conftest.err
16072 rm -f conftest.er1
16073 cat conftest.err >&5
16074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075 (exit $ac_status); } &&
b4e70030
JB
16076 { ac_try='test -z "$ac_c_werror_flag"
16077 || test ! -s conftest.err'
bec39cab
AC
16078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16079 (eval $ac_try) 2>&5
16080 ac_status=$?
16081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 (exit $ac_status); }; } &&
16083 { ac_try='test -s conftest$ac_exeext'
16084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16085 (eval $ac_try) 2>&5
16086 ac_status=$?
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); }; }; then
a3828db0 16089 ac_cv_working_alloca_h=yes
bec39cab
AC
16090else
16091 echo "$as_me: failed program was:" >&5
16092sed 's/^/| /' conftest.$ac_ext >&5
16093
b4e70030 16094ac_cv_working_alloca_h=no
bec39cab
AC
16095fi
16096rm -f conftest.err conftest.$ac_objext \
16097 conftest$ac_exeext conftest.$ac_ext
16098fi
b4e70030
JB
16099echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16100echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
a3828db0
MK
16101if test $ac_cv_working_alloca_h = yes; then
16102
16103cat >>confdefs.h <<\_ACEOF
16104#define HAVE_ALLOCA_H 1
bec39cab 16105_ACEOF
74c1b268 16106
74c1b268
AC
16107fi
16108
b4e70030
JB
16109echo "$as_me:$LINENO: checking for alloca" >&5
16110echo $ECHO_N "checking for alloca... $ECHO_C" >&6
a3828db0 16111if test "${ac_cv_func_alloca_works+set}" = set; then
bec39cab 16112 echo $ECHO_N "(cached) $ECHO_C" >&6
74c1b268 16113else
bec39cab
AC
16114 cat >conftest.$ac_ext <<_ACEOF
16115/* confdefs.h. */
16116_ACEOF
16117cat confdefs.h >>conftest.$ac_ext
16118cat >>conftest.$ac_ext <<_ACEOF
16119/* end confdefs.h. */
a3828db0
MK
16120#ifdef __GNUC__
16121# define alloca __builtin_alloca
16122#else
16123# ifdef _MSC_VER
16124# include <malloc.h>
16125# define alloca _alloca
16126# else
16127# if HAVE_ALLOCA_H
16128# include <alloca.h>
16129# else
16130# ifdef _AIX
16131 #pragma alloca
16132# else
16133# ifndef alloca /* predefined by HP cc +Olibcalls */
16134char *alloca ();
16135# endif
16136# endif
16137# endif
97bf5e38 16138# endif
a3828db0 16139#endif
97bf5e38 16140
bec39cab
AC
16141int
16142main ()
16143{
a3828db0 16144char *p = (char *) alloca (1);
bec39cab
AC
16145 ;
16146 return 0;
16147}
16148_ACEOF
a3828db0
MK
16149rm -f conftest.$ac_objext conftest$ac_exeext
16150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16151 (eval $ac_link) 2>conftest.er1
bec39cab
AC
16152 ac_status=$?
16153 grep -v '^ *+' conftest.er1 >conftest.err
16154 rm -f conftest.er1
16155 cat conftest.err >&5
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); } &&
b4e70030
JB
16158 { ac_try='test -z "$ac_c_werror_flag"
16159 || test ! -s conftest.err'
bec39cab
AC
16160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16161 (eval $ac_try) 2>&5
16162 ac_status=$?
16163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164 (exit $ac_status); }; } &&
a3828db0 16165 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
16166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16167 (eval $ac_try) 2>&5
16168 ac_status=$?
16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170 (exit $ac_status); }; }; then
a3828db0 16171 ac_cv_func_alloca_works=yes
0200359f 16172else
bec39cab
AC
16173 echo "$as_me: failed program was:" >&5
16174sed 's/^/| /' conftest.$ac_ext >&5
0200359f 16175
b4e70030 16176ac_cv_func_alloca_works=no
0200359f 16177fi
a3828db0
MK
16178rm -f conftest.err conftest.$ac_objext \
16179 conftest$ac_exeext conftest.$ac_ext
72473524 16180fi
b4e70030
JB
16181echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16182echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
bec39cab 16183
a3828db0
MK
16184if test $ac_cv_func_alloca_works = yes; then
16185
16186cat >>confdefs.h <<\_ACEOF
16187#define HAVE_ALLOCA 1
bec39cab
AC
16188_ACEOF
16189
a3828db0
MK
16190else
16191 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16192# that cause trouble. Some versions do not even contain alloca or
16193# contain a buggy version. If you still want to use their alloca,
16194# use ar to extract alloca.o from them instead of compiling alloca.c.
72473524 16195
b4e70030 16196ALLOCA=alloca.$ac_objext
bec39cab 16197
a3828db0
MK
16198cat >>confdefs.h <<\_ACEOF
16199#define C_ALLOCA 1
16200_ACEOF
bec39cab 16201
a3828db0 16202
b4e70030
JB
16203echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16204echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
a3828db0 16205if test "${ac_cv_os_cray+set}" = set; then
bec39cab 16206 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 16207else
a3828db0 16208 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
16209/* confdefs.h. */
16210_ACEOF
16211cat confdefs.h >>conftest.$ac_ext
16212cat >>conftest.$ac_ext <<_ACEOF
16213/* end confdefs.h. */
b4e70030 16214#if defined(CRAY) && ! defined(CRAY2)
a3828db0
MK
16215webecray
16216#else
16217wenotbecray
16218#endif
16219
16220_ACEOF
16221if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16222 $EGREP "webecray" >/dev/null 2>&1; then
16223 ac_cv_os_cray=yes
16224else
16225 ac_cv_os_cray=no
16226fi
16227rm -f conftest*
16228
16229fi
b4e70030
JB
16230echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16231echo "${ECHO_T}$ac_cv_os_cray" >&6
a3828db0
MK
16232if test $ac_cv_os_cray = yes; then
16233 for ac_func in _getb67 GETB67 getb67; do
16234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
16235echo "$as_me:$LINENO: checking for $ac_func" >&5
16236echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16237if eval "test \"\${$as_ac_var+set}\" = set"; then
a3828db0
MK
16238 echo $ECHO_N "(cached) $ECHO_C" >&6
16239else
16240 cat >conftest.$ac_ext <<_ACEOF
16241/* confdefs.h. */
16242_ACEOF
16243cat confdefs.h >>conftest.$ac_ext
16244cat >>conftest.$ac_ext <<_ACEOF
16245/* end confdefs.h. */
16246/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16248#define $ac_func innocuous_$ac_func
16249
16250/* System header to define __stub macros and hopefully few prototypes,
16251 which can conflict with char $ac_func (); below.
16252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16253 <limits.h> exists even on freestanding compilers. */
16254
16255#ifdef __STDC__
16256# include <limits.h>
16257#else
16258# include <assert.h>
16259#endif
16260
16261#undef $ac_func
16262
b4e70030 16263/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
16264#ifdef __cplusplus
16265extern "C"
b4e70030 16266{
a3828db0 16267#endif
b4e70030
JB
16268/* We use char because int might match the return type of a gcc2
16269 builtin and then its argument prototype would still apply. */
a3828db0
MK
16270char $ac_func ();
16271/* The GNU C library defines this for functions which it implements
16272 to always fail with ENOSYS. Some functions are actually named
16273 something starting with __ and the normal name is an alias. */
b4e70030 16274#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 16275choke me
b4e70030
JB
16276#else
16277char (*f) () = $ac_func;
16278#endif
16279#ifdef __cplusplus
16280}
a3828db0
MK
16281#endif
16282
16283int
16284main ()
16285{
b4e70030 16286return f != $ac_func;
a3828db0
MK
16287 ;
16288 return 0;
16289}
16290_ACEOF
16291rm -f conftest.$ac_objext conftest$ac_exeext
16292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16293 (eval $ac_link) 2>conftest.er1
16294 ac_status=$?
16295 grep -v '^ *+' conftest.er1 >conftest.err
16296 rm -f conftest.er1
16297 cat conftest.err >&5
16298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16299 (exit $ac_status); } &&
b4e70030
JB
16300 { ac_try='test -z "$ac_c_werror_flag"
16301 || test ! -s conftest.err'
a3828db0
MK
16302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16303 (eval $ac_try) 2>&5
16304 ac_status=$?
16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); }; } &&
16307 { ac_try='test -s conftest$ac_exeext'
16308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16309 (eval $ac_try) 2>&5
16310 ac_status=$?
16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); }; }; then
16313 eval "$as_ac_var=yes"
16314else
16315 echo "$as_me: failed program was:" >&5
16316sed 's/^/| /' conftest.$ac_ext >&5
16317
b4e70030 16318eval "$as_ac_var=no"
a3828db0
MK
16319fi
16320rm -f conftest.err conftest.$ac_objext \
16321 conftest$ac_exeext conftest.$ac_ext
16322fi
b4e70030
JB
16323echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16324echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
16325if test `eval echo '${'$as_ac_var'}'` = yes; then
16326
16327cat >>confdefs.h <<_ACEOF
16328#define CRAY_STACKSEG_END $ac_func
16329_ACEOF
16330
16331 break
16332fi
16333
16334 done
16335fi
16336
b4e70030
JB
16337echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16338echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
a3828db0
MK
16339if test "${ac_cv_c_stack_direction+set}" = set; then
16340 echo $ECHO_N "(cached) $ECHO_C" >&6
16341else
16342 if test "$cross_compiling" = yes; then
16343 ac_cv_c_stack_direction=0
16344else
16345 cat >conftest.$ac_ext <<_ACEOF
16346/* confdefs.h. */
16347_ACEOF
16348cat confdefs.h >>conftest.$ac_ext
16349cat >>conftest.$ac_ext <<_ACEOF
16350/* end confdefs.h. */
16351int
16352find_stack_direction ()
16353{
16354 static char *addr = 0;
16355 auto char dummy;
16356 if (addr == 0)
16357 {
16358 addr = &dummy;
16359 return find_stack_direction ();
16360 }
16361 else
16362 return (&dummy > addr) ? 1 : -1;
16363}
16364
16365int
16366main ()
16367{
b4e70030 16368 exit (find_stack_direction () < 0);
a3828db0
MK
16369}
16370_ACEOF
16371rm -f conftest$ac_exeext
16372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16373 (eval $ac_link) 2>&5
16374 ac_status=$?
16375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16378 (eval $ac_try) 2>&5
16379 ac_status=$?
16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381 (exit $ac_status); }; }; then
16382 ac_cv_c_stack_direction=1
16383else
16384 echo "$as_me: program exited with status $ac_status" >&5
16385echo "$as_me: failed program was:" >&5
16386sed 's/^/| /' conftest.$ac_ext >&5
16387
16388( exit $ac_status )
16389ac_cv_c_stack_direction=-1
16390fi
b4e70030 16391rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
16392fi
16393fi
b4e70030
JB
16394echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16395echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
a3828db0
MK
16396
16397cat >>confdefs.h <<_ACEOF
16398#define STACK_DIRECTION $ac_cv_c_stack_direction
16399_ACEOF
16400
16401
16402fi
16403
16404
16405
16406for ac_header in stdlib.h unistd.h
16407do
16408as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
16409if eval "test \"\${$as_ac_Header+set}\" = set"; then
16410 echo "$as_me:$LINENO: checking for $ac_header" >&5
16411echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16412if eval "test \"\${$as_ac_Header+set}\" = set"; then
a3828db0
MK
16413 echo $ECHO_N "(cached) $ECHO_C" >&6
16414fi
b4e70030
JB
16415echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16416echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a3828db0
MK
16417else
16418 # Is the header compilable?
b4e70030
JB
16419echo "$as_me:$LINENO: checking $ac_header usability" >&5
16420echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a3828db0
MK
16421cat >conftest.$ac_ext <<_ACEOF
16422/* confdefs.h. */
16423_ACEOF
16424cat confdefs.h >>conftest.$ac_ext
16425cat >>conftest.$ac_ext <<_ACEOF
16426/* end confdefs.h. */
16427$ac_includes_default
16428#include <$ac_header>
16429_ACEOF
16430rm -f conftest.$ac_objext
16431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16432 (eval $ac_compile) 2>conftest.er1
16433 ac_status=$?
bec39cab
AC
16434 grep -v '^ *+' conftest.er1 >conftest.err
16435 rm -f conftest.er1
16436 cat conftest.err >&5
16437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16438 (exit $ac_status); } &&
b4e70030
JB
16439 { ac_try='test -z "$ac_c_werror_flag"
16440 || test ! -s conftest.err'
bec39cab
AC
16441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16442 (eval $ac_try) 2>&5
16443 ac_status=$?
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); }; } &&
16446 { ac_try='test -s conftest.$ac_objext'
16447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16448 (eval $ac_try) 2>&5
16449 ac_status=$?
16450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16451 (exit $ac_status); }; }; then
16452 ac_header_compiler=yes
16453else
16454 echo "$as_me: failed program was:" >&5
16455sed 's/^/| /' conftest.$ac_ext >&5
16456
b4e70030 16457ac_header_compiler=no
bec39cab
AC
16458fi
16459rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
16460echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16461echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
16462
16463# Is the header present?
b4e70030
JB
16464echo "$as_me:$LINENO: checking $ac_header presence" >&5
16465echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
16466cat >conftest.$ac_ext <<_ACEOF
16467/* confdefs.h. */
16468_ACEOF
16469cat confdefs.h >>conftest.$ac_ext
16470cat >>conftest.$ac_ext <<_ACEOF
16471/* end confdefs.h. */
16472#include <$ac_header>
16473_ACEOF
16474if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16475 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16476 ac_status=$?
16477 grep -v '^ *+' conftest.er1 >conftest.err
16478 rm -f conftest.er1
16479 cat conftest.err >&5
16480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16481 (exit $ac_status); } >/dev/null; then
16482 if test -s conftest.err; then
16483 ac_cpp_err=$ac_c_preproc_warn_flag
16484 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16485 else
16486 ac_cpp_err=
16487 fi
16488else
16489 ac_cpp_err=yes
16490fi
16491if test -z "$ac_cpp_err"; then
16492 ac_header_preproc=yes
97bf5e38 16493else
bec39cab
AC
16494 echo "$as_me: failed program was:" >&5
16495sed 's/^/| /' conftest.$ac_ext >&5
16496
16497 ac_header_preproc=no
72473524 16498fi
bec39cab 16499rm -f conftest.err conftest.$ac_ext
b4e70030
JB
16500echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16501echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 16502
bec39cab
AC
16503# So? What about this header?
16504case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16505 yes:no: )
16506 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16507echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16509echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16510 ac_header_preproc=yes
16511 ;;
16512 no:yes:* )
16513 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16514echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16515 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16516echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16517 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16518echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16519 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16520echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16522echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16523 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16524echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
16525 (
16526 cat <<\_ASBOX
16527## ------------------------------------------ ##
16528## Report this to the AC_PACKAGE_NAME lists. ##
16529## ------------------------------------------ ##
16530_ASBOX
16531 ) |
16532 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
16533 ;;
16534esac
b4e70030
JB
16535echo "$as_me:$LINENO: checking for $ac_header" >&5
16536echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16537if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 16538 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 16539else
bec39cab
AC
16540 eval "$as_ac_Header=\$ac_header_preproc"
16541fi
b4e70030
JB
16542echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16543echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
16544
16545fi
16546if test `eval echo '${'$as_ac_Header'}'` = yes; then
16547 cat >>confdefs.h <<_ACEOF
16548#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16549_ACEOF
16550
16551fi
16552
16553done
16554
16555
a3828db0 16556for ac_func in getpagesize
bec39cab
AC
16557do
16558as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
16559echo "$as_me:$LINENO: checking for $ac_func" >&5
16560echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16561if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
16562 echo $ECHO_N "(cached) $ECHO_C" >&6
16563else
16564 cat >conftest.$ac_ext <<_ACEOF
16565/* confdefs.h. */
16566_ACEOF
16567cat confdefs.h >>conftest.$ac_ext
16568cat >>conftest.$ac_ext <<_ACEOF
16569/* end confdefs.h. */
16570/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16572#define $ac_func innocuous_$ac_func
16573
97bf5e38 16574/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
16575 which can conflict with char $ac_func (); below.
16576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16577 <limits.h> exists even on freestanding compilers. */
2b2d558c 16578
bec39cab
AC
16579#ifdef __STDC__
16580# include <limits.h>
16581#else
16582# include <assert.h>
16583#endif
97bf5e38 16584
bec39cab
AC
16585#undef $ac_func
16586
b4e70030 16587/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
16588#ifdef __cplusplus
16589extern "C"
b4e70030 16590{
bec39cab 16591#endif
b4e70030
JB
16592/* We use char because int might match the return type of a gcc2
16593 builtin and then its argument prototype would still apply. */
bec39cab 16594char $ac_func ();
97bf5e38
MK
16595/* The GNU C library defines this for functions which it implements
16596 to always fail with ENOSYS. Some functions are actually named
16597 something starting with __ and the normal name is an alias. */
b4e70030 16598#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 16599choke me
b4e70030
JB
16600#else
16601char (*f) () = $ac_func;
16602#endif
16603#ifdef __cplusplus
16604}
97bf5e38
MK
16605#endif
16606
bec39cab
AC
16607int
16608main ()
16609{
b4e70030 16610return f != $ac_func;
bec39cab
AC
16611 ;
16612 return 0;
16613}
16614_ACEOF
16615rm -f conftest.$ac_objext conftest$ac_exeext
16616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16617 (eval $ac_link) 2>conftest.er1
16618 ac_status=$?
16619 grep -v '^ *+' conftest.er1 >conftest.err
16620 rm -f conftest.er1
16621 cat conftest.err >&5
16622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); } &&
b4e70030
JB
16624 { ac_try='test -z "$ac_c_werror_flag"
16625 || test ! -s conftest.err'
bec39cab
AC
16626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16627 (eval $ac_try) 2>&5
16628 ac_status=$?
16629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 (exit $ac_status); }; } &&
16631 { ac_try='test -s conftest$ac_exeext'
16632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16633 (eval $ac_try) 2>&5
16634 ac_status=$?
16635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16636 (exit $ac_status); }; }; then
16637 eval "$as_ac_var=yes"
16638else
16639 echo "$as_me: failed program was:" >&5
16640sed 's/^/| /' conftest.$ac_ext >&5
16641
b4e70030 16642eval "$as_ac_var=no"
bec39cab
AC
16643fi
16644rm -f conftest.err conftest.$ac_objext \
16645 conftest$ac_exeext conftest.$ac_ext
16646fi
b4e70030
JB
16647echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16648echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
16649if test `eval echo '${'$as_ac_var'}'` = yes; then
16650 cat >>confdefs.h <<_ACEOF
16651#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16652_ACEOF
16653
2b2d558c 16654fi
bec39cab 16655done
2b2d558c 16656
b4e70030
JB
16657echo "$as_me:$LINENO: checking for working mmap" >&5
16658echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
a3828db0 16659if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
bec39cab 16660 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 16661else
bec39cab 16662 if test "$cross_compiling" = yes; then
a3828db0 16663 ac_cv_func_mmap_fixed_mapped=no
bec39cab
AC
16664else
16665 cat >conftest.$ac_ext <<_ACEOF
a3828db0 16666/* confdefs.h. */
bec39cab
AC
16667_ACEOF
16668cat confdefs.h >>conftest.$ac_ext
16669cat >>conftest.$ac_ext <<_ACEOF
16670/* end confdefs.h. */
a3828db0
MK
16671$ac_includes_default
16672/* malloc might have been renamed as rpl_malloc. */
16673#undef malloc
bec39cab 16674
a3828db0
MK
16675/* Thanks to Mike Haertel and Jim Avera for this test.
16676 Here is a matrix of mmap possibilities:
16677 mmap private not fixed
16678 mmap private fixed at somewhere currently unmapped
16679 mmap private fixed at somewhere already mapped
16680 mmap shared not fixed
16681 mmap shared fixed at somewhere currently unmapped
16682 mmap shared fixed at somewhere already mapped
16683 For private mappings, we should verify that changes cannot be read()
16684 back from the file, nor mmap's back from the file at a different
16685 address. (There have been systems where private was not correctly
16686 implemented like the infamous i386 svr4.0, and systems where the
16687 VM page cache was not coherent with the file system buffer cache
16688 like early versions of FreeBSD and possibly contemporary NetBSD.)
16689 For shared mappings, we should conversely verify that changes get
16690 propagated back to all the places they're supposed to be.
7dfa765c 16691
a3828db0
MK
16692 Grep wants private fixed already mapped.
16693 The main things grep needs to know about mmap are:
16694 * does it exist and is it safe to write into the mmap'd area
16695 * how to use it (BSD variants) */
7dfa765c 16696
a3828db0
MK
16697#include <fcntl.h>
16698#include <sys/mman.h>
7dfa765c 16699
a3828db0
MK
16700#if !STDC_HEADERS && !HAVE_STDLIB_H
16701char *malloc ();
16702#endif
7dfa765c 16703
a3828db0
MK
16704/* This mess was copied from the GNU getpagesize.h. */
16705#if !HAVE_GETPAGESIZE
16706/* Assume that all systems that can run configure have sys/param.h. */
16707# if !HAVE_SYS_PARAM_H
16708# define HAVE_SYS_PARAM_H 1
16709# endif
64bb1671 16710
a3828db0
MK
16711# ifdef _SC_PAGESIZE
16712# define getpagesize() sysconf(_SC_PAGESIZE)
16713# else /* no _SC_PAGESIZE */
16714# if HAVE_SYS_PARAM_H
16715# include <sys/param.h>
16716# ifdef EXEC_PAGESIZE
16717# define getpagesize() EXEC_PAGESIZE
16718# else /* no EXEC_PAGESIZE */
16719# ifdef NBPG
16720# define getpagesize() NBPG * CLSIZE
16721# ifndef CLSIZE
16722# define CLSIZE 1
16723# endif /* no CLSIZE */
16724# else /* no NBPG */
16725# ifdef NBPC
16726# define getpagesize() NBPC
16727# else /* no NBPC */
16728# ifdef PAGESIZE
16729# define getpagesize() PAGESIZE
16730# endif /* PAGESIZE */
16731# endif /* no NBPC */
16732# endif /* no NBPG */
16733# endif /* no EXEC_PAGESIZE */
16734# else /* no HAVE_SYS_PARAM_H */
16735# define getpagesize() 8192 /* punt totally */
16736# endif /* no HAVE_SYS_PARAM_H */
16737# endif /* no _SC_PAGESIZE */
64bb1671 16738
a3828db0 16739#endif /* no HAVE_GETPAGESIZE */
64bb1671 16740
a3828db0
MK
16741int
16742main ()
16743{
16744 char *data, *data2, *data3;
16745 int i, pagesize;
16746 int fd;
97bf5e38 16747
a3828db0
MK
16748 pagesize = getpagesize ();
16749
16750 /* First, make a file with some known garbage in it. */
16751 data = (char *) malloc (pagesize);
16752 if (!data)
b4e70030 16753 exit (1);
a3828db0
MK
16754 for (i = 0; i < pagesize; ++i)
16755 *(data + i) = rand ();
16756 umask (0);
16757 fd = creat ("conftest.mmap", 0600);
16758 if (fd < 0)
b4e70030 16759 exit (1);
a3828db0 16760 if (write (fd, data, pagesize) != pagesize)
b4e70030 16761 exit (1);
a3828db0
MK
16762 close (fd);
16763
16764 /* Next, try to mmap the file at a fixed address which already has
16765 something else allocated at it. If we can, also make sure that
16766 we see the same garbage. */
16767 fd = open ("conftest.mmap", O_RDWR);
16768 if (fd < 0)
b4e70030 16769 exit (1);
a3828db0
MK
16770 data2 = (char *) malloc (2 * pagesize);
16771 if (!data2)
b4e70030
JB
16772 exit (1);
16773 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
a3828db0
MK
16774 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16775 MAP_PRIVATE | MAP_FIXED, fd, 0L))
b4e70030 16776 exit (1);
a3828db0
MK
16777 for (i = 0; i < pagesize; ++i)
16778 if (*(data + i) != *(data2 + i))
b4e70030 16779 exit (1);
a3828db0
MK
16780
16781 /* Finally, make sure that changes to the mapped area do not
16782 percolate back to the file as seen by read(). (This is a bug on
16783 some variants of i386 svr4.0.) */
16784 for (i = 0; i < pagesize; ++i)
16785 *(data2 + i) = *(data2 + i) + 1;
16786 data3 = (char *) malloc (pagesize);
16787 if (!data3)
b4e70030 16788 exit (1);
a3828db0 16789 if (read (fd, data3, pagesize) != pagesize)
b4e70030 16790 exit (1);
a3828db0
MK
16791 for (i = 0; i < pagesize; ++i)
16792 if (*(data + i) != *(data3 + i))
b4e70030 16793 exit (1);
a3828db0 16794 close (fd);
b4e70030 16795 exit (0);
97bf5e38 16796}
bec39cab
AC
16797_ACEOF
16798rm -f conftest$ac_exeext
16799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16800 (eval $ac_link) 2>&5
16801 ac_status=$?
16802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16805 (eval $ac_try) 2>&5
16806 ac_status=$?
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); }; }; then
a3828db0 16809 ac_cv_func_mmap_fixed_mapped=yes
5c44784c 16810else
bec39cab
AC
16811 echo "$as_me: program exited with status $ac_status" >&5
16812echo "$as_me: failed program was:" >&5
16813sed 's/^/| /' conftest.$ac_ext >&5
16814
16815( exit $ac_status )
a3828db0 16816ac_cv_func_mmap_fixed_mapped=no
0afdd437 16817fi
b4e70030 16818rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bec39cab 16819fi
a3828db0 16820fi
b4e70030
JB
16821echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16822echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
a3828db0 16823if test $ac_cv_func_mmap_fixed_mapped = yes; then
bec39cab
AC
16824
16825cat >>confdefs.h <<\_ACEOF
a3828db0 16826#define HAVE_MMAP 1
bec39cab 16827_ACEOF
0afdd437
MK
16828
16829fi
a3828db0 16830rm -f conftest.mmap
0afdd437 16831
b4e70030
JB
16832echo "$as_me:$LINENO: checking for pid_t" >&5
16833echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
a3828db0 16834if test "${ac_cv_type_pid_t+set}" = set; then
bec39cab
AC
16835 echo $ECHO_N "(cached) $ECHO_C" >&6
16836else
16837 cat >conftest.$ac_ext <<_ACEOF
16838/* confdefs.h. */
16839_ACEOF
16840cat confdefs.h >>conftest.$ac_ext
16841cat >>conftest.$ac_ext <<_ACEOF
16842/* end confdefs.h. */
a3828db0 16843$ac_includes_default
bec39cab
AC
16844int
16845main ()
16846{
b4e70030 16847if ((pid_t *) 0)
a3828db0 16848 return 0;
b4e70030 16849if (sizeof (pid_t))
a3828db0 16850 return 0;
bec39cab
AC
16851 ;
16852 return 0;
16853}
16854_ACEOF
a3828db0
MK
16855rm -f conftest.$ac_objext
16856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16857 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
16858 ac_status=$?
16859 grep -v '^ *+' conftest.er1 >conftest.err
16860 rm -f conftest.er1
16861 cat conftest.err >&5
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); } &&
b4e70030
JB
16864 { ac_try='test -z "$ac_c_werror_flag"
16865 || test ! -s conftest.err'
bec39cab
AC
16866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16867 (eval $ac_try) 2>&5
16868 ac_status=$?
16869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870 (exit $ac_status); }; } &&
a3828db0 16871 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
16872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16873 (eval $ac_try) 2>&5
16874 ac_status=$?
16875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876 (exit $ac_status); }; }; then
a3828db0 16877 ac_cv_type_pid_t=yes
bec39cab
AC
16878else
16879 echo "$as_me: failed program was:" >&5
16880sed 's/^/| /' conftest.$ac_ext >&5
16881
b4e70030 16882ac_cv_type_pid_t=no
bec39cab 16883fi
a3828db0 16884rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 16885fi
b4e70030
JB
16886echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16887echo "${ECHO_T}$ac_cv_type_pid_t" >&6
a3828db0
MK
16888if test $ac_cv_type_pid_t = yes; then
16889 :
16890else
16891
16892cat >>confdefs.h <<_ACEOF
16893#define pid_t int
bec39cab 16894_ACEOF
7e89e357 16895
7e89e357
JT
16896fi
16897
bec39cab 16898
b4e70030
JB
16899
16900for ac_header in unistd.h vfork.h
7be570e7 16901do
a3828db0 16902as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
16903if eval "test \"\${$as_ac_Header+set}\" = set"; then
16904 echo "$as_me:$LINENO: checking for $ac_header" >&5
16905echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16906if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 16907 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0 16908fi
b4e70030
JB
16909echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16910echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 16911else
a3828db0 16912 # Is the header compilable?
b4e70030
JB
16913echo "$as_me:$LINENO: checking $ac_header usability" >&5
16914echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a3828db0 16915cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
16916/* confdefs.h. */
16917_ACEOF
16918cat confdefs.h >>conftest.$ac_ext
16919cat >>conftest.$ac_ext <<_ACEOF
16920/* end confdefs.h. */
a3828db0
MK
16921$ac_includes_default
16922#include <$ac_header>
bec39cab 16923_ACEOF
a3828db0
MK
16924rm -f conftest.$ac_objext
16925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16926 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
16927 ac_status=$?
16928 grep -v '^ *+' conftest.er1 >conftest.err
16929 rm -f conftest.er1
16930 cat conftest.err >&5
16931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16932 (exit $ac_status); } &&
b4e70030
JB
16933 { ac_try='test -z "$ac_c_werror_flag"
16934 || test ! -s conftest.err'
bec39cab
AC
16935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16936 (eval $ac_try) 2>&5
16937 ac_status=$?
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); }; } &&
a3828db0 16940 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
16941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16942 (eval $ac_try) 2>&5
16943 ac_status=$?
16944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945 (exit $ac_status); }; }; then
a3828db0 16946 ac_header_compiler=yes
bec39cab
AC
16947else
16948 echo "$as_me: failed program was:" >&5
16949sed 's/^/| /' conftest.$ac_ext >&5
16950
b4e70030 16951ac_header_compiler=no
bec39cab 16952fi
a3828db0 16953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
16954echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16955echo "${ECHO_T}$ac_header_compiler" >&6
a3828db0
MK
16956
16957# Is the header present?
b4e70030
JB
16958echo "$as_me:$LINENO: checking $ac_header presence" >&5
16959echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
a3828db0
MK
16960cat >conftest.$ac_ext <<_ACEOF
16961/* confdefs.h. */
16962_ACEOF
16963cat confdefs.h >>conftest.$ac_ext
16964cat >>conftest.$ac_ext <<_ACEOF
16965/* end confdefs.h. */
16966#include <$ac_header>
16967_ACEOF
16968if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16969 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16970 ac_status=$?
16971 grep -v '^ *+' conftest.er1 >conftest.err
16972 rm -f conftest.er1
16973 cat conftest.err >&5
16974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975 (exit $ac_status); } >/dev/null; then
16976 if test -s conftest.err; then
16977 ac_cpp_err=$ac_c_preproc_warn_flag
16978 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16979 else
16980 ac_cpp_err=
16981 fi
16982else
16983 ac_cpp_err=yes
16984fi
16985if test -z "$ac_cpp_err"; then
16986 ac_header_preproc=yes
16987else
16988 echo "$as_me: failed program was:" >&5
16989sed 's/^/| /' conftest.$ac_ext >&5
16990
16991 ac_header_preproc=no
16992fi
16993rm -f conftest.err conftest.$ac_ext
b4e70030
JB
16994echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16995echo "${ECHO_T}$ac_header_preproc" >&6
a3828db0
MK
16996
16997# So? What about this header?
16998case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16999 yes:no: )
17000 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17001echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17003echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17004 ac_header_preproc=yes
17005 ;;
17006 no:yes:* )
17007 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17008echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17009 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17010echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17011 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17012echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17013 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17014echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17016echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17017 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17018echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
17019 (
17020 cat <<\_ASBOX
17021## ------------------------------------------ ##
17022## Report this to the AC_PACKAGE_NAME lists. ##
17023## ------------------------------------------ ##
17024_ASBOX
17025 ) |
17026 sed "s/^/$as_me: WARNING: /" >&2
a3828db0
MK
17027 ;;
17028esac
b4e70030
JB
17029echo "$as_me:$LINENO: checking for $ac_header" >&5
17030echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17031if eval "test \"\${$as_ac_Header+set}\" = set"; then
a3828db0
MK
17032 echo $ECHO_N "(cached) $ECHO_C" >&6
17033else
17034 eval "$as_ac_Header=\$ac_header_preproc"
17035fi
b4e70030
JB
17036echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17037echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a3828db0 17038
bec39cab 17039fi
a3828db0 17040if test `eval echo '${'$as_ac_Header'}'` = yes; then
bec39cab 17041 cat >>confdefs.h <<_ACEOF
a3828db0 17042#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
bec39cab 17043_ACEOF
14abd0fb 17044
14abd0fb 17045fi
a3828db0 17046
14abd0fb
MK
17047done
17048
bec39cab 17049
a3828db0
MK
17050
17051for ac_func in fork vfork
14abd0fb 17052do
bec39cab 17053as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17054echo "$as_me:$LINENO: checking for $ac_func" >&5
17055echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17056if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17057 echo $ECHO_N "(cached) $ECHO_C" >&6
17058else
17059 cat >conftest.$ac_ext <<_ACEOF
17060/* confdefs.h. */
17061_ACEOF
17062cat confdefs.h >>conftest.$ac_ext
17063cat >>conftest.$ac_ext <<_ACEOF
17064/* end confdefs.h. */
17065/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17067#define $ac_func innocuous_$ac_func
17068
14abd0fb 17069/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
17070 which can conflict with char $ac_func (); below.
17071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17072 <limits.h> exists even on freestanding compilers. */
17073
17074#ifdef __STDC__
17075# include <limits.h>
17076#else
17077# include <assert.h>
17078#endif
14abd0fb 17079
bec39cab 17080#undef $ac_func
14abd0fb 17081
b4e70030 17082/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
17083#ifdef __cplusplus
17084extern "C"
b4e70030 17085{
bec39cab 17086#endif
b4e70030
JB
17087/* We use char because int might match the return type of a gcc2
17088 builtin and then its argument prototype would still apply. */
bec39cab 17089char $ac_func ();
14abd0fb
MK
17090/* The GNU C library defines this for functions which it implements
17091 to always fail with ENOSYS. Some functions are actually named
17092 something starting with __ and the normal name is an alias. */
b4e70030 17093#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14abd0fb 17094choke me
b4e70030
JB
17095#else
17096char (*f) () = $ac_func;
17097#endif
17098#ifdef __cplusplus
17099}
14abd0fb
MK
17100#endif
17101
bec39cab
AC
17102int
17103main ()
17104{
b4e70030 17105return f != $ac_func;
bec39cab
AC
17106 ;
17107 return 0;
17108}
17109_ACEOF
17110rm -f conftest.$ac_objext conftest$ac_exeext
17111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17112 (eval $ac_link) 2>conftest.er1
17113 ac_status=$?
17114 grep -v '^ *+' conftest.er1 >conftest.err
17115 rm -f conftest.er1
17116 cat conftest.err >&5
17117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118 (exit $ac_status); } &&
b4e70030
JB
17119 { ac_try='test -z "$ac_c_werror_flag"
17120 || test ! -s conftest.err'
bec39cab
AC
17121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17122 (eval $ac_try) 2>&5
17123 ac_status=$?
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); }; } &&
17126 { ac_try='test -s conftest$ac_exeext'
17127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17128 (eval $ac_try) 2>&5
17129 ac_status=$?
17130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131 (exit $ac_status); }; }; then
17132 eval "$as_ac_var=yes"
17133else
17134 echo "$as_me: failed program was:" >&5
17135sed 's/^/| /' conftest.$ac_ext >&5
17136
b4e70030 17137eval "$as_ac_var=no"
bec39cab
AC
17138fi
17139rm -f conftest.err conftest.$ac_objext \
17140 conftest$ac_exeext conftest.$ac_ext
17141fi
b4e70030
JB
17142echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17143echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
17144if test `eval echo '${'$as_ac_var'}'` = yes; then
17145 cat >>confdefs.h <<_ACEOF
17146#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17147_ACEOF
7be570e7 17148
7be570e7
JM
17149fi
17150done
17151
a3828db0 17152if test "x$ac_cv_func_fork" = xyes; then
b4e70030
JB
17153 echo "$as_me:$LINENO: checking for working fork" >&5
17154echo $ECHO_N "checking for working fork... $ECHO_C" >&6
a3828db0
MK
17155if test "${ac_cv_func_fork_works+set}" = set; then
17156 echo $ECHO_N "(cached) $ECHO_C" >&6
17157else
17158 if test "$cross_compiling" = yes; then
17159 ac_cv_func_fork_works=cross
17160else
17161 cat >conftest.$ac_ext <<_ACEOF
b4e70030
JB
17162/* By Ruediger Kuhlmann. */
17163 #include <sys/types.h>
17164 #if HAVE_UNISTD_H
17165 # include <unistd.h>
17166 #endif
17167 /* Some systems only have a dummy stub for fork() */
17168 int main ()
17169 {
17170 if (fork() < 0)
17171 exit (1);
17172 exit (0);
17173 }
a3828db0
MK
17174_ACEOF
17175rm -f conftest$ac_exeext
17176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17177 (eval $ac_link) 2>&5
17178 ac_status=$?
17179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17182 (eval $ac_try) 2>&5
17183 ac_status=$?
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); }; }; then
17186 ac_cv_func_fork_works=yes
17187else
17188 echo "$as_me: program exited with status $ac_status" >&5
17189echo "$as_me: failed program was:" >&5
17190sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 17191
a3828db0
MK
17192( exit $ac_status )
17193ac_cv_func_fork_works=no
17194fi
b4e70030 17195rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
17196fi
17197fi
b4e70030
JB
17198echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
17199echo "${ECHO_T}$ac_cv_func_fork_works" >&6
a3828db0
MK
17200
17201else
17202 ac_cv_func_fork_works=$ac_cv_func_fork
17203fi
17204if test "x$ac_cv_func_fork_works" = xcross; then
17205 case $host in
17206 *-*-amigaos* | *-*-msdosdjgpp*)
17207 # Override, as these systems have only a dummy fork() stub
17208 ac_cv_func_fork_works=no
17209 ;;
17210 *)
17211 ac_cv_func_fork_works=yes
17212 ;;
17213 esac
17214 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
17215echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
17216fi
17217ac_cv_func_vfork_works=$ac_cv_func_vfork
17218if test "x$ac_cv_func_vfork" = xyes; then
b4e70030
JB
17219 echo "$as_me:$LINENO: checking for working vfork" >&5
17220echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
a3828db0 17221if test "${ac_cv_func_vfork_works+set}" = set; then
bec39cab 17222 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
17223else
17224 if test "$cross_compiling" = yes; then
17225 ac_cv_func_vfork_works=cross
bec39cab
AC
17226else
17227 cat >conftest.$ac_ext <<_ACEOF
17228/* confdefs.h. */
17229_ACEOF
17230cat confdefs.h >>conftest.$ac_ext
17231cat >>conftest.$ac_ext <<_ACEOF
17232/* end confdefs.h. */
a3828db0 17233/* Thanks to Paul Eggert for this test. */
b4e70030
JB
17234#include <stdio.h>
17235#include <stdlib.h>
17236#include <sys/types.h>
17237#include <sys/stat.h>
a3828db0 17238#include <sys/wait.h>
b4e70030
JB
17239#if HAVE_UNISTD_H
17240# include <unistd.h>
17241#endif
a3828db0
MK
17242#if HAVE_VFORK_H
17243# include <vfork.h>
bec39cab 17244#endif
a3828db0
MK
17245/* On some sparc systems, changes by the child to local and incoming
17246 argument registers are propagated back to the parent. The compiler
17247 is told about this with #include <vfork.h>, but some compilers
17248 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
17249 static variable whose address is put into a register that is
17250 clobbered by the vfork. */
17251static void
bec39cab 17252#ifdef __cplusplus
a3828db0
MK
17253sparc_address_test (int arg)
17254# else
17255sparc_address_test (arg) int arg;
c906108c 17256#endif
a3828db0
MK
17257{
17258 static pid_t child;
17259 if (!child) {
17260 child = vfork ();
17261 if (child < 0) {
17262 perror ("vfork");
17263 _exit(2);
17264 }
17265 if (!child) {
17266 arg = getpid();
17267 write(-1, "", 0);
17268 _exit (arg);
17269 }
17270 }
17271}
97bf5e38 17272
bec39cab
AC
17273int
17274main ()
17275{
a3828db0
MK
17276 pid_t parent = getpid ();
17277 pid_t child;
17278
17279 sparc_address_test (0);
17280
17281 child = vfork ();
17282
17283 if (child == 0) {
17284 /* Here is another test for sparc vfork register problems. This
17285 test uses lots of local variables, at least as many local
17286 variables as main has allocated so far including compiler
17287 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
17288 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
17289 reuse the register of parent for one of the local variables,
17290 since it will think that parent can't possibly be used any more
17291 in this routine. Assigning to the local variable will thus
17292 munge parent in the parent process. */
17293 pid_t
17294 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
17295 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
17296 /* Convince the compiler that p..p7 are live; otherwise, it might
17297 use the same hardware register for all 8 local variables. */
17298 if (p != p1 || p != p2 || p != p3 || p != p4
17299 || p != p5 || p != p6 || p != p7)
17300 _exit(1);
17301
17302 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
17303 from child file descriptors. If the child closes a descriptor
17304 before it execs or exits, this munges the parent's descriptor
17305 as well. Test for this by closing stdout in the child. */
17306 _exit(close(fileno(stdout)) != 0);
17307 } else {
17308 int status;
17309 struct stat st;
17310
17311 while (wait(&status) != child)
17312 ;
b4e70030 17313 exit(
a3828db0
MK
17314 /* Was there some problem with vforking? */
17315 child < 0
17316
17317 /* Did the child fail? (This shouldn't happen.) */
17318 || status
17319
17320 /* Did the vfork/compiler bug occur? */
17321 || parent != getpid()
17322
17323 /* Did the file descriptor bug occur? */
17324 || fstat(fileno(stdout), &st) != 0
17325 );
17326 }
bec39cab
AC
17327}
17328_ACEOF
a3828db0 17329rm -f conftest$ac_exeext
bec39cab 17330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 17331 (eval $ac_link) 2>&5
bec39cab
AC
17332 ac_status=$?
17333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 17334 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
17335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17336 (eval $ac_try) 2>&5
17337 ac_status=$?
17338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17339 (exit $ac_status); }; }; then
a3828db0
MK
17340 ac_cv_func_vfork_works=yes
17341else
17342 echo "$as_me: program exited with status $ac_status" >&5
17343echo "$as_me: failed program was:" >&5
17344sed 's/^/| /' conftest.$ac_ext >&5
17345
17346( exit $ac_status )
17347ac_cv_func_vfork_works=no
17348fi
b4e70030 17349rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
17350fi
17351fi
b4e70030
JB
17352echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
17353echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
a3828db0
MK
17354
17355fi;
17356if test "x$ac_cv_func_fork_works" = xcross; then
17357 ac_cv_func_vfork_works=$ac_cv_func_vfork
17358 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
17359echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
17360fi
17361
17362if test "x$ac_cv_func_vfork_works" = xyes; then
17363
17364cat >>confdefs.h <<\_ACEOF
17365#define HAVE_WORKING_VFORK 1
17366_ACEOF
17367
bec39cab 17368else
bec39cab 17369
a3828db0
MK
17370cat >>confdefs.h <<\_ACEOF
17371#define vfork fork
17372_ACEOF
17373
bec39cab 17374fi
a3828db0
MK
17375if test "x$ac_cv_func_fork_works" = xyes; then
17376
17377cat >>confdefs.h <<\_ACEOF
17378#define HAVE_WORKING_FORK 1
bec39cab 17379_ACEOF
c906108c 17380
c906108c
SS
17381fi
17382
bec39cab
AC
17383
17384
a3828db0 17385for ac_func in canonicalize_file_name realpath
97bf5e38 17386do
bec39cab 17387as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030 17388echo "$as_me:$LINENO: checking for $ac_func" >&5
7eb368b3
NR
17389echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17390if eval "test \"\${$as_ac_var+set}\" = set"; then
17391 echo $ECHO_N "(cached) $ECHO_C" >&6
17392else
17393 cat >conftest.$ac_ext <<_ACEOF
17394/* confdefs.h. */
17395_ACEOF
17396cat confdefs.h >>conftest.$ac_ext
17397cat >>conftest.$ac_ext <<_ACEOF
17398/* end confdefs.h. */
17399/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17401#define $ac_func innocuous_$ac_func
17402
17403/* System header to define __stub macros and hopefully few prototypes,
17404 which can conflict with char $ac_func (); below.
17405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17406 <limits.h> exists even on freestanding compilers. */
17407
17408#ifdef __STDC__
17409# include <limits.h>
17410#else
17411# include <assert.h>
17412#endif
17413
17414#undef $ac_func
17415
17416/* Override any gcc2 internal prototype to avoid an error. */
17417#ifdef __cplusplus
17418extern "C"
17419{
17420#endif
17421/* We use char because int might match the return type of a gcc2
17422 builtin and then its argument prototype would still apply. */
17423char $ac_func ();
17424/* The GNU C library defines this for functions which it implements
17425 to always fail with ENOSYS. Some functions are actually named
17426 something starting with __ and the normal name is an alias. */
17427#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17428choke me
17429#else
17430char (*f) () = $ac_func;
17431#endif
17432#ifdef __cplusplus
17433}
17434#endif
17435
17436int
17437main ()
17438{
17439return f != $ac_func;
17440 ;
17441 return 0;
17442}
17443_ACEOF
17444rm -f conftest.$ac_objext conftest$ac_exeext
17445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17446 (eval $ac_link) 2>conftest.er1
17447 ac_status=$?
17448 grep -v '^ *+' conftest.er1 >conftest.err
17449 rm -f conftest.er1
17450 cat conftest.err >&5
17451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452 (exit $ac_status); } &&
17453 { ac_try='test -z "$ac_c_werror_flag"
17454 || test ! -s conftest.err'
17455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17456 (eval $ac_try) 2>&5
17457 ac_status=$?
17458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); }; } &&
17460 { ac_try='test -s conftest$ac_exeext'
17461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17462 (eval $ac_try) 2>&5
17463 ac_status=$?
17464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465 (exit $ac_status); }; }; then
17466 eval "$as_ac_var=yes"
17467else
17468 echo "$as_me: failed program was:" >&5
17469sed 's/^/| /' conftest.$ac_ext >&5
17470
17471eval "$as_ac_var=no"
17472fi
17473rm -f conftest.err conftest.$ac_objext \
17474 conftest$ac_exeext conftest.$ac_ext
17475fi
17476echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17477echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17478if test `eval echo '${'$as_ac_var'}'` = yes; then
17479 cat >>confdefs.h <<_ACEOF
17480#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17481_ACEOF
17482
17483fi
17484done
17485
17486
17487for ac_func in getrusage
17488do
17489as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17490echo "$as_me:$LINENO: checking for $ac_func" >&5
b4e70030
JB
17491echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17492if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17493 echo $ECHO_N "(cached) $ECHO_C" >&6
17494else
17495 cat >conftest.$ac_ext <<_ACEOF
17496/* confdefs.h. */
17497_ACEOF
17498cat confdefs.h >>conftest.$ac_ext
17499cat >>conftest.$ac_ext <<_ACEOF
17500/* end confdefs.h. */
17501/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17503#define $ac_func innocuous_$ac_func
17504
d3ea6809
MM
17505/* System header to define __stub macros and hopefully few prototypes,
17506 which can conflict with char $ac_func (); below.
17507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17508 <limits.h> exists even on freestanding compilers. */
17509
17510#ifdef __STDC__
17511# include <limits.h>
17512#else
17513# include <assert.h>
17514#endif
17515
17516#undef $ac_func
17517
b4e70030 17518/* Override any gcc2 internal prototype to avoid an error. */
d3ea6809
MM
17519#ifdef __cplusplus
17520extern "C"
b4e70030 17521{
d3ea6809 17522#endif
b4e70030
JB
17523/* We use char because int might match the return type of a gcc2
17524 builtin and then its argument prototype would still apply. */
d3ea6809
MM
17525char $ac_func ();
17526/* The GNU C library defines this for functions which it implements
17527 to always fail with ENOSYS. Some functions are actually named
17528 something starting with __ and the normal name is an alias. */
b4e70030 17529#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d3ea6809 17530choke me
b4e70030
JB
17531#else
17532char (*f) () = $ac_func;
17533#endif
17534#ifdef __cplusplus
17535}
d3ea6809
MM
17536#endif
17537
17538int
17539main ()
17540{
b4e70030 17541return f != $ac_func;
d3ea6809
MM
17542 ;
17543 return 0;
17544}
17545_ACEOF
17546rm -f conftest.$ac_objext conftest$ac_exeext
17547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17548 (eval $ac_link) 2>conftest.er1
17549 ac_status=$?
17550 grep -v '^ *+' conftest.er1 >conftest.err
17551 rm -f conftest.er1
17552 cat conftest.err >&5
17553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554 (exit $ac_status); } &&
b4e70030
JB
17555 { ac_try='test -z "$ac_c_werror_flag"
17556 || test ! -s conftest.err'
d3ea6809
MM
17557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17558 (eval $ac_try) 2>&5
17559 ac_status=$?
17560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561 (exit $ac_status); }; } &&
17562 { ac_try='test -s conftest$ac_exeext'
17563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17564 (eval $ac_try) 2>&5
17565 ac_status=$?
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); }; }; then
17568 eval "$as_ac_var=yes"
17569else
17570 echo "$as_me: failed program was:" >&5
17571sed 's/^/| /' conftest.$ac_ext >&5
17572
b4e70030 17573eval "$as_ac_var=no"
d3ea6809
MM
17574fi
17575rm -f conftest.err conftest.$ac_objext \
17576 conftest$ac_exeext conftest.$ac_ext
17577fi
b4e70030
JB
17578echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17579echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
d3ea6809
MM
17580if test `eval echo '${'$as_ac_var'}'` = yes; then
17581 cat >>confdefs.h <<_ACEOF
17582#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17583_ACEOF
17584
17585fi
17586done
17587
17588
17589
17590for ac_func in getuid getgid
17591do
17592as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17593echo "$as_me:$LINENO: checking for $ac_func" >&5
17594echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17595if eval "test \"\${$as_ac_var+set}\" = set"; then
d3ea6809
MM
17596 echo $ECHO_N "(cached) $ECHO_C" >&6
17597else
17598 cat >conftest.$ac_ext <<_ACEOF
17599/* confdefs.h. */
17600_ACEOF
17601cat confdefs.h >>conftest.$ac_ext
17602cat >>conftest.$ac_ext <<_ACEOF
17603/* end confdefs.h. */
17604/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17606#define $ac_func innocuous_$ac_func
17607
97bf5e38 17608/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
17609 which can conflict with char $ac_func (); below.
17610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17611 <limits.h> exists even on freestanding compilers. */
c906108c 17612
bec39cab
AC
17613#ifdef __STDC__
17614# include <limits.h>
17615#else
17616# include <assert.h>
17617#endif
97bf5e38 17618
bec39cab
AC
17619#undef $ac_func
17620
b4e70030 17621/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
17622#ifdef __cplusplus
17623extern "C"
b4e70030 17624{
bec39cab 17625#endif
b4e70030
JB
17626/* We use char because int might match the return type of a gcc2
17627 builtin and then its argument prototype would still apply. */
bec39cab 17628char $ac_func ();
97bf5e38
MK
17629/* The GNU C library defines this for functions which it implements
17630 to always fail with ENOSYS. Some functions are actually named
17631 something starting with __ and the normal name is an alias. */
b4e70030 17632#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 17633choke me
b4e70030
JB
17634#else
17635char (*f) () = $ac_func;
17636#endif
17637#ifdef __cplusplus
17638}
c906108c 17639#endif
97bf5e38 17640
bec39cab
AC
17641int
17642main ()
17643{
b4e70030 17644return f != $ac_func;
bec39cab
AC
17645 ;
17646 return 0;
17647}
17648_ACEOF
17649rm -f conftest.$ac_objext conftest$ac_exeext
17650if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17651 (eval $ac_link) 2>conftest.er1
17652 ac_status=$?
17653 grep -v '^ *+' conftest.er1 >conftest.err
17654 rm -f conftest.er1
17655 cat conftest.err >&5
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); } &&
b4e70030
JB
17658 { ac_try='test -z "$ac_c_werror_flag"
17659 || test ! -s conftest.err'
bec39cab
AC
17660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17661 (eval $ac_try) 2>&5
17662 ac_status=$?
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); }; } &&
17665 { ac_try='test -s conftest$ac_exeext'
17666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17667 (eval $ac_try) 2>&5
17668 ac_status=$?
17669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17670 (exit $ac_status); }; }; then
17671 eval "$as_ac_var=yes"
17672else
17673 echo "$as_me: failed program was:" >&5
17674sed 's/^/| /' conftest.$ac_ext >&5
17675
b4e70030 17676eval "$as_ac_var=no"
bec39cab
AC
17677fi
17678rm -f conftest.err conftest.$ac_objext \
17679 conftest$ac_exeext conftest.$ac_ext
17680fi
b4e70030
JB
17681echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17682echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
17683if test `eval echo '${'$as_ac_var'}'` = yes; then
17684 cat >>confdefs.h <<_ACEOF
17685#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17686_ACEOF
c906108c 17687
c906108c 17688fi
97bf5e38 17689done
c906108c 17690
bec39cab 17691
a3828db0 17692for ac_func in poll
97bf5e38 17693do
bec39cab 17694as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17695echo "$as_me:$LINENO: checking for $ac_func" >&5
17696echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17697if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17698 echo $ECHO_N "(cached) $ECHO_C" >&6
17699else
17700 cat >conftest.$ac_ext <<_ACEOF
17701/* confdefs.h. */
17702_ACEOF
17703cat confdefs.h >>conftest.$ac_ext
17704cat >>conftest.$ac_ext <<_ACEOF
17705/* end confdefs.h. */
17706/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17708#define $ac_func innocuous_$ac_func
17709
97bf5e38 17710/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
17711 which can conflict with char $ac_func (); below.
17712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17713 <limits.h> exists even on freestanding compilers. */
17714
17715#ifdef __STDC__
17716# include <limits.h>
17717#else
17718# include <assert.h>
17719#endif
c906108c 17720
bec39cab 17721#undef $ac_func
97bf5e38 17722
b4e70030 17723/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
17724#ifdef __cplusplus
17725extern "C"
b4e70030 17726{
bec39cab 17727#endif
b4e70030
JB
17728/* We use char because int might match the return type of a gcc2
17729 builtin and then its argument prototype would still apply. */
bec39cab 17730char $ac_func ();
97bf5e38
MK
17731/* The GNU C library defines this for functions which it implements
17732 to always fail with ENOSYS. Some functions are actually named
17733 something starting with __ and the normal name is an alias. */
b4e70030 17734#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 17735choke me
b4e70030
JB
17736#else
17737char (*f) () = $ac_func;
17738#endif
17739#ifdef __cplusplus
17740}
c906108c 17741#endif
97bf5e38 17742
bec39cab
AC
17743int
17744main ()
17745{
b4e70030 17746return f != $ac_func;
bec39cab
AC
17747 ;
17748 return 0;
17749}
17750_ACEOF
17751rm -f conftest.$ac_objext conftest$ac_exeext
17752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17753 (eval $ac_link) 2>conftest.er1
17754 ac_status=$?
17755 grep -v '^ *+' conftest.er1 >conftest.err
17756 rm -f conftest.er1
17757 cat conftest.err >&5
17758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759 (exit $ac_status); } &&
b4e70030
JB
17760 { ac_try='test -z "$ac_c_werror_flag"
17761 || test ! -s conftest.err'
bec39cab
AC
17762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17763 (eval $ac_try) 2>&5
17764 ac_status=$?
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); }; } &&
17767 { ac_try='test -s conftest$ac_exeext'
17768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17769 (eval $ac_try) 2>&5
17770 ac_status=$?
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 (exit $ac_status); }; }; then
17773 eval "$as_ac_var=yes"
17774else
17775 echo "$as_me: failed program was:" >&5
17776sed 's/^/| /' conftest.$ac_ext >&5
17777
b4e70030 17778eval "$as_ac_var=no"
bec39cab
AC
17779fi
17780rm -f conftest.err conftest.$ac_objext \
17781 conftest$ac_exeext conftest.$ac_ext
17782fi
b4e70030
JB
17783echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17784echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
17785if test `eval echo '${'$as_ac_var'}'` = yes; then
17786 cat >>confdefs.h <<_ACEOF
17787#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17788_ACEOF
c906108c 17789
c906108c 17790fi
97bf5e38 17791done
c906108c 17792
bec39cab 17793
a3828db0 17794for ac_func in pread64
97bf5e38 17795do
bec39cab 17796as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17797echo "$as_me:$LINENO: checking for $ac_func" >&5
17798echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17799if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17800 echo $ECHO_N "(cached) $ECHO_C" >&6
17801else
17802 cat >conftest.$ac_ext <<_ACEOF
17803/* confdefs.h. */
17804_ACEOF
17805cat confdefs.h >>conftest.$ac_ext
17806cat >>conftest.$ac_ext <<_ACEOF
17807/* end confdefs.h. */
17808/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17810#define $ac_func innocuous_$ac_func
17811
97bf5e38 17812/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
17813 which can conflict with char $ac_func (); below.
17814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17815 <limits.h> exists even on freestanding compilers. */
17816
17817#ifdef __STDC__
17818# include <limits.h>
17819#else
17820# include <assert.h>
17821#endif
c906108c 17822
bec39cab 17823#undef $ac_func
97bf5e38 17824
b4e70030 17825/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
17826#ifdef __cplusplus
17827extern "C"
b4e70030 17828{
bec39cab 17829#endif
b4e70030
JB
17830/* We use char because int might match the return type of a gcc2
17831 builtin and then its argument prototype would still apply. */
bec39cab 17832char $ac_func ();
97bf5e38
MK
17833/* The GNU C library defines this for functions which it implements
17834 to always fail with ENOSYS. Some functions are actually named
17835 something starting with __ and the normal name is an alias. */
b4e70030 17836#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 17837choke me
b4e70030
JB
17838#else
17839char (*f) () = $ac_func;
17840#endif
17841#ifdef __cplusplus
17842}
c906108c 17843#endif
97bf5e38 17844
bec39cab
AC
17845int
17846main ()
17847{
b4e70030 17848return f != $ac_func;
bec39cab
AC
17849 ;
17850 return 0;
17851}
17852_ACEOF
17853rm -f conftest.$ac_objext conftest$ac_exeext
17854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17855 (eval $ac_link) 2>conftest.er1
17856 ac_status=$?
17857 grep -v '^ *+' conftest.er1 >conftest.err
17858 rm -f conftest.er1
17859 cat conftest.err >&5
17860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 (exit $ac_status); } &&
b4e70030
JB
17862 { ac_try='test -z "$ac_c_werror_flag"
17863 || test ! -s conftest.err'
bec39cab
AC
17864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17865 (eval $ac_try) 2>&5
17866 ac_status=$?
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); }; } &&
17869 { ac_try='test -s conftest$ac_exeext'
17870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17871 (eval $ac_try) 2>&5
17872 ac_status=$?
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); }; }; then
17875 eval "$as_ac_var=yes"
17876else
17877 echo "$as_me: failed program was:" >&5
17878sed 's/^/| /' conftest.$ac_ext >&5
17879
b4e70030 17880eval "$as_ac_var=no"
bec39cab
AC
17881fi
17882rm -f conftest.err conftest.$ac_objext \
17883 conftest$ac_exeext conftest.$ac_ext
17884fi
b4e70030
JB
17885echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17886echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
17887if test `eval echo '${'$as_ac_var'}'` = yes; then
17888 cat >>confdefs.h <<_ACEOF
17889#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17890_ACEOF
c906108c 17891
c906108c 17892fi
97bf5e38 17893done
c906108c 17894
bec39cab 17895
a3828db0 17896for ac_func in sbrk
b757528f 17897do
bec39cab 17898as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17899echo "$as_me:$LINENO: checking for $ac_func" >&5
17900echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17901if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17902 echo $ECHO_N "(cached) $ECHO_C" >&6
17903else
17904 cat >conftest.$ac_ext <<_ACEOF
17905/* confdefs.h. */
17906_ACEOF
17907cat confdefs.h >>conftest.$ac_ext
17908cat >>conftest.$ac_ext <<_ACEOF
17909/* end confdefs.h. */
17910/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17912#define $ac_func innocuous_$ac_func
17913
b757528f 17914/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
17915 which can conflict with char $ac_func (); below.
17916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17917 <limits.h> exists even on freestanding compilers. */
17918
17919#ifdef __STDC__
17920# include <limits.h>
17921#else
17922# include <assert.h>
17923#endif
b757528f 17924
bec39cab 17925#undef $ac_func
b757528f 17926
b4e70030 17927/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
17928#ifdef __cplusplus
17929extern "C"
b4e70030 17930{
bec39cab 17931#endif
b4e70030
JB
17932/* We use char because int might match the return type of a gcc2
17933 builtin and then its argument prototype would still apply. */
bec39cab 17934char $ac_func ();
b757528f
JJ
17935/* The GNU C library defines this for functions which it implements
17936 to always fail with ENOSYS. Some functions are actually named
17937 something starting with __ and the normal name is an alias. */
b4e70030 17938#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
b757528f 17939choke me
b4e70030
JB
17940#else
17941char (*f) () = $ac_func;
17942#endif
17943#ifdef __cplusplus
17944}
b757528f
JJ
17945#endif
17946
bec39cab
AC
17947int
17948main ()
17949{
b4e70030 17950return f != $ac_func;
bec39cab
AC
17951 ;
17952 return 0;
17953}
17954_ACEOF
17955rm -f conftest.$ac_objext conftest$ac_exeext
17956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17957 (eval $ac_link) 2>conftest.er1
17958 ac_status=$?
17959 grep -v '^ *+' conftest.er1 >conftest.err
17960 rm -f conftest.er1
17961 cat conftest.err >&5
17962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963 (exit $ac_status); } &&
b4e70030
JB
17964 { ac_try='test -z "$ac_c_werror_flag"
17965 || test ! -s conftest.err'
bec39cab
AC
17966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17967 (eval $ac_try) 2>&5
17968 ac_status=$?
17969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970 (exit $ac_status); }; } &&
17971 { ac_try='test -s conftest$ac_exeext'
17972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17973 (eval $ac_try) 2>&5
17974 ac_status=$?
17975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976 (exit $ac_status); }; }; then
17977 eval "$as_ac_var=yes"
17978else
17979 echo "$as_me: failed program was:" >&5
17980sed 's/^/| /' conftest.$ac_ext >&5
17981
b4e70030 17982eval "$as_ac_var=no"
bec39cab
AC
17983fi
17984rm -f conftest.err conftest.$ac_objext \
17985 conftest$ac_exeext conftest.$ac_ext
17986fi
b4e70030
JB
17987echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17988echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
17989if test `eval echo '${'$as_ac_var'}'` = yes; then
17990 cat >>confdefs.h <<_ACEOF
17991#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17992_ACEOF
b757528f 17993
b757528f
JJ
17994fi
17995done
17996
bec39cab 17997
a3828db0
MK
17998
17999for ac_func in setpgid setpgrp
bcb3dc3d 18000do
bec39cab 18001as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
18002echo "$as_me:$LINENO: checking for $ac_func" >&5
18003echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18004if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
18005 echo $ECHO_N "(cached) $ECHO_C" >&6
18006else
18007 cat >conftest.$ac_ext <<_ACEOF
18008/* confdefs.h. */
18009_ACEOF
18010cat confdefs.h >>conftest.$ac_ext
18011cat >>conftest.$ac_ext <<_ACEOF
18012/* end confdefs.h. */
18013/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18014 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18015#define $ac_func innocuous_$ac_func
18016
bcb3dc3d 18017/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
18018 which can conflict with char $ac_func (); below.
18019 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18020 <limits.h> exists even on freestanding compilers. */
18021
18022#ifdef __STDC__
18023# include <limits.h>
18024#else
18025# include <assert.h>
18026#endif
bcb3dc3d 18027
bec39cab 18028#undef $ac_func
bcb3dc3d 18029
b4e70030 18030/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
18031#ifdef __cplusplus
18032extern "C"
b4e70030 18033{
bec39cab 18034#endif
b4e70030
JB
18035/* We use char because int might match the return type of a gcc2
18036 builtin and then its argument prototype would still apply. */
bec39cab 18037char $ac_func ();
bcb3dc3d
MK
18038/* The GNU C library defines this for functions which it implements
18039 to always fail with ENOSYS. Some functions are actually named
18040 something starting with __ and the normal name is an alias. */
b4e70030 18041#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
bcb3dc3d 18042choke me
b4e70030
JB
18043#else
18044char (*f) () = $ac_func;
18045#endif
18046#ifdef __cplusplus
18047}
bcb3dc3d
MK
18048#endif
18049
bec39cab
AC
18050int
18051main ()
18052{
b4e70030 18053return f != $ac_func;
bec39cab
AC
18054 ;
18055 return 0;
18056}
18057_ACEOF
18058rm -f conftest.$ac_objext conftest$ac_exeext
18059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18060 (eval $ac_link) 2>conftest.er1
18061 ac_status=$?
18062 grep -v '^ *+' conftest.er1 >conftest.err
18063 rm -f conftest.er1
18064 cat conftest.err >&5
18065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18066 (exit $ac_status); } &&
b4e70030
JB
18067 { ac_try='test -z "$ac_c_werror_flag"
18068 || test ! -s conftest.err'
bec39cab
AC
18069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18070 (eval $ac_try) 2>&5
18071 ac_status=$?
18072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073 (exit $ac_status); }; } &&
18074 { ac_try='test -s conftest$ac_exeext'
18075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18076 (eval $ac_try) 2>&5
18077 ac_status=$?
18078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18079 (exit $ac_status); }; }; then
18080 eval "$as_ac_var=yes"
18081else
18082 echo "$as_me: failed program was:" >&5
18083sed 's/^/| /' conftest.$ac_ext >&5
18084
b4e70030 18085eval "$as_ac_var=no"
bec39cab
AC
18086fi
18087rm -f conftest.err conftest.$ac_objext \
18088 conftest$ac_exeext conftest.$ac_ext
18089fi
b4e70030
JB
18090echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18091echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
18092if test `eval echo '${'$as_ac_var'}'` = yes; then
18093 cat >>confdefs.h <<_ACEOF
18094#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18095_ACEOF
bcb3dc3d 18096
bcb3dc3d
MK
18097fi
18098done
18099
bec39cab 18100
a3828db0
MK
18101
18102
18103for ac_func in sigaction sigprocmask sigsetmask
8b9cf735 18104do
bec39cab 18105as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
18106echo "$as_me:$LINENO: checking for $ac_func" >&5
18107echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18108if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
18109 echo $ECHO_N "(cached) $ECHO_C" >&6
18110else
18111 cat >conftest.$ac_ext <<_ACEOF
18112/* confdefs.h. */
18113_ACEOF
18114cat confdefs.h >>conftest.$ac_ext
18115cat >>conftest.$ac_ext <<_ACEOF
18116/* end confdefs.h. */
18117/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18119#define $ac_func innocuous_$ac_func
18120
8b9cf735 18121/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
18122 which can conflict with char $ac_func (); below.
18123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18124 <limits.h> exists even on freestanding compilers. */
18125
18126#ifdef __STDC__
18127# include <limits.h>
18128#else
18129# include <assert.h>
18130#endif
8b9cf735 18131
bec39cab 18132#undef $ac_func
8b9cf735 18133
b4e70030 18134/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
18135#ifdef __cplusplus
18136extern "C"
b4e70030 18137{
a3828db0 18138#endif
b4e70030
JB
18139/* We use char because int might match the return type of a gcc2
18140 builtin and then its argument prototype would still apply. */
a3828db0
MK
18141char $ac_func ();
18142/* The GNU C library defines this for functions which it implements
18143 to always fail with ENOSYS. Some functions are actually named
18144 something starting with __ and the normal name is an alias. */
b4e70030 18145#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 18146choke me
b4e70030
JB
18147#else
18148char (*f) () = $ac_func;
18149#endif
18150#ifdef __cplusplus
18151}
a3828db0
MK
18152#endif
18153
bec39cab
AC
18154int
18155main ()
18156{
b4e70030 18157return f != $ac_func;
bec39cab
AC
18158 ;
18159 return 0;
18160}
18161_ACEOF
a3828db0
MK
18162rm -f conftest.$ac_objext conftest$ac_exeext
18163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18164 (eval $ac_link) 2>conftest.er1
bec39cab
AC
18165 ac_status=$?
18166 grep -v '^ *+' conftest.er1 >conftest.err
18167 rm -f conftest.er1
18168 cat conftest.err >&5
18169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18170 (exit $ac_status); } &&
b4e70030
JB
18171 { ac_try='test -z "$ac_c_werror_flag"
18172 || test ! -s conftest.err'
bec39cab
AC
18173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18174 (eval $ac_try) 2>&5
18175 ac_status=$?
18176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18177 (exit $ac_status); }; } &&
a3828db0 18178 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
18179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18180 (eval $ac_try) 2>&5
18181 ac_status=$?
18182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183 (exit $ac_status); }; }; then
a3828db0 18184 eval "$as_ac_var=yes"
086ec9eb 18185else
bec39cab
AC
18186 echo "$as_me: failed program was:" >&5
18187sed 's/^/| /' conftest.$ac_ext >&5
18188
b4e70030 18189eval "$as_ac_var=no"
a3828db0
MK
18190fi
18191rm -f conftest.err conftest.$ac_objext \
18192 conftest$ac_exeext conftest.$ac_ext
18193fi
b4e70030
JB
18194echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18195echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
18196if test `eval echo '${'$as_ac_var'}'` = yes; then
18197 cat >>confdefs.h <<_ACEOF
18198#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18199_ACEOF
18200
086ec9eb 18201fi
a3828db0
MK
18202done
18203
18204
18205for ac_func in socketpair
18206do
18207as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
18208echo "$as_me:$LINENO: checking for $ac_func" >&5
18209echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18210if eval "test \"\${$as_ac_var+set}\" = set"; then
a3828db0
MK
18211 echo $ECHO_N "(cached) $ECHO_C" >&6
18212else
18213 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
18214/* confdefs.h. */
18215_ACEOF
18216cat confdefs.h >>conftest.$ac_ext
18217cat >>conftest.$ac_ext <<_ACEOF
18218/* end confdefs.h. */
a3828db0
MK
18219/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18221#define $ac_func innocuous_$ac_func
18222
18223/* System header to define __stub macros and hopefully few prototypes,
18224 which can conflict with char $ac_func (); below.
18225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18226 <limits.h> exists even on freestanding compilers. */
18227
18228#ifdef __STDC__
18229# include <limits.h>
18230#else
18231# include <assert.h>
18232#endif
18233
18234#undef $ac_func
18235
b4e70030 18236/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
18237#ifdef __cplusplus
18238extern "C"
b4e70030 18239{
a3828db0 18240#endif
b4e70030
JB
18241/* We use char because int might match the return type of a gcc2
18242 builtin and then its argument prototype would still apply. */
a3828db0
MK
18243char $ac_func ();
18244/* The GNU C library defines this for functions which it implements
18245 to always fail with ENOSYS. Some functions are actually named
18246 something starting with __ and the normal name is an alias. */
b4e70030 18247#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 18248choke me
b4e70030
JB
18249#else
18250char (*f) () = $ac_func;
18251#endif
18252#ifdef __cplusplus
18253}
a3828db0
MK
18254#endif
18255
bec39cab
AC
18256int
18257main ()
18258{
b4e70030 18259return f != $ac_func;
bec39cab
AC
18260 ;
18261 return 0;
18262}
18263_ACEOF
a3828db0
MK
18264rm -f conftest.$ac_objext conftest$ac_exeext
18265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18266 (eval $ac_link) 2>conftest.er1
bec39cab
AC
18267 ac_status=$?
18268 grep -v '^ *+' conftest.er1 >conftest.err
18269 rm -f conftest.er1
18270 cat conftest.err >&5
18271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); } &&
b4e70030
JB
18273 { ac_try='test -z "$ac_c_werror_flag"
18274 || test ! -s conftest.err'
bec39cab
AC
18275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18276 (eval $ac_try) 2>&5
18277 ac_status=$?
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); }; } &&
a3828db0 18280 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
18281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18282 (eval $ac_try) 2>&5
18283 ac_status=$?
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); }; }; then
a3828db0 18286 eval "$as_ac_var=yes"
086ec9eb 18287else
bec39cab
AC
18288 echo "$as_me: failed program was:" >&5
18289sed 's/^/| /' conftest.$ac_ext >&5
18290
b4e70030 18291eval "$as_ac_var=no"
086ec9eb 18292fi
a3828db0
MK
18293rm -f conftest.err conftest.$ac_objext \
18294 conftest$ac_exeext conftest.$ac_ext
086ec9eb 18295fi
b4e70030
JB
18296echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18297echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
18298if test `eval echo '${'$as_ac_var'}'` = yes; then
18299 cat >>confdefs.h <<_ACEOF
18300#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 18301_ACEOF
086ec9eb
MK
18302
18303fi
a3828db0 18304done
086ec9eb 18305
a3828db0
MK
18306
18307for ac_func in syscall
18308do
18309as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
18310echo "$as_me:$LINENO: checking for $ac_func" >&5
18311echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18312if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 18313 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab
AC
18314else
18315 cat >conftest.$ac_ext <<_ACEOF
18316/* confdefs.h. */
18317_ACEOF
18318cat confdefs.h >>conftest.$ac_ext
18319cat >>conftest.$ac_ext <<_ACEOF
18320/* end confdefs.h. */
a3828db0
MK
18321/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18323#define $ac_func innocuous_$ac_func
18324
18325/* System header to define __stub macros and hopefully few prototypes,
18326 which can conflict with char $ac_func (); below.
18327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18328 <limits.h> exists even on freestanding compilers. */
18329
18330#ifdef __STDC__
18331# include <limits.h>
18332#else
18333# include <assert.h>
18334#endif
18335
18336#undef $ac_func
18337
b4e70030 18338/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
18339#ifdef __cplusplus
18340extern "C"
b4e70030 18341{
a3828db0 18342#endif
b4e70030
JB
18343/* We use char because int might match the return type of a gcc2
18344 builtin and then its argument prototype would still apply. */
a3828db0
MK
18345char $ac_func ();
18346/* The GNU C library defines this for functions which it implements
18347 to always fail with ENOSYS. Some functions are actually named
18348 something starting with __ and the normal name is an alias. */
b4e70030 18349#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 18350choke me
b4e70030
JB
18351#else
18352char (*f) () = $ac_func;
18353#endif
18354#ifdef __cplusplus
18355}
c906108c 18356#endif
97bf5e38 18357
bec39cab
AC
18358int
18359main ()
97bf5e38 18360{
b4e70030 18361return f != $ac_func;
bec39cab
AC
18362 ;
18363 return 0;
97bf5e38 18364}
bec39cab 18365_ACEOF
a3828db0 18366rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab 18367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 18368 (eval $ac_link) 2>conftest.er1
bec39cab 18369 ac_status=$?
a3828db0
MK
18370 grep -v '^ *+' conftest.er1 >conftest.err
18371 rm -f conftest.er1
18372 cat conftest.err >&5
bec39cab 18373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 18374 (exit $ac_status); } &&
b4e70030
JB
18375 { ac_try='test -z "$ac_c_werror_flag"
18376 || test ! -s conftest.err'
a3828db0
MK
18377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18378 (eval $ac_try) 2>&5
18379 ac_status=$?
18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18381 (exit $ac_status); }; } &&
18382 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
18383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18384 (eval $ac_try) 2>&5
18385 ac_status=$?
18386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387 (exit $ac_status); }; }; then
a3828db0 18388 eval "$as_ac_var=yes"
c906108c 18389else
a3828db0 18390 echo "$as_me: failed program was:" >&5
bec39cab
AC
18391sed 's/^/| /' conftest.$ac_ext >&5
18392
b4e70030 18393eval "$as_ac_var=no"
97bf5e38 18394fi
a3828db0
MK
18395rm -f conftest.err conftest.$ac_objext \
18396 conftest$ac_exeext conftest.$ac_ext
18397fi
b4e70030
JB
18398echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18399echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
18400if test `eval echo '${'$as_ac_var'}'` = yes; then
18401 cat >>confdefs.h <<_ACEOF
18402#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 18403_ACEOF
c906108c
SS
18404
18405fi
a3828db0 18406done
c906108c 18407
a3828db0
MK
18408
18409for ac_func in ttrace
18410do
18411as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
18412echo "$as_me:$LINENO: checking for $ac_func" >&5
18413echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18414if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 18415 echo $ECHO_N "(cached) $ECHO_C" >&6
b83266a0 18416else
bec39cab
AC
18417 cat >conftest.$ac_ext <<_ACEOF
18418/* confdefs.h. */
18419_ACEOF
18420cat confdefs.h >>conftest.$ac_ext
18421cat >>conftest.$ac_ext <<_ACEOF
18422/* end confdefs.h. */
a3828db0
MK
18423/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18424 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18425#define $ac_func innocuous_$ac_func
b83266a0 18426
a3828db0
MK
18427/* System header to define __stub macros and hopefully few prototypes,
18428 which can conflict with char $ac_func (); below.
18429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18430 <limits.h> exists even on freestanding compilers. */
18431
18432#ifdef __STDC__
18433# include <limits.h>
18434#else
18435# include <assert.h>
18436#endif
18437
18438#undef $ac_func
18439
b4e70030 18440/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
18441#ifdef __cplusplus
18442extern "C"
b4e70030 18443{
a3828db0 18444#endif
b4e70030
JB
18445/* We use char because int might match the return type of a gcc2
18446 builtin and then its argument prototype would still apply. */
a3828db0
MK
18447char $ac_func ();
18448/* The GNU C library defines this for functions which it implements
18449 to always fail with ENOSYS. Some functions are actually named
18450 something starting with __ and the normal name is an alias. */
b4e70030 18451#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 18452choke me
b4e70030
JB
18453#else
18454char (*f) () = $ac_func;
18455#endif
18456#ifdef __cplusplus
18457}
a3828db0 18458#endif
97bf5e38 18459
bec39cab
AC
18460int
18461main ()
18462{
b4e70030 18463return f != $ac_func;
bec39cab
AC
18464 ;
18465 return 0;
18466}
18467_ACEOF
a3828db0
MK
18468rm -f conftest.$ac_objext conftest$ac_exeext
18469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18470 (eval $ac_link) 2>conftest.er1
bec39cab
AC
18471 ac_status=$?
18472 grep -v '^ *+' conftest.er1 >conftest.err
18473 rm -f conftest.er1
18474 cat conftest.err >&5
18475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476 (exit $ac_status); } &&
b4e70030
JB
18477 { ac_try='test -z "$ac_c_werror_flag"
18478 || test ! -s conftest.err'
bec39cab
AC
18479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18480 (eval $ac_try) 2>&5
18481 ac_status=$?
18482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483 (exit $ac_status); }; } &&
a3828db0 18484 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
18485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18486 (eval $ac_try) 2>&5
18487 ac_status=$?
18488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489 (exit $ac_status); }; }; then
a3828db0 18490 eval "$as_ac_var=yes"
b83266a0 18491else
bec39cab
AC
18492 echo "$as_me: failed program was:" >&5
18493sed 's/^/| /' conftest.$ac_ext >&5
18494
b4e70030 18495eval "$as_ac_var=no"
b83266a0 18496fi
a3828db0
MK
18497rm -f conftest.err conftest.$ac_objext \
18498 conftest$ac_exeext conftest.$ac_ext
b83266a0 18499fi
b4e70030
JB
18500echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18501echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
18502if test `eval echo '${'$as_ac_var'}'` = yes; then
18503 cat >>confdefs.h <<_ACEOF
18504#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 18505_ACEOF
b83266a0 18506
97bf5e38 18507fi
a3828db0 18508done
b83266a0 18509
a3828db0
MK
18510
18511for ac_func in wborder
18512do
18513as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
18514echo "$as_me:$LINENO: checking for $ac_func" >&5
18515echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18516if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
18517 echo $ECHO_N "(cached) $ECHO_C" >&6
18518else
18519 cat >conftest.$ac_ext <<_ACEOF
18520/* confdefs.h. */
18521_ACEOF
18522cat confdefs.h >>conftest.$ac_ext
18523cat >>conftest.$ac_ext <<_ACEOF
18524/* end confdefs.h. */
a3828db0
MK
18525/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18526 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18527#define $ac_func innocuous_$ac_func
a4db0f07 18528
a3828db0
MK
18529/* System header to define __stub macros and hopefully few prototypes,
18530 which can conflict with char $ac_func (); below.
18531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18532 <limits.h> exists even on freestanding compilers. */
18533
18534#ifdef __STDC__
18535# include <limits.h>
18536#else
18537# include <assert.h>
18538#endif
18539
18540#undef $ac_func
18541
b4e70030 18542/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
18543#ifdef __cplusplus
18544extern "C"
b4e70030 18545{
a3828db0 18546#endif
b4e70030
JB
18547/* We use char because int might match the return type of a gcc2
18548 builtin and then its argument prototype would still apply. */
a3828db0
MK
18549char $ac_func ();
18550/* The GNU C library defines this for functions which it implements
18551 to always fail with ENOSYS. Some functions are actually named
18552 something starting with __ and the normal name is an alias. */
b4e70030 18553#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 18554choke me
b4e70030
JB
18555#else
18556char (*f) () = $ac_func;
18557#endif
18558#ifdef __cplusplus
18559}
a3828db0 18560#endif
97bf5e38 18561
bec39cab
AC
18562int
18563main ()
18564{
b4e70030 18565return f != $ac_func;
bec39cab
AC
18566 ;
18567 return 0;
18568}
18569_ACEOF
a3828db0
MK
18570rm -f conftest.$ac_objext conftest$ac_exeext
18571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18572 (eval $ac_link) 2>conftest.er1
bec39cab
AC
18573 ac_status=$?
18574 grep -v '^ *+' conftest.er1 >conftest.err
18575 rm -f conftest.er1
18576 cat conftest.err >&5
18577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18578 (exit $ac_status); } &&
b4e70030
JB
18579 { ac_try='test -z "$ac_c_werror_flag"
18580 || test ! -s conftest.err'
bec39cab
AC
18581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18582 (eval $ac_try) 2>&5
18583 ac_status=$?
18584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18585 (exit $ac_status); }; } &&
a3828db0 18586 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
18587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18588 (eval $ac_try) 2>&5
18589 ac_status=$?
18590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591 (exit $ac_status); }; }; then
a3828db0 18592 eval "$as_ac_var=yes"
a4db0f07 18593else
bec39cab
AC
18594 echo "$as_me: failed program was:" >&5
18595sed 's/^/| /' conftest.$ac_ext >&5
18596
b4e70030 18597eval "$as_ac_var=no"
a4db0f07 18598fi
a3828db0
MK
18599rm -f conftest.err conftest.$ac_objext \
18600 conftest$ac_exeext conftest.$ac_ext
a4db0f07 18601fi
b4e70030
JB
18602echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18603echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
18604if test `eval echo '${'$as_ac_var'}'` = yes; then
18605 cat >>confdefs.h <<_ACEOF
18606#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 18607_ACEOF
a4db0f07
RH
18608
18609fi
a3828db0 18610done
c906108c 18611
06825bd1 18612
a3828db0
MK
18613# Check the return and argument types of ptrace. No canned test for
18614# this, so roll our own.
18615gdb_ptrace_headers='
18616#if HAVE_SYS_TYPES_H
18617# include <sys/types.h>
18618#endif
18619#if HAVE_SYS_PTRACE_H
18620# include <sys/ptrace.h>
18621#endif
18622#if HAVE_UNISTD_H
18623# include <unistd.h>
18624#endif
18625'
18626# There is no point in checking if we don't have a prototype.
b4e70030
JB
18627echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
18628echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
a3828db0 18629if test "${ac_cv_have_decl_ptrace+set}" = set; then
bec39cab
AC
18630 echo $ECHO_N "(cached) $ECHO_C" >&6
18631else
18632 cat >conftest.$ac_ext <<_ACEOF
18633/* confdefs.h. */
18634_ACEOF
18635cat confdefs.h >>conftest.$ac_ext
18636cat >>conftest.$ac_ext <<_ACEOF
18637/* end confdefs.h. */
a3828db0
MK
18638$gdb_ptrace_headers
18639
bec39cab
AC
18640int
18641main ()
18642{
a3828db0
MK
18643#ifndef ptrace
18644 char *p = (char *) ptrace;
06825bd1 18645#endif
a3828db0 18646
bec39cab
AC
18647 ;
18648 return 0;
18649}
18650_ACEOF
18651rm -f conftest.$ac_objext
18652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18653 (eval $ac_compile) 2>conftest.er1
18654 ac_status=$?
18655 grep -v '^ *+' conftest.er1 >conftest.err
18656 rm -f conftest.er1
18657 cat conftest.err >&5
18658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659 (exit $ac_status); } &&
b4e70030
JB
18660 { ac_try='test -z "$ac_c_werror_flag"
18661 || test ! -s conftest.err'
bec39cab
AC
18662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18663 (eval $ac_try) 2>&5
18664 ac_status=$?
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); }; } &&
18667 { ac_try='test -s conftest.$ac_objext'
18668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18669 (eval $ac_try) 2>&5
18670 ac_status=$?
18671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18672 (exit $ac_status); }; }; then
a3828db0 18673 ac_cv_have_decl_ptrace=yes
06825bd1 18674else
bec39cab
AC
18675 echo "$as_me: failed program was:" >&5
18676sed 's/^/| /' conftest.$ac_ext >&5
18677
b4e70030 18678ac_cv_have_decl_ptrace=no
06825bd1 18679fi
bec39cab 18680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
06825bd1 18681fi
b4e70030
JB
18682echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
18683echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
a3828db0 18684if test $ac_cv_have_decl_ptrace = yes; then
06825bd1 18685
a3828db0
MK
18686cat >>confdefs.h <<_ACEOF
18687#define HAVE_DECL_PTRACE 1
18688_ACEOF
bec39cab 18689
bec39cab 18690
a3828db0
MK
18691else
18692 cat >>confdefs.h <<_ACEOF
18693#define HAVE_DECL_PTRACE 0
bec39cab 18694_ACEOF
06825bd1 18695
a3828db0
MK
18696
18697 : ${gdb_cv_func_ptrace_ret='int'}
18698 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
18699
06825bd1
MK
18700fi
18701
a3828db0
MK
18702
18703# Check return type.
b4e70030
JB
18704echo "$as_me:$LINENO: checking return type of ptrace" >&5
18705echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
a3828db0 18706if test "${gdb_cv_func_ptrace_ret+set}" = set; then
bec39cab
AC
18707 echo $ECHO_N "(cached) $ECHO_C" >&6
18708else
18709 cat >conftest.$ac_ext <<_ACEOF
18710/* confdefs.h. */
18711_ACEOF
18712cat confdefs.h >>conftest.$ac_ext
18713cat >>conftest.$ac_ext <<_ACEOF
18714/* end confdefs.h. */
a3828db0 18715$gdb_ptrace_headers
bec39cab
AC
18716int
18717main ()
18718{
a3828db0 18719extern int ptrace ();
bec39cab
AC
18720 ;
18721 return 0;
18722}
18723_ACEOF
18724rm -f conftest.$ac_objext
18725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18726 (eval $ac_compile) 2>conftest.er1
18727 ac_status=$?
18728 grep -v '^ *+' conftest.er1 >conftest.err
18729 rm -f conftest.er1
18730 cat conftest.err >&5
18731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732 (exit $ac_status); } &&
b4e70030
JB
18733 { ac_try='test -z "$ac_c_werror_flag"
18734 || test ! -s conftest.err'
bec39cab
AC
18735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18736 (eval $ac_try) 2>&5
18737 ac_status=$?
18738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739 (exit $ac_status); }; } &&
18740 { ac_try='test -s conftest.$ac_objext'
18741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18742 (eval $ac_try) 2>&5
18743 ac_status=$?
18744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745 (exit $ac_status); }; }; then
a3828db0 18746 gdb_cv_func_ptrace_ret='int'
70f9f479 18747else
bec39cab
AC
18748 echo "$as_me: failed program was:" >&5
18749sed 's/^/| /' conftest.$ac_ext >&5
18750
b4e70030 18751gdb_cv_func_ptrace_ret='long'
70f9f479 18752fi
bec39cab 18753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70f9f479 18754fi
b4e70030
JB
18755echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
18756echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
bec39cab 18757
a3828db0
MK
18758cat >>confdefs.h <<_ACEOF
18759#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
bec39cab 18760_ACEOF
70f9f479 18761
a3828db0 18762# Check argument types.
b4e70030
JB
18763echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
18764echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
a3828db0 18765if test "${gdb_cv_func_ptrace_args+set}" = set; then
bec39cab
AC
18766 echo $ECHO_N "(cached) $ECHO_C" >&6
18767else
a3828db0
MK
18768
18769for gdb_arg1 in 'int' 'long'; do
18770 for gdb_arg2 in 'pid_t' 'int' 'long'; do
18771 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
18772 for gdb_arg4 in 'int' 'long'; do
18773 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
18774/* confdefs.h. */
18775_ACEOF
18776cat confdefs.h >>conftest.$ac_ext
18777cat >>conftest.$ac_ext <<_ACEOF
18778/* end confdefs.h. */
a3828db0 18779$gdb_ptrace_headers
bec39cab
AC
18780int
18781main ()
18782{
a3828db0
MK
18783
18784extern $gdb_cv_func_ptrace_ret
18785 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
18786
bec39cab
AC
18787 ;
18788 return 0;
18789}
18790_ACEOF
18791rm -f conftest.$ac_objext
18792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18793 (eval $ac_compile) 2>conftest.er1
18794 ac_status=$?
18795 grep -v '^ *+' conftest.er1 >conftest.err
18796 rm -f conftest.er1
18797 cat conftest.err >&5
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); } &&
b4e70030
JB
18800 { ac_try='test -z "$ac_c_werror_flag"
18801 || test ! -s conftest.err'
bec39cab
AC
18802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18803 (eval $ac_try) 2>&5
18804 ac_status=$?
18805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18806 (exit $ac_status); }; } &&
18807 { ac_try='test -s conftest.$ac_objext'
18808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18809 (eval $ac_try) 2>&5
18810 ac_status=$?
18811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812 (exit $ac_status); }; }; then
a3828db0
MK
18813 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
18814 break 4;
5c7f2947 18815else
bec39cab
AC
18816 echo "$as_me: failed program was:" >&5
18817sed 's/^/| /' conftest.$ac_ext >&5
18818
5c7f2947 18819fi
bec39cab 18820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
18821 for gdb_arg5 in 'int *' 'int' 'long'; do
18822 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
18823/* confdefs.h. */
18824_ACEOF
18825cat confdefs.h >>conftest.$ac_ext
18826cat >>conftest.$ac_ext <<_ACEOF
18827/* end confdefs.h. */
a3828db0 18828$gdb_ptrace_headers
bec39cab
AC
18829int
18830main ()
18831{
a3828db0
MK
18832
18833extern $gdb_cv_func_ptrace_ret
18834 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
18835
bec39cab
AC
18836 ;
18837 return 0;
18838}
18839_ACEOF
18840rm -f conftest.$ac_objext
18841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18842 (eval $ac_compile) 2>conftest.er1
18843 ac_status=$?
18844 grep -v '^ *+' conftest.er1 >conftest.err
18845 rm -f conftest.er1
18846 cat conftest.err >&5
18847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848 (exit $ac_status); } &&
b4e70030
JB
18849 { ac_try='test -z "$ac_c_werror_flag"
18850 || test ! -s conftest.err'
bec39cab
AC
18851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18852 (eval $ac_try) 2>&5
18853 ac_status=$?
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); }; } &&
18856 { ac_try='test -s conftest.$ac_objext'
18857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18858 (eval $ac_try) 2>&5
18859 ac_status=$?
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); }; }; then
a3828db0
MK
18862
18863gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
18864 break 5;
78434e59 18865else
bec39cab
AC
18866 echo "$as_me: failed program was:" >&5
18867sed 's/^/| /' conftest.$ac_ext >&5
18868
78434e59 18869fi
bec39cab 18870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
18871 done
18872 done
18873 done
18874 done
18875done
18876# Provide a safe default value.
18877: ${gdb_cv_func_ptrace_args='int,int,long,long'}
18878
78434e59 18879fi
b4e70030
JB
18880echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
18881echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
a3828db0
MK
18882ac_save_IFS=$IFS; IFS=','
18883set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
18884IFS=$ac_save_IFS
18885shift
bec39cab 18886
a3828db0
MK
18887cat >>confdefs.h <<_ACEOF
18888#define PTRACE_TYPE_ARG3 $3
18889_ACEOF
18890
18891if test -n "$5"; then
18892
18893cat >>confdefs.h <<_ACEOF
18894#define PTRACE_TYPE_ARG5 $5
bec39cab 18895_ACEOF
78434e59
MK
18896
18897fi
18898
a3828db0 18899if test "$cross_compiling" = no; then
b4e70030
JB
18900 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
18901echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
a3828db0 18902if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 18903 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
18904else
18905 if test "$cross_compiling" = yes; then
18906 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
18907echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
18908 { (exit 1); exit 1; }; }
bec39cab
AC
18909else
18910 cat >conftest.$ac_ext <<_ACEOF
18911/* confdefs.h. */
18912_ACEOF
18913cat confdefs.h >>conftest.$ac_ext
18914cat >>conftest.$ac_ext <<_ACEOF
18915/* end confdefs.h. */
b4e70030
JB
18916#if HAVE_UNISTD_H
18917# include <unistd.h>
18918#endif
18919
bec39cab
AC
18920int
18921main ()
18922{
a3828db0
MK
18923/* If this system has a BSD-style setpgrp which takes arguments,
18924 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
18925 exit successfully. */
b4e70030 18926 exit (setpgrp (1,1) == -1 ? 0 : 1);
bec39cab
AC
18927 ;
18928 return 0;
18929}
18930_ACEOF
a3828db0
MK
18931rm -f conftest$ac_exeext
18932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18933 (eval $ac_link) 2>&5
bec39cab
AC
18934 ac_status=$?
18935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 18936 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
18937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18938 (eval $ac_try) 2>&5
18939 ac_status=$?
18940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941 (exit $ac_status); }; }; then
a3828db0 18942 ac_cv_func_setpgrp_void=no
c906108c 18943else
a3828db0
MK
18944 echo "$as_me: program exited with status $ac_status" >&5
18945echo "$as_me: failed program was:" >&5
bec39cab
AC
18946sed 's/^/| /' conftest.$ac_ext >&5
18947
a3828db0
MK
18948( exit $ac_status )
18949ac_cv_func_setpgrp_void=yes
c906108c 18950fi
b4e70030 18951rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 18952fi
a3828db0 18953fi
b4e70030
JB
18954echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
18955echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
a3828db0
MK
18956if test $ac_cv_func_setpgrp_void = yes; then
18957
18958cat >>confdefs.h <<\_ACEOF
18959#define SETPGRP_VOID 1
bec39cab 18960_ACEOF
97bf5e38
MK
18961
18962fi
a3828db0
MK
18963
18964else
b4e70030
JB
18965 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
18966echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
a3828db0 18967if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 18968 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 18969else
bec39cab
AC
18970 cat >conftest.$ac_ext <<_ACEOF
18971/* confdefs.h. */
18972_ACEOF
18973cat confdefs.h >>conftest.$ac_ext
18974cat >>conftest.$ac_ext <<_ACEOF
18975/* end confdefs.h. */
a3828db0
MK
18976
18977#include <unistd.h>
18978
bec39cab
AC
18979int
18980main ()
18981{
a3828db0
MK
18982
18983 if (setpgrp(1,1) == -1)
18984 exit (0);
18985 else
18986 exit (1);
18987
bec39cab
AC
18988 ;
18989 return 0;
18990}
18991_ACEOF
18992rm -f conftest.$ac_objext
18993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18994 (eval $ac_compile) 2>conftest.er1
18995 ac_status=$?
18996 grep -v '^ *+' conftest.er1 >conftest.err
18997 rm -f conftest.er1
18998 cat conftest.err >&5
18999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19000 (exit $ac_status); } &&
b4e70030
JB
19001 { ac_try='test -z "$ac_c_werror_flag"
19002 || test ! -s conftest.err'
bec39cab
AC
19003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19004 (eval $ac_try) 2>&5
19005 ac_status=$?
19006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19007 (exit $ac_status); }; } &&
19008 { ac_try='test -s conftest.$ac_objext'
19009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19010 (eval $ac_try) 2>&5
19011 ac_status=$?
19012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013 (exit $ac_status); }; }; then
a3828db0 19014 ac_cv_func_setpgrp_void=no
c906108c 19015else
bec39cab
AC
19016 echo "$as_me: failed program was:" >&5
19017sed 's/^/| /' conftest.$ac_ext >&5
19018
b4e70030 19019ac_cv_func_setpgrp_void=yes
c906108c 19020fi
bec39cab 19021rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 19022fi
b4e70030
JB
19023echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
19024echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
a3828db0 19025if test $ac_cv_func_setpgrp_void = yes; then
bec39cab 19026 cat >>confdefs.h <<\_ACEOF
a3828db0 19027#define SETPGRP_VOID 1
bec39cab 19028_ACEOF
c3f6f71d 19029
a3828db0 19030fi
c906108c
SS
19031fi
19032
a3828db0
MK
19033# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
19034# since sigsetjmp might only be defined as a macro.
b4e70030
JB
19035echo "$as_me:$LINENO: checking for sigsetjmp" >&5
19036echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
a3828db0 19037if test "${gdb_cv_func_sigsetjmp+set}" = set; then
bec39cab
AC
19038 echo $ECHO_N "(cached) $ECHO_C" >&6
19039else
19040 cat >conftest.$ac_ext <<_ACEOF
19041/* confdefs.h. */
19042_ACEOF
19043cat confdefs.h >>conftest.$ac_ext
19044cat >>conftest.$ac_ext <<_ACEOF
19045/* end confdefs.h. */
a3828db0
MK
19046
19047#include <setjmp.h>
19048
bec39cab
AC
19049int
19050main ()
19051{
a3828db0 19052sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
bec39cab
AC
19053 ;
19054 return 0;
19055}
19056_ACEOF
19057rm -f conftest.$ac_objext
19058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19059 (eval $ac_compile) 2>conftest.er1
19060 ac_status=$?
19061 grep -v '^ *+' conftest.er1 >conftest.err
19062 rm -f conftest.er1
19063 cat conftest.err >&5
19064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065 (exit $ac_status); } &&
b4e70030
JB
19066 { ac_try='test -z "$ac_c_werror_flag"
19067 || test ! -s conftest.err'
bec39cab
AC
19068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19069 (eval $ac_try) 2>&5
19070 ac_status=$?
19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072 (exit $ac_status); }; } &&
19073 { ac_try='test -s conftest.$ac_objext'
19074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19075 (eval $ac_try) 2>&5
19076 ac_status=$?
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); }; }; then
a3828db0 19079 gdb_cv_func_sigsetjmp=yes
c906108c 19080else
bec39cab
AC
19081 echo "$as_me: failed program was:" >&5
19082sed 's/^/| /' conftest.$ac_ext >&5
19083
b4e70030 19084gdb_cv_func_sigsetjmp=no
c906108c 19085fi
bec39cab 19086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 19087fi
b4e70030
JB
19088echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
19089echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
a3828db0 19090if test $gdb_cv_func_sigsetjmp = yes; then
c906108c 19091
a3828db0
MK
19092cat >>confdefs.h <<\_ACEOF
19093#define HAVE_SIGSETJMP 1
bec39cab 19094_ACEOF
c906108c 19095
97bf5e38 19096fi
c906108c 19097
a3828db0
MK
19098# Assume we'll default to using the included libiberty regex.
19099gdb_use_included_regex=yes
19100
19101# However, if the system regex is GNU regex, then default to *not*
19102# using the included regex.
b4e70030
JB
19103echo "$as_me:$LINENO: checking for GNU regex" >&5
19104echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
a3828db0 19105if test "${gdb_cv_have_gnu_regex+set}" = set; then
bec39cab
AC
19106 echo $ECHO_N "(cached) $ECHO_C" >&6
19107else
19108 cat >conftest.$ac_ext <<_ACEOF
19109/* confdefs.h. */
19110_ACEOF
19111cat confdefs.h >>conftest.$ac_ext
19112cat >>conftest.$ac_ext <<_ACEOF
19113/* end confdefs.h. */
a3828db0 19114#include <gnu-versions.h>
bec39cab
AC
19115int
19116main ()
19117{
a3828db0
MK
19118#define REGEX_INTERFACE_VERSION 1
19119#if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
19120# error "Version mismatch"
19121#endif
bec39cab
AC
19122 ;
19123 return 0;
19124}
19125_ACEOF
19126rm -f conftest.$ac_objext
19127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19128 (eval $ac_compile) 2>conftest.er1
19129 ac_status=$?
19130 grep -v '^ *+' conftest.er1 >conftest.err
19131 rm -f conftest.er1
19132 cat conftest.err >&5
19133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); } &&
b4e70030
JB
19135 { ac_try='test -z "$ac_c_werror_flag"
19136 || test ! -s conftest.err'
bec39cab
AC
19137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19138 (eval $ac_try) 2>&5
19139 ac_status=$?
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); }; } &&
19142 { ac_try='test -s conftest.$ac_objext'
19143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19144 (eval $ac_try) 2>&5
19145 ac_status=$?
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); }; }; then
a3828db0 19148 gdb_cv_have_gnu_regex=yes
c906108c 19149else
bec39cab
AC
19150 echo "$as_me: failed program was:" >&5
19151sed 's/^/| /' conftest.$ac_ext >&5
19152
b4e70030 19153gdb_cv_have_gnu_regex=no
c906108c 19154fi
bec39cab 19155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 19156fi
b4e70030
JB
19157echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
19158echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
a3828db0
MK
19159if test $gdb_cv_have_gnu_regex = yes; then
19160 gdb_use_included_regex=no
19161fi
c906108c 19162
a3828db0 19163
b4e70030 19164# Check whether --with-included-regex or --without-included-regex was given.
a3828db0 19165if test "${with_included_regex+set}" = set; then
b4e70030
JB
19166 withval="$with_included_regex"
19167 gdb_with_regex=$withval
a3828db0
MK
19168else
19169 gdb_with_regex=$gdb_use_included_regex
b4e70030 19170fi;
a3828db0
MK
19171if test "$gdb_with_regex" = yes; then
19172
19173cat >>confdefs.h <<\_ACEOF
19174#define USE_INCLUDED_REGEX 1
bec39cab 19175_ACEOF
c906108c 19176
97bf5e38 19177fi
c906108c 19178
5c45e068 19179# Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
b4e70030
JB
19180echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
19181echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
5c45e068 19182if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
bec39cab
AC
19183 echo $ECHO_N "(cached) $ECHO_C" >&6
19184else
19185 cat >conftest.$ac_ext <<_ACEOF
19186/* confdefs.h. */
19187_ACEOF
19188cat confdefs.h >>conftest.$ac_ext
19189cat >>conftest.$ac_ext <<_ACEOF
19190/* end confdefs.h. */
a3828db0
MK
19191#include <sys/param.h>
19192#include <sys/proc.h>
5c45e068
MK
19193
19194
bec39cab
AC
19195int
19196main ()
19197{
5c45e068
MK
19198static struct thread ac_aggr;
19199if (ac_aggr.td_pcb)
19200return 0;
bec39cab
AC
19201 ;
19202 return 0;
19203}
19204_ACEOF
19205rm -f conftest.$ac_objext
19206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19207 (eval $ac_compile) 2>conftest.er1
19208 ac_status=$?
19209 grep -v '^ *+' conftest.er1 >conftest.err
19210 rm -f conftest.er1
19211 cat conftest.err >&5
19212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213 (exit $ac_status); } &&
b4e70030
JB
19214 { ac_try='test -z "$ac_c_werror_flag"
19215 || test ! -s conftest.err'
bec39cab
AC
19216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19217 (eval $ac_try) 2>&5
19218 ac_status=$?
19219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220 (exit $ac_status); }; } &&
19221 { ac_try='test -s conftest.$ac_objext'
19222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19223 (eval $ac_try) 2>&5
19224 ac_status=$?
19225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226 (exit $ac_status); }; }; then
5c45e068 19227 ac_cv_member_struct_thread_td_pcb=yes
c906108c 19228else
bec39cab
AC
19229 echo "$as_me: failed program was:" >&5
19230sed 's/^/| /' conftest.$ac_ext >&5
19231
b4e70030 19232cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
19233/* confdefs.h. */
19234_ACEOF
19235cat confdefs.h >>conftest.$ac_ext
19236cat >>conftest.$ac_ext <<_ACEOF
19237/* end confdefs.h. */
19238#include <sys/param.h>
19239#include <sys/proc.h>
19240
19241
19242int
19243main ()
19244{
19245static struct thread ac_aggr;
19246if (sizeof ac_aggr.td_pcb)
19247return 0;
19248 ;
19249 return 0;
19250}
19251_ACEOF
19252rm -f conftest.$ac_objext
19253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19254 (eval $ac_compile) 2>conftest.er1
19255 ac_status=$?
19256 grep -v '^ *+' conftest.er1 >conftest.err
19257 rm -f conftest.er1
19258 cat conftest.err >&5
19259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260 (exit $ac_status); } &&
b4e70030
JB
19261 { ac_try='test -z "$ac_c_werror_flag"
19262 || test ! -s conftest.err'
5c45e068
MK
19263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19264 (eval $ac_try) 2>&5
19265 ac_status=$?
19266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267 (exit $ac_status); }; } &&
19268 { ac_try='test -s conftest.$ac_objext'
19269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19270 (eval $ac_try) 2>&5
19271 ac_status=$?
19272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19273 (exit $ac_status); }; }; then
19274 ac_cv_member_struct_thread_td_pcb=yes
19275else
19276 echo "$as_me: failed program was:" >&5
19277sed 's/^/| /' conftest.$ac_ext >&5
19278
b4e70030 19279ac_cv_member_struct_thread_td_pcb=no
5c45e068
MK
19280fi
19281rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 19282fi
bec39cab 19283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 19284fi
b4e70030
JB
19285echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
19286echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
5c45e068 19287if test $ac_cv_member_struct_thread_td_pcb = yes; then
c906108c 19288
5c45e068 19289cat >>confdefs.h <<_ACEOF
a3828db0 19290#define HAVE_STRUCT_THREAD_TD_PCB 1
bec39cab 19291_ACEOF
c906108c 19292
5c45e068 19293
97bf5e38 19294fi
c906108c 19295
5c45e068 19296
a3828db0 19297# See if <sys/lwp.h> defines `struct lwp`.
b4e70030
JB
19298echo "$as_me:$LINENO: checking for struct lwp" >&5
19299echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
a3828db0 19300if test "${gdb_cv_struct_lwp+set}" = set; then
bec39cab
AC
19301 echo $ECHO_N "(cached) $ECHO_C" >&6
19302else
19303 cat >conftest.$ac_ext <<_ACEOF
19304/* confdefs.h. */
19305_ACEOF
19306cat confdefs.h >>conftest.$ac_ext
19307cat >>conftest.$ac_ext <<_ACEOF
19308/* end confdefs.h. */
a3828db0
MK
19309#include <sys/param.h>
19310#include <sys/lwp.h>
bec39cab
AC
19311int
19312main ()
19313{
a3828db0 19314struct lwp l;
bec39cab
AC
19315 ;
19316 return 0;
19317}
19318_ACEOF
19319rm -f conftest.$ac_objext
19320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19321 (eval $ac_compile) 2>conftest.er1
19322 ac_status=$?
19323 grep -v '^ *+' conftest.er1 >conftest.err
19324 rm -f conftest.er1
19325 cat conftest.err >&5
19326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327 (exit $ac_status); } &&
b4e70030
JB
19328 { ac_try='test -z "$ac_c_werror_flag"
19329 || test ! -s conftest.err'
bec39cab
AC
19330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19331 (eval $ac_try) 2>&5
19332 ac_status=$?
19333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334 (exit $ac_status); }; } &&
19335 { ac_try='test -s conftest.$ac_objext'
19336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19337 (eval $ac_try) 2>&5
19338 ac_status=$?
19339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 (exit $ac_status); }; }; then
a3828db0 19341 gdb_cv_struct_lwp=yes
c906108c 19342else
bec39cab
AC
19343 echo "$as_me: failed program was:" >&5
19344sed 's/^/| /' conftest.$ac_ext >&5
19345
b4e70030 19346gdb_cv_struct_lwp=no
c906108c 19347fi
bec39cab 19348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 19349fi
b4e70030
JB
19350echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
19351echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
a3828db0 19352if test $gdb_cv_struct_lwp = yes; then
c906108c 19353
a3828db0
MK
19354cat >>confdefs.h <<\_ACEOF
19355#define HAVE_STRUCT_LWP 1
bec39cab 19356_ACEOF
c906108c 19357
97bf5e38 19358fi
c906108c 19359
a3828db0 19360# See if <machine/reg.h> degines `struct reg'.
b4e70030
JB
19361echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
19362echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
a3828db0 19363if test "${gdb_cv_struct_reg+set}" = set; then
bec39cab
AC
19364 echo $ECHO_N "(cached) $ECHO_C" >&6
19365else
19366 cat >conftest.$ac_ext <<_ACEOF
19367/* confdefs.h. */
19368_ACEOF
19369cat confdefs.h >>conftest.$ac_ext
19370cat >>conftest.$ac_ext <<_ACEOF
19371/* end confdefs.h. */
a3828db0
MK
19372#include <sys/types.h>
19373#include <machine/reg.h>
bec39cab
AC
19374int
19375main ()
19376{
a3828db0 19377struct reg r;
bec39cab
AC
19378 ;
19379 return 0;
19380}
19381_ACEOF
19382rm -f conftest.$ac_objext
19383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19384 (eval $ac_compile) 2>conftest.er1
19385 ac_status=$?
19386 grep -v '^ *+' conftest.er1 >conftest.err
19387 rm -f conftest.er1
19388 cat conftest.err >&5
19389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390 (exit $ac_status); } &&
b4e70030
JB
19391 { ac_try='test -z "$ac_c_werror_flag"
19392 || test ! -s conftest.err'
bec39cab
AC
19393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19394 (eval $ac_try) 2>&5
19395 ac_status=$?
19396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19397 (exit $ac_status); }; } &&
19398 { ac_try='test -s conftest.$ac_objext'
19399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19400 (eval $ac_try) 2>&5
19401 ac_status=$?
19402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19403 (exit $ac_status); }; }; then
a3828db0 19404 gdb_cv_struct_reg=yes
27ca5dad 19405else
bec39cab
AC
19406 echo "$as_me: failed program was:" >&5
19407sed 's/^/| /' conftest.$ac_ext >&5
19408
b4e70030 19409gdb_cv_struct_reg=no
27ca5dad 19410fi
bec39cab 19411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27ca5dad 19412fi
b4e70030
JB
19413echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
19414echo "${ECHO_T}$gdb_cv_struct_reg" >&6
a3828db0 19415if test $gdb_cv_struct_reg = yes; then
bec39cab
AC
19416
19417cat >>confdefs.h <<\_ACEOF
a3828db0 19418#define HAVE_STRUCT_REG 1
bec39cab 19419_ACEOF
27ca5dad
MC
19420
19421fi
97bf5e38 19422
a3828db0
MK
19423# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
19424# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
b4e70030
JB
19425echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
19426echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
5c45e068 19427if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
bec39cab 19428 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 19429else
bec39cab
AC
19430 cat >conftest.$ac_ext <<_ACEOF
19431/* confdefs.h. */
19432_ACEOF
19433cat confdefs.h >>conftest.$ac_ext
19434cat >>conftest.$ac_ext <<_ACEOF
19435/* end confdefs.h. */
a3828db0 19436#include <machine/reg.h>
5c45e068
MK
19437
19438int
19439main ()
19440{
19441static struct reg ac_aggr;
19442if (ac_aggr.r_fs)
19443return 0;
19444 ;
19445 return 0;
19446}
19447_ACEOF
19448rm -f conftest.$ac_objext
19449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19450 (eval $ac_compile) 2>conftest.er1
19451 ac_status=$?
19452 grep -v '^ *+' conftest.er1 >conftest.err
19453 rm -f conftest.er1
19454 cat conftest.err >&5
19455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456 (exit $ac_status); } &&
b4e70030
JB
19457 { ac_try='test -z "$ac_c_werror_flag"
19458 || test ! -s conftest.err'
5c45e068
MK
19459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19460 (eval $ac_try) 2>&5
19461 ac_status=$?
19462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 (exit $ac_status); }; } &&
19464 { ac_try='test -s conftest.$ac_objext'
19465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19466 (eval $ac_try) 2>&5
19467 ac_status=$?
19468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469 (exit $ac_status); }; }; then
19470 ac_cv_member_struct_reg_r_fs=yes
19471else
19472 echo "$as_me: failed program was:" >&5
19473sed 's/^/| /' conftest.$ac_ext >&5
19474
b4e70030 19475cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
19476/* confdefs.h. */
19477_ACEOF
19478cat confdefs.h >>conftest.$ac_ext
19479cat >>conftest.$ac_ext <<_ACEOF
19480/* end confdefs.h. */
19481#include <machine/reg.h>
19482
bec39cab
AC
19483int
19484main ()
19485{
5c45e068
MK
19486static struct reg ac_aggr;
19487if (sizeof ac_aggr.r_fs)
19488return 0;
bec39cab
AC
19489 ;
19490 return 0;
19491}
19492_ACEOF
19493rm -f conftest.$ac_objext
19494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19495 (eval $ac_compile) 2>conftest.er1
19496 ac_status=$?
19497 grep -v '^ *+' conftest.er1 >conftest.err
19498 rm -f conftest.er1
19499 cat conftest.err >&5
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); } &&
b4e70030
JB
19502 { ac_try='test -z "$ac_c_werror_flag"
19503 || test ! -s conftest.err'
bec39cab
AC
19504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19505 (eval $ac_try) 2>&5
19506 ac_status=$?
19507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508 (exit $ac_status); }; } &&
19509 { ac_try='test -s conftest.$ac_objext'
19510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19511 (eval $ac_try) 2>&5
19512 ac_status=$?
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); }; }; then
5c45e068 19515 ac_cv_member_struct_reg_r_fs=yes
3862412b 19516else
bec39cab
AC
19517 echo "$as_me: failed program was:" >&5
19518sed 's/^/| /' conftest.$ac_ext >&5
19519
b4e70030 19520ac_cv_member_struct_reg_r_fs=no
3862412b 19521fi
bec39cab 19522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 19523fi
5c45e068
MK
19524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19525fi
b4e70030
JB
19526echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
19527echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
5c45e068
MK
19528if test $ac_cv_member_struct_reg_r_fs = yes; then
19529
19530cat >>confdefs.h <<_ACEOF
a3828db0 19531#define HAVE_STRUCT_REG_R_FS 1
bec39cab 19532_ACEOF
3862412b 19533
5c45e068 19534
97bf5e38 19535fi
b4e70030
JB
19536echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
19537echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
5c45e068 19538if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
bec39cab 19539 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 19540else
bec39cab
AC
19541 cat >conftest.$ac_ext <<_ACEOF
19542/* confdefs.h. */
19543_ACEOF
19544cat confdefs.h >>conftest.$ac_ext
19545cat >>conftest.$ac_ext <<_ACEOF
19546/* end confdefs.h. */
a3828db0 19547#include <machine/reg.h>
5c45e068 19548
bec39cab
AC
19549int
19550main ()
19551{
5c45e068
MK
19552static struct reg ac_aggr;
19553if (ac_aggr.r_gs)
19554return 0;
bec39cab
AC
19555 ;
19556 return 0;
19557}
19558_ACEOF
19559rm -f conftest.$ac_objext
19560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19561 (eval $ac_compile) 2>conftest.er1
19562 ac_status=$?
19563 grep -v '^ *+' conftest.er1 >conftest.err
19564 rm -f conftest.er1
19565 cat conftest.err >&5
19566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567 (exit $ac_status); } &&
b4e70030
JB
19568 { ac_try='test -z "$ac_c_werror_flag"
19569 || test ! -s conftest.err'
bec39cab
AC
19570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19571 (eval $ac_try) 2>&5
19572 ac_status=$?
19573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574 (exit $ac_status); }; } &&
19575 { ac_try='test -s conftest.$ac_objext'
19576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19577 (eval $ac_try) 2>&5
19578 ac_status=$?
19579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580 (exit $ac_status); }; }; then
5c45e068 19581 ac_cv_member_struct_reg_r_gs=yes
3862412b 19582else
bec39cab
AC
19583 echo "$as_me: failed program was:" >&5
19584sed 's/^/| /' conftest.$ac_ext >&5
19585
b4e70030 19586cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
19587/* confdefs.h. */
19588_ACEOF
19589cat confdefs.h >>conftest.$ac_ext
19590cat >>conftest.$ac_ext <<_ACEOF
19591/* end confdefs.h. */
19592#include <machine/reg.h>
19593
19594int
19595main ()
19596{
19597static struct reg ac_aggr;
19598if (sizeof ac_aggr.r_gs)
19599return 0;
19600 ;
19601 return 0;
19602}
19603_ACEOF
19604rm -f conftest.$ac_objext
19605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19606 (eval $ac_compile) 2>conftest.er1
19607 ac_status=$?
19608 grep -v '^ *+' conftest.er1 >conftest.err
19609 rm -f conftest.er1
19610 cat conftest.err >&5
19611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612 (exit $ac_status); } &&
b4e70030
JB
19613 { ac_try='test -z "$ac_c_werror_flag"
19614 || test ! -s conftest.err'
5c45e068
MK
19615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19616 (eval $ac_try) 2>&5
19617 ac_status=$?
19618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19619 (exit $ac_status); }; } &&
19620 { ac_try='test -s conftest.$ac_objext'
19621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19622 (eval $ac_try) 2>&5
19623 ac_status=$?
19624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19625 (exit $ac_status); }; }; then
19626 ac_cv_member_struct_reg_r_gs=yes
19627else
19628 echo "$as_me: failed program was:" >&5
19629sed 's/^/| /' conftest.$ac_ext >&5
19630
b4e70030 19631ac_cv_member_struct_reg_r_gs=no
3862412b 19632fi
bec39cab 19633rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 19634fi
5c45e068
MK
19635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19636fi
b4e70030
JB
19637echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
19638echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
5c45e068
MK
19639if test $ac_cv_member_struct_reg_r_gs = yes; then
19640
19641cat >>confdefs.h <<_ACEOF
a3828db0 19642#define HAVE_STRUCT_REG_R_GS 1
bec39cab 19643_ACEOF
3862412b 19644
5c45e068 19645
97bf5e38 19646fi
3862412b 19647
5c45e068 19648
a3828db0 19649# See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
b4e70030
JB
19650echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
19651echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
a3828db0 19652if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
bec39cab 19653 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 19654else
bec39cab
AC
19655 cat >conftest.$ac_ext <<_ACEOF
19656/* confdefs.h. */
19657_ACEOF
19658cat confdefs.h >>conftest.$ac_ext
19659cat >>conftest.$ac_ext <<_ACEOF
19660/* end confdefs.h. */
a3828db0 19661#include <sys/ptrace.h>
bec39cab
AC
19662int
19663main ()
19664{
a3828db0 19665PTRACE_GETREGS;
bec39cab
AC
19666 ;
19667 return 0;
19668}
19669_ACEOF
19670rm -f conftest.$ac_objext
19671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19672 (eval $ac_compile) 2>conftest.er1
19673 ac_status=$?
19674 grep -v '^ *+' conftest.er1 >conftest.err
19675 rm -f conftest.er1
19676 cat conftest.err >&5
19677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678 (exit $ac_status); } &&
b4e70030
JB
19679 { ac_try='test -z "$ac_c_werror_flag"
19680 || test ! -s conftest.err'
bec39cab
AC
19681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19682 (eval $ac_try) 2>&5
19683 ac_status=$?
19684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685 (exit $ac_status); }; } &&
19686 { ac_try='test -s conftest.$ac_objext'
19687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19688 (eval $ac_try) 2>&5
19689 ac_status=$?
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); }; }; then
a3828db0 19692 gdb_cv_have_ptrace_getregs=yes
451928c5 19693else
bec39cab
AC
19694 echo "$as_me: failed program was:" >&5
19695sed 's/^/| /' conftest.$ac_ext >&5
19696
b4e70030 19697gdb_cv_have_ptrace_getregs=no
451928c5 19698fi
bec39cab 19699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
19700fi
19701
b4e70030
JB
19702echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
19703echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
a3828db0 19704if test $gdb_cv_have_ptrace_getregs = yes; then
60ca704f
SE
19705
19706cat >>confdefs.h <<\_ACEOF
a3828db0 19707#define HAVE_PTRACE_GETREGS 1
bec39cab 19708_ACEOF
451928c5 19709
97bf5e38 19710fi
451928c5 19711
a3828db0 19712# See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
b4e70030
JB
19713echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
19714echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
a3828db0 19715if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
bec39cab 19716 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 19717else
bec39cab
AC
19718 cat >conftest.$ac_ext <<_ACEOF
19719/* confdefs.h. */
19720_ACEOF
19721cat confdefs.h >>conftest.$ac_ext
19722cat >>conftest.$ac_ext <<_ACEOF
19723/* end confdefs.h. */
a3828db0 19724#include <sys/ptrace.h>
bec39cab
AC
19725int
19726main ()
19727{
a3828db0 19728PTRACE_GETFPXREGS;
bec39cab
AC
19729 ;
19730 return 0;
19731}
19732_ACEOF
19733rm -f conftest.$ac_objext
19734if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19735 (eval $ac_compile) 2>conftest.er1
19736 ac_status=$?
19737 grep -v '^ *+' conftest.er1 >conftest.err
19738 rm -f conftest.er1
19739 cat conftest.err >&5
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); } &&
b4e70030
JB
19742 { ac_try='test -z "$ac_c_werror_flag"
19743 || test ! -s conftest.err'
bec39cab
AC
19744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19745 (eval $ac_try) 2>&5
19746 ac_status=$?
19747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748 (exit $ac_status); }; } &&
19749 { ac_try='test -s conftest.$ac_objext'
19750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19751 (eval $ac_try) 2>&5
19752 ac_status=$?
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); }; }; then
a3828db0 19755 gdb_cv_have_ptrace_getfpxregs=yes
451928c5 19756else
bec39cab
AC
19757 echo "$as_me: failed program was:" >&5
19758sed 's/^/| /' conftest.$ac_ext >&5
19759
b4e70030 19760gdb_cv_have_ptrace_getfpxregs=no
451928c5 19761fi
bec39cab 19762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
19763fi
19764
b4e70030
JB
19765echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
19766echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
a3828db0 19767if test $gdb_cv_have_ptrace_getfpxregs = yes; then
60ca704f
SE
19768
19769cat >>confdefs.h <<\_ACEOF
a3828db0 19770#define HAVE_PTRACE_GETFPXREGS 1
bec39cab 19771_ACEOF
451928c5 19772
97bf5e38 19773fi
451928c5 19774
a3828db0 19775# See if <sys/ptrace.h> provides the PT_GETDBREGS request.
b4e70030
JB
19776echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
19777echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
a3828db0 19778if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
bec39cab 19779 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 19780else
bec39cab
AC
19781 cat >conftest.$ac_ext <<_ACEOF
19782/* confdefs.h. */
19783_ACEOF
19784cat confdefs.h >>conftest.$ac_ext
19785cat >>conftest.$ac_ext <<_ACEOF
19786/* end confdefs.h. */
a3828db0
MK
19787#include <sys/types.h>
19788#include <sys/ptrace.h>
bec39cab
AC
19789int
19790main ()
19791{
a3828db0 19792PT_GETDBREGS;
bec39cab
AC
19793 ;
19794 return 0;
19795}
19796_ACEOF
19797rm -f conftest.$ac_objext
19798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19799 (eval $ac_compile) 2>conftest.er1
19800 ac_status=$?
19801 grep -v '^ *+' conftest.er1 >conftest.err
19802 rm -f conftest.er1
19803 cat conftest.err >&5
19804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805 (exit $ac_status); } &&
b4e70030
JB
19806 { ac_try='test -z "$ac_c_werror_flag"
19807 || test ! -s conftest.err'
bec39cab
AC
19808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19809 (eval $ac_try) 2>&5
19810 ac_status=$?
19811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19812 (exit $ac_status); }; } &&
19813 { ac_try='test -s conftest.$ac_objext'
19814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19815 (eval $ac_try) 2>&5
19816 ac_status=$?
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); }; }; then
a3828db0 19819 gdb_cv_have_pt_getdbregs=yes
3862412b 19820else
bec39cab
AC
19821 echo "$as_me: failed program was:" >&5
19822sed 's/^/| /' conftest.$ac_ext >&5
19823
b4e70030 19824gdb_cv_have_pt_getdbregs=no
3862412b 19825fi
bec39cab 19826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
19827fi
19828
b4e70030
JB
19829echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
19830echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
a3828db0 19831if test $gdb_cv_have_pt_getdbregs = yes; then
60ca704f
SE
19832
19833cat >>confdefs.h <<\_ACEOF
a3828db0 19834#define HAVE_PT_GETDBREGS 1
bec39cab 19835_ACEOF
3862412b 19836
97bf5e38 19837fi
3862412b 19838
a3828db0 19839# See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
b4e70030
JB
19840echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
19841echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
a3828db0 19842if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
bec39cab 19843 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 19844else
bec39cab
AC
19845 cat >conftest.$ac_ext <<_ACEOF
19846/* confdefs.h. */
19847_ACEOF
19848cat confdefs.h >>conftest.$ac_ext
19849cat >>conftest.$ac_ext <<_ACEOF
19850/* end confdefs.h. */
a3828db0
MK
19851#include <sys/types.h>
19852#include <sys/ptrace.h>
bec39cab
AC
19853int
19854main ()
19855{
a3828db0 19856PT_GETXMMREGS;
bec39cab
AC
19857 ;
19858 return 0;
19859}
19860_ACEOF
19861rm -f conftest.$ac_objext
19862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19863 (eval $ac_compile) 2>conftest.er1
19864 ac_status=$?
19865 grep -v '^ *+' conftest.er1 >conftest.err
19866 rm -f conftest.er1
19867 cat conftest.err >&5
19868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869 (exit $ac_status); } &&
b4e70030
JB
19870 { ac_try='test -z "$ac_c_werror_flag"
19871 || test ! -s conftest.err'
bec39cab
AC
19872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19873 (eval $ac_try) 2>&5
19874 ac_status=$?
19875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876 (exit $ac_status); }; } &&
19877 { ac_try='test -s conftest.$ac_objext'
19878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19879 (eval $ac_try) 2>&5
19880 ac_status=$?
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); }; }; then
a3828db0 19883 gdb_cv_have_pt_getxmmregs=yes
3862412b 19884else
bec39cab
AC
19885 echo "$as_me: failed program was:" >&5
19886sed 's/^/| /' conftest.$ac_ext >&5
19887
b4e70030 19888gdb_cv_have_pt_getxmmregs=no
3862412b 19889fi
bec39cab 19890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
19891fi
19892
b4e70030
JB
19893echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
19894echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
a3828db0 19895if test $gdb_cv_have_pt_getxmmregs = yes; then
60ca704f
SE
19896
19897cat >>confdefs.h <<\_ACEOF
a3828db0 19898#define HAVE_PT_GETXMMREGS 1
bec39cab 19899_ACEOF
3862412b 19900
97bf5e38 19901fi
3862412b 19902
eb368090 19903# Detect which type of /proc is in use, such as for Unixware or Solaris.
97bf5e38
MK
19904
19905if test "${target}" = "${host}"; then
19906 case "${host}" in
97bf5e38 19907 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
60ca704f
SE
19908
19909cat >>confdefs.h <<\_ACEOF
97bf5e38 19910#define NEW_PROC_API 1
bec39cab 19911_ACEOF
97bf5e38
MK
19912
19913 ;;
0bbc026e 19914 *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
60ca704f
SE
19915
19916cat >>confdefs.h <<\_ACEOF
97bf5e38 19917#define NEW_PROC_API 1
bec39cab 19918_ACEOF
c960c18f
AC
19919
19920 ;;
19921 mips-sgi-irix5*)
19922 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
60ca704f
SE
19923
19924cat >>confdefs.h <<\_ACEOF
c960c18f 19925#define _KMEMUSER 1
bec39cab 19926_ACEOF
97bf5e38
MK
19927
19928 ;;
19929 esac
19930fi
19931
19932if test "$ac_cv_header_sys_procfs_h" = yes; then
b4e70030
JB
19933 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
19934echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19935 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
19936 echo $ECHO_N "(cached) $ECHO_C" >&6
19937else
19938 cat >conftest.$ac_ext <<_ACEOF
19939/* confdefs.h. */
19940_ACEOF
19941cat confdefs.h >>conftest.$ac_ext
19942cat >>conftest.$ac_ext <<_ACEOF
19943/* end confdefs.h. */
596c9d4b
KB
19944
19945#define _SYSCALL32
19946#include <sys/procfs.h>
bec39cab
AC
19947int
19948main ()
19949{
97bf5e38 19950pstatus_t avar
bec39cab
AC
19951 ;
19952 return 0;
19953}
19954_ACEOF
19955rm -f conftest.$ac_objext
19956if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19957 (eval $ac_compile) 2>conftest.er1
19958 ac_status=$?
19959 grep -v '^ *+' conftest.er1 >conftest.err
19960 rm -f conftest.er1
19961 cat conftest.err >&5
19962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963 (exit $ac_status); } &&
b4e70030
JB
19964 { ac_try='test -z "$ac_c_werror_flag"
19965 || test ! -s conftest.err'
bec39cab
AC
19966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19967 (eval $ac_try) 2>&5
19968 ac_status=$?
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); }; } &&
19971 { ac_try='test -s conftest.$ac_objext'
19972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19973 (eval $ac_try) 2>&5
19974 ac_status=$?
19975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976 (exit $ac_status); }; }; then
97bf5e38 19977 bfd_cv_have_sys_procfs_type_pstatus_t=yes
596c9d4b 19978else
bec39cab
AC
19979 echo "$as_me: failed program was:" >&5
19980sed 's/^/| /' conftest.$ac_ext >&5
19981
b4e70030 19982bfd_cv_have_sys_procfs_type_pstatus_t=no
bec39cab 19983
596c9d4b 19984fi
bec39cab 19985rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
19986fi
19987
97bf5e38 19988 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
bec39cab
AC
19989
19990cat >>confdefs.h <<\_ACEOF
97bf5e38 19991#define HAVE_PSTATUS_T 1
bec39cab 19992_ACEOF
596c9d4b
KB
19993
19994 fi
b4e70030
JB
19995 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
19996echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
596c9d4b 19997
b4e70030
JB
19998 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
19999echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20000 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
20001 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 20002else
bec39cab
AC
20003 cat >conftest.$ac_ext <<_ACEOF
20004/* confdefs.h. */
20005_ACEOF
20006cat confdefs.h >>conftest.$ac_ext
20007cat >>conftest.$ac_ext <<_ACEOF
20008/* end confdefs.h. */
596c9d4b
KB
20009
20010#define _SYSCALL32
20011#include <sys/procfs.h>
bec39cab
AC
20012int
20013main ()
20014{
97bf5e38 20015prrun_t avar
bec39cab
AC
20016 ;
20017 return 0;
20018}
20019_ACEOF
20020rm -f conftest.$ac_objext
20021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20022 (eval $ac_compile) 2>conftest.er1
20023 ac_status=$?
20024 grep -v '^ *+' conftest.er1 >conftest.err
20025 rm -f conftest.er1
20026 cat conftest.err >&5
20027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028 (exit $ac_status); } &&
b4e70030
JB
20029 { ac_try='test -z "$ac_c_werror_flag"
20030 || test ! -s conftest.err'
bec39cab
AC
20031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20032 (eval $ac_try) 2>&5
20033 ac_status=$?
20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); }; } &&
20036 { ac_try='test -s conftest.$ac_objext'
20037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20038 (eval $ac_try) 2>&5
20039 ac_status=$?
20040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041 (exit $ac_status); }; }; then
97bf5e38 20042 bfd_cv_have_sys_procfs_type_prrun_t=yes
596c9d4b 20043else
bec39cab
AC
20044 echo "$as_me: failed program was:" >&5
20045sed 's/^/| /' conftest.$ac_ext >&5
20046
b4e70030 20047bfd_cv_have_sys_procfs_type_prrun_t=no
bec39cab 20048
596c9d4b 20049fi
bec39cab 20050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
20051fi
20052
97bf5e38 20053 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
bec39cab
AC
20054
20055cat >>confdefs.h <<\_ACEOF
97bf5e38 20056#define HAVE_PRRUN_T 1
bec39cab 20057_ACEOF
596c9d4b
KB
20058
20059 fi
b4e70030
JB
20060 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
20061echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
596c9d4b 20062
b4e70030
JB
20063 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
20064echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20065 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
20066 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 20067else
bec39cab
AC
20068 cat >conftest.$ac_ext <<_ACEOF
20069/* confdefs.h. */
20070_ACEOF
20071cat confdefs.h >>conftest.$ac_ext
20072cat >>conftest.$ac_ext <<_ACEOF
20073/* end confdefs.h. */
596c9d4b
KB
20074
20075#define _SYSCALL32
20076#include <sys/procfs.h>
bec39cab
AC
20077int
20078main ()
20079{
97bf5e38 20080gregset_t avar
bec39cab
AC
20081 ;
20082 return 0;
20083}
20084_ACEOF
20085rm -f conftest.$ac_objext
20086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20087 (eval $ac_compile) 2>conftest.er1
20088 ac_status=$?
20089 grep -v '^ *+' conftest.er1 >conftest.err
20090 rm -f conftest.er1
20091 cat conftest.err >&5
20092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093 (exit $ac_status); } &&
b4e70030
JB
20094 { ac_try='test -z "$ac_c_werror_flag"
20095 || test ! -s conftest.err'
bec39cab
AC
20096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20097 (eval $ac_try) 2>&5
20098 ac_status=$?
20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100 (exit $ac_status); }; } &&
20101 { ac_try='test -s conftest.$ac_objext'
20102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20103 (eval $ac_try) 2>&5
20104 ac_status=$?
20105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106 (exit $ac_status); }; }; then
97bf5e38 20107 bfd_cv_have_sys_procfs_type_gregset_t=yes
596c9d4b 20108else
bec39cab
AC
20109 echo "$as_me: failed program was:" >&5
20110sed 's/^/| /' conftest.$ac_ext >&5
20111
b4e70030 20112bfd_cv_have_sys_procfs_type_gregset_t=no
bec39cab 20113
596c9d4b 20114fi
bec39cab 20115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
20116fi
20117
97bf5e38 20118 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
bec39cab
AC
20119
20120cat >>confdefs.h <<\_ACEOF
97bf5e38 20121#define HAVE_GREGSET_T 1
bec39cab 20122_ACEOF
596c9d4b
KB
20123
20124 fi
b4e70030
JB
20125 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
20126echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
451928c5 20127
b4e70030
JB
20128 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
20129echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20130 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
20131 echo $ECHO_N "(cached) $ECHO_C" >&6
d84dd0c5 20132else
bec39cab
AC
20133 cat >conftest.$ac_ext <<_ACEOF
20134/* confdefs.h. */
20135_ACEOF
20136cat confdefs.h >>conftest.$ac_ext
20137cat >>conftest.$ac_ext <<_ACEOF
20138/* end confdefs.h. */
97bf5e38
MK
20139
20140#define _SYSCALL32
d84dd0c5 20141#include <sys/procfs.h>
bec39cab
AC
20142int
20143main ()
20144{
97bf5e38 20145fpregset_t avar
bec39cab
AC
20146 ;
20147 return 0;
20148}
20149_ACEOF
20150rm -f conftest.$ac_objext
20151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20152 (eval $ac_compile) 2>conftest.er1
20153 ac_status=$?
20154 grep -v '^ *+' conftest.er1 >conftest.err
20155 rm -f conftest.er1
20156 cat conftest.err >&5
20157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158 (exit $ac_status); } &&
b4e70030
JB
20159 { ac_try='test -z "$ac_c_werror_flag"
20160 || test ! -s conftest.err'
bec39cab
AC
20161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20162 (eval $ac_try) 2>&5
20163 ac_status=$?
20164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165 (exit $ac_status); }; } &&
20166 { ac_try='test -s conftest.$ac_objext'
20167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20168 (eval $ac_try) 2>&5
20169 ac_status=$?
20170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171 (exit $ac_status); }; }; then
97bf5e38 20172 bfd_cv_have_sys_procfs_type_fpregset_t=yes
d84dd0c5 20173else
bec39cab
AC
20174 echo "$as_me: failed program was:" >&5
20175sed 's/^/| /' conftest.$ac_ext >&5
20176
b4e70030 20177bfd_cv_have_sys_procfs_type_fpregset_t=no
bec39cab 20178
d84dd0c5 20179fi
bec39cab 20180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d84dd0c5
MK
20181fi
20182
97bf5e38 20183 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
bec39cab
AC
20184
20185cat >>confdefs.h <<\_ACEOF
97bf5e38 20186#define HAVE_FPREGSET_T 1
bec39cab 20187_ACEOF
d84dd0c5 20188
97bf5e38 20189 fi
b4e70030
JB
20190 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
20191echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
d84dd0c5 20192
b4e70030
JB
20193 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
20194echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20195 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
20196 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20197else
bec39cab
AC
20198 cat >conftest.$ac_ext <<_ACEOF
20199/* confdefs.h. */
20200_ACEOF
20201cat confdefs.h >>conftest.$ac_ext
20202cat >>conftest.$ac_ext <<_ACEOF
20203/* end confdefs.h. */
c906108c 20204
97bf5e38
MK
20205#define _SYSCALL32
20206#include <sys/procfs.h>
bec39cab
AC
20207int
20208main ()
20209{
97bf5e38 20210prgregset_t avar
bec39cab
AC
20211 ;
20212 return 0;
20213}
20214_ACEOF
20215rm -f conftest.$ac_objext
20216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20217 (eval $ac_compile) 2>conftest.er1
20218 ac_status=$?
20219 grep -v '^ *+' conftest.er1 >conftest.err
20220 rm -f conftest.er1
20221 cat conftest.err >&5
20222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223 (exit $ac_status); } &&
b4e70030
JB
20224 { ac_try='test -z "$ac_c_werror_flag"
20225 || test ! -s conftest.err'
bec39cab
AC
20226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20227 (eval $ac_try) 2>&5
20228 ac_status=$?
20229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230 (exit $ac_status); }; } &&
20231 { ac_try='test -s conftest.$ac_objext'
20232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20233 (eval $ac_try) 2>&5
20234 ac_status=$?
20235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236 (exit $ac_status); }; }; then
97bf5e38 20237 bfd_cv_have_sys_procfs_type_prgregset_t=yes
c906108c 20238else
bec39cab
AC
20239 echo "$as_me: failed program was:" >&5
20240sed 's/^/| /' conftest.$ac_ext >&5
20241
b4e70030 20242bfd_cv_have_sys_procfs_type_prgregset_t=no
bec39cab 20243
c906108c 20244fi
bec39cab 20245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
20246fi
20247
97bf5e38 20248 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
bec39cab
AC
20249
20250cat >>confdefs.h <<\_ACEOF
97bf5e38 20251#define HAVE_PRGREGSET_T 1
bec39cab 20252_ACEOF
c906108c 20253
97bf5e38 20254 fi
b4e70030
JB
20255 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
20256echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
c906108c 20257
b4e70030
JB
20258 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
20259echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20260 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
20261 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 20262else
bec39cab
AC
20263 cat >conftest.$ac_ext <<_ACEOF
20264/* confdefs.h. */
20265_ACEOF
20266cat confdefs.h >>conftest.$ac_ext
20267cat >>conftest.$ac_ext <<_ACEOF
20268/* end confdefs.h. */
97bf5e38
MK
20269
20270#define _SYSCALL32
20271#include <sys/procfs.h>
bec39cab
AC
20272int
20273main ()
20274{
97bf5e38 20275prfpregset_t avar
bec39cab
AC
20276 ;
20277 return 0;
20278}
20279_ACEOF
20280rm -f conftest.$ac_objext
20281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20282 (eval $ac_compile) 2>conftest.er1
20283 ac_status=$?
20284 grep -v '^ *+' conftest.er1 >conftest.err
20285 rm -f conftest.er1
20286 cat conftest.err >&5
20287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288 (exit $ac_status); } &&
b4e70030
JB
20289 { ac_try='test -z "$ac_c_werror_flag"
20290 || test ! -s conftest.err'
bec39cab
AC
20291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20292 (eval $ac_try) 2>&5
20293 ac_status=$?
20294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295 (exit $ac_status); }; } &&
20296 { ac_try='test -s conftest.$ac_objext'
20297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20298 (eval $ac_try) 2>&5
20299 ac_status=$?
20300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301 (exit $ac_status); }; }; then
97bf5e38 20302 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
d45fe813 20303else
bec39cab
AC
20304 echo "$as_me: failed program was:" >&5
20305sed 's/^/| /' conftest.$ac_ext >&5
20306
b4e70030 20307bfd_cv_have_sys_procfs_type_prfpregset_t=no
bec39cab 20308
d45fe813 20309fi
bec39cab 20310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
20311fi
20312
97bf5e38 20313 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
bec39cab
AC
20314
20315cat >>confdefs.h <<\_ACEOF
97bf5e38 20316#define HAVE_PRFPREGSET_T 1
bec39cab 20317_ACEOF
d45fe813 20318
97bf5e38 20319 fi
b4e70030
JB
20320 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
20321echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
d45fe813 20322
b4e70030
JB
20323 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
20324echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20325 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
20326 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 20327else
bec39cab
AC
20328 cat >conftest.$ac_ext <<_ACEOF
20329/* confdefs.h. */
20330_ACEOF
20331cat confdefs.h >>conftest.$ac_ext
20332cat >>conftest.$ac_ext <<_ACEOF
20333/* end confdefs.h. */
97bf5e38
MK
20334
20335#define _SYSCALL32
20336#include <sys/procfs.h>
bec39cab
AC
20337int
20338main ()
20339{
97bf5e38 20340prgregset32_t avar
bec39cab
AC
20341 ;
20342 return 0;
20343}
20344_ACEOF
20345rm -f conftest.$ac_objext
20346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20347 (eval $ac_compile) 2>conftest.er1
20348 ac_status=$?
20349 grep -v '^ *+' conftest.er1 >conftest.err
20350 rm -f conftest.er1
20351 cat conftest.err >&5
20352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353 (exit $ac_status); } &&
b4e70030
JB
20354 { ac_try='test -z "$ac_c_werror_flag"
20355 || test ! -s conftest.err'
bec39cab
AC
20356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20357 (eval $ac_try) 2>&5
20358 ac_status=$?
20359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20360 (exit $ac_status); }; } &&
20361 { ac_try='test -s conftest.$ac_objext'
20362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20363 (eval $ac_try) 2>&5
20364 ac_status=$?
20365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20366 (exit $ac_status); }; }; then
97bf5e38 20367 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
d45fe813 20368else
bec39cab
AC
20369 echo "$as_me: failed program was:" >&5
20370sed 's/^/| /' conftest.$ac_ext >&5
20371
b4e70030 20372bfd_cv_have_sys_procfs_type_prgregset32_t=no
bec39cab 20373
d45fe813 20374fi
bec39cab 20375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
20376fi
20377
97bf5e38 20378 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
bec39cab
AC
20379
20380cat >>confdefs.h <<\_ACEOF
97bf5e38 20381#define HAVE_PRGREGSET32_T 1
bec39cab 20382_ACEOF
d45fe813 20383
97bf5e38 20384 fi
b4e70030
JB
20385 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
20386echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
d45fe813 20387
b4e70030
JB
20388 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
20389echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20390 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
20391 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 20392else
bec39cab
AC
20393 cat >conftest.$ac_ext <<_ACEOF
20394/* confdefs.h. */
20395_ACEOF
20396cat confdefs.h >>conftest.$ac_ext
20397cat >>conftest.$ac_ext <<_ACEOF
20398/* end confdefs.h. */
97bf5e38
MK
20399
20400#define _SYSCALL32
20401#include <sys/procfs.h>
bec39cab
AC
20402int
20403main ()
20404{
97bf5e38 20405prfpregset32_t avar
bec39cab
AC
20406 ;
20407 return 0;
20408}
20409_ACEOF
20410rm -f conftest.$ac_objext
20411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20412 (eval $ac_compile) 2>conftest.er1
20413 ac_status=$?
20414 grep -v '^ *+' conftest.er1 >conftest.err
20415 rm -f conftest.er1
20416 cat conftest.err >&5
20417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418 (exit $ac_status); } &&
b4e70030
JB
20419 { ac_try='test -z "$ac_c_werror_flag"
20420 || test ! -s conftest.err'
bec39cab
AC
20421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20422 (eval $ac_try) 2>&5
20423 ac_status=$?
20424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425 (exit $ac_status); }; } &&
20426 { ac_try='test -s conftest.$ac_objext'
20427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20428 (eval $ac_try) 2>&5
20429 ac_status=$?
20430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431 (exit $ac_status); }; }; then
97bf5e38 20432 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
d45fe813 20433else
bec39cab
AC
20434 echo "$as_me: failed program was:" >&5
20435sed 's/^/| /' conftest.$ac_ext >&5
20436
b4e70030 20437bfd_cv_have_sys_procfs_type_prfpregset32_t=no
bec39cab 20438
d45fe813 20439fi
bec39cab 20440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
20441fi
20442
97bf5e38 20443 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
bec39cab
AC
20444
20445cat >>confdefs.h <<\_ACEOF
97bf5e38 20446#define HAVE_PRFPREGSET32_T 1
bec39cab 20447_ACEOF
d45fe813 20448
97bf5e38 20449 fi
b4e70030
JB
20450 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
20451echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
d45fe813 20452
b4e70030
JB
20453 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
20454echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20455 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
20456 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 20457else
bec39cab
AC
20458 cat >conftest.$ac_ext <<_ACEOF
20459/* confdefs.h. */
20460_ACEOF
20461cat confdefs.h >>conftest.$ac_ext
20462cat >>conftest.$ac_ext <<_ACEOF
20463/* end confdefs.h. */
97bf5e38 20464
d45fe813 20465#define _SYSCALL32
97bf5e38 20466#include <sys/procfs.h>
bec39cab
AC
20467int
20468main ()
20469{
97bf5e38 20470lwpid_t avar
bec39cab
AC
20471 ;
20472 return 0;
20473}
20474_ACEOF
20475rm -f conftest.$ac_objext
20476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20477 (eval $ac_compile) 2>conftest.er1
20478 ac_status=$?
20479 grep -v '^ *+' conftest.er1 >conftest.err
20480 rm -f conftest.er1
20481 cat conftest.err >&5
20482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20483 (exit $ac_status); } &&
b4e70030
JB
20484 { ac_try='test -z "$ac_c_werror_flag"
20485 || test ! -s conftest.err'
bec39cab
AC
20486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20487 (eval $ac_try) 2>&5
20488 ac_status=$?
20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490 (exit $ac_status); }; } &&
20491 { ac_try='test -s conftest.$ac_objext'
20492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20493 (eval $ac_try) 2>&5
20494 ac_status=$?
20495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20496 (exit $ac_status); }; }; then
97bf5e38 20497 bfd_cv_have_sys_procfs_type_lwpid_t=yes
d45fe813 20498else
bec39cab
AC
20499 echo "$as_me: failed program was:" >&5
20500sed 's/^/| /' conftest.$ac_ext >&5
20501
b4e70030 20502bfd_cv_have_sys_procfs_type_lwpid_t=no
bec39cab 20503
d45fe813 20504fi
bec39cab 20505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
20506fi
20507
97bf5e38 20508 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
bec39cab
AC
20509
20510cat >>confdefs.h <<\_ACEOF
97bf5e38 20511#define HAVE_LWPID_T 1
bec39cab 20512_ACEOF
d45fe813 20513
97bf5e38 20514 fi
b4e70030
JB
20515 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
20516echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
c906108c 20517
b4e70030
JB
20518 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
20519echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20520 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
20521 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20522else
bec39cab
AC
20523 cat >conftest.$ac_ext <<_ACEOF
20524/* confdefs.h. */
20525_ACEOF
20526cat confdefs.h >>conftest.$ac_ext
20527cat >>conftest.$ac_ext <<_ACEOF
20528/* end confdefs.h. */
c906108c 20529
97bf5e38
MK
20530#define _SYSCALL32
20531#include <sys/procfs.h>
bec39cab
AC
20532int
20533main ()
20534{
97bf5e38 20535psaddr_t avar
bec39cab
AC
20536 ;
20537 return 0;
20538}
20539_ACEOF
20540rm -f conftest.$ac_objext
20541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20542 (eval $ac_compile) 2>conftest.er1
20543 ac_status=$?
20544 grep -v '^ *+' conftest.er1 >conftest.err
20545 rm -f conftest.er1
20546 cat conftest.err >&5
20547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548 (exit $ac_status); } &&
b4e70030
JB
20549 { ac_try='test -z "$ac_c_werror_flag"
20550 || test ! -s conftest.err'
bec39cab
AC
20551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20552 (eval $ac_try) 2>&5
20553 ac_status=$?
20554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20555 (exit $ac_status); }; } &&
20556 { ac_try='test -s conftest.$ac_objext'
20557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20558 (eval $ac_try) 2>&5
20559 ac_status=$?
20560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561 (exit $ac_status); }; }; then
97bf5e38 20562 bfd_cv_have_sys_procfs_type_psaddr_t=yes
c906108c 20563else
bec39cab
AC
20564 echo "$as_me: failed program was:" >&5
20565sed 's/^/| /' conftest.$ac_ext >&5
20566
b4e70030 20567bfd_cv_have_sys_procfs_type_psaddr_t=no
bec39cab 20568
c906108c 20569fi
bec39cab 20570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
20571fi
20572
97bf5e38 20573 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
bec39cab
AC
20574
20575cat >>confdefs.h <<\_ACEOF
97bf5e38 20576#define HAVE_PSADDR_T 1
bec39cab 20577_ACEOF
c906108c 20578
97bf5e38 20579 fi
b4e70030
JB
20580 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
20581echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
c906108c 20582
b4e70030
JB
20583 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
20584echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20585 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
20586 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20587else
bec39cab
AC
20588 cat >conftest.$ac_ext <<_ACEOF
20589/* confdefs.h. */
20590_ACEOF
20591cat confdefs.h >>conftest.$ac_ext
20592cat >>conftest.$ac_ext <<_ACEOF
20593/* end confdefs.h. */
c906108c 20594
97bf5e38
MK
20595#define _SYSCALL32
20596#include <sys/procfs.h>
bec39cab
AC
20597int
20598main ()
20599{
97bf5e38 20600prsysent_t avar
bec39cab
AC
20601 ;
20602 return 0;
20603}
20604_ACEOF
20605rm -f conftest.$ac_objext
20606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20607 (eval $ac_compile) 2>conftest.er1
20608 ac_status=$?
20609 grep -v '^ *+' conftest.er1 >conftest.err
20610 rm -f conftest.er1
20611 cat conftest.err >&5
20612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613 (exit $ac_status); } &&
b4e70030
JB
20614 { ac_try='test -z "$ac_c_werror_flag"
20615 || test ! -s conftest.err'
bec39cab
AC
20616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20617 (eval $ac_try) 2>&5
20618 ac_status=$?
20619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20620 (exit $ac_status); }; } &&
20621 { ac_try='test -s conftest.$ac_objext'
20622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20623 (eval $ac_try) 2>&5
20624 ac_status=$?
20625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20626 (exit $ac_status); }; }; then
97bf5e38 20627 bfd_cv_have_sys_procfs_type_prsysent_t=yes
c906108c 20628else
bec39cab
AC
20629 echo "$as_me: failed program was:" >&5
20630sed 's/^/| /' conftest.$ac_ext >&5
20631
b4e70030 20632bfd_cv_have_sys_procfs_type_prsysent_t=no
bec39cab 20633
c906108c 20634fi
bec39cab 20635rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
20636fi
20637
97bf5e38 20638 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
bec39cab
AC
20639
20640cat >>confdefs.h <<\_ACEOF
97bf5e38 20641#define HAVE_PRSYSENT_T 1
bec39cab 20642_ACEOF
c906108c 20643
97bf5e38 20644 fi
b4e70030
JB
20645 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
20646echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
c906108c 20647
b4e70030
JB
20648 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
20649echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20650 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
20651 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20652else
bec39cab
AC
20653 cat >conftest.$ac_ext <<_ACEOF
20654/* confdefs.h. */
20655_ACEOF
20656cat confdefs.h >>conftest.$ac_ext
20657cat >>conftest.$ac_ext <<_ACEOF
20658/* end confdefs.h. */
c906108c 20659
97bf5e38
MK
20660#define _SYSCALL32
20661#include <sys/procfs.h>
bec39cab
AC
20662int
20663main ()
20664{
97bf5e38 20665pr_sigset_t avar
bec39cab
AC
20666 ;
20667 return 0;
20668}
20669_ACEOF
20670rm -f conftest.$ac_objext
20671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20672 (eval $ac_compile) 2>conftest.er1
20673 ac_status=$?
20674 grep -v '^ *+' conftest.er1 >conftest.err
20675 rm -f conftest.er1
20676 cat conftest.err >&5
20677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20678 (exit $ac_status); } &&
b4e70030
JB
20679 { ac_try='test -z "$ac_c_werror_flag"
20680 || test ! -s conftest.err'
bec39cab
AC
20681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20682 (eval $ac_try) 2>&5
20683 ac_status=$?
20684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685 (exit $ac_status); }; } &&
20686 { ac_try='test -s conftest.$ac_objext'
20687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20688 (eval $ac_try) 2>&5
20689 ac_status=$?
20690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20691 (exit $ac_status); }; }; then
97bf5e38 20692 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
c906108c 20693else
bec39cab
AC
20694 echo "$as_me: failed program was:" >&5
20695sed 's/^/| /' conftest.$ac_ext >&5
20696
b4e70030 20697bfd_cv_have_sys_procfs_type_pr_sigset_t=no
bec39cab 20698
c906108c 20699fi
bec39cab 20700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
20701fi
20702
97bf5e38 20703 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
bec39cab
AC
20704
20705cat >>confdefs.h <<\_ACEOF
97bf5e38 20706#define HAVE_PR_SIGSET_T 1
bec39cab 20707_ACEOF
c906108c 20708
97bf5e38 20709 fi
b4e70030
JB
20710 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
20711echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
c906108c 20712
b4e70030
JB
20713 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
20714echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20715 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
20716 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20717else
bec39cab
AC
20718 cat >conftest.$ac_ext <<_ACEOF
20719/* confdefs.h. */
20720_ACEOF
20721cat confdefs.h >>conftest.$ac_ext
20722cat >>conftest.$ac_ext <<_ACEOF
20723/* end confdefs.h. */
c906108c 20724
97bf5e38
MK
20725#define _SYSCALL32
20726#include <sys/procfs.h>
bec39cab
AC
20727int
20728main ()
20729{
97bf5e38 20730pr_sigaction64_t avar
bec39cab
AC
20731 ;
20732 return 0;
20733}
20734_ACEOF
20735rm -f conftest.$ac_objext
20736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20737 (eval $ac_compile) 2>conftest.er1
20738 ac_status=$?
20739 grep -v '^ *+' conftest.er1 >conftest.err
20740 rm -f conftest.er1
20741 cat conftest.err >&5
20742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743 (exit $ac_status); } &&
b4e70030
JB
20744 { ac_try='test -z "$ac_c_werror_flag"
20745 || test ! -s conftest.err'
bec39cab
AC
20746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20747 (eval $ac_try) 2>&5
20748 ac_status=$?
20749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750 (exit $ac_status); }; } &&
20751 { ac_try='test -s conftest.$ac_objext'
20752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20753 (eval $ac_try) 2>&5
20754 ac_status=$?
20755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756 (exit $ac_status); }; }; then
97bf5e38 20757 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
c906108c 20758else
bec39cab
AC
20759 echo "$as_me: failed program was:" >&5
20760sed 's/^/| /' conftest.$ac_ext >&5
20761
b4e70030 20762bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
bec39cab 20763
c906108c 20764fi
bec39cab 20765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
20766fi
20767
97bf5e38 20768 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
bec39cab
AC
20769
20770cat >>confdefs.h <<\_ACEOF
97bf5e38 20771#define HAVE_PR_SIGACTION64_T 1
bec39cab 20772_ACEOF
c906108c 20773
97bf5e38 20774 fi
b4e70030
JB
20775 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
20776echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
97bf5e38 20777
b4e70030
JB
20778 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
20779echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20780 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
20781 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 20782else
bec39cab
AC
20783 cat >conftest.$ac_ext <<_ACEOF
20784/* confdefs.h. */
20785_ACEOF
20786cat confdefs.h >>conftest.$ac_ext
20787cat >>conftest.$ac_ext <<_ACEOF
20788/* end confdefs.h. */
97bf5e38
MK
20789
20790#define _SYSCALL32
20791#include <sys/procfs.h>
bec39cab
AC
20792int
20793main ()
20794{
97bf5e38 20795pr_siginfo64_t avar
bec39cab
AC
20796 ;
20797 return 0;
20798}
20799_ACEOF
20800rm -f conftest.$ac_objext
20801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20802 (eval $ac_compile) 2>conftest.er1
20803 ac_status=$?
20804 grep -v '^ *+' conftest.er1 >conftest.err
20805 rm -f conftest.er1
20806 cat conftest.err >&5
20807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20808 (exit $ac_status); } &&
b4e70030
JB
20809 { ac_try='test -z "$ac_c_werror_flag"
20810 || test ! -s conftest.err'
bec39cab
AC
20811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20812 (eval $ac_try) 2>&5
20813 ac_status=$?
20814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815 (exit $ac_status); }; } &&
20816 { ac_try='test -s conftest.$ac_objext'
20817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20818 (eval $ac_try) 2>&5
20819 ac_status=$?
20820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821 (exit $ac_status); }; }; then
97bf5e38
MK
20822 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
20823else
bec39cab
AC
20824 echo "$as_me: failed program was:" >&5
20825sed 's/^/| /' conftest.$ac_ext >&5
20826
b4e70030 20827bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
bec39cab 20828
97bf5e38 20829fi
bec39cab 20830rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20831fi
c906108c 20832
97bf5e38 20833 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
bec39cab
AC
20834
20835cat >>confdefs.h <<\_ACEOF
97bf5e38 20836#define HAVE_PR_SIGINFO64_T 1
bec39cab 20837_ACEOF
c906108c 20838
97bf5e38 20839 fi
b4e70030
JB
20840 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
20841echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
bec39cab
AC
20842
20843
97bf5e38
MK
20844
20845
20846
97bf5e38 20847 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
b4e70030
JB
20848 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
20849echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
bec39cab
AC
20850 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
20851 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
20852else
20853 if test "$cross_compiling" = yes; then
97bf5e38 20854 gdb_cv_prfpregset_t_broken=yes
c906108c 20855else
bec39cab
AC
20856 cat >conftest.$ac_ext <<_ACEOF
20857/* confdefs.h. */
20858_ACEOF
20859cat confdefs.h >>conftest.$ac_ext
20860cat >>conftest.$ac_ext <<_ACEOF
20861/* end confdefs.h. */
97bf5e38
MK
20862#include <sys/procfs.h>
20863 int main ()
20864 {
20865 if (sizeof (prfpregset_t) == sizeof (void *))
20866 return 1;
20867 return 0;
20868 }
bec39cab
AC
20869_ACEOF
20870rm -f conftest$ac_exeext
20871if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20872 (eval $ac_link) 2>&5
20873 ac_status=$?
20874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20877 (eval $ac_try) 2>&5
20878 ac_status=$?
20879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20880 (exit $ac_status); }; }; then
97bf5e38 20881 gdb_cv_prfpregset_t_broken=no
c906108c 20882else
bec39cab
AC
20883 echo "$as_me: program exited with status $ac_status" >&5
20884echo "$as_me: failed program was:" >&5
20885sed 's/^/| /' conftest.$ac_ext >&5
20886
20887( exit $ac_status )
20888gdb_cv_prfpregset_t_broken=yes
c906108c 20889fi
b4e70030 20890rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 20891fi
c906108c
SS
20892fi
20893
b4e70030
JB
20894 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
20895echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
97bf5e38 20896 if test $gdb_cv_prfpregset_t_broken = yes; then
60ca704f
SE
20897
20898cat >>confdefs.h <<\_ACEOF
97bf5e38 20899#define PRFPREGSET_T_BROKEN 1
bec39cab 20900_ACEOF
c906108c 20901
97bf5e38
MK
20902 fi
20903 fi
c906108c 20904
bec39cab 20905
b4e70030
JB
20906 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
20907echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20908 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
20909 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20910else
bec39cab
AC
20911 cat >conftest.$ac_ext <<_ACEOF
20912/* confdefs.h. */
20913_ACEOF
20914cat confdefs.h >>conftest.$ac_ext
20915cat >>conftest.$ac_ext <<_ACEOF
20916/* end confdefs.h. */
97bf5e38
MK
20917#include <unistd.h>
20918#include <sys/types.h>
20919#include <sys/procfs.h>
20920
bec39cab
AC
20921int
20922main ()
20923{
97bf5e38
MK
20924
20925 int dummy;;
20926 dummy = ioctl(0, PIOCSET, &dummy);
bec39cab
AC
20927
20928 ;
20929 return 0;
20930}
20931_ACEOF
20932rm -f conftest.$ac_objext
20933if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20934 (eval $ac_compile) 2>conftest.er1
20935 ac_status=$?
20936 grep -v '^ *+' conftest.er1 >conftest.err
20937 rm -f conftest.er1
20938 cat conftest.err >&5
20939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940 (exit $ac_status); } &&
b4e70030
JB
20941 { ac_try='test -z "$ac_c_werror_flag"
20942 || test ! -s conftest.err'
bec39cab
AC
20943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20944 (eval $ac_try) 2>&5
20945 ac_status=$?
20946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947 (exit $ac_status); }; } &&
20948 { ac_try='test -s conftest.$ac_objext'
20949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20950 (eval $ac_try) 2>&5
20951 ac_status=$?
20952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20953 (exit $ac_status); }; }; then
97bf5e38 20954 gdb_cv_have_procfs_piocset=yes
c906108c 20955else
bec39cab
AC
20956 echo "$as_me: failed program was:" >&5
20957sed 's/^/| /' conftest.$ac_ext >&5
20958
b4e70030 20959gdb_cv_have_procfs_piocset=no
c906108c 20960fi
bec39cab 20961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20962fi
97bf5e38 20963
b4e70030
JB
20964 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
20965echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
97bf5e38 20966 if test $gdb_cv_have_procfs_piocset = yes; then
60ca704f
SE
20967
20968cat >>confdefs.h <<\_ACEOF
97bf5e38 20969#define HAVE_PROCFS_PIOCSET 1
bec39cab 20970_ACEOF
97bf5e38
MK
20971
20972 fi
c906108c 20973fi
c906108c 20974
97bf5e38 20975if test ${host} = ${target} ; then
bec39cab 20976
b4e70030
JB
20977 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
20978echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
bec39cab
AC
20979 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
20980 echo $ECHO_N "(cached) $ECHO_C" >&6
20981else
20982 cat >conftest.$ac_ext <<_ACEOF
20983/* confdefs.h. */
20984_ACEOF
20985cat confdefs.h >>conftest.$ac_ext
20986cat >>conftest.$ac_ext <<_ACEOF
20987/* end confdefs.h. */
97bf5e38 20988#include <link.h>
bec39cab
AC
20989int
20990main ()
20991{
97bf5e38 20992struct link_map lm; (void) lm.l_addr;
bec39cab
AC
20993 ;
20994 return 0;
20995}
20996_ACEOF
20997rm -f conftest.$ac_objext
20998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20999 (eval $ac_compile) 2>conftest.er1
21000 ac_status=$?
21001 grep -v '^ *+' conftest.er1 >conftest.err
21002 rm -f conftest.er1
21003 cat conftest.err >&5
21004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005 (exit $ac_status); } &&
b4e70030
JB
21006 { ac_try='test -z "$ac_c_werror_flag"
21007 || test ! -s conftest.err'
bec39cab
AC
21008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21009 (eval $ac_try) 2>&5
21010 ac_status=$?
21011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012 (exit $ac_status); }; } &&
21013 { ac_try='test -s conftest.$ac_objext'
21014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21015 (eval $ac_try) 2>&5
21016 ac_status=$?
21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018 (exit $ac_status); }; }; then
97bf5e38 21019 gdb_cv_have_struct_link_map_with_l_members=yes
c906108c 21020else
bec39cab
AC
21021 echo "$as_me: failed program was:" >&5
21022sed 's/^/| /' conftest.$ac_ext >&5
21023
b4e70030 21024gdb_cv_have_struct_link_map_with_l_members=no
c906108c 21025fi
bec39cab 21026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
21027fi
21028
b4e70030
JB
21029 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
21030echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
97bf5e38 21031 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
60ca704f
SE
21032
21033cat >>confdefs.h <<\_ACEOF
97bf5e38 21034#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
bec39cab 21035_ACEOF
97bf5e38
MK
21036
21037 fi
21038
bec39cab 21039
b4e70030
JB
21040 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
21041echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
bec39cab
AC
21042 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
21043 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 21044else
bec39cab
AC
21045 cat >conftest.$ac_ext <<_ACEOF
21046/* confdefs.h. */
21047_ACEOF
21048cat confdefs.h >>conftest.$ac_ext
21049cat >>conftest.$ac_ext <<_ACEOF
21050/* end confdefs.h. */
97bf5e38
MK
21051#include <sys/types.h>
21052#include <link.h>
bec39cab
AC
21053int
21054main ()
21055{
97bf5e38 21056struct link_map lm; (void) lm.lm_addr;
bec39cab
AC
21057 ;
21058 return 0;
21059}
21060_ACEOF
21061rm -f conftest.$ac_objext
21062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21063 (eval $ac_compile) 2>conftest.er1
21064 ac_status=$?
21065 grep -v '^ *+' conftest.er1 >conftest.err
21066 rm -f conftest.er1
21067 cat conftest.err >&5
21068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069 (exit $ac_status); } &&
b4e70030
JB
21070 { ac_try='test -z "$ac_c_werror_flag"
21071 || test ! -s conftest.err'
bec39cab
AC
21072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21073 (eval $ac_try) 2>&5
21074 ac_status=$?
21075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21076 (exit $ac_status); }; } &&
21077 { ac_try='test -s conftest.$ac_objext'
21078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21079 (eval $ac_try) 2>&5
21080 ac_status=$?
21081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082 (exit $ac_status); }; }; then
97bf5e38
MK
21083 gdb_cv_have_struct_link_map_with_lm_members=yes
21084else
bec39cab
AC
21085 echo "$as_me: failed program was:" >&5
21086sed 's/^/| /' conftest.$ac_ext >&5
21087
b4e70030 21088gdb_cv_have_struct_link_map_with_lm_members=no
97bf5e38 21089fi
bec39cab 21090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 21091fi
c906108c 21092
b4e70030
JB
21093 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
21094echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
97bf5e38 21095 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
60ca704f
SE
21096
21097cat >>confdefs.h <<\_ACEOF
97bf5e38 21098#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
bec39cab 21099_ACEOF
97bf5e38
MK
21100
21101 fi
21102
bec39cab 21103
b4e70030
JB
21104 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
21105echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
bec39cab
AC
21106 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
21107 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 21108else
bec39cab
AC
21109 cat >conftest.$ac_ext <<_ACEOF
21110/* confdefs.h. */
21111_ACEOF
21112cat confdefs.h >>conftest.$ac_ext
21113cat >>conftest.$ac_ext <<_ACEOF
21114/* end confdefs.h. */
97bf5e38
MK
21115#include <sys/types.h>
21116#ifdef HAVE_NLIST_H
21117#include <nlist.h>
21118#endif
21119#include <link.h>
bec39cab
AC
21120int
21121main ()
21122{
97bf5e38 21123struct so_map lm; (void) lm.som_addr;
bec39cab
AC
21124 ;
21125 return 0;
21126}
21127_ACEOF
21128rm -f conftest.$ac_objext
21129if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21130 (eval $ac_compile) 2>conftest.er1
21131 ac_status=$?
21132 grep -v '^ *+' conftest.er1 >conftest.err
21133 rm -f conftest.er1
21134 cat conftest.err >&5
21135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21136 (exit $ac_status); } &&
b4e70030
JB
21137 { ac_try='test -z "$ac_c_werror_flag"
21138 || test ! -s conftest.err'
bec39cab
AC
21139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21140 (eval $ac_try) 2>&5
21141 ac_status=$?
21142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21143 (exit $ac_status); }; } &&
21144 { ac_try='test -s conftest.$ac_objext'
21145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21146 (eval $ac_try) 2>&5
21147 ac_status=$?
21148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); }; }; then
97bf5e38
MK
21150 gdb_cv_have_struct_so_map_with_som_members=yes
21151else
bec39cab
AC
21152 echo "$as_me: failed program was:" >&5
21153sed 's/^/| /' conftest.$ac_ext >&5
21154
b4e70030 21155gdb_cv_have_struct_so_map_with_som_members=no
97bf5e38 21156fi
bec39cab 21157rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 21158fi
c906108c 21159
b4e70030
JB
21160 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
21161echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
97bf5e38 21162 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
60ca704f
SE
21163
21164cat >>confdefs.h <<\_ACEOF
97bf5e38 21165#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
bec39cab 21166_ACEOF
c906108c 21167
97bf5e38 21168 fi
c906108c 21169
bec39cab 21170
b4e70030
JB
21171 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
21172echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
bec39cab
AC
21173 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
21174 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 21175else
bec39cab
AC
21176 cat >conftest.$ac_ext <<_ACEOF
21177/* confdefs.h. */
21178_ACEOF
21179cat confdefs.h >>conftest.$ac_ext
21180cat >>conftest.$ac_ext <<_ACEOF
21181/* end confdefs.h. */
97bf5e38
MK
21182#define _SYSCALL32
21183#include <sys/link.h>
bec39cab
AC
21184int
21185main ()
21186{
97bf5e38 21187struct link_map32 l;
bec39cab
AC
21188 ;
21189 return 0;
21190}
21191_ACEOF
21192rm -f conftest.$ac_objext
21193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21194 (eval $ac_compile) 2>conftest.er1
21195 ac_status=$?
21196 grep -v '^ *+' conftest.er1 >conftest.err
21197 rm -f conftest.er1
21198 cat conftest.err >&5
21199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200 (exit $ac_status); } &&
b4e70030
JB
21201 { ac_try='test -z "$ac_c_werror_flag"
21202 || test ! -s conftest.err'
bec39cab
AC
21203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21204 (eval $ac_try) 2>&5
21205 ac_status=$?
21206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21207 (exit $ac_status); }; } &&
21208 { ac_try='test -s conftest.$ac_objext'
21209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21210 (eval $ac_try) 2>&5
21211 ac_status=$?
21212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21213 (exit $ac_status); }; }; then
97bf5e38
MK
21214 gdb_cv_have_struct_link_map32=yes
21215else
bec39cab
AC
21216 echo "$as_me: failed program was:" >&5
21217sed 's/^/| /' conftest.$ac_ext >&5
21218
b4e70030 21219gdb_cv_have_struct_link_map32=no
97bf5e38 21220fi
bec39cab 21221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 21222fi
c906108c 21223
b4e70030
JB
21224 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
21225echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
97bf5e38 21226 if test $gdb_cv_have_struct_link_map32 = yes; then
60ca704f
SE
21227
21228cat >>confdefs.h <<\_ACEOF
97bf5e38 21229#define HAVE_STRUCT_LINK_MAP32 1
bec39cab 21230_ACEOF
c906108c 21231
60ca704f
SE
21232
21233cat >>confdefs.h <<\_ACEOF
97bf5e38 21234#define _SYSCALL32 1
bec39cab 21235_ACEOF
c906108c 21236
97bf5e38
MK
21237 fi
21238fi
c906108c 21239
bc8bcb4b 21240# Check if the compiler supports the `long long' type.
c906108c 21241
b4e70030
JB
21242echo "$as_me:$LINENO: checking for long long support in compiler" >&5
21243echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
bec39cab
AC
21244if test "${gdb_cv_c_long_long+set}" = set; then
21245 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 21246else
bec39cab
AC
21247 cat >conftest.$ac_ext <<_ACEOF
21248/* confdefs.h. */
21249_ACEOF
21250cat confdefs.h >>conftest.$ac_ext
21251cat >>conftest.$ac_ext <<_ACEOF
21252/* end confdefs.h. */
bc8bcb4b 21253extern long long foo;
bec39cab
AC
21254int
21255main ()
21256{
bc8bcb4b 21257switch (foo & 2) { case 0: return 1; }
bec39cab
AC
21258 ;
21259 return 0;
21260}
21261_ACEOF
21262rm -f conftest.$ac_objext
21263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21264 (eval $ac_compile) 2>conftest.er1
21265 ac_status=$?
21266 grep -v '^ *+' conftest.er1 >conftest.err
21267 rm -f conftest.er1
21268 cat conftest.err >&5
21269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270 (exit $ac_status); } &&
b4e70030
JB
21271 { ac_try='test -z "$ac_c_werror_flag"
21272 || test ! -s conftest.err'
bec39cab
AC
21273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21274 (eval $ac_try) 2>&5
21275 ac_status=$?
21276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21277 (exit $ac_status); }; } &&
21278 { ac_try='test -s conftest.$ac_objext'
21279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21280 (eval $ac_try) 2>&5
21281 ac_status=$?
21282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21283 (exit $ac_status); }; }; then
97bf5e38
MK
21284 gdb_cv_c_long_long=yes
21285else
bec39cab
AC
21286 echo "$as_me: failed program was:" >&5
21287sed 's/^/| /' conftest.$ac_ext >&5
21288
b4e70030 21289gdb_cv_c_long_long=no
97bf5e38 21290fi
bec39cab 21291rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 21292fi
b4e70030
JB
21293echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
21294echo "${ECHO_T}$gdb_cv_c_long_long" >&6
97bf5e38 21295if test $gdb_cv_c_long_long = yes; then
bc8bcb4b
MK
21296
21297cat >>confdefs.h <<\_ACEOF
97bf5e38 21298#define CC_HAS_LONG_LONG 1
bec39cab 21299_ACEOF
97bf5e38
MK
21300
21301fi
21302
bc8bcb4b 21303# Check if the compiler and runtime support printing long longs.
97bf5e38 21304
b4e70030
JB
21305echo "$as_me:$LINENO: checking for long long support in printf" >&5
21306echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
bec39cab
AC
21307if test "${gdb_cv_printf_has_long_long+set}" = set; then
21308 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
21309else
21310 if test "$cross_compiling" = yes; then
21311 gdb_cv_printf_has_long_long=no
21312else
bec39cab
AC
21313 cat >conftest.$ac_ext <<_ACEOF
21314/* confdefs.h. */
21315_ACEOF
21316cat confdefs.h >>conftest.$ac_ext
21317cat >>conftest.$ac_ext <<_ACEOF
21318/* end confdefs.h. */
bc8bcb4b
MK
21319$ac_includes_default
21320int
21321main ()
21322{
21323char buf[32];
97bf5e38
MK
21324 long long l = 0;
21325 l = (l << 16) + 0x0123;
21326 l = (l << 16) + 0x4567;
21327 l = (l << 16) + 0x89ab;
21328 l = (l << 16) + 0xcdef;
21329 sprintf (buf, "0x%016llx", l);
21330 return (strcmp ("0x0123456789abcdef", buf));
bc8bcb4b
MK
21331 ;
21332 return 0;
c906108c 21333}
bec39cab
AC
21334_ACEOF
21335rm -f conftest$ac_exeext
21336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21337 (eval $ac_link) 2>&5
21338 ac_status=$?
21339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21342 (eval $ac_try) 2>&5
21343 ac_status=$?
21344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345 (exit $ac_status); }; }; then
97bf5e38
MK
21346 gdb_cv_printf_has_long_long=yes
21347else
bec39cab
AC
21348 echo "$as_me: program exited with status $ac_status" >&5
21349echo "$as_me: failed program was:" >&5
21350sed 's/^/| /' conftest.$ac_ext >&5
21351
21352( exit $ac_status )
21353gdb_cv_printf_has_long_long=no
97bf5e38 21354fi
b4e70030 21355rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 21356fi
97bf5e38 21357fi
b4e70030
JB
21358echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
21359echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
97bf5e38 21360if test $gdb_cv_printf_has_long_long = yes; then
bc8bcb4b
MK
21361
21362cat >>confdefs.h <<\_ACEOF
97bf5e38 21363#define PRINTF_HAS_LONG_LONG 1
bec39cab 21364_ACEOF
97bf5e38
MK
21365
21366fi
97bf5e38 21367
1a619819
LM
21368# Check if the compiler and runtime support printing decfloats.
21369
21370echo "$as_me:$LINENO: checking for decfloat support in printf" >&5
21371echo $ECHO_N "checking for decfloat support in printf... $ECHO_C" >&6
21372if test "${gdb_cv_printf_has_decfloat+set}" = set; then
21373 echo $ECHO_N "(cached) $ECHO_C" >&6
21374else
21375 if test "$cross_compiling" = yes; then
21376 gdb_cv_printf_has_decfloat=no
21377else
21378 cat >conftest.$ac_ext <<_ACEOF
21379/* confdefs.h. */
21380_ACEOF
21381cat confdefs.h >>conftest.$ac_ext
21382cat >>conftest.$ac_ext <<_ACEOF
21383/* end confdefs.h. */
21384$ac_includes_default
21385int
21386main ()
21387{
21388char buf[64];
21389 _Decimal32 d32 = 1.2345df;
21390 _Decimal64 d64 = 1.2345dd;
21391 _Decimal128 d128 = 1.2345dl;
21392 sprintf (buf, "Decimal32: %H\nDecimal64: %D\nDecimal128: %DD", d32, d64, d128);
21393 return (strcmp ("Decimal32: 1.2345\nDecimal64: 1.2345\nDecimal128: 1.2345", buf));
21394 ;
21395 return 0;
21396}
21397_ACEOF
21398rm -f conftest$ac_exeext
21399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21400 (eval $ac_link) 2>&5
21401 ac_status=$?
21402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21403 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21405 (eval $ac_try) 2>&5
21406 ac_status=$?
21407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408 (exit $ac_status); }; }; then
21409 gdb_cv_printf_has_decfloat=yes
21410else
21411 echo "$as_me: program exited with status $ac_status" >&5
21412echo "$as_me: failed program was:" >&5
21413sed 's/^/| /' conftest.$ac_ext >&5
21414
21415( exit $ac_status )
21416gdb_cv_printf_has_decfloat=no
21417fi
21418rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21419fi
21420fi
21421echo "$as_me:$LINENO: result: $gdb_cv_printf_has_decfloat" >&5
21422echo "${ECHO_T}$gdb_cv_printf_has_decfloat" >&6
21423if test $gdb_cv_printf_has_decfloat = yes; then
21424
21425cat >>confdefs.h <<\_ACEOF
21426#define PRINTF_HAS_DECFLOAT 1
21427_ACEOF
21428
21429fi
21430
bc8bcb4b
MK
21431# Check if the compiler supports the `long double' type. We can't use
21432# AC_C_LONG_DOUBLE because that one does additional checks on the
21433# constants defined in <float.h> that fail on some systems,
21434# e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
97bf5e38 21435
b4e70030
JB
21436echo "$as_me:$LINENO: checking for long double support in compiler" >&5
21437echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
bc8bcb4b 21438if test "${gdb_cv_c_long_double+set}" = set; then
bec39cab 21439 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 21440else
bec39cab
AC
21441 cat >conftest.$ac_ext <<_ACEOF
21442/* confdefs.h. */
21443_ACEOF
21444cat confdefs.h >>conftest.$ac_ext
21445cat >>conftest.$ac_ext <<_ACEOF
21446/* end confdefs.h. */
97bf5e38 21447long double foo;
bec39cab
AC
21448_ACEOF
21449rm -f conftest.$ac_objext
21450if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21451 (eval $ac_compile) 2>conftest.er1
21452 ac_status=$?
21453 grep -v '^ *+' conftest.er1 >conftest.err
21454 rm -f conftest.er1
21455 cat conftest.err >&5
21456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21457 (exit $ac_status); } &&
b4e70030
JB
21458 { ac_try='test -z "$ac_c_werror_flag"
21459 || test ! -s conftest.err'
bec39cab
AC
21460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21461 (eval $ac_try) 2>&5
21462 ac_status=$?
21463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21464 (exit $ac_status); }; } &&
21465 { ac_try='test -s conftest.$ac_objext'
21466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21467 (eval $ac_try) 2>&5
21468 ac_status=$?
21469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21470 (exit $ac_status); }; }; then
bc8bcb4b 21471 gdb_cv_c_long_double=yes
97bf5e38 21472else
bec39cab
AC
21473 echo "$as_me: failed program was:" >&5
21474sed 's/^/| /' conftest.$ac_ext >&5
21475
b4e70030 21476gdb_cv_c_long_double=no
97bf5e38 21477fi
bec39cab 21478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 21479fi
b4e70030
JB
21480echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
21481echo "${ECHO_T}$gdb_cv_c_long_double" >&6
bc8bcb4b 21482if test $gdb_cv_c_long_double = yes; then
c906108c 21483
bc8bcb4b 21484cat >>confdefs.h <<\_ACEOF
97bf5e38 21485#define HAVE_LONG_DOUBLE 1
bec39cab 21486_ACEOF
97bf5e38
MK
21487
21488fi
21489
bc8bcb4b 21490# Check if the compiler and runtime support printing long doubles.
97bf5e38 21491
b4e70030
JB
21492echo "$as_me:$LINENO: checking for long double support in printf" >&5
21493echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
bec39cab
AC
21494if test "${gdb_cv_printf_has_long_double+set}" = set; then
21495 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
21496else
21497 if test "$cross_compiling" = yes; then
21498 gdb_cv_printf_has_long_double=no
21499else
bec39cab
AC
21500 cat >conftest.$ac_ext <<_ACEOF
21501/* confdefs.h. */
21502_ACEOF
21503cat confdefs.h >>conftest.$ac_ext
21504cat >>conftest.$ac_ext <<_ACEOF
21505/* end confdefs.h. */
bc8bcb4b
MK
21506$ac_includes_default
21507int
21508main ()
21509{
21510char buf[16];
97bf5e38
MK
21511 long double f = 3.141592653;
21512 sprintf (buf, "%Lg", f);
21513 return (strncmp ("3.14159", buf, 7));
bc8bcb4b
MK
21514 ;
21515 return 0;
97bf5e38 21516}
bec39cab
AC
21517_ACEOF
21518rm -f conftest$ac_exeext
21519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21520 (eval $ac_link) 2>&5
21521 ac_status=$?
21522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21523 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21525 (eval $ac_try) 2>&5
21526 ac_status=$?
21527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21528 (exit $ac_status); }; }; then
97bf5e38 21529 gdb_cv_printf_has_long_double=yes
c906108c 21530else
bec39cab
AC
21531 echo "$as_me: program exited with status $ac_status" >&5
21532echo "$as_me: failed program was:" >&5
21533sed 's/^/| /' conftest.$ac_ext >&5
21534
21535( exit $ac_status )
21536gdb_cv_printf_has_long_double=no
c906108c 21537fi
b4e70030 21538rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 21539fi
c906108c 21540fi
b4e70030
JB
21541echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
21542echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
97bf5e38 21543if test $gdb_cv_printf_has_long_double = yes; then
bc8bcb4b
MK
21544
21545cat >>confdefs.h <<\_ACEOF
97bf5e38 21546#define PRINTF_HAS_LONG_DOUBLE 1
bec39cab 21547_ACEOF
97bf5e38
MK
21548
21549fi
97bf5e38 21550
bc8bcb4b 21551# Check if the compiler and runtime support scanning long doubles.
97bf5e38 21552
b4e70030
JB
21553echo "$as_me:$LINENO: checking for long double support in scanf" >&5
21554echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
bec39cab
AC
21555if test "${gdb_cv_scanf_has_long_double+set}" = set; then
21556 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
21557else
21558 if test "$cross_compiling" = yes; then
21559 gdb_cv_scanf_has_long_double=no
21560else
bec39cab
AC
21561 cat >conftest.$ac_ext <<_ACEOF
21562/* confdefs.h. */
21563_ACEOF
21564cat confdefs.h >>conftest.$ac_ext
21565cat >>conftest.$ac_ext <<_ACEOF
21566/* end confdefs.h. */
bc8bcb4b
MK
21567#include <stdio.h>
21568int
21569main ()
21570{
21571char *buf = "3.141592653";
97bf5e38
MK
21572 long double f = 0;
21573 sscanf (buf, "%Lg", &f);
21574 return !(f > 3.14159 && f < 3.14160);
bc8bcb4b
MK
21575 ;
21576 return 0;
97bf5e38 21577}
bec39cab
AC
21578_ACEOF
21579rm -f conftest$ac_exeext
21580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21581 (eval $ac_link) 2>&5
21582 ac_status=$?
21583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21584 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21586 (eval $ac_try) 2>&5
21587 ac_status=$?
21588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21589 (exit $ac_status); }; }; then
97bf5e38
MK
21590 gdb_cv_scanf_has_long_double=yes
21591else
bec39cab
AC
21592 echo "$as_me: program exited with status $ac_status" >&5
21593echo "$as_me: failed program was:" >&5
21594sed 's/^/| /' conftest.$ac_ext >&5
21595
21596( exit $ac_status )
21597gdb_cv_scanf_has_long_double=no
97bf5e38 21598fi
b4e70030 21599rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 21600fi
c906108c 21601fi
b4e70030
JB
21602echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
21603echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
97bf5e38 21604if test $gdb_cv_scanf_has_long_double = yes; then
bc8bcb4b
MK
21605
21606cat >>confdefs.h <<\_ACEOF
97bf5e38 21607#define SCANF_HAS_LONG_DOUBLE 1
bec39cab 21608_ACEOF
97bf5e38
MK
21609
21610fi
c906108c 21611
438013df
AO
21612case ${host_os} in
21613aix*)
b4e70030
JB
21614 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
21615echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
bec39cab
AC
21616if test "${gdb_cv_bigtoc+set}" = set; then
21617 echo $ECHO_N "(cached) $ECHO_C" >&6
438013df 21618else
bec39cab 21619
438013df
AO
21620 SAVE_LDFLAGS=$LDFLAGS
21621
21622 case $GCC in
21623 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
21624 *) gdb_cv_bigtoc=-bbigtoc ;;
21625 esac
21626
21627 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
bec39cab
AC
21628 cat >conftest.$ac_ext <<_ACEOF
21629/* confdefs.h. */
21630_ACEOF
21631cat confdefs.h >>conftest.$ac_ext
21632cat >>conftest.$ac_ext <<_ACEOF
21633/* end confdefs.h. */
438013df 21634
bec39cab
AC
21635int
21636main ()
21637{
438013df 21638int i;
bec39cab
AC
21639 ;
21640 return 0;
21641}
21642_ACEOF
21643rm -f conftest.$ac_objext conftest$ac_exeext
21644if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21645 (eval $ac_link) 2>conftest.er1
21646 ac_status=$?
21647 grep -v '^ *+' conftest.er1 >conftest.err
21648 rm -f conftest.er1
21649 cat conftest.err >&5
21650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651 (exit $ac_status); } &&
b4e70030
JB
21652 { ac_try='test -z "$ac_c_werror_flag"
21653 || test ! -s conftest.err'
bec39cab
AC
21654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21655 (eval $ac_try) 2>&5
21656 ac_status=$?
21657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21658 (exit $ac_status); }; } &&
21659 { ac_try='test -s conftest$ac_exeext'
21660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21661 (eval $ac_try) 2>&5
21662 ac_status=$?
21663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21664 (exit $ac_status); }; }; then
438013df
AO
21665 :
21666else
bec39cab
AC
21667 echo "$as_me: failed program was:" >&5
21668sed 's/^/| /' conftest.$ac_ext >&5
21669
b4e70030 21670gdb_cv_bigtoc=
438013df 21671fi
bec39cab
AC
21672rm -f conftest.err conftest.$ac_objext \
21673 conftest$ac_exeext conftest.$ac_ext
ec76baa5 21674 LDFLAGS="${SAVE_LDFLAGS}"
438013df 21675
bec39cab 21676fi
b4e70030
JB
21677echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
21678echo "${ECHO_T}$gdb_cv_bigtoc" >&6
438013df
AO
21679 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
21680 ;;
21681esac
21682
c906108c
SS
21683
21684
21685if test ${build} = ${host} -a ${host} = ${target} ; then
21686 case ${host_os} in
21687 hpux*)
b4e70030
JB
21688 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
21689echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
c906108c
SS
21690 if test -f /usr/include/dce/cma_config.h ; then
21691 if test "$GCC" = "yes" ; then
b4e70030
JB
21692 echo "$as_me:$LINENO: result: yes" >&5
21693echo "${ECHO_T}yes" >&6
60ca704f
SE
21694
21695cat >>confdefs.h <<\_ACEOF
c906108c 21696#define HAVE_HPUX_THREAD_SUPPORT 1
bec39cab 21697_ACEOF
c906108c 21698
3483b318 21699 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
c906108c
SS
21700 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
21701 else
b4e70030
JB
21702 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
21703echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
c906108c
SS
21704 fi
21705 else
b4e70030
JB
21706 echo "$as_me:$LINENO: result: no" >&5
21707echo "${ECHO_T}no" >&6
c906108c
SS
21708 fi
21709 ;;
21710 solaris*)
d92419e5
JB
21711 # See if thread_db library is around for Solaris thread debugging.
21712 # Note that we must explicitly test for version 1 of the library
21713 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
21714 # the same API.
b4e70030
JB
21715 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
21716echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
c906108c 21717 if test -f /usr/lib/libthread_db.so.1 ; then
b4e70030
JB
21718 echo "$as_me:$LINENO: result: yes" >&5
21719echo "${ECHO_T}yes" >&6
60ca704f
SE
21720
21721cat >>confdefs.h <<\_ACEOF
c906108c 21722#define HAVE_THREAD_DB_LIB 1
bec39cab 21723_ACEOF
c906108c 21724
3483b318 21725 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
c906108c 21726 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
bec39cab 21727
b4e70030
JB
21728echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21729echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
bec39cab
AC
21730if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21731 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 21732else
bec39cab 21733 ac_check_lib_save_LIBS=$LIBS
c906108c 21734LIBS="-ldl $LIBS"
bec39cab
AC
21735cat >conftest.$ac_ext <<_ACEOF
21736/* confdefs.h. */
21737_ACEOF
21738cat confdefs.h >>conftest.$ac_ext
21739cat >>conftest.$ac_ext <<_ACEOF
21740/* end confdefs.h. */
21741
b4e70030 21742/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
21743#ifdef __cplusplus
21744extern "C"
21745#endif
b4e70030
JB
21746/* We use char because int might match the return type of a gcc2
21747 builtin and then its argument prototype would still apply. */
bec39cab
AC
21748char dlopen ();
21749int
21750main ()
21751{
b4e70030 21752dlopen ();
bec39cab
AC
21753 ;
21754 return 0;
21755}
21756_ACEOF
21757rm -f conftest.$ac_objext conftest$ac_exeext
21758if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21759 (eval $ac_link) 2>conftest.er1
21760 ac_status=$?
21761 grep -v '^ *+' conftest.er1 >conftest.err
21762 rm -f conftest.er1
21763 cat conftest.err >&5
21764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21765 (exit $ac_status); } &&
b4e70030
JB
21766 { ac_try='test -z "$ac_c_werror_flag"
21767 || test ! -s conftest.err'
bec39cab
AC
21768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21769 (eval $ac_try) 2>&5
21770 ac_status=$?
21771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772 (exit $ac_status); }; } &&
21773 { ac_try='test -s conftest$ac_exeext'
21774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21775 (eval $ac_try) 2>&5
21776 ac_status=$?
21777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21778 (exit $ac_status); }; }; then
21779 ac_cv_lib_dl_dlopen=yes
21780else
21781 echo "$as_me: failed program was:" >&5
21782sed 's/^/| /' conftest.$ac_ext >&5
21783
b4e70030 21784ac_cv_lib_dl_dlopen=no
bec39cab
AC
21785fi
21786rm -f conftest.err conftest.$ac_objext \
21787 conftest$ac_exeext conftest.$ac_ext
21788LIBS=$ac_check_lib_save_LIBS
21789fi
b4e70030
JB
21790echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21791echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
bec39cab
AC
21792if test $ac_cv_lib_dl_dlopen = yes; then
21793 cat >>confdefs.h <<_ACEOF
21794#define HAVE_LIBDL 1
21795_ACEOF
c906108c
SS
21796
21797 LIBS="-ldl $LIBS"
21798
c906108c
SS
21799fi
21800
21801 if test "$GCC" = "yes" ; then
21802 # The GNU linker requires the -export-dynamic option to make
21803 # all symbols visible in the dynamic symbol table.
21804 hold_ldflags=$LDFLAGS
b4e70030
JB
21805 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
21806echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
c906108c 21807 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
bec39cab
AC
21808 cat >conftest.$ac_ext <<_ACEOF
21809/* confdefs.h. */
21810_ACEOF
21811cat confdefs.h >>conftest.$ac_ext
21812cat >>conftest.$ac_ext <<_ACEOF
21813/* end confdefs.h. */
c906108c 21814
bec39cab
AC
21815int
21816main ()
21817{
c906108c 21818int i;
bec39cab
AC
21819 ;
21820 return 0;
21821}
21822_ACEOF
21823rm -f conftest.$ac_objext conftest$ac_exeext
21824if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21825 (eval $ac_link) 2>conftest.er1
21826 ac_status=$?
21827 grep -v '^ *+' conftest.er1 >conftest.err
21828 rm -f conftest.er1
21829 cat conftest.err >&5
21830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21831 (exit $ac_status); } &&
b4e70030
JB
21832 { ac_try='test -z "$ac_c_werror_flag"
21833 || test ! -s conftest.err'
bec39cab
AC
21834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21835 (eval $ac_try) 2>&5
21836 ac_status=$?
21837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838 (exit $ac_status); }; } &&
21839 { ac_try='test -s conftest$ac_exeext'
21840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21841 (eval $ac_try) 2>&5
21842 ac_status=$?
21843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844 (exit $ac_status); }; }; then
c906108c
SS
21845 found=yes
21846else
bec39cab
AC
21847 echo "$as_me: failed program was:" >&5
21848sed 's/^/| /' conftest.$ac_ext >&5
21849
b4e70030 21850found=no
c906108c 21851fi
bec39cab
AC
21852rm -f conftest.err conftest.$ac_objext \
21853 conftest$ac_exeext conftest.$ac_ext
c906108c 21854 LDFLAGS=$hold_ldflags
b4e70030
JB
21855 echo "$as_me:$LINENO: result: $found" >&5
21856echo "${ECHO_T}$found" >&6
c906108c
SS
21857 if test $found = yes; then
21858 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
21859 fi
21860 fi
21861 # Sun randomly tweaked the prototypes in <proc_service.h>
21862 # at one point.
b4e70030
JB
21863 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
21864echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
bec39cab
AC
21865 if test "${gdb_cv_proc_service_is_old+set}" = set; then
21866 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 21867else
bec39cab
AC
21868
21869 cat >conftest.$ac_ext <<_ACEOF
21870/* confdefs.h. */
21871_ACEOF
21872cat confdefs.h >>conftest.$ac_ext
21873cat >>conftest.$ac_ext <<_ACEOF
21874/* end confdefs.h. */
c906108c
SS
21875
21876 #include <proc_service.h>
21877 ps_err_e ps_pdwrite
21878 (struct ps_prochandle*, psaddr_t, const void*, size_t);
c906108c 21879
bec39cab
AC
21880int
21881main ()
21882{
21883
21884 ;
21885 return 0;
21886}
21887_ACEOF
21888rm -f conftest.$ac_objext
21889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21890 (eval $ac_compile) 2>conftest.er1
21891 ac_status=$?
21892 grep -v '^ *+' conftest.er1 >conftest.err
21893 rm -f conftest.er1
21894 cat conftest.err >&5
21895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21896 (exit $ac_status); } &&
b4e70030
JB
21897 { ac_try='test -z "$ac_c_werror_flag"
21898 || test ! -s conftest.err'
bec39cab
AC
21899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21900 (eval $ac_try) 2>&5
21901 ac_status=$?
21902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21903 (exit $ac_status); }; } &&
21904 { ac_try='test -s conftest.$ac_objext'
21905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21906 (eval $ac_try) 2>&5
21907 ac_status=$?
21908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21909 (exit $ac_status); }; }; then
c906108c
SS
21910 gdb_cv_proc_service_is_old=no
21911else
bec39cab
AC
21912 echo "$as_me: failed program was:" >&5
21913sed 's/^/| /' conftest.$ac_ext >&5
21914
b4e70030 21915gdb_cv_proc_service_is_old=yes
c906108c 21916fi
bec39cab
AC
21917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21918
c906108c
SS
21919fi
21920
b4e70030
JB
21921 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
21922echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
c906108c 21923 if test $gdb_cv_proc_service_is_old = yes; then
60ca704f
SE
21924
21925cat >>confdefs.h <<\_ACEOF
c906108c 21926#define PROC_SERVICE_IS_OLD 1
bec39cab 21927_ACEOF
c906108c
SS
21928
21929 fi
21930 else
b4e70030
JB
21931 echo "$as_me:$LINENO: result: no" >&5
21932echo "${ECHO_T}no" >&6
c906108c
SS
21933 fi
21934 ;;
d92419e5 21935 aix*)
b4e70030
JB
21936 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
21937echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
bec39cab
AC
21938 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
21939 echo $ECHO_N "(cached) $ECHO_C" >&6
21940else
21941 cat >conftest.$ac_ext <<_ACEOF
21942/* confdefs.h. */
21943_ACEOF
21944cat confdefs.h >>conftest.$ac_ext
21945cat >>conftest.$ac_ext <<_ACEOF
21946/* end confdefs.h. */
d92419e5 21947#include <sys/pthdebug.h>
bec39cab
AC
21948int
21949main ()
21950{
d92419e5
JB
21951#ifndef PTHDB_VERSION_3
21952 #error
21953 #endif
bec39cab
AC
21954 ;
21955 return 0;
21956}
21957_ACEOF
21958rm -f conftest.$ac_objext
21959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21960 (eval $ac_compile) 2>conftest.er1
21961 ac_status=$?
21962 grep -v '^ *+' conftest.er1 >conftest.err
21963 rm -f conftest.er1
21964 cat conftest.err >&5
21965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21966 (exit $ac_status); } &&
b4e70030
JB
21967 { ac_try='test -z "$ac_c_werror_flag"
21968 || test ! -s conftest.err'
bec39cab
AC
21969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21970 (eval $ac_try) 2>&5
21971 ac_status=$?
21972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21973 (exit $ac_status); }; } &&
21974 { ac_try='test -s conftest.$ac_objext'
21975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21976 (eval $ac_try) 2>&5
21977 ac_status=$?
21978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979 (exit $ac_status); }; }; then
d92419e5
JB
21980 gdb_cv_have_aix_thread_debug=yes
21981else
bec39cab
AC
21982 echo "$as_me: failed program was:" >&5
21983sed 's/^/| /' conftest.$ac_ext >&5
21984
b4e70030 21985gdb_cv_have_aix_thread_debug=no
d92419e5 21986fi
bec39cab 21987rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d92419e5
JB
21988fi
21989
b4e70030
JB
21990 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
21991echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
d92419e5
JB
21992 if test $gdb_cv_have_aix_thread_debug = yes; then
21993 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
3483b318 21994 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
d92419e5
JB
21995 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
21996 fi
21997 ;;
c906108c 21998 esac
bec39cab 21999
c906108c
SS
22000fi
22001
3f47be5c 22002if test "x$ac_cv_header_thread_db_h" = "xyes"; then
b4e70030
JB
22003 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
22004echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
bec39cab
AC
22005if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
22006 echo $ECHO_N "(cached) $ECHO_C" >&6
22007else
22008 cat >conftest.$ac_ext <<_ACEOF
22009/* confdefs.h. */
22010_ACEOF
22011cat confdefs.h >>conftest.$ac_ext
22012cat >>conftest.$ac_ext <<_ACEOF
22013/* end confdefs.h. */
3f47be5c 22014#include <thread_db.h>
bec39cab
AC
22015int
22016main ()
22017{
3f47be5c 22018int i = TD_NOTALLOC;
bec39cab
AC
22019 ;
22020 return 0;
22021}
22022_ACEOF
22023rm -f conftest.$ac_objext
22024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22025 (eval $ac_compile) 2>conftest.er1
22026 ac_status=$?
22027 grep -v '^ *+' conftest.er1 >conftest.err
22028 rm -f conftest.er1
22029 cat conftest.err >&5
22030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22031 (exit $ac_status); } &&
b4e70030
JB
22032 { ac_try='test -z "$ac_c_werror_flag"
22033 || test ! -s conftest.err'
bec39cab
AC
22034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22035 (eval $ac_try) 2>&5
22036 ac_status=$?
22037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22038 (exit $ac_status); }; } &&
22039 { ac_try='test -s conftest.$ac_objext'
22040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22041 (eval $ac_try) 2>&5
22042 ac_status=$?
22043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22044 (exit $ac_status); }; }; then
3f47be5c
EZ
22045 gdb_cv_thread_db_h_has_td_notalloc=yes
22046else
bec39cab
AC
22047 echo "$as_me: failed program was:" >&5
22048sed 's/^/| /' conftest.$ac_ext >&5
22049
b4e70030 22050gdb_cv_thread_db_h_has_td_notalloc=no
bec39cab 22051
3f47be5c 22052fi
bec39cab 22053rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3f47be5c 22054
bec39cab 22055fi
b4e70030
JB
22056echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
22057echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
59f80f10
DJ
22058 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
22059echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
22060if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
22061 echo $ECHO_N "(cached) $ECHO_C" >&6
22062else
22063 cat >conftest.$ac_ext <<_ACEOF
22064/* confdefs.h. */
22065_ACEOF
22066cat confdefs.h >>conftest.$ac_ext
22067cat >>conftest.$ac_ext <<_ACEOF
22068/* end confdefs.h. */
22069#include <thread_db.h>
22070int
22071main ()
22072{
22073int i = TD_VERSION;
22074 ;
22075 return 0;
22076}
22077_ACEOF
22078rm -f conftest.$ac_objext
22079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22080 (eval $ac_compile) 2>conftest.er1
22081 ac_status=$?
22082 grep -v '^ *+' conftest.er1 >conftest.err
22083 rm -f conftest.er1
22084 cat conftest.err >&5
22085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22086 (exit $ac_status); } &&
22087 { ac_try='test -z "$ac_c_werror_flag"
22088 || test ! -s conftest.err'
22089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22090 (eval $ac_try) 2>&5
22091 ac_status=$?
22092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22093 (exit $ac_status); }; } &&
22094 { ac_try='test -s conftest.$ac_objext'
22095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22096 (eval $ac_try) 2>&5
22097 ac_status=$?
22098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22099 (exit $ac_status); }; }; then
22100 gdb_cv_thread_db_h_has_td_version=yes
22101else
22102 echo "$as_me: failed program was:" >&5
22103sed 's/^/| /' conftest.$ac_ext >&5
22104
22105gdb_cv_thread_db_h_has_td_version=no
22106
22107fi
22108rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22109
22110fi
22111echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
22112echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
22113 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
22114echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
22115if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
22116 echo $ECHO_N "(cached) $ECHO_C" >&6
22117else
22118 cat >conftest.$ac_ext <<_ACEOF
22119/* confdefs.h. */
22120_ACEOF
22121cat confdefs.h >>conftest.$ac_ext
22122cat >>conftest.$ac_ext <<_ACEOF
22123/* end confdefs.h. */
22124#include <thread_db.h>
22125int
22126main ()
22127{
22128int i = TD_NOTLS;
22129 ;
22130 return 0;
22131}
22132_ACEOF
22133rm -f conftest.$ac_objext
22134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22135 (eval $ac_compile) 2>conftest.er1
22136 ac_status=$?
22137 grep -v '^ *+' conftest.er1 >conftest.err
22138 rm -f conftest.er1
22139 cat conftest.err >&5
22140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141 (exit $ac_status); } &&
22142 { ac_try='test -z "$ac_c_werror_flag"
22143 || test ! -s conftest.err'
22144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22145 (eval $ac_try) 2>&5
22146 ac_status=$?
22147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22148 (exit $ac_status); }; } &&
22149 { ac_try='test -s conftest.$ac_objext'
22150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22151 (eval $ac_try) 2>&5
22152 ac_status=$?
22153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22154 (exit $ac_status); }; }; then
22155 gdb_cv_thread_db_h_has_td_notls=yes
22156else
22157 echo "$as_me: failed program was:" >&5
22158sed 's/^/| /' conftest.$ac_ext >&5
22159
22160gdb_cv_thread_db_h_has_td_notls=no
22161
22162fi
22163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22164
22165fi
22166echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
22167echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
3f47be5c
EZ
22168fi
22169if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
bec39cab
AC
22170
22171cat >>confdefs.h <<\_ACEOF
3f47be5c 22172#define THREAD_DB_HAS_TD_NOTALLOC 1
bec39cab 22173_ACEOF
3f47be5c 22174
59f80f10
DJ
22175fi
22176if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
22177
22178cat >>confdefs.h <<\_ACEOF
22179#define THREAD_DB_HAS_TD_VERSION 1
22180_ACEOF
22181
22182fi
22183if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
22184
22185cat >>confdefs.h <<\_ACEOF
22186#define THREAD_DB_HAS_TD_NOTLS 1
22187_ACEOF
22188
3f47be5c
EZ
22189fi
22190
b757528f 22191if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
b4e70030
JB
22192 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
22193echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
bec39cab
AC
22194if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
22195 echo $ECHO_N "(cached) $ECHO_C" >&6
22196else
22197 cat >conftest.$ac_ext <<_ACEOF
22198/* confdefs.h. */
22199_ACEOF
22200cat confdefs.h >>conftest.$ac_ext
22201cat >>conftest.$ac_ext <<_ACEOF
22202/* end confdefs.h. */
b757528f 22203#include <sys/syscall.h>
bec39cab
AC
22204int
22205main ()
22206{
b757528f 22207int i = __NR_tkill;
bec39cab
AC
22208 ;
22209 return 0;
22210}
22211_ACEOF
22212rm -f conftest.$ac_objext
22213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22214 (eval $ac_compile) 2>conftest.er1
22215 ac_status=$?
22216 grep -v '^ *+' conftest.er1 >conftest.err
22217 rm -f conftest.er1
22218 cat conftest.err >&5
22219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22220 (exit $ac_status); } &&
b4e70030
JB
22221 { ac_try='test -z "$ac_c_werror_flag"
22222 || test ! -s conftest.err'
bec39cab
AC
22223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22224 (eval $ac_try) 2>&5
22225 ac_status=$?
22226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22227 (exit $ac_status); }; } &&
22228 { ac_try='test -s conftest.$ac_objext'
22229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22230 (eval $ac_try) 2>&5
22231 ac_status=$?
22232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22233 (exit $ac_status); }; }; then
b757528f
JJ
22234 gdb_cv_sys_syscall_h_has_tkill=yes
22235else
bec39cab
AC
22236 echo "$as_me: failed program was:" >&5
22237sed 's/^/| /' conftest.$ac_ext >&5
22238
b4e70030 22239gdb_cv_sys_syscall_h_has_tkill=no
bec39cab 22240
b757528f 22241fi
bec39cab 22242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b757528f 22243
bec39cab 22244fi
b4e70030
JB
22245echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
22246echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
b757528f
JJ
22247fi
22248if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
bec39cab
AC
22249
22250cat >>confdefs.h <<\_ACEOF
b757528f 22251#define HAVE_TKILL_SYSCALL 1
bec39cab 22252_ACEOF
b757528f
JJ
22253
22254fi
22255
fb40c209 22256
bec39cab 22257
b4e70030 22258# Check whether --with-sysroot or --without-sysroot was given.
030292b7 22259if test "${with_sysroot+set}" = set; then
b4e70030
JB
22260 withval="$with_sysroot"
22261
030292b7 22262 case ${with_sysroot} in
715d1656 22263 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
030292b7
DJ
22264 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
22265 esac
22266
22267 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
22268
07abfebf
RS
22269 if test "x$prefix" = xNONE; then
22270 test_prefix=/usr/local
22271 else
22272 test_prefix=$prefix
22273 fi
aa28a74e 22274 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
07abfebf 22275 test_exec_prefix=$test_prefix
030292b7 22276 else
07abfebf 22277 test_exec_prefix=$exec_prefix
030292b7
DJ
22278 fi
22279 case ${TARGET_SYSTEM_ROOT} in
715d1656 22280 "${test_prefix}"|"${test_prefix}/"*|\
07abfebf
RS
22281 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
22282 '${prefix}'|'${prefix}/'*|\
715d1656 22283 '${exec_prefix}'|'${exec_prefix}/'*)
030292b7
DJ
22284 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
22285 TARGET_SYSTEM_ROOT_DEFINE="$t"
22286 ;;
22287 esac
22288
22289else
bec39cab 22290
030292b7
DJ
22291 TARGET_SYSTEM_ROOT=
22292 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
22293
b4e70030 22294fi;
030292b7
DJ
22295
22296
22297
b4e70030 22298# Check whether --enable-werror or --disable-werror was given.
094a342e 22299if test "${enable_werror+set}" = set; then
b4e70030
JB
22300 enableval="$enable_werror"
22301 case "${enableval}" in
094a342e
MK
22302 yes | y) ERROR_ON_WARNING="yes" ;;
22303 no | n) ERROR_ON_WARNING="no" ;;
22304 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
22305echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
22306 { (exit 1); exit 1; }; } ;;
22307 esac
b4e70030 22308fi;
094a342e
MK
22309
22310# Enable -Werror by default when using gcc
22311if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
22312 ERROR_ON_WARNING=yes
22313fi
22314
22315WERROR_CFLAGS=""
22316if test "${ERROR_ON_WARNING}" = yes ; then
22317 WERROR_CFLAGS="-Werror"
22318fi
22319
aa79a185
DJ
22320# The entries after -Wno-pointer-sign are disabled warnings which may
22321# be enabled in the future, which can not currently be used to build
22322# GDB.
22323# NOTE: If you change this list, remember to update
3b851bce 22324# gdb/doc/gdbint.texinfo.
aa79a185
DJ
22325build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
22326-Wformat-nonliteral -Wno-pointer-sign \
58b38ee2 22327-Wno-unused -Wno-switch -Wno-char-subscripts"
a3b362c4 22328
b4e70030 22329# Check whether --enable-build-warnings or --disable-build-warnings was given.
c906108c 22330if test "${enable_build_warnings+set}" = set; then
b4e70030
JB
22331 enableval="$enable_build_warnings"
22332 case "${enableval}" in
c906108c
SS
22333 yes) ;;
22334 no) build_warnings="-w";;
22335 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
22336 build_warnings="${build_warnings} ${t}";;
22337 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
22338 build_warnings="${t} ${build_warnings}";;
22339 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
22340esac
d4f3574e 22341if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
746a987d 22342 echo "Setting compiler warning flags = $build_warnings" 6>&1
c906108c 22343fi
b4e70030 22344fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
3b851bce 22345if test "${enable_gdb_build_warnings+set}" = set; then
b4e70030
JB
22346 enableval="$enable_gdb_build_warnings"
22347 case "${enableval}" in
3b851bce
AC
22348 yes) ;;
22349 no) build_warnings="-w";;
22350 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
22351 build_warnings="${build_warnings} ${t}";;
22352 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
22353 build_warnings="${t} ${build_warnings}";;
22354 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
22355esac
22356if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
22357 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
22358fi
b4e70030 22359fi; WARN_CFLAGS=""
c906108c
SS
22360if test "x${build_warnings}" != x -a "x$GCC" = xyes
22361then
b4e70030
JB
22362 echo "$as_me:$LINENO: checking compiler warning flags" >&5
22363echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
746a987d
AC
22364 # Separate out the -Werror flag as some files just cannot be
22365 # compiled with it enabled.
22366 for w in ${build_warnings}; do
22367 case $w in
22368 -Werr*) WERROR_CFLAGS=-Werror ;;
22369 *) # Check that GCC accepts it
4536bbc6
AC
22370 saved_CFLAGS="$CFLAGS"
22371 CFLAGS="$CFLAGS $w"
bec39cab
AC
22372 cat >conftest.$ac_ext <<_ACEOF
22373/* confdefs.h. */
22374_ACEOF
22375cat confdefs.h >>conftest.$ac_ext
22376cat >>conftest.$ac_ext <<_ACEOF
22377/* end confdefs.h. */
4536bbc6 22378
bec39cab
AC
22379int
22380main ()
22381{
4536bbc6 22382
bec39cab
AC
22383 ;
22384 return 0;
22385}
22386_ACEOF
22387rm -f conftest.$ac_objext
22388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22389 (eval $ac_compile) 2>conftest.er1
22390 ac_status=$?
22391 grep -v '^ *+' conftest.er1 >conftest.err
22392 rm -f conftest.er1
22393 cat conftest.err >&5
22394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395 (exit $ac_status); } &&
b4e70030
JB
22396 { ac_try='test -z "$ac_c_werror_flag"
22397 || test ! -s conftest.err'
bec39cab
AC
22398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22399 (eval $ac_try) 2>&5
22400 ac_status=$?
22401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22402 (exit $ac_status); }; } &&
22403 { ac_try='test -s conftest.$ac_objext'
22404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22405 (eval $ac_try) 2>&5
22406 ac_status=$?
22407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22408 (exit $ac_status); }; }; then
4536bbc6
AC
22409 WARN_CFLAGS="${WARN_CFLAGS} $w"
22410else
bec39cab
AC
22411 echo "$as_me: failed program was:" >&5
22412sed 's/^/| /' conftest.$ac_ext >&5
22413
4536bbc6 22414fi
bec39cab 22415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4536bbc6 22416 CFLAGS="$saved_CFLAGS"
746a987d
AC
22417 esac
22418 done
aa79a185
DJ
22419 echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
22420echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
c906108c
SS
22421fi
22422
22423
104c1213 22424
7a292a7a 22425# In the Cygwin environment, we need some additional flags.
b4e70030
JB
22426echo "$as_me:$LINENO: checking for cygwin" >&5
22427echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
bec39cab
AC
22428if test "${gdb_cv_os_cygwin+set}" = set; then
22429 echo $ECHO_N "(cached) $ECHO_C" >&6
22430else
22431 cat >conftest.$ac_ext <<_ACEOF
22432/* confdefs.h. */
22433_ACEOF
22434cat confdefs.h >>conftest.$ac_ext
22435cat >>conftest.$ac_ext <<_ACEOF
22436/* end confdefs.h. */
7a292a7a
SS
22437
22438#if defined (__CYGWIN__) || defined (__CYGWIN32__)
22439lose
22440#endif
bec39cab 22441_ACEOF
7a292a7a 22442if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 22443 $EGREP "lose" >/dev/null 2>&1; then
7a292a7a
SS
22444 gdb_cv_os_cygwin=yes
22445else
7a292a7a
SS
22446 gdb_cv_os_cygwin=no
22447fi
22448rm -f conftest*
22449
22450fi
b4e70030
JB
22451echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
22452echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
7a292a7a 22453
aff38e61 22454
3eb25fda 22455SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
aff38e61 22456case ${host} in
95cbc983
AC
22457 *go32* ) SER_HARDWIRE=ser-go32.o ;;
22458 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
0ea3f30e 22459 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
aff38e61
AC
22460esac
22461
22462
cd0fc7c3
SS
22463# libreadline needs libuser32.a in a cygwin environment
22464WIN32LIBS=
22465if test x$gdb_cv_os_cygwin = xyes; then
c5394b80
JM
22466 WIN32LIBS="-luser32"
22467 case "${target}" in
22468 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
22469 ;;
22470 esac
cd0fc7c3 22471fi
c906108c 22472
b4505029
MM
22473# The ser-tcp.c module requires sockets.
22474case ${host} in
22475 *mingw32*)
22476
22477cat >>confdefs.h <<\_ACEOF
22478#define USE_WIN32API 1
22479_ACEOF
22480
22481 WIN32LIBS="$WIN32LIBS -lws2_32"
22482 ;;
22483esac
22484
7a292a7a 22485
31d99776
DJ
22486# Add ELF support to GDB, but only if BFD includes ELF support.
22487OLD_CFLAGS=$CFLAGS
22488OLD_LDFLAGS=$LDFLAGS
22489OLD_LIBS=$LIBS
cab58a69 22490CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
31d99776 22491LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
7b3200f9
DJ
22492intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
22493LIBS="$LIBS -lbfd -liberty $intl"
31d99776
DJ
22494echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
22495echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
22496if test "${gdb_cv_var_elf+set}" = set; then
22497 echo $ECHO_N "(cached) $ECHO_C" >&6
22498else
22499 cat >conftest.$ac_ext <<_ACEOF
22500/* confdefs.h. */
22501_ACEOF
22502cat confdefs.h >>conftest.$ac_ext
22503cat >>conftest.$ac_ext <<_ACEOF
22504/* end confdefs.h. */
22505#include <stdlib.h>
22506#include "bfd.h"
22507#include "elf-bfd.h"
22508
22509int
22510main ()
22511{
22512bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
22513 ;
22514 return 0;
22515}
22516_ACEOF
22517rm -f conftest.$ac_objext conftest$ac_exeext
22518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22519 (eval $ac_link) 2>conftest.er1
22520 ac_status=$?
22521 grep -v '^ *+' conftest.er1 >conftest.err
22522 rm -f conftest.er1
22523 cat conftest.err >&5
22524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22525 (exit $ac_status); } &&
22526 { ac_try='test -z "$ac_c_werror_flag"
22527 || test ! -s conftest.err'
22528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22529 (eval $ac_try) 2>&5
22530 ac_status=$?
22531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22532 (exit $ac_status); }; } &&
22533 { ac_try='test -s conftest$ac_exeext'
22534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22535 (eval $ac_try) 2>&5
22536 ac_status=$?
22537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22538 (exit $ac_status); }; }; then
22539 gdb_cv_var_elf=yes
22540else
22541 echo "$as_me: failed program was:" >&5
22542sed 's/^/| /' conftest.$ac_ext >&5
22543
22544gdb_cv_var_elf=no
22545fi
22546rm -f conftest.err conftest.$ac_objext \
22547 conftest$ac_exeext conftest.$ac_ext
22548fi
22549echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
22550echo "${ECHO_T}$gdb_cv_var_elf" >&6
22551if test $gdb_cv_var_elf = yes; then
22552 CONFIG_OBS="$CONFIG_OBS elfread.o"
22553
22554cat >>confdefs.h <<\_ACEOF
22555#define HAVE_ELF 1
22556_ACEOF
22557
22558fi
22559CFLAGS=$OLD_CFLAGS
22560LDFLAGS=$OLD_LDFLAGS
22561LIBS=$OLD_LIBS
22562
121ce6e5
DJ
22563# Add any host-specific objects to GDB.
22564CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
22565
3fc11d3e
JM
22566LIBGUI="../libgui/src/libgui.a"
22567GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
22568
22569
7a292a7a 22570
3fc11d3e
JM
22571WIN32LDAPP=
22572
22573
22574
d91670b9
CV
22575case "${host}" in
22576*-*-cygwin*)
22577 configdir="win"
22578 ;;
22579*)
22580 configdir="unix"
22581 ;;
22582esac
3fc11d3e
JM
22583
22584GDBTKLIBS=
22585if test "${enable_gdbtk}" = "yes"; then
22586
d1c3b63a
KS
22587 # Gdbtk must have an absolute path to srcdir in order to run
22588 # properly when not installed.
22589 here=`pwd`
22590 cd ${srcdir}
22591 GDBTK_SRC_DIR=`pwd`
22592 cd $here
22593
bec39cab 22594
3fc11d3e
JM
22595#
22596# Ok, lets find the tcl configuration
bec39cab 22597# First, look for one uninstalled.
3fc11d3e
JM
22598# the alternative search directory is invoked by --with-tclconfig
22599#
22600
22601if test x"${no_tcl}" = x ; then
22602 # we reset no_tcl in case something fails here
22603 no_tcl=true
bec39cab 22604
b4e70030 22605# Check whether --with-tclconfig or --without-tclconfig was given.
3fc11d3e 22606if test "${with_tclconfig+set}" = set; then
b4e70030
JB
22607 withval="$with_tclconfig"
22608 with_tclconfig=${withval}
22609fi;
22610 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
22611echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
bec39cab
AC
22612 if test "${ac_cv_c_tclconfig+set}" = set; then
22613 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 22614else
bec39cab 22615
3fc11d3e
JM
22616
22617 # First check to see if --with-tclconfig was specified.
22618 if test x"${with_tclconfig}" != x ; then
22619 if test -f "${with_tclconfig}/tclConfig.sh" ; then
22620 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
22621 else
bec39cab
AC
22622 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
22623echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
22624 { (exit 1); exit 1; }; }
3fc11d3e
JM
22625 fi
22626 fi
22627
22628 # then check for a private Tcl installation
22629 if test x"${ac_cv_c_tclconfig}" = x ; then
22630 for i in \
22631 ../tcl \
22632 `ls -dr ../tcl[7-9]* 2>/dev/null` \
22633 ../../tcl \
22634 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
22635 ../../../tcl \
22636 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
22637 if test -f "$i/${configdir}/tclConfig.sh" ; then
22638 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
22639 break
22640 fi
22641 done
22642 fi
22643 # check in a few common install locations
22644 if test x"${ac_cv_c_tclconfig}" = x ; then
22645 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22646 if test -f "$i/tclConfig.sh" ; then
22647 ac_cv_c_tclconfig=`(cd $i; pwd)`
22648 break
22649 fi
22650 done
22651 fi
22652 # check in a few other private locations
22653 if test x"${ac_cv_c_tclconfig}" = x ; then
22654 for i in \
22655 ${srcdir}/../tcl \
22656 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
22657 if test -f "$i/${configdir}/tclConfig.sh" ; then
22658 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
22659 break
22660 fi
22661 done
22662 fi
bec39cab 22663
3fc11d3e
JM
22664fi
22665
22666 if test x"${ac_cv_c_tclconfig}" = x ; then
22667 TCLCONFIG="# no Tcl configs found"
bec39cab
AC
22668 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
22669echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
3fc11d3e
JM
22670 else
22671 no_tcl=
22672 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
b4e70030
JB
22673 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
22674echo "${ECHO_T}found $TCLCONFIG" >&6
3fc11d3e
JM
22675 fi
22676fi
22677
22678 if test -z "${no_tcl}"; then
bec39cab 22679
3fc11d3e
JM
22680 . $TCLCONFIG
22681
3fc11d3e
JM
22682
22683
22684
22685
3fc11d3e
JM
22686
22687
22688
bec39cab
AC
22689
22690
22691
22692
22693
22694
22695
22696
22697
22698
22699
22700
22701
22702
22703
22704
22705
22706
22707
3fc11d3e
JM
22708#
22709# Ok, lets find the tk configuration
bec39cab 22710# First, look for one uninstalled.
3fc11d3e
JM
22711# the alternative search directory is invoked by --with-tkconfig
22712#
22713
22714if test x"${no_tk}" = x ; then
22715 # we reset no_tk in case something fails here
22716 no_tk=true
bec39cab 22717
b4e70030 22718# Check whether --with-tkconfig or --without-tkconfig was given.
3fc11d3e 22719if test "${with_tkconfig+set}" = set; then
b4e70030
JB
22720 withval="$with_tkconfig"
22721 with_tkconfig=${withval}
22722fi;
22723 echo "$as_me:$LINENO: checking for Tk configuration" >&5
22724echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
bec39cab
AC
22725 if test "${ac_cv_c_tkconfig+set}" = set; then
22726 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 22727else
bec39cab 22728
3fc11d3e
JM
22729
22730 # First check to see if --with-tkconfig was specified.
22731 if test x"${with_tkconfig}" != x ; then
22732 if test -f "${with_tkconfig}/tkConfig.sh" ; then
22733 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
22734 else
bec39cab
AC
22735 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
22736echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
22737 { (exit 1); exit 1; }; }
3fc11d3e
JM
22738 fi
22739 fi
22740
22741 # then check for a private Tk library
22742 if test x"${ac_cv_c_tkconfig}" = x ; then
22743 for i in \
22744 ../tk \
22745 `ls -dr ../tk[4-9]* 2>/dev/null` \
22746 ../../tk \
22747 `ls -dr ../../tk[4-9]* 2>/dev/null` \
22748 ../../../tk \
22749 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
22750 if test -f "$i/${configdir}/tkConfig.sh" ; then
22751 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
22752 break
22753 fi
22754 done
22755 fi
22756 # check in a few common install locations
22757 if test x"${ac_cv_c_tkconfig}" = x ; then
22758 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22759 if test -f "$i/tkConfig.sh" ; then
22760 ac_cv_c_tkconfig=`(cd $i; pwd)`
22761 break
22762 fi
22763 done
22764 fi
22765 # check in a few other private locations
22766 if test x"${ac_cv_c_tkconfig}" = x ; then
22767 for i in \
22768 ${srcdir}/../tk \
22769 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
22770 if test -f "$i/${configdir}/tkConfig.sh" ; then
22771 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
22772 break
22773 fi
22774 done
22775 fi
bec39cab 22776
3fc11d3e
JM
22777fi
22778
22779 if test x"${ac_cv_c_tkconfig}" = x ; then
22780 TKCONFIG="# no Tk configs found"
bec39cab
AC
22781 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
22782echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
3fc11d3e
JM
22783 else
22784 no_tk=
22785 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
b4e70030
JB
22786 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
22787echo "${ECHO_T}found $TKCONFIG" >&6
3fc11d3e
JM
22788 fi
22789fi
22790
22791
22792
dd2504ab
JM
22793 # now look for Tcl library stuff
22794
d91670b9 22795 tcldir="../tcl/${configdir}/"
dd2504ab
JM
22796
22797 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
22798
3fc11d3e
JM
22799 # If $no_tk is nonempty, then we can't do Tk, and there is no
22800 # point to doing Tcl.
22801 if test -z "${no_tk}"; then
bec39cab 22802
3fc11d3e
JM
22803 if test -f "$TKCONFIG" ; then
22804 . $TKCONFIG
22805 fi
22806
3fc11d3e 22807
3fc11d3e
JM
22808
22809
3fc11d3e 22810
bec39cab
AC
22811
22812
22813
22814
22815
22816
22817
22818
22819
3fc11d3e
JM
22820#
22821# Ok, lets find the tcl source trees so we can use the headers
22822# Warning: transition of version 9 to 10 will break this algorithm
22823# because 10 sorts before 9. We also look for just tcl. We have to
22824# be careful that we don't match stuff like tclX by accident.
22825# the alternative search directory is involked by --with-tclinclude
22826#
22827
22828no_tcl=true
b4e70030
JB
22829echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
22830echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
bec39cab 22831
b4e70030 22832# Check whether --with-tclinclude or --without-tclinclude was given.
3fc11d3e 22833if test "${with_tclinclude+set}" = set; then
b4e70030
JB
22834 withval="$with_tclinclude"
22835 with_tclinclude=${withval}
22836fi;
bec39cab
AC
22837if test "${ac_cv_c_tclh+set}" = set; then
22838 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 22839else
bec39cab 22840
3fc11d3e
JM
22841# first check to see if --with-tclinclude was specified
22842if test x"${with_tclinclude}" != x ; then
22843 if test -f ${with_tclinclude}/tclInt.h ; then
22844 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
22845 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
22846 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
22847 else
bec39cab
AC
22848 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
22849echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
22850 { (exit 1); exit 1; }; }
3fc11d3e
JM
22851 fi
22852fi
22853
22854# next check if it came with Tcl configuration file
22855if test x"${ac_cv_c_tclconfig}" = x ; then
22856 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
22857 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
22858 fi
22859fi
22860
22861# next check in private source directory
22862#
22863# since ls returns lowest version numbers first, reverse its output
22864if test x"${ac_cv_c_tclh}" = x ; then
22865 for i in \
22866 ${srcdir}/../tcl \
22867 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
22868 ${srcdir}/../../tcl \
22869 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
22870 ${srcdir}/../../../tcl \
22871 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
22872 if test -f $i/generic/tclInt.h ; then
22873 ac_cv_c_tclh=`(cd $i/generic; pwd)`
22874 break
22875 fi
22876 done
22877fi
22878# finally check in a few common install locations
22879#
22880# since ls returns lowest version numbers first, reverse its output
22881if test x"${ac_cv_c_tclh}" = x ; then
22882 for i in \
22883 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
22884 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
22885 /usr/local/src/tcl \
22886 /usr/local/lib/tcl \
22887 ${prefix}/include ; do
22888 if test -f $i/generic/tclInt.h ; then
22889 ac_cv_c_tclh=`(cd $i/generic; pwd)`
22890 break
22891 fi
22892 done
22893fi
22894# see if one is installed
22895if test x"${ac_cv_c_tclh}" = x ; then
bec39cab 22896 if test "${ac_cv_header_tclInt_h+set}" = set; then
b4e70030
JB
22897 echo "$as_me:$LINENO: checking for tclInt.h" >&5
22898echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
bec39cab
AC
22899if test "${ac_cv_header_tclInt_h+set}" = set; then
22900 echo $ECHO_N "(cached) $ECHO_C" >&6
22901fi
b4e70030
JB
22902echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
22903echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
bec39cab
AC
22904else
22905 # Is the header compilable?
b4e70030
JB
22906echo "$as_me:$LINENO: checking tclInt.h usability" >&5
22907echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
bec39cab
AC
22908cat >conftest.$ac_ext <<_ACEOF
22909/* confdefs.h. */
22910_ACEOF
22911cat confdefs.h >>conftest.$ac_ext
22912cat >>conftest.$ac_ext <<_ACEOF
22913/* end confdefs.h. */
22914$ac_includes_default
22915#include <tclInt.h>
22916_ACEOF
22917rm -f conftest.$ac_objext
22918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22919 (eval $ac_compile) 2>conftest.er1
22920 ac_status=$?
22921 grep -v '^ *+' conftest.er1 >conftest.err
22922 rm -f conftest.er1
22923 cat conftest.err >&5
22924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22925 (exit $ac_status); } &&
b4e70030
JB
22926 { ac_try='test -z "$ac_c_werror_flag"
22927 || test ! -s conftest.err'
bec39cab
AC
22928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929 (eval $ac_try) 2>&5
22930 ac_status=$?
22931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22932 (exit $ac_status); }; } &&
22933 { ac_try='test -s conftest.$ac_objext'
22934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22935 (eval $ac_try) 2>&5
22936 ac_status=$?
22937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22938 (exit $ac_status); }; }; then
22939 ac_header_compiler=yes
22940else
22941 echo "$as_me: failed program was:" >&5
22942sed 's/^/| /' conftest.$ac_ext >&5
22943
b4e70030 22944ac_header_compiler=no
bec39cab
AC
22945fi
22946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
22947echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22948echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
22949
22950# Is the header present?
b4e70030
JB
22951echo "$as_me:$LINENO: checking tclInt.h presence" >&5
22952echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
bec39cab
AC
22953cat >conftest.$ac_ext <<_ACEOF
22954/* confdefs.h. */
22955_ACEOF
22956cat confdefs.h >>conftest.$ac_ext
22957cat >>conftest.$ac_ext <<_ACEOF
22958/* end confdefs.h. */
3fc11d3e 22959#include <tclInt.h>
bec39cab
AC
22960_ACEOF
22961if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22962 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22963 ac_status=$?
22964 grep -v '^ *+' conftest.er1 >conftest.err
22965 rm -f conftest.er1
22966 cat conftest.err >&5
22967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22968 (exit $ac_status); } >/dev/null; then
22969 if test -s conftest.err; then
22970 ac_cpp_err=$ac_c_preproc_warn_flag
22971 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22972 else
22973 ac_cpp_err=
22974 fi
22975else
22976 ac_cpp_err=yes
3fc11d3e 22977fi
bec39cab
AC
22978if test -z "$ac_cpp_err"; then
22979 ac_header_preproc=yes
22980else
22981 echo "$as_me: failed program was:" >&5
22982sed 's/^/| /' conftest.$ac_ext >&5
22983
22984 ac_header_preproc=no
3fc11d3e 22985fi
bec39cab 22986rm -f conftest.err conftest.$ac_ext
b4e70030
JB
22987echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22988echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
22989
22990# So? What about this header?
22991case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22992 yes:no: )
22993 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
22994echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22995 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
22996echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
22997 ac_header_preproc=yes
22998 ;;
22999 no:yes:* )
23000 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
23001echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
23002 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
23003echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
23004 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
23005echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
23006 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
23007echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
23008 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
23009echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
23010 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
23011echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
23012 (
23013 cat <<\_ASBOX
23014## ------------------------------------------ ##
23015## Report this to the AC_PACKAGE_NAME lists. ##
23016## ------------------------------------------ ##
23017_ASBOX
23018 ) |
23019 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
23020 ;;
23021esac
b4e70030
JB
23022echo "$as_me:$LINENO: checking for tclInt.h" >&5
23023echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
bec39cab
AC
23024if test "${ac_cv_header_tclInt_h+set}" = set; then
23025 echo $ECHO_N "(cached) $ECHO_C" >&6
23026else
23027 ac_cv_header_tclInt_h=$ac_header_preproc
23028fi
b4e70030
JB
23029echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
23030echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
bec39cab
AC
23031
23032fi
23033if test $ac_cv_header_tclInt_h = yes; then
3fc11d3e
JM
23034 ac_cv_c_tclh=installed
23035else
bec39cab 23036 ac_cv_c_tclh=""
3fc11d3e
JM
23037fi
23038
bec39cab 23039
3fc11d3e
JM
23040fi
23041
23042fi
23043
23044if test x"${ac_cv_c_tclh}" = x ; then
23045 TCLHDIR="# no Tcl private headers found"
bec39cab
AC
23046 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
23047echo "$as_me: error: Can't find Tcl private headers" >&2;}
23048 { (exit 1); exit 1; }; }
3fc11d3e
JM
23049fi
23050if test x"${ac_cv_c_tclh}" != x ; then
23051 no_tcl=""
23052 if test x"${ac_cv_c_tclh}" = x"installed" ; then
b4e70030
JB
23053 echo "$as_me:$LINENO: result: is installed" >&5
23054echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
23055 TCLHDIR=""
23056 else
b4e70030
JB
23057 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
23058echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
3fc11d3e
JM
23059 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
23060 TCLHDIR="-I${ac_cv_c_tclh}"
23061 fi
23062fi
23063
23064
23065
bec39cab 23066
3fc11d3e
JM
23067#
23068# Ok, lets find the tk source trees so we can use the headers
23069# If the directory (presumably symlink) named "tk" exists, use that one
23070# in preference to any others. Same logic is used when choosing library
23071# and again with Tcl. The search order is the best place to look first, then in
23072# decreasing significance. The loop breaks if the trigger file is found.
23073# Note the gross little conversion here of srcdir by cd'ing to the found
23074# directory. This converts the path from a relative to an absolute, so
23075# recursive cache variables for the path will work right. We check all
23076# the possible paths in one loop rather than many seperate loops to speed
23077# things up.
23078# the alternative search directory is involked by --with-tkinclude
23079#
23080no_tk=true
b4e70030
JB
23081echo "$as_me:$LINENO: checking for Tk private headers" >&5
23082echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
bec39cab 23083
b4e70030 23084# Check whether --with-tkinclude or --without-tkinclude was given.
3fc11d3e 23085if test "${with_tkinclude+set}" = set; then
b4e70030
JB
23086 withval="$with_tkinclude"
23087 with_tkinclude=${withval}
23088fi;
bec39cab
AC
23089if test "${ac_cv_c_tkh+set}" = set; then
23090 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 23091else
bec39cab 23092
3fc11d3e
JM
23093# first check to see if --with-tkinclude was specified
23094if test x"${with_tkinclude}" != x ; then
23095 if test -f ${with_tkinclude}/tk.h ; then
23096 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
23097 elif test -f ${with_tkinclude}/generic/tk.h ; then
23098 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
23099 else
bec39cab
AC
23100 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
23101echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
23102 { (exit 1); exit 1; }; }
3fc11d3e
JM
23103 fi
23104fi
23105
23106# next check if it came with Tk configuration file
23107if test x"${ac_cv_c_tkconfig}" = x ; then
23108 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
23109 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
23110 fi
23111fi
23112
23113# next check in private source directory
23114#
23115# since ls returns lowest version numbers first, reverse its output
23116if test x"${ac_cv_c_tkh}" = x ; then
23117 for i in \
23118 ${srcdir}/../tk \
23119 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
23120 ${srcdir}/../../tk \
23121 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
23122 ${srcdir}/../../../tk \
23123 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
23124 if test -f $i/generic/tk.h ; then
23125 ac_cv_c_tkh=`(cd $i/generic; pwd)`
23126 break
23127 fi
23128 done
23129fi
23130# finally check in a few common install locations
23131#
23132# since ls returns lowest version numbers first, reverse its output
23133if test x"${ac_cv_c_tkh}" = x ; then
23134 for i in \
23135 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
23136 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
23137 /usr/local/src/tk \
23138 /usr/local/lib/tk \
23139 ${prefix}/include ; do
23140 if test -f $i/generic/tk.h ; then
23141 ac_cv_c_tkh=`(cd $i/generic; pwd)`
23142 break
23143 fi
23144 done
23145fi
23146# see if one is installed
23147if test x"${ac_cv_c_tkh}" = x ; then
bec39cab 23148 if test "${ac_cv_header_tk_h+set}" = set; then
b4e70030
JB
23149 echo "$as_me:$LINENO: checking for tk.h" >&5
23150echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
bec39cab
AC
23151if test "${ac_cv_header_tk_h+set}" = set; then
23152 echo $ECHO_N "(cached) $ECHO_C" >&6
23153fi
b4e70030
JB
23154echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
23155echo "${ECHO_T}$ac_cv_header_tk_h" >&6
bec39cab
AC
23156else
23157 # Is the header compilable?
b4e70030
JB
23158echo "$as_me:$LINENO: checking tk.h usability" >&5
23159echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
bec39cab
AC
23160cat >conftest.$ac_ext <<_ACEOF
23161/* confdefs.h. */
23162_ACEOF
23163cat confdefs.h >>conftest.$ac_ext
23164cat >>conftest.$ac_ext <<_ACEOF
23165/* end confdefs.h. */
23166$ac_includes_default
3fc11d3e 23167#include <tk.h>
bec39cab
AC
23168_ACEOF
23169rm -f conftest.$ac_objext
23170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23171 (eval $ac_compile) 2>conftest.er1
23172 ac_status=$?
23173 grep -v '^ *+' conftest.er1 >conftest.err
23174 rm -f conftest.er1
23175 cat conftest.err >&5
23176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177 (exit $ac_status); } &&
b4e70030
JB
23178 { ac_try='test -z "$ac_c_werror_flag"
23179 || test ! -s conftest.err'
bec39cab
AC
23180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23181 (eval $ac_try) 2>&5
23182 ac_status=$?
23183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23184 (exit $ac_status); }; } &&
23185 { ac_try='test -s conftest.$ac_objext'
23186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23187 (eval $ac_try) 2>&5
23188 ac_status=$?
23189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23190 (exit $ac_status); }; }; then
23191 ac_header_compiler=yes
23192else
23193 echo "$as_me: failed program was:" >&5
23194sed 's/^/| /' conftest.$ac_ext >&5
23195
b4e70030 23196ac_header_compiler=no
bec39cab
AC
23197fi
23198rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
23199echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23200echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
23201
23202# Is the header present?
b4e70030
JB
23203echo "$as_me:$LINENO: checking tk.h presence" >&5
23204echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
bec39cab
AC
23205cat >conftest.$ac_ext <<_ACEOF
23206/* confdefs.h. */
23207_ACEOF
23208cat confdefs.h >>conftest.$ac_ext
23209cat >>conftest.$ac_ext <<_ACEOF
23210/* end confdefs.h. */
23211#include <tk.h>
23212_ACEOF
23213if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23214 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23215 ac_status=$?
23216 grep -v '^ *+' conftest.er1 >conftest.err
23217 rm -f conftest.er1
23218 cat conftest.err >&5
23219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220 (exit $ac_status); } >/dev/null; then
23221 if test -s conftest.err; then
23222 ac_cpp_err=$ac_c_preproc_warn_flag
23223 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23224 else
23225 ac_cpp_err=
23226 fi
23227else
23228 ac_cpp_err=yes
3fc11d3e 23229fi
bec39cab
AC
23230if test -z "$ac_cpp_err"; then
23231 ac_header_preproc=yes
23232else
23233 echo "$as_me: failed program was:" >&5
23234sed 's/^/| /' conftest.$ac_ext >&5
23235
23236 ac_header_preproc=no
23237fi
23238rm -f conftest.err conftest.$ac_ext
b4e70030
JB
23239echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23240echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
23241
23242# So? What about this header?
23243case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23244 yes:no: )
23245 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
23246echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23247 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
23248echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
23249 ac_header_preproc=yes
23250 ;;
23251 no:yes:* )
23252 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
23253echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
23254 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
23255echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
23256 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
23257echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
23258 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
23259echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
23260 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
23261echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
23262 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
23263echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
23264 (
23265 cat <<\_ASBOX
23266## ------------------------------------------ ##
23267## Report this to the AC_PACKAGE_NAME lists. ##
23268## ------------------------------------------ ##
23269_ASBOX
23270 ) |
23271 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
23272 ;;
23273esac
b4e70030
JB
23274echo "$as_me:$LINENO: checking for tk.h" >&5
23275echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
bec39cab
AC
23276if test "${ac_cv_header_tk_h+set}" = set; then
23277 echo $ECHO_N "(cached) $ECHO_C" >&6
23278else
23279 ac_cv_header_tk_h=$ac_header_preproc
23280fi
b4e70030
JB
23281echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
23282echo "${ECHO_T}$ac_cv_header_tk_h" >&6
bec39cab 23283
3fc11d3e 23284fi
bec39cab 23285if test $ac_cv_header_tk_h = yes; then
3fc11d3e
JM
23286 ac_cv_c_tkh=installed
23287else
bec39cab 23288 ac_cv_c_tkh=""
3fc11d3e
JM
23289fi
23290
bec39cab 23291
3fc11d3e
JM
23292fi
23293
23294fi
23295
23296if test x"${ac_cv_c_tkh}" != x ; then
23297 no_tk=""
23298 if test x"${ac_cv_c_tkh}" = x"installed" ; then
b4e70030
JB
23299 echo "$as_me:$LINENO: result: is installed" >&5
23300echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
23301 TKHDIR=""
23302 else
b4e70030
JB
23303 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
23304echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
3fc11d3e
JM
23305 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
23306 TKHDIR="-I${ac_cv_c_tkh}"
23307 fi
23308else
23309 TKHDIR="# no Tk directory found"
bec39cab
AC
23310 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
23311echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
3fc11d3e
JM
23312 no_tk=true
23313fi
23314
23315
23316
bec39cab 23317
b4e70030
JB
23318echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
23319echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
23320if test x"${ac_cv_c_itclh}" = x ; then
23321 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
23322 if test -f $i/generic/itcl.h ; then
23323 ac_cv_c_itclh=`(cd $i/generic; pwd)`
23324 break
23325 fi
23326 done
23327fi
23328if test x"${ac_cv_c_itclh}" = x ; then
23329 ITCLHDIR="# no Itcl private headers found"
bec39cab
AC
23330 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
23331echo "$as_me: error: Can't find Itcl private headers" >&2;}
23332 { (exit 1); exit 1; }; }
3fc11d3e
JM
23333fi
23334if test x"${ac_cv_c_itclh}" != x ; then
23335 ITCLHDIR="-I${ac_cv_c_itclh}"
23336fi
23337# should always be here
23338# ITCLLIB="../itcl/itcl/unix/libitcl.a"
23339
23340#AC_SUBST(ITCLLIB)
23341
bec39cab 23342
b4e70030
JB
23343echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
23344echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
23345if test x"${ac_cv_c_itkh}" = x ; then
23346 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
23347 if test -f $i/generic/itk.h ; then
23348 ac_cv_c_itkh=`(cd $i/generic; pwd)`
23349 break
23350 fi
23351 done
23352fi
23353if test x"${ac_cv_c_itkh}" = x ; then
23354 ITKHDIR="# no Itk private headers found"
bec39cab
AC
23355 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
23356echo "$as_me: error: Can't find Itk private headers" >&2;}
23357 { (exit 1); exit 1; }; }
3fc11d3e
JM
23358fi
23359if test x"${ac_cv_c_itkh}" != x ; then
23360 ITKHDIR="-I${ac_cv_c_itkh}"
23361fi
23362# should always be here
23363# ITKLIB="../itcl/itk/unix/libitk.a"
23364
23365#AC_SUBST(ITKLIB)
23366
3fc11d3e 23367
dd2504ab
JM
23368
23369 # now look for Tk library stuff
23370
d91670b9 23371 tkdir="../tk/${configdir}/"
dd2504ab
JM
23372
23373 TK_DEPS="${tkdir}${TK_LIB_FILE}"
23374
3fc11d3e
JM
23375 # now look for Itcl library stuff
23376
bec39cab 23377
3fc11d3e
JM
23378#
23379# Ok, lets find the itcl configuration
bec39cab 23380# First, look for one uninstalled.
3fc11d3e
JM
23381# the alternative search directory is invoked by --with-itclconfig
23382#
23383
23384if test x"${no_itcl}" = x ; then
23385 # we reset no_itcl in case something fails here
23386 no_itcl=true
bec39cab 23387
b4e70030 23388# Check whether --with-itclconfig or --without-itclconfig was given.
3fc11d3e 23389if test "${with_itclconfig+set}" = set; then
b4e70030
JB
23390 withval="$with_itclconfig"
23391 with_itclconfig=${withval}
23392fi;
23393 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
23394echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
bec39cab
AC
23395 if test "${ac_cv_c_itclconfig+set}" = set; then
23396 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 23397else
bec39cab 23398
3fc11d3e
JM
23399
23400 # First check to see if --with-itclconfig was specified.
23401 if test x"${with_itclconfig}" != x ; then
23402 if test -f "${with_itclconfig}/itclConfig.sh" ; then
23403 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
23404 else
bec39cab
AC
23405 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
23406echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
23407 { (exit 1); exit 1; }; }
3fc11d3e
JM
23408 fi
23409 fi
23410
23411 # then check for a private Itcl library
23412 if test x"${ac_cv_c_itclconfig}" = x ; then
23413 for i in \
23414 ../itcl/itcl \
23415 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
23416 ../../itcl \
23417 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
23418 ../../../itcl \
23419 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
23420 if test -f "$i/itclConfig.sh" ; then
23421 ac_cv_c_itclconfig=`(cd $i; pwd)`
23422 break
23423 fi
23424 done
23425 fi
23426 # check in a few common install locations
23427 if test x"${ac_cv_c_itclconfig}" = x ; then
23428 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
23429 if test -f "$i/itclConfig.sh" ; then
23430 ac_cv_c_itclconfig=`(cd $i; pwd)`
23431 break
23432 fi
23433 done
23434 fi
23435 # check in a few other private locations
23436 if test x"${ac_cv_c_itclconfig}" = x ; then
23437 for i in \
23438 ${srcdir}/../itcl/itcl \
23439 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
23440 if test -f "$i/itclConfig.sh" ; then
23441 ac_cv_c_itclconfig=`(cd $i; pwd)`
23442 break
23443 fi
23444 done
23445 fi
bec39cab 23446
3fc11d3e
JM
23447fi
23448
23449 if test x"${ac_cv_c_itclconfig}" = x ; then
23450 ITCLCONFIG="# no Itcl configs found"
bec39cab
AC
23451 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
23452echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
3fc11d3e
JM
23453 else
23454 no_itcl=
23455 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
b4e70030
JB
23456 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
23457echo "${ECHO_T}found $ITCLCONFIG" >&6
3fc11d3e
JM
23458 fi
23459fi
23460
23461 if test -z "${no_itcl}"; then
bec39cab 23462
3fc11d3e
JM
23463 if test -f "$ITCLCONFIG" ; then
23464 . $ITCLCONFIG
23465 fi
23466
3fc11d3e 23467
3fc11d3e
JM
23468
23469
bec39cab
AC
23470
23471
23472
23473
23474
23475
23476
3fc11d3e
JM
23477
23478 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
b381d62d 23479 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
3fc11d3e
JM
23480 fi
23481
bec39cab 23482
3fc11d3e 23483 # now look for Itk library stuff
bec39cab 23484
3fc11d3e
JM
23485#
23486# Ok, lets find the itk configuration
bec39cab 23487# First, look for one uninstalled.
3fc11d3e
JM
23488# the alternative search directory is invoked by --with-itkconfig
23489#
23490
23491if test x"${no_itk}" = x ; then
23492 # we reset no_itk in case something fails here
23493 no_itk=true
bec39cab 23494
b4e70030 23495# Check whether --with-itkconfig or --without-itkconfig was given.
3fc11d3e 23496if test "${with_itkconfig+set}" = set; then
b4e70030
JB
23497 withval="$with_itkconfig"
23498 with_itkconfig=${withval}
23499fi;
23500 echo "$as_me:$LINENO: checking for Itk configuration" >&5
23501echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
bec39cab
AC
23502 if test "${ac_cv_c_itkconfig+set}" = set; then
23503 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 23504else
bec39cab 23505
3fc11d3e
JM
23506
23507 # First check to see if --with-itkconfig was specified.
23508 if test x"${with_itkconfig}" != x ; then
23509 if test -f "${with_itkconfig}/itkConfig.sh" ; then
23510 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
23511 else
bec39cab
AC
23512 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
23513echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
23514 { (exit 1); exit 1; }; }
3fc11d3e
JM
23515 fi
23516 fi
23517
23518 # then check for a private Itk library
23519 if test x"${ac_cv_c_itkconfig}" = x ; then
23520 for i in \
23521 ../itcl/itk \
23522 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
23523 ../../itk \
23524 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
23525 ../../../itk \
23526 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
23527 if test -f "$i/itkConfig.sh" ; then
23528 ac_cv_c_itkconfig=`(cd $i; pwd)`
23529 break
23530 fi
23531 done
23532 fi
23533 # check in a few common install locations
23534 if test x"${ac_cv_c_itkconfig}" = x ; then
23535 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
23536 if test -f "$i/itkConfig.sh" ; then
23537 ac_cv_c_itkconfig=`(cd $i; pwd)`
23538 break
23539 fi
23540 done
23541 fi
23542 # check in a few other private locations
23543 if test x"${ac_cv_c_itkconfig}" = x ; then
23544 for i in \
23545 ${srcdir}/../itcl/itk \
23546 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
23547 if test -f "$i/itkConfig.sh" ; then
23548 ac_cv_c_itkconfig=`(cd $i; pwd)`
23549 break
23550 fi
23551 done
23552 fi
bec39cab 23553
3fc11d3e
JM
23554fi
23555
23556 if test x"${ac_cv_c_itkconfig}" = x ; then
23557 ITKCONFIG="# no Itk configs found"
bec39cab
AC
23558 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
23559echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
3fc11d3e
JM
23560 else
23561 no_itk=
23562 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
b4e70030
JB
23563 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
23564echo "${ECHO_T}found $ITKCONFIG" >&6
3fc11d3e
JM
23565 fi
23566fi
23567
23568
bec39cab
AC
23569 if test -z "${no_itcl}"; then
23570
23571 if test -f "$ITKCONFIG" ; then
23572 . $ITKCONFIG
23573 fi
23574
23575
23576
23577
23578
23579
3fc11d3e 23580
3fc11d3e 23581
3fc11d3e
JM
23582
23583
3fc11d3e
JM
23584
23585
3fc11d3e 23586 ITKLIB="${ITK_BUILD_LIB_SPEC}"
b381d62d 23587 ITK_DEPS="${ITK_LIB_FULL_PATH}"
3fc11d3e
JM
23588 fi
23589
4226a5a5 23590 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
3fc11d3e
JM
23591
23592 # Include some libraries that Tcl and Tk want.
b2a1bd4f 23593 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
3fc11d3e
JM
23594 # Yes, the ordering seems wrong here. But it isn't.
23595 # TK_LIBS is the list of libraries that need to be linked
23596 # after Tcl/Tk. Note that this isn't put into LIBS. If it
23597 # were in LIBS then any link tests after this point would
23598 # try to include things like `$(LIBGUI)', which wouldn't work.
23599 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
4226a5a5
FN
23600
23601 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
23602 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
23603 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
33f8ca73
AC
23604 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
23605 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
23606 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
23607 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
3fc11d3e
JM
23608
23609 if test x$gdb_cv_os_cygwin = xyes; then
23610 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
23611 WIN32LDAPP="-Wl,--subsystem,console"
23612 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
23613 fi
23614 fi
23615 fi
ffc6a242 23616
b4e70030
JB
23617
23618
23619subdirs="$subdirs gdbtk"
3ace7edb 23620
3fc11d3e
JM
23621fi
23622
23623
23624
23625
23626
23627
23628
23629
23630
23631
23632
23633
23634
dd2504ab 23635
b4e70030
JB
23636echo "$as_me:$LINENO: checking for X" >&5
23637echo $ECHO_N "checking for X... $ECHO_C" >&6
bec39cab 23638
c906108c 23639
b4e70030 23640# Check whether --with-x or --without-x was given.
c906108c 23641if test "${with_x+set}" = set; then
b4e70030 23642 withval="$with_x"
c906108c 23643
b4e70030 23644fi;
c906108c
SS
23645# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23646if test "x$with_x" = xno; then
23647 # The user explicitly disabled X.
23648 have_x=disabled
23649else
23650 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
23651 # Both variables are already set.
23652 have_x=yes
23653 else
bec39cab
AC
23654 if test "${ac_cv_have_x+set}" = set; then
23655 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
23656else
23657 # One or both of the vars are not set, and there is no cached value.
bec39cab 23658ac_x_includes=no ac_x_libraries=no
b4e70030 23659rm -fr conftest.dir
bec39cab
AC
23660if mkdir conftest.dir; then
23661 cd conftest.dir
c906108c 23662 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
bec39cab 23663 cat >Imakefile <<'_ACEOF'
c906108c
SS
23664acfindx:
23665 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
bec39cab 23666_ACEOF
b4e70030 23667 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
c906108c
SS
23668 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23669 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
23670 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23671 for ac_extension in a so sl; do
23672 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
bec39cab
AC
23673 test -f $ac_im_libdir/libX11.$ac_extension; then
23674 ac_im_usrlibdir=$ac_im_libdir; break
c906108c
SS
23675 fi
23676 done
23677 # Screen out bogus values from the imake configuration. They are
23678 # bogus both because they are the default anyway, and because
23679 # using them would break gcc on systems where it needs fixed includes.
bec39cab 23680 case $ac_im_incroot in
b4e70030 23681 /usr/include) ;;
bec39cab 23682 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
c906108c 23683 esac
bec39cab 23684 case $ac_im_usrlibdir in
c906108c 23685 /usr/lib | /lib) ;;
bec39cab 23686 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
c906108c
SS
23687 esac
23688 fi
23689 cd ..
b4e70030 23690 rm -fr conftest.dir
c906108c
SS
23691fi
23692
bec39cab
AC
23693# Standard set of common directories for X headers.
23694# Check X11 before X11Rn because it is often a symlink to the current release.
23695ac_x_header_dirs='
23696/usr/X11/include
23697/usr/X11R6/include
23698/usr/X11R5/include
23699/usr/X11R4/include
23700
23701/usr/include/X11
23702/usr/include/X11R6
23703/usr/include/X11R5
23704/usr/include/X11R4
23705
23706/usr/local/X11/include
23707/usr/local/X11R6/include
23708/usr/local/X11R5/include
23709/usr/local/X11R4/include
23710
23711/usr/local/include/X11
23712/usr/local/include/X11R6
23713/usr/local/include/X11R5
23714/usr/local/include/X11R4
23715
23716/usr/X386/include
23717/usr/x386/include
23718/usr/XFree86/include/X11
23719
23720/usr/include
23721/usr/local/include
23722/usr/unsupported/include
23723/usr/athena/include
23724/usr/local/x11r5/include
23725/usr/lpp/Xamples/include
23726
23727/usr/openwin/include
23728/usr/openwin/share/include'
23729
23730if test "$ac_x_includes" = no; then
59f80f10 23731 # Guess where to find include files, by looking for Intrinsic.h.
c906108c 23732 # First, try using that file with no special directory specified.
bec39cab
AC
23733 cat >conftest.$ac_ext <<_ACEOF
23734/* confdefs.h. */
23735_ACEOF
23736cat confdefs.h >>conftest.$ac_ext
23737cat >>conftest.$ac_ext <<_ACEOF
23738/* end confdefs.h. */
59f80f10 23739#include <X11/Intrinsic.h>
bec39cab
AC
23740_ACEOF
23741if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23742 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23743 ac_status=$?
23744 grep -v '^ *+' conftest.er1 >conftest.err
23745 rm -f conftest.er1
23746 cat conftest.err >&5
23747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23748 (exit $ac_status); } >/dev/null; then
23749 if test -s conftest.err; then
23750 ac_cpp_err=$ac_c_preproc_warn_flag
23751 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23752 else
23753 ac_cpp_err=
23754 fi
23755else
23756 ac_cpp_err=yes
23757fi
23758if test -z "$ac_cpp_err"; then
c906108c
SS
23759 # We can compile using X headers with no special include directory.
23760ac_x_includes=
23761else
bec39cab
AC
23762 echo "$as_me: failed program was:" >&5
23763sed 's/^/| /' conftest.$ac_ext >&5
23764
23765 for ac_dir in $ac_x_header_dirs; do
59f80f10 23766 if test -r "$ac_dir/X11/Intrinsic.h"; then
bec39cab
AC
23767 ac_x_includes=$ac_dir
23768 break
23769 fi
23770done
c906108c 23771fi
bec39cab
AC
23772rm -f conftest.err conftest.$ac_ext
23773fi # $ac_x_includes = no
c906108c 23774
bec39cab 23775if test "$ac_x_libraries" = no; then
c906108c 23776 # Check for the libraries.
c906108c
SS
23777 # See if we find them without any special options.
23778 # Don't add to $LIBS permanently.
bec39cab 23779 ac_save_LIBS=$LIBS
4e8d927d 23780 LIBS="-lXt $LIBS"
bec39cab
AC
23781 cat >conftest.$ac_ext <<_ACEOF
23782/* confdefs.h. */
23783_ACEOF
23784cat confdefs.h >>conftest.$ac_ext
23785cat >>conftest.$ac_ext <<_ACEOF
23786/* end confdefs.h. */
59f80f10 23787#include <X11/Intrinsic.h>
bec39cab
AC
23788int
23789main ()
23790{
59f80f10 23791XtMalloc (0)
bec39cab
AC
23792 ;
23793 return 0;
23794}
23795_ACEOF
23796rm -f conftest.$ac_objext conftest$ac_exeext
23797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23798 (eval $ac_link) 2>conftest.er1
23799 ac_status=$?
23800 grep -v '^ *+' conftest.er1 >conftest.err
23801 rm -f conftest.er1
23802 cat conftest.err >&5
23803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23804 (exit $ac_status); } &&
b4e70030
JB
23805 { ac_try='test -z "$ac_c_werror_flag"
23806 || test ! -s conftest.err'
bec39cab
AC
23807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23808 (eval $ac_try) 2>&5
23809 ac_status=$?
23810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23811 (exit $ac_status); }; } &&
23812 { ac_try='test -s conftest$ac_exeext'
23813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23814 (eval $ac_try) 2>&5
23815 ac_status=$?
23816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23817 (exit $ac_status); }; }; then
23818 LIBS=$ac_save_LIBS
c906108c
SS
23819# We can link X programs with no special library path.
23820ac_x_libraries=
23821else
bec39cab
AC
23822 echo "$as_me: failed program was:" >&5
23823sed 's/^/| /' conftest.$ac_ext >&5
23824
b4e70030 23825LIBS=$ac_save_LIBS
bec39cab 23826for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
c906108c 23827do
bec39cab 23828 # Don't even attempt the hair of trying to link an X program!
c906108c 23829 for ac_extension in a so sl; do
b4e70030 23830 if test -r $ac_dir/libXt.$ac_extension; then
c906108c
SS
23831 ac_x_libraries=$ac_dir
23832 break 2
23833 fi
23834 done
23835done
23836fi
bec39cab
AC
23837rm -f conftest.err conftest.$ac_objext \
23838 conftest$ac_exeext conftest.$ac_ext
23839fi # $ac_x_libraries = no
c906108c 23840
bec39cab 23841if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
c906108c
SS
23842 # Didn't find X anywhere. Cache the known absence of X.
23843 ac_cv_have_x="have_x=no"
23844else
23845 # Record where we found X for the cache.
23846 ac_cv_have_x="have_x=yes \
bec39cab 23847 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
c906108c
SS
23848fi
23849fi
bec39cab 23850
c906108c
SS
23851 fi
23852 eval "$ac_cv_have_x"
23853fi # $with_x != no
23854
23855if test "$have_x" != yes; then
b4e70030
JB
23856 echo "$as_me:$LINENO: result: $have_x" >&5
23857echo "${ECHO_T}$have_x" >&6
c906108c
SS
23858 no_x=yes
23859else
23860 # If each of the values was on the command line, it overrides each guess.
23861 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23862 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23863 # Update the cache value to reflect the command line values.
23864 ac_cv_have_x="have_x=yes \
23865 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
b4e70030
JB
23866 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
23867echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
c906108c
SS
23868fi
23869
23870
9cc52bde
MK
23871# Check whether we should enable the TUI, but only do so if we really
23872# can.
23873if test x"$enable_tui" = xyes; then
23874 if test -d $srcdir/tui; then
23875 if test "$ac_cv_search_waddstr" != no; then
23876 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
23877 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
23878 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
23879 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
23880 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
23881 CONFIG_ALL="${CONFIG_ALL} all-tui"
23882 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
23883 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
23884 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
23885 else
bec39cab
AC
23886 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
23887echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9cc52bde
MK
23888 fi
23889 fi
23890fi
23891
bec39cab 23892# Unlike the sim directory, whether a simulator is linked is controlled by
9b624dbe 23893# presence of a gdb_sim definition in the target configure.tgt entry.
7a292a7a
SS
23894# This code just checks for a few cases where we'd like to ignore those
23895# definitions, even when they're present in the '.mt' file. These cases
23896# are when --disable-sim is specified, or if the simulator directory is
6c5cfe5b 23897# not part of the source tree.
7a292a7a 23898#
b4e70030 23899# Check whether --enable-sim or --disable-sim was given.
7a292a7a 23900if test "${enable_sim+set}" = set; then
b4e70030
JB
23901 enableval="$enable_sim"
23902 echo "enable_sim = $enable_sim";
7a292a7a
SS
23903 echo "enableval = ${enableval}";
23904 case "${enableval}" in
23905 yes) ignore_sim=false ;;
23906 no) ignore_sim=true ;;
23907 *) ignore_sim=false ;;
23908 esac
23909else
23910 ignore_sim=false
b4e70030 23911fi;
7a292a7a
SS
23912
23913if test ! -d "${srcdir}/../sim"; then
23914 ignore_sim=true
23915fi
23916
9b624dbe
UW
23917SIM=
23918SIM_OBS=
23919if test "${ignore_sim}" = "false"; then
23920 if test x"${gdb_sim}" != x ; then
23921 SIM="${gdb_sim}"
23922 SIM_OBS="remote-sim.o"
60ca704f
SE
23923
23924cat >>confdefs.h <<\_ACEOF
7a292a7a 23925#define WITH_SIM 1
bec39cab 23926_ACEOF
7a292a7a 23927
9b624dbe 23928 fi
7a292a7a
SS
23929fi
23930
23931
23932
c906108c
SS
23933
23934
23935
23936
23937
23938
dfcd3bfb 23939
e56ac5c3
AC
23940
23941
b3a90332
AC
23942
23943
c35f4ffc 23944# List of host floatformats.
bec39cab
AC
23945
23946cat >>confdefs.h <<_ACEOF
c35f4ffc 23947#define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
bec39cab 23948_ACEOF
c35f4ffc 23949
bec39cab
AC
23950
23951cat >>confdefs.h <<_ACEOF
c35f4ffc 23952#define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
bec39cab
AC
23953_ACEOF
23954
c35f4ffc 23955
bec39cab 23956cat >>confdefs.h <<_ACEOF
c35f4ffc 23957#define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
bec39cab 23958_ACEOF
c35f4ffc
AC
23959
23960
c906108c
SS
23961# target_subdir is used by the testsuite to find the target libraries.
23962target_subdir=
23963if test "${host}" != "${target}"; then
23964 target_subdir="${target_alias}/"
23965fi
23966
23967
23968frags=
771b4502 23969if test "${gdb_native}" = "yes"; then
0dad8a66
MK
23970 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
23971 if test ! -f ${host_makefile_frag}; then
bec39cab
AC
23972 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
23973echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
23974 { (exit 1); exit 1; }; }
0dad8a66
MK
23975 fi
23976 frags="$frags $host_makefile_frag"
23977else
23978 host_makefile_frag=/dev/null
c906108c 23979fi
c906108c 23980
c906108c
SS
23981
23982
23983
771b4502 23984if test "${gdb_native}" = "yes"; then
a85f51e7
DJ
23985# We pick this up from the host configuration file (.mh) because we
23986# do not have a native configuration Makefile fragment.
c906108c
SS
23987nativefile=`sed -n '
23988s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
23989' ${host_makefile_frag}`
c906108c
SS
23990fi
23991
23992
b00a8037 23993if test x"${gdb_osabi}" != x ; then
bec39cab
AC
23994
23995cat >>confdefs.h <<_ACEOF
b00a8037 23996#define GDB_OSABI_DEFAULT $gdb_osabi
bec39cab 23997_ACEOF
b00a8037
DJ
23998
23999fi
24000
8dcde887 24001# Enable multi-ice-gdb-server.
b4e70030 24002# Check whether --enable-multi-ice or --disable-multi-ice was given.
8dcde887 24003if test "${enable_multi_ice+set}" = set; then
b4e70030
JB
24004 enableval="$enable_multi_ice"
24005 case $enableval in
8dcde887
MK
24006 yes | no)
24007 ;;
bec39cab
AC
24008 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
24009echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
24010 { (exit 1); exit 1; }; } ;;
8dcde887 24011 esac
b4e70030 24012fi;
4e8d927d 24013if test "x$enable_multi_ice" = xyes; then
b4e70030
JB
24014
24015
24016subdirs="$subdirs multi-ice"
3ace7edb 24017
a85f51e7
DJ
24018fi
24019
a13e2c95
UW
24020# We only build gdbserver automatically in a native configuration.
24021if test "$gdb_native" = "yes"; then
b4e70030
JB
24022 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
24023echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
8dcde887 24024 if test "x$build_gdbserver" = xyes; then
b4e70030
JB
24025 echo "$as_me:$LINENO: result: yes" >&5
24026echo "${ECHO_T}yes" >&6
24027
24028
24029subdirs="$subdirs gdbserver"
3ace7edb 24030
8dcde887 24031 else
b4e70030
JB
24032 echo "$as_me:$LINENO: result: no" >&5
24033echo "${ECHO_T}no" >&6
8dcde887
MK
24034 fi
24035fi
24036
db985757 24037# If nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
2c0fc042 24038# to an empty version.
c906108c
SS
24039
24040files=
24041links=
5a2402b8 24042
c906108c 24043rm -f nm.h
5a2402b8 24044nm_h=""
c906108c 24045if test "${nativefile}" != ""; then
5a2402b8 24046 nm_h=nm.h
0f475e27
AC
24047 case "${nativefile}" in
24048 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
24049 * ) GDB_NM_FILE="${nativefile}"
24050 esac
5a2402b8
AC
24051 files="${files} ${GDB_NM_FILE}"
24052 links="${links} nm.h"
60ca704f
SE
24053
24054cat >>confdefs.h <<_ACEOF
b78960be 24055#define GDB_NM_FILE "${GDB_NM_FILE}"
bec39cab 24056_ACEOF
5a2402b8 24057
c906108c 24058fi
5a2402b8
AC
24059
24060
bec39cab
AC
24061ac_sources="$files"
24062ac_dests="$links"
24063while test -n "$ac_sources"; do
24064 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
24065 set $ac_sources; ac_source=$1; shift; ac_sources=$*
24066 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
24067done
b4e70030 24068 ac_config_links="$ac_config_links $ac_config_links_1"
c906108c
SS
24069
24070
c906108c
SS
24071
24072
c906108c 24073
c906108c 24074
bec39cab
AC
24075cat >>confdefs.h <<\_ACEOF
24076#define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
24077_ACEOF
c906108c 24078
234b45d4 24079
234b45d4
KB
24080
24081
24082
b4e70030 24083# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
234b45d4 24084if test "${with_libiconv_prefix+set}" = set; then
b4e70030
JB
24085 withval="$with_libiconv_prefix"
24086
234b45d4
KB
24087 for dir in `echo "$withval" | tr : ' '`; do
24088 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
24089 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
24090 done
234b45d4 24091
b4e70030 24092fi;
234b45d4 24093
b4e70030
JB
24094 echo "$as_me:$LINENO: checking for iconv" >&5
24095echo $ECHO_N "checking for iconv... $ECHO_C" >&6
bec39cab
AC
24096if test "${am_cv_func_iconv+set}" = set; then
24097 echo $ECHO_N "(cached) $ECHO_C" >&6
234b45d4 24098else
bec39cab 24099
234b45d4
KB
24100 am_cv_func_iconv="no, consider installing GNU libiconv"
24101 am_cv_lib_iconv=no
bec39cab
AC
24102 cat >conftest.$ac_ext <<_ACEOF
24103/* confdefs.h. */
24104_ACEOF
24105cat confdefs.h >>conftest.$ac_ext
24106cat >>conftest.$ac_ext <<_ACEOF
24107/* end confdefs.h. */
234b45d4
KB
24108#include <stdlib.h>
24109#include <iconv.h>
bec39cab
AC
24110int
24111main ()
24112{
234b45d4
KB
24113iconv_t cd = iconv_open("","");
24114 iconv(cd,NULL,NULL,NULL,NULL);
24115 iconv_close(cd);
bec39cab
AC
24116 ;
24117 return 0;
24118}
24119_ACEOF
24120rm -f conftest.$ac_objext conftest$ac_exeext
24121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24122 (eval $ac_link) 2>conftest.er1
24123 ac_status=$?
24124 grep -v '^ *+' conftest.er1 >conftest.err
24125 rm -f conftest.er1
24126 cat conftest.err >&5
24127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24128 (exit $ac_status); } &&
b4e70030
JB
24129 { ac_try='test -z "$ac_c_werror_flag"
24130 || test ! -s conftest.err'
bec39cab
AC
24131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24132 (eval $ac_try) 2>&5
24133 ac_status=$?
24134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24135 (exit $ac_status); }; } &&
24136 { ac_try='test -s conftest$ac_exeext'
24137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24138 (eval $ac_try) 2>&5
24139 ac_status=$?
24140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24141 (exit $ac_status); }; }; then
234b45d4
KB
24142 am_cv_func_iconv=yes
24143else
bec39cab
AC
24144 echo "$as_me: failed program was:" >&5
24145sed 's/^/| /' conftest.$ac_ext >&5
24146
234b45d4 24147fi
bec39cab
AC
24148rm -f conftest.err conftest.$ac_objext \
24149 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
24150 if test "$am_cv_func_iconv" != yes; then
24151 am_save_LIBS="$LIBS"
24152 LIBS="$LIBS -liconv"
bec39cab
AC
24153 cat >conftest.$ac_ext <<_ACEOF
24154/* confdefs.h. */
24155_ACEOF
24156cat confdefs.h >>conftest.$ac_ext
24157cat >>conftest.$ac_ext <<_ACEOF
24158/* end confdefs.h. */
234b45d4
KB
24159#include <stdlib.h>
24160#include <iconv.h>
bec39cab
AC
24161int
24162main ()
24163{
234b45d4
KB
24164iconv_t cd = iconv_open("","");
24165 iconv(cd,NULL,NULL,NULL,NULL);
24166 iconv_close(cd);
bec39cab
AC
24167 ;
24168 return 0;
24169}
24170_ACEOF
24171rm -f conftest.$ac_objext conftest$ac_exeext
24172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24173 (eval $ac_link) 2>conftest.er1
24174 ac_status=$?
24175 grep -v '^ *+' conftest.er1 >conftest.err
24176 rm -f conftest.er1
24177 cat conftest.err >&5
24178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24179 (exit $ac_status); } &&
b4e70030
JB
24180 { ac_try='test -z "$ac_c_werror_flag"
24181 || test ! -s conftest.err'
bec39cab
AC
24182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24183 (eval $ac_try) 2>&5
24184 ac_status=$?
24185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24186 (exit $ac_status); }; } &&
24187 { ac_try='test -s conftest$ac_exeext'
24188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24189 (eval $ac_try) 2>&5
24190 ac_status=$?
24191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24192 (exit $ac_status); }; }; then
234b45d4
KB
24193 am_cv_lib_iconv=yes
24194 am_cv_func_iconv=yes
24195else
bec39cab
AC
24196 echo "$as_me: failed program was:" >&5
24197sed 's/^/| /' conftest.$ac_ext >&5
24198
234b45d4 24199fi
bec39cab
AC
24200rm -f conftest.err conftest.$ac_objext \
24201 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
24202 LIBS="$am_save_LIBS"
24203 fi
bec39cab
AC
24204
24205fi
b4e70030
JB
24206echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
24207echo "${ECHO_T}$am_cv_func_iconv" >&6
bec39cab
AC
24208 if test "$am_cv_func_iconv" = yes; then
24209
24210cat >>confdefs.h <<\_ACEOF
24211#define HAVE_ICONV 1
24212_ACEOF
24213
b4e70030
JB
24214 echo "$as_me:$LINENO: checking for iconv declaration" >&5
24215echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
bec39cab
AC
24216 if test "${am_cv_proto_iconv+set}" = set; then
24217 echo $ECHO_N "(cached) $ECHO_C" >&6
24218else
24219
24220 cat >conftest.$ac_ext <<_ACEOF
24221/* confdefs.h. */
24222_ACEOF
24223cat confdefs.h >>conftest.$ac_ext
24224cat >>conftest.$ac_ext <<_ACEOF
24225/* end confdefs.h. */
24226
24227#include <stdlib.h>
24228#include <iconv.h>
24229extern
24230#ifdef __cplusplus
24231"C"
24232#endif
24233#if defined(__STDC__) || defined(__cplusplus)
24234size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
24235#else
24236size_t iconv();
24237#endif
24238
24239int
24240main ()
24241{
24242
24243 ;
24244 return 0;
24245}
24246_ACEOF
24247rm -f conftest.$ac_objext
24248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24249 (eval $ac_compile) 2>conftest.er1
24250 ac_status=$?
24251 grep -v '^ *+' conftest.er1 >conftest.err
24252 rm -f conftest.er1
24253 cat conftest.err >&5
24254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24255 (exit $ac_status); } &&
b4e70030
JB
24256 { ac_try='test -z "$ac_c_werror_flag"
24257 || test ! -s conftest.err'
bec39cab
AC
24258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24259 (eval $ac_try) 2>&5
24260 ac_status=$?
24261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24262 (exit $ac_status); }; } &&
24263 { ac_try='test -s conftest.$ac_objext'
24264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24265 (eval $ac_try) 2>&5
24266 ac_status=$?
24267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24268 (exit $ac_status); }; }; then
24269 am_cv_proto_iconv_arg1=""
24270else
24271 echo "$as_me: failed program was:" >&5
24272sed 's/^/| /' conftest.$ac_ext >&5
24273
b4e70030 24274am_cv_proto_iconv_arg1="const"
bec39cab
AC
24275fi
24276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24277 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);"
24278fi
24279
24280 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
b4e70030 24281 echo "$as_me:$LINENO: result: ${ac_t:-
bec39cab
AC
24282 }$am_cv_proto_iconv" >&5
24283echo "${ECHO_T}${ac_t:-
b4e70030 24284 }$am_cv_proto_iconv" >&6
bec39cab
AC
24285
24286cat >>confdefs.h <<_ACEOF
24287#define ICONV_CONST $am_cv_proto_iconv_arg1
24288_ACEOF
24289
24290 fi
24291 LIBICONV=
24292 if test "$am_cv_lib_iconv" = yes; then
24293 LIBICONV="-liconv"
24294 fi
24295
24296
24297
b4e70030
JB
24298 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
24299 ac_config_commands="$ac_config_commands default"
bec39cab
AC
24300cat >confcache <<\_ACEOF
24301# This file is a shell script that caches the results of configure
24302# tests run on this system so they can be shared between configure
24303# scripts and configure runs, see configure's option --config-cache.
24304# It is not useful on other systems. If it contains results you don't
24305# want to keep, you may remove or edit it.
24306#
24307# config.status only pays attention to the cache file if you give it
24308# the --recheck option to rerun configure.
24309#
24310# `ac_cv_env_foo' variables (set or unset) will be overridden when
24311# loading this file, other *unset* `ac_cv_foo' will be assigned the
24312# following values.
24313
24314_ACEOF
24315
24316# The following way of writing the cache mishandles newlines in values,
24317# but we know of no workaround that is simple, portable, and efficient.
b4e70030 24318# So, don't put newlines in cache variables' values.
bec39cab
AC
24319# Ultrix sh set writes to stderr and can't be redirected directly,
24320# and sets the high bit in the cache file unless we assign to the vars.
b4e70030 24321{
bec39cab 24322 (set) 2>&1 |
b4e70030
JB
24323 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24324 *ac_space=\ *)
bec39cab
AC
24325 # `set' does not quote correctly, so add quotes (double-quote
24326 # substitution turns \\\\ into \\, and sed turns \\ into \).
24327 sed -n \
24328 "s/'/'\\\\''/g;
24329 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
b4e70030 24330 ;;
bec39cab
AC
24331 *)
24332 # `set' quotes correctly as required by POSIX, so do not add quotes.
b4e70030
JB
24333 sed -n \
24334 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
bec39cab 24335 ;;
b4e70030
JB
24336 esac;
24337} |
bec39cab
AC
24338 sed '
24339 t clear
b4e70030 24340 : clear
bec39cab
AC
24341 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24342 t end
b4e70030
JB
24343 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24344 : end' >>confcache
bec39cab
AC
24345if diff $cache_file confcache >/dev/null 2>&1; then :; else
24346 if test -w $cache_file; then
b4e70030 24347 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
bec39cab
AC
24348 cat confcache >$cache_file
24349 else
b4e70030 24350 echo "not updating unwritable cache $cache_file"
bec39cab
AC
24351 fi
24352fi
24353rm -f confcache
24354
24355test "x$prefix" = xNONE && prefix=$ac_default_prefix
24356# Let make expand exec_prefix.
24357test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24358
b4e70030
JB
24359# VPATH may cause trouble with some makes, so we remove $(srcdir),
24360# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24361# trailing colons and then remove the whole line if VPATH becomes empty
24362# (actually we leave an empty line to preserve line numbers).
24363if test "x$srcdir" = x.; then
24364 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24365s/:*\$(srcdir):*/:/;
24366s/:*\${srcdir}:*/:/;
24367s/:*@srcdir@:*/:/;
24368s/^\([^=]*=[ ]*\):*/\1/;
24369s/:*$//;
24370s/^[^=]*=[ ]*$//;
24371}'
24372fi
24373
bec39cab
AC
24374DEFS=-DHAVE_CONFIG_H
24375
24376ac_libobjs=
24377ac_ltlibobjs=
24378for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24379 # 1. Remove the extension, and $U if already installed.
b4e70030
JB
24380 ac_i=`echo "$ac_i" |
24381 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24382 # 2. Add them.
24383 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24384 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
bec39cab
AC
24385done
24386LIBOBJS=$ac_libobjs
24387
24388LTLIBOBJS=$ac_ltlibobjs
24389
24390
85981d60
AC
24391if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24392 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
24393Usually this means the macro was only invoked conditionally." >&5
24394echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
24395Usually this means the macro was only invoked conditionally." >&2;}
24396 { (exit 1); exit 1; }; }
24397fi
bec39cab
AC
24398
24399: ${CONFIG_STATUS=./config.status}
24400ac_clean_files_save=$ac_clean_files
24401ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24402{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24403echo "$as_me: creating $CONFIG_STATUS" >&6;}
24404cat >$CONFIG_STATUS <<_ACEOF
24405#! $SHELL
24406# Generated by $as_me.
24407# Run this file to recreate the current configuration.
24408# Compiler output produced by configure, useful for debugging
24409# configure, is in config.log if it exists.
24410
24411debug=false
24412ac_cs_recheck=false
24413ac_cs_silent=false
24414SHELL=\${CONFIG_SHELL-$SHELL}
24415_ACEOF
24416
24417cat >>$CONFIG_STATUS <<\_ACEOF
24418## --------------------- ##
24419## M4sh Initialization. ##
24420## --------------------- ##
24421
24422# Be Bourne compatible
24423if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24424 emulate sh
24425 NULLCMD=:
24426 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24427 # is contrary to our usage. Disable this feature.
24428 alias -g '${1+"$@"}'='"$@"'
b4e70030
JB
24429elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24430 set -o posix
bec39cab
AC
24431fi
24432DUALCASE=1; export DUALCASE # for MKS sh
24433
24434# Support unset when possible.
24435if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24436 as_unset=unset
24437else
24438 as_unset=false
24439fi
24440
24441
24442# Work around bugs in pre-3.0 UWIN ksh.
b4e70030 24443$as_unset ENV MAIL MAILPATH
bec39cab
AC
24444PS1='$ '
24445PS2='> '
24446PS4='+ '
24447
24448# NLS nuisances.
24449for as_var in \
24450 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24451 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24452 LC_TELEPHONE LC_TIME
24453do
24454 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24455 eval $as_var=C; export $as_var
24456 else
b4e70030 24457 $as_unset $as_var
bec39cab
AC
24458 fi
24459done
24460
24461# Required to use basename.
b4e70030 24462if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
24463 as_expr=expr
24464else
24465 as_expr=false
24466fi
24467
b4e70030 24468if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
bec39cab
AC
24469 as_basename=basename
24470else
24471 as_basename=false
24472fi
24473
24474
24475# Name of the executable.
b4e70030 24476as_me=`$as_basename "$0" ||
bec39cab
AC
24477$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24478 X"$0" : 'X\(//\)$' \| \
b4e70030
JB
24479 X"$0" : 'X\(/\)$' \| \
24480 . : '\(.\)' 2>/dev/null ||
bec39cab 24481echo X/"$0" |
b4e70030
JB
24482 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24483 /^X\/\(\/\/\)$/{ s//\1/; q; }
24484 /^X\/\(\/\).*/{ s//\1/; q; }
24485 s/.*/./; q'`
bec39cab 24486
b4e70030
JB
24487
24488# PATH needs CR, and LINENO needs CR and PATH.
24489# Avoid depending upon Character Ranges.
24490as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24491as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24492as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24493as_cr_digits='0123456789'
24494as_cr_alnum=$as_cr_Letters$as_cr_digits
24495
24496# The user is always right.
24497if test "${PATH_SEPARATOR+set}" != set; then
24498 echo "#! /bin/sh" >conf$$.sh
24499 echo "exit 0" >>conf$$.sh
24500 chmod +x conf$$.sh
24501 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24502 PATH_SEPARATOR=';'
24503 else
24504 PATH_SEPARATOR=:
24505 fi
24506 rm -f conf$$.sh
24507fi
bec39cab
AC
24508
24509
b4e70030
JB
24510 as_lineno_1=$LINENO
24511 as_lineno_2=$LINENO
24512 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24513 test "x$as_lineno_1" != "x$as_lineno_2" &&
24514 test "x$as_lineno_3" = "x$as_lineno_2" || {
24515 # Find who we are. Look in the path if we contain no path at all
24516 # relative or not.
24517 case $0 in
24518 *[\\/]* ) as_myself=$0 ;;
24519 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24520for as_dir in $PATH
24521do
24522 IFS=$as_save_IFS
24523 test -z "$as_dir" && as_dir=.
24524 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24525done
bec39cab 24526
b4e70030
JB
24527 ;;
24528 esac
24529 # We did not find ourselves, most probably we were run as `sh COMMAND'
24530 # in which case we are not to be found in the path.
24531 if test "x$as_myself" = x; then
24532 as_myself=$0
24533 fi
24534 if test ! -f "$as_myself"; then
24535 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24536echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24537 { (exit 1); exit 1; }; }
24538 fi
24539 case $CONFIG_SHELL in
24540 '')
24541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24542for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24543do
24544 IFS=$as_save_IFS
24545 test -z "$as_dir" && as_dir=.
24546 for as_base in sh bash ksh sh5; do
24547 case $as_dir in
24548 /*)
24549 if ("$as_dir/$as_base" -c '
bec39cab
AC
24550 as_lineno_1=$LINENO
24551 as_lineno_2=$LINENO
b4e70030 24552 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
bec39cab 24553 test "x$as_lineno_1" != "x$as_lineno_2" &&
b4e70030
JB
24554 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24555 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24556 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24557 CONFIG_SHELL=$as_dir/$as_base
24558 export CONFIG_SHELL
24559 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24560 fi;;
24561 esac
24562 done
24563done
24564;;
24565 esac
bec39cab
AC
24566
24567 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24568 # uniformly replaced by the line number. The first 'sed' inserts a
b4e70030
JB
24569 # line-number line before each line; the second 'sed' does the real
24570 # work. The second script uses 'N' to pair each line-number line
24571 # with the numbered line, and appends trailing '-' during
24572 # substitution so that $LINENO is not a special case at line end.
bec39cab 24573 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
b4e70030
JB
24574 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24575 sed '=' <$as_myself |
bec39cab
AC
24576 sed '
24577 N
b4e70030
JB
24578 s,$,-,
24579 : loop
24580 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
bec39cab 24581 t loop
b4e70030
JB
24582 s,-$,,
24583 s,^['$as_cr_digits']*\n,,
bec39cab 24584 ' >$as_me.lineno &&
b4e70030
JB
24585 chmod +x $as_me.lineno ||
24586 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24587echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
bec39cab
AC
24588 { (exit 1); exit 1; }; }
24589
24590 # Don't try to exec as it changes $[0], causing all sort of problems
24591 # (the dirname of $[0] is not the place where we might find the
b4e70030
JB
24592 # original and so on. Autoconf is especially sensible to this).
24593 . ./$as_me.lineno
bec39cab
AC
24594 # Exit status is that of the last command.
24595 exit
24596}
24597
24598
b4e70030
JB
24599case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24600 *c*,-n*) ECHO_N= ECHO_C='
24601' ECHO_T=' ' ;;
24602 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24603 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
bec39cab
AC
24604esac
24605
b4e70030 24606if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
24607 as_expr=expr
24608else
24609 as_expr=false
24610fi
24611
24612rm -f conf$$ conf$$.exe conf$$.file
24613echo >conf$$.file
24614if ln -s conf$$.file conf$$ 2>/dev/null; then
b4e70030
JB
24615 # We could just check for DJGPP; but this test a) works b) is more generic
24616 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24617 if test -f conf$$.exe; then
24618 # Don't use ln at all; we don't have any links
bec39cab 24619 as_ln_s='cp -p'
b4e70030
JB
24620 else
24621 as_ln_s='ln -s'
24622 fi
bec39cab
AC
24623elif ln conf$$.file conf$$ 2>/dev/null; then
24624 as_ln_s=ln
24625else
24626 as_ln_s='cp -p'
24627fi
b4e70030 24628rm -f conf$$ conf$$.exe conf$$.file
bec39cab
AC
24629
24630if mkdir -p . 2>/dev/null; then
24631 as_mkdir_p=:
24632else
24633 test -d ./-p && rmdir ./-p
24634 as_mkdir_p=false
24635fi
24636
b4e70030 24637as_executable_p="test -f"
bec39cab
AC
24638
24639# Sed expression to map a string onto a valid CPP name.
24640as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24641
24642# Sed expression to map a string onto a valid variable name.
24643as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24644
24645
b4e70030
JB
24646# IFS
24647# We need space, tab and new line, in precisely that order.
24648as_nl='
24649'
24650IFS=" $as_nl"
24651
24652# CDPATH.
24653$as_unset CDPATH
24654
bec39cab
AC
24655exec 6>&1
24656
b4e70030 24657# Open the log real soon, to keep \$[0] and so on meaningful, and to
bec39cab 24658# report actual input values of CONFIG_FILES etc. instead of their
b4e70030
JB
24659# values after options handling. Logging --version etc. is OK.
24660exec 5>>config.log
24661{
24662 echo
24663 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24664## Running $as_me. ##
24665_ASBOX
24666} >&5
24667cat >&5 <<_CSEOF
24668
bec39cab 24669This file was extended by $as_me, which was
b4e70030 24670generated by GNU Autoconf 2.59. Invocation command line was
bec39cab
AC
24671
24672 CONFIG_FILES = $CONFIG_FILES
24673 CONFIG_HEADERS = $CONFIG_HEADERS
24674 CONFIG_LINKS = $CONFIG_LINKS
24675 CONFIG_COMMANDS = $CONFIG_COMMANDS
24676 $ $0 $@
24677
b4e70030
JB
24678_CSEOF
24679echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24680echo >&5
bec39cab
AC
24681_ACEOF
24682
24683# Files that config.status was made for.
b4e70030
JB
24684if test -n "$ac_config_files"; then
24685 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24686fi
234b45d4 24687
b4e70030
JB
24688if test -n "$ac_config_headers"; then
24689 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24690fi
24691
24692if test -n "$ac_config_links"; then
24693 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24694fi
24695
24696if test -n "$ac_config_commands"; then
24697 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24698fi
234b45d4 24699
bec39cab 24700cat >>$CONFIG_STATUS <<\_ACEOF
b4e70030 24701
bec39cab
AC
24702ac_cs_usage="\
24703\`$as_me' instantiates files from templates according to the
24704current configuration.
234b45d4 24705
bec39cab 24706Usage: $0 [OPTIONS] [FILE]...
234b45d4 24707
bec39cab
AC
24708 -h, --help print this help, then exit
24709 -V, --version print version number, then exit
24710 -q, --quiet do not print progress messages
24711 -d, --debug don't remove temporary files
24712 --recheck update $as_me by reconfiguring in the same conditions
24713 --file=FILE[:TEMPLATE]
24714 instantiate the configuration file FILE
24715 --header=FILE[:TEMPLATE]
24716 instantiate the configuration header FILE
234b45d4 24717
bec39cab
AC
24718Configuration files:
24719$config_files
234b45d4 24720
bec39cab
AC
24721Configuration headers:
24722$config_headers
234b45d4 24723
bec39cab
AC
24724Configuration links:
24725$config_links
234b45d4 24726
bec39cab
AC
24727Configuration commands:
24728$config_commands
24729
24730Report bugs to <bug-autoconf@gnu.org>."
4e8d927d 24731_ACEOF
b4e70030 24732
bec39cab
AC
24733cat >>$CONFIG_STATUS <<_ACEOF
24734ac_cs_version="\\
24735config.status
b4e70030 24736configured by $0, generated by GNU Autoconf 2.59,
bec39cab
AC
24737 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24738
b4e70030 24739Copyright (C) 2003 Free Software Foundation, Inc.
bec39cab
AC
24740This config.status script is free software; the Free Software Foundation
24741gives unlimited permission to copy, distribute and modify it."
b4e70030
JB
24742srcdir=$srcdir
24743INSTALL="$INSTALL"
bec39cab
AC
24744_ACEOF
24745
24746cat >>$CONFIG_STATUS <<\_ACEOF
24747# If no file are specified by the user, then we need to provide default
24748# value. By we need to know if files were specified by the user.
24749ac_need_defaults=:
24750while test $# != 0
24751do
24752 case $1 in
24753 --*=*)
b4e70030
JB
24754 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24755 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
bec39cab 24756 ac_shift=:
c906108c 24757 ;;
b4e70030 24758 -*)
bec39cab
AC
24759 ac_option=$1
24760 ac_optarg=$2
24761 ac_shift=shift
c906108c 24762 ;;
b4e70030
JB
24763 *) # This is not an option, so the user has probably given explicit
24764 # arguments.
24765 ac_option=$1
24766 ac_need_defaults=false;;
bec39cab 24767 esac
c906108c 24768
bec39cab
AC
24769 case $ac_option in
24770 # Handling of the options.
b4e70030
JB
24771_ACEOF
24772cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
24773 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24774 ac_cs_recheck=: ;;
b4e70030
JB
24775 --version | --vers* | -V )
24776 echo "$ac_cs_version"; exit 0 ;;
24777 --he | --h)
24778 # Conflict between --help and --header
24779 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24780Try \`$0 --help' for more information." >&5
24781echo "$as_me: error: ambiguous option: $1
24782Try \`$0 --help' for more information." >&2;}
24783 { (exit 1); exit 1; }; };;
24784 --help | --hel | -h )
24785 echo "$ac_cs_usage"; exit 0 ;;
24786 --debug | --d* | -d )
bec39cab
AC
24787 debug=: ;;
24788 --file | --fil | --fi | --f )
24789 $ac_shift
24790 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24791 ac_need_defaults=false;;
24792 --header | --heade | --head | --hea )
24793 $ac_shift
24794 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24795 ac_need_defaults=false;;
24796 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24797 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24798 ac_cs_silent=: ;;
c906108c 24799
bec39cab 24800 # This is an error.
b4e70030
JB
24801 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24802Try \`$0 --help' for more information." >&5
24803echo "$as_me: error: unrecognized option: $1
24804Try \`$0 --help' for more information." >&2;}
bec39cab 24805 { (exit 1); exit 1; }; } ;;
c906108c 24806
b4e70030 24807 *) ac_config_targets="$ac_config_targets $1" ;;
c906108c 24808
bec39cab
AC
24809 esac
24810 shift
24811done
c906108c 24812
bec39cab 24813ac_configure_extra_args=
c906108c 24814
bec39cab
AC
24815if $ac_cs_silent; then
24816 exec 6>/dev/null
24817 ac_configure_extra_args="$ac_configure_extra_args --silent"
24818fi
c906108c 24819
bec39cab
AC
24820_ACEOF
24821cat >>$CONFIG_STATUS <<_ACEOF
24822if \$ac_cs_recheck; then
b4e70030
JB
24823 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24824 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
bec39cab
AC
24825fi
24826
24827_ACEOF
24828
24829cat >>$CONFIG_STATUS <<_ACEOF
c906108c 24830#
b4e70030 24831# INIT-COMMANDS section.
c906108c 24832#
c906108c 24833
b4e70030 24834
4e8d927d
DJ
24835GCC="$GCC"
24836CC="$CC"
24837acx_cv_header_stdint="$acx_cv_header_stdint"
24838acx_cv_type_int8_t="$acx_cv_type_int8_t"
24839acx_cv_type_int16_t="$acx_cv_type_int16_t"
24840acx_cv_type_int32_t="$acx_cv_type_int32_t"
24841acx_cv_type_int64_t="$acx_cv_type_int64_t"
24842acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
24843ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
24844ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
24845ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
24846ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
24847ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
24848ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
24849ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
24850ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
24851
bec39cab
AC
24852
24853gdb_host_cpu=$gdb_host_cpu
bec39cab
AC
24854nativefile=$nativefile
24855
24856
24857_ACEOF
24858
4e8d927d 24859
b4e70030
JB
24860
24861cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab 24862for ac_config_target in $ac_config_targets
c906108c 24863do
b4e70030
JB
24864 case "$ac_config_target" in
24865 # Handling of arguments.
24866 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24867 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
24868 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
24869 "gdb_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;;
24870 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24871 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
bec39cab
AC
24872 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24873echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24874 { (exit 1); exit 1; }; };;
c906108c
SS
24875 esac
24876done
24877
bec39cab
AC
24878# If the user did not use the arguments to specify the items to instantiate,
24879# then the envvar interface is used. Set only those that are not.
24880# We use the long form for the default assignment because of an extremely
24881# bizarre bug on SunOS 4.1.3.
24882if $ac_need_defaults; then
24883 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24884 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24885 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
24886 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24887fi
24888
b4e70030
JB
24889# Have a temporary directory for convenience. Make it in the build tree
24890# simply because there is no reason to put it here, and in addition,
24891# creating and moving files from /tmp can sometimes cause problems.
24892# Create a temporary directory, and hook for its removal unless debugging.
24893$debug ||
24894{
24895 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24896 trap '{ (exit 1); exit 1; }' 1 2 13 15
24897}
4e8d927d 24898
b4e70030 24899# Create a (secure) tmp directory for tmp files.
4e8d927d 24900
b4e70030
JB
24901{
24902 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24903 test -n "$tmp" && test -d "$tmp"
24904} ||
24905{
24906 tmp=./confstat$$-$RANDOM
24907 (umask 077 && mkdir $tmp)
24908} ||
24909{
24910 echo "$me: cannot create a temporary directory in ." >&2
24911 { (exit 1); exit 1; }
24912}
4e8d927d 24913
b4e70030 24914_ACEOF
4e8d927d 24915
b4e70030 24916cat >>$CONFIG_STATUS <<_ACEOF
4e8d927d 24917
b4e70030
JB
24918#
24919# CONFIG_FILES section.
24920#
4e8d927d 24921
b4e70030
JB
24922# No need to generate the scripts if there are no CONFIG_FILES.
24923# This happens for instance when ./config.status config.h
24924if test -n "\$CONFIG_FILES"; then
24925 # Protect against being on the right side of a sed subst in config.status.
24926 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24927 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24928s,@SHELL@,$SHELL,;t t
24929s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24930s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24931s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24932s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24933s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24934s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24935s,@exec_prefix@,$exec_prefix,;t t
24936s,@prefix@,$prefix,;t t
24937s,@program_transform_name@,$program_transform_name,;t t
24938s,@bindir@,$bindir,;t t
24939s,@sbindir@,$sbindir,;t t
24940s,@libexecdir@,$libexecdir,;t t
24941s,@datadir@,$datadir,;t t
24942s,@sysconfdir@,$sysconfdir,;t t
24943s,@sharedstatedir@,$sharedstatedir,;t t
24944s,@localstatedir@,$localstatedir,;t t
24945s,@libdir@,$libdir,;t t
24946s,@includedir@,$includedir,;t t
24947s,@oldincludedir@,$oldincludedir,;t t
24948s,@infodir@,$infodir,;t t
24949s,@mandir@,$mandir,;t t
24950s,@build_alias@,$build_alias,;t t
24951s,@host_alias@,$host_alias,;t t
24952s,@target_alias@,$target_alias,;t t
24953s,@DEFS@,$DEFS,;t t
24954s,@ECHO_C@,$ECHO_C,;t t
24955s,@ECHO_N@,$ECHO_N,;t t
24956s,@ECHO_T@,$ECHO_T,;t t
24957s,@LIBS@,$LIBS,;t t
24958s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
24959s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
24960s,@MAINT@,$MAINT,;t t
24961s,@CC@,$CC,;t t
24962s,@CFLAGS@,$CFLAGS,;t t
24963s,@LDFLAGS@,$LDFLAGS,;t t
24964s,@CPPFLAGS@,$CPPFLAGS,;t t
24965s,@ac_ct_CC@,$ac_ct_CC,;t t
24966s,@EXEEXT@,$EXEEXT,;t t
24967s,@OBJEXT@,$OBJEXT,;t t
24968s,@CPP@,$CPP,;t t
24969s,@EGREP@,$EGREP,;t t
24970s,@build@,$build,;t t
24971s,@build_cpu@,$build_cpu,;t t
24972s,@build_vendor@,$build_vendor,;t t
24973s,@build_os@,$build_os,;t t
24974s,@host@,$host,;t t
24975s,@host_cpu@,$host_cpu,;t t
24976s,@host_vendor@,$host_vendor,;t t
24977s,@host_os@,$host_os,;t t
24978s,@target@,$target,;t t
24979s,@target_cpu@,$target_cpu,;t t
24980s,@target_vendor@,$target_vendor,;t t
24981s,@target_os@,$target_os,;t t
b4e70030 24982s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
24983s,@LIBINTL@,$LIBINTL,;t t
24984s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
24985s,@INCINTL@,$INCINTL,;t t
b4e70030 24986s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
24987s,@GMSGFMT@,$GMSGFMT,;t t
24988s,@POSUB@,$POSUB,;t t
b4e70030 24989s,@CATALOGS@,$CATALOGS,;t t
b4e70030 24990s,@DATADIRNAME@,$DATADIRNAME,;t t
b4e70030 24991s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
24992s,@GENCAT@,$GENCAT,;t t
24993s,@CATOBJEXT@,$CATOBJEXT,;t t
b4e70030
JB
24994s,@localedir@,$localedir,;t t
24995s,@PACKAGE@,$PACKAGE,;t t
24996s,@subdirs@,$subdirs,;t t
a4ce5b0d 24997s,@TARGET_OBS@,$TARGET_OBS,;t t
b4e70030
JB
24998s,@AWK@,$AWK,;t t
24999s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25000s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25001s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25002s,@LN_S@,$LN_S,;t t
20e95c23
DJ
25003s,@RANLIB@,$RANLIB,;t t
25004s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
b4e70030
JB
25005s,@YACC@,$YACC,;t t
25006s,@AR@,$AR,;t t
25007s,@ac_ct_AR@,$ac_ct_AR,;t t
25008s,@DLLTOOL@,$DLLTOOL,;t t
25009s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
25010s,@WINDRES@,$WINDRES,;t t
25011s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
25012s,@MIG@,$MIG,;t t
25013s,@ac_ct_MIG@,$ac_ct_MIG,;t t
6a30b0a5
AS
25014s,@READLINE@,$READLINE,;t t
25015s,@READLINE_DEPS@,$READLINE_DEPS,;t t
25016s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
3841debe
DJ
25017s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
25018s,@LIBEXPAT@,$LIBEXPAT,;t t
25019s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
20e95c23 25020s,@ALLOCA@,$ALLOCA,;t t
b4e70030
JB
25021s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
25022s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
25023s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
25024s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
25025s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
25026s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
25027s,@WIN32LIBS@,$WIN32LIBS,;t t
25028s,@LIBGUI@,$LIBGUI,;t t
25029s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
25030s,@WIN32LDAPP@,$WIN32LDAPP,;t t
25031s,@TCL_VERSION@,$TCL_VERSION,;t t
25032s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
25033s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
25034s,@TCL_CC@,$TCL_CC,;t t
25035s,@TCL_DEFS@,$TCL_DEFS,;t t
25036s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
25037s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
25038s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
25039s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
25040s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
25041s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
25042s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
25043s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
25044s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
25045s,@TCL_RANLIB@,$TCL_RANLIB,;t t
25046s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
25047s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
25048s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
25049s,@TK_VERSION@,$TK_VERSION,;t t
25050s,@TK_DEFS@,$TK_DEFS,;t t
25051s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
25052s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
25053s,@TK_XLIBSW@,$TK_XLIBSW,;t t
25054s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
25055s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
25056s,@TCLHDIR@,$TCLHDIR,;t t
25057s,@TKHDIR@,$TKHDIR,;t t
25058s,@ITCLHDIR@,$ITCLHDIR,;t t
25059s,@ITKHDIR@,$ITKHDIR,;t t
25060s,@ITCL_VERSION@,$ITCL_VERSION,;t t
25061s,@ITCL_DEFS@,$ITCL_DEFS,;t t
25062s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
25063s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
25064s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
25065s,@ITK_VERSION@,$ITK_VERSION,;t t
25066s,@ITK_DEFS@,$ITK_DEFS,;t t
25067s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
25068s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
25069s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
25070s,@X_CFLAGS@,$X_CFLAGS,;t t
25071s,@X_LDFLAGS@,$X_LDFLAGS,;t t
25072s,@X_LIBS@,$X_LIBS,;t t
25073s,@TCL_DEPS@,$TCL_DEPS,;t t
25074s,@TK_DEPS@,$TK_DEPS,;t t
25075s,@ITCLLIB@,$ITCLLIB,;t t
25076s,@ITCL_DEPS@,$ITCL_DEPS,;t t
25077s,@ITKLIB@,$ITKLIB,;t t
25078s,@ITK_DEPS@,$ITK_DEPS,;t t
25079s,@GDBTKLIBS@,$GDBTKLIBS,;t t
25080s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
25081s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
9b624dbe
UW
25082s,@SIM@,$SIM,;t t
25083s,@SIM_OBS@,$SIM_OBS,;t t
b4e70030
JB
25084s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
25085s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
25086s,@CONFIG_OBS@,$CONFIG_OBS,;t t
25087s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
25088s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
25089s,@CONFIG_ALL@,$CONFIG_ALL,;t t
25090s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
25091s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
25092s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
25093s,@target_subdir@,$target_subdir,;t t
25094s,@frags@,$frags,;t t
b4e70030
JB
25095s,@nm_h@,$nm_h,;t t
25096s,@LIBICONV@,$LIBICONV,;t t
25097s,@LIBOBJS@,$LIBOBJS,;t t
25098s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25099/@host_makefile_frag@/r $host_makefile_frag
25100s,@host_makefile_frag@,,;t t
b4e70030
JB
25101CEOF
25102
25103_ACEOF
25104
25105 cat >>$CONFIG_STATUS <<\_ACEOF
25106 # Split the substitutions into bite-sized pieces for seds with
25107 # small command number limits, like on Digital OSF/1 and HP-UX.
25108 ac_max_sed_lines=48
25109 ac_sed_frag=1 # Number of current file.
25110 ac_beg=1 # First line for current file.
25111 ac_end=$ac_max_sed_lines # Line after last line for current file.
25112 ac_more_lines=:
25113 ac_sed_cmds=
25114 while $ac_more_lines; do
25115 if test $ac_beg -gt 1; then
25116 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25117 else
25118 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4e8d927d 25119 fi
b4e70030
JB
25120 if test ! -s $tmp/subs.frag; then
25121 ac_more_lines=false
25122 else
25123 # The purpose of the label and of the branching condition is to
25124 # speed up the sed processing (if there are no `@' at all, there
25125 # is no need to browse any of the substitutions).
25126 # These are the two extra sed commands mentioned above.
25127 (echo ':t
25128 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25129 if test -z "$ac_sed_cmds"; then
25130 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25131 else
25132 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25133 fi
25134 ac_sed_frag=`expr $ac_sed_frag + 1`
25135 ac_beg=$ac_end
25136 ac_end=`expr $ac_end + $ac_max_sed_lines`
25137 fi
25138 done
25139 if test -z "$ac_sed_cmds"; then
25140 ac_sed_cmds=cat
25141 fi
25142fi # test -n "$CONFIG_FILES"
4e8d927d 25143
b4e70030
JB
25144_ACEOF
25145cat >>$CONFIG_STATUS <<\_ACEOF
25146for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25147 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25148 case $ac_file in
25149 - | *:- | *:-:* ) # input from stdin
25150 cat >$tmp/stdin
25151 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25152 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25153 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25154 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25155 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
25156 esac
25157
b4e70030
JB
25158 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25159 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
bec39cab
AC
25160$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25161 X"$ac_file" : 'X\(//\)[^/]' \| \
25162 X"$ac_file" : 'X\(//\)$' \| \
b4e70030
JB
25163 X"$ac_file" : 'X\(/\)' \| \
25164 . : '\(.\)' 2>/dev/null ||
bec39cab 25165echo X"$ac_file" |
b4e70030
JB
25166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25167 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25168 /^X\(\/\/\)$/{ s//\1/; q; }
25169 /^X\(\/\).*/{ s//\1/; q; }
25170 s/.*/./; q'`
25171 { if $as_mkdir_p; then
25172 mkdir -p "$ac_dir"
25173 else
25174 as_dir="$ac_dir"
bec39cab 25175 as_dirs=
b4e70030
JB
25176 while test ! -d "$as_dir"; do
25177 as_dirs="$as_dir $as_dirs"
25178 as_dir=`(dirname "$as_dir") 2>/dev/null ||
bec39cab
AC
25179$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25180 X"$as_dir" : 'X\(//\)[^/]' \| \
25181 X"$as_dir" : 'X\(//\)$' \| \
b4e70030
JB
25182 X"$as_dir" : 'X\(/\)' \| \
25183 . : '\(.\)' 2>/dev/null ||
bec39cab 25184echo X"$as_dir" |
b4e70030
JB
25185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25186 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25187 /^X\(\/\/\)$/{ s//\1/; q; }
25188 /^X\(\/\).*/{ s//\1/; q; }
25189 s/.*/./; q'`
bec39cab 25190 done
b4e70030
JB
25191 test ! -n "$as_dirs" || mkdir $as_dirs
25192 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25193echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
bec39cab 25194 { (exit 1); exit 1; }; }; }
b4e70030 25195
bec39cab
AC
25196 ac_builddir=.
25197
b4e70030 25198if test "$ac_dir" != .; then
bec39cab 25199 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
25200 # A "../" for each directory in $ac_dir_suffix.
25201 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25202else
25203 ac_dir_suffix= ac_top_builddir=
25204fi
bec39cab
AC
25205
25206case $srcdir in
b4e70030 25207 .) # No --srcdir option. We are building in place.
bec39cab 25208 ac_srcdir=.
b4e70030
JB
25209 if test -z "$ac_top_builddir"; then
25210 ac_top_srcdir=.
25211 else
25212 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25213 fi ;;
25214 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 25215 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
25216 ac_top_srcdir=$srcdir ;;
25217 *) # Relative path.
25218 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25219 ac_top_srcdir=$ac_top_builddir$srcdir ;;
bec39cab
AC
25220esac
25221
b4e70030
JB
25222# Do not use `cd foo && pwd` to compute absolute paths, because
25223# the directories may not exist.
25224case `pwd` in
25225.) ac_abs_builddir="$ac_dir";;
25226*)
25227 case "$ac_dir" in
25228 .) ac_abs_builddir=`pwd`;;
25229 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25230 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25231 esac;;
25232esac
25233case $ac_abs_builddir in
25234.) ac_abs_top_builddir=${ac_top_builddir}.;;
25235*)
25236 case ${ac_top_builddir}. in
25237 .) ac_abs_top_builddir=$ac_abs_builddir;;
25238 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25239 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25240 esac;;
25241esac
25242case $ac_abs_builddir in
25243.) ac_abs_srcdir=$ac_srcdir;;
25244*)
25245 case $ac_srcdir in
25246 .) ac_abs_srcdir=$ac_abs_builddir;;
25247 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25248 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25249 esac;;
25250esac
25251case $ac_abs_builddir in
25252.) ac_abs_top_srcdir=$ac_top_srcdir;;
25253*)
25254 case $ac_top_srcdir in
25255 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25256 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25257 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25258 esac;;
25259esac
c906108c 25260
c906108c 25261
bec39cab
AC
25262 case $INSTALL in
25263 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
b4e70030 25264 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c906108c 25265 esac
121ce6e5 25266
b4e70030
JB
25267 if test x"$ac_file" != x-; then
25268 { echo "$as_me:$LINENO: creating $ac_file" >&5
25269echo "$as_me: creating $ac_file" >&6;}
25270 rm -f "$ac_file"
25271 fi
25272 # Let's still pretend it is `configure' which instantiates (i.e., don't
25273 # use $as_me), people would be surprised to read:
25274 # /* config.h. Generated by config.status. */
25275 if test x"$ac_file" = x-; then
25276 configure_input=
25277 else
25278 configure_input="$ac_file. "
25279 fi
25280 configure_input=$configure_input"Generated from `echo $ac_file_in |
25281 sed 's,.*/,,'` by configure."
25282
25283 # First look for the input files in the build tree, otherwise in the
25284 # src tree.
25285 ac_file_inputs=`IFS=:
25286 for f in $ac_file_in; do
25287 case $f in
25288 -) echo $tmp/stdin ;;
25289 [\\/$]*)
25290 # Absolute (can't be DOS-style, as IFS=:)
25291 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25292echo "$as_me: error: cannot find input file: $f" >&2;}
25293 { (exit 1); exit 1; }; }
25294 echo "$f";;
25295 *) # Relative
25296 if test -f "$f"; then
25297 # Build tree
25298 echo "$f"
25299 elif test -f "$srcdir/$f"; then
25300 # Source tree
25301 echo "$srcdir/$f"
25302 else
25303 # /dev/null tree
25304 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25305echo "$as_me: error: cannot find input file: $f" >&2;}
25306 { (exit 1); exit 1; }; }
25307 fi;;
25308 esac
25309 done` || { (exit 1); exit 1; }
4e8d927d 25310_ACEOF
bec39cab
AC
25311cat >>$CONFIG_STATUS <<_ACEOF
25312 sed "$ac_vpsub
25313$extrasub
25314_ACEOF
25315cat >>$CONFIG_STATUS <<\_ACEOF
25316:t
25317/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
b4e70030
JB
25318s,@configure_input@,$configure_input,;t t
25319s,@srcdir@,$ac_srcdir,;t t
25320s,@abs_srcdir@,$ac_abs_srcdir,;t t
25321s,@top_srcdir@,$ac_top_srcdir,;t t
25322s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25323s,@builddir@,$ac_builddir,;t t
25324s,@abs_builddir@,$ac_abs_builddir,;t t
25325s,@top_builddir@,$ac_top_builddir,;t t
25326s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25327s,@INSTALL@,$ac_INSTALL,;t t
25328" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25329 rm -f $tmp/stdin
25330 if test x"$ac_file" != x-; then
25331 mv $tmp/out $ac_file
25332 else
25333 cat $tmp/out
25334 rm -f $tmp/out
25335 fi
25336
25337done
25338_ACEOF
25339cat >>$CONFIG_STATUS <<\_ACEOF
25340
25341#
25342# CONFIG_HEADER section.
25343#
25344
25345# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25346# NAME is the cpp macro being defined and VALUE is the value it is being given.
25347#
25348# ac_d sets the value in "#define NAME VALUE" lines.
25349ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25350ac_dB='[ ].*$,\1#\2'
25351ac_dC=' '
25352ac_dD=',;t'
25353# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25354ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25355ac_uB='$,\1#\2define\3'
25356ac_uC=' '
25357ac_uD=',;t'
25358
25359for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25360 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
bec39cab 25361 case $ac_file in
b4e70030
JB
25362 - | *:- | *:-:* ) # input from stdin
25363 cat >$tmp/stdin
25364 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25365 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25366 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25367 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25368 * ) ac_file_in=$ac_file.in ;;
c906108c 25369 esac
b4e70030
JB
25370
25371 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25372echo "$as_me: creating $ac_file" >&6;}
25373
25374 # First look for the input files in the build tree, otherwise in the
25375 # src tree.
25376 ac_file_inputs=`IFS=:
25377 for f in $ac_file_in; do
25378 case $f in
25379 -) echo $tmp/stdin ;;
25380 [\\/$]*)
25381 # Absolute (can't be DOS-style, as IFS=:)
25382 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25383echo "$as_me: error: cannot find input file: $f" >&2;}
25384 { (exit 1); exit 1; }; }
25385 # Do quote $f, to prevent DOS paths from being IFS'd.
25386 echo "$f";;
25387 *) # Relative
25388 if test -f "$f"; then
25389 # Build tree
25390 echo "$f"
25391 elif test -f "$srcdir/$f"; then
25392 # Source tree
25393 echo "$srcdir/$f"
25394 else
25395 # /dev/null tree
25396 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25397echo "$as_me: error: cannot find input file: $f" >&2;}
25398 { (exit 1); exit 1; }; }
25399 fi;;
25400 esac
25401 done` || { (exit 1); exit 1; }
25402 # Remove the trailing spaces.
25403 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
25404
25405_ACEOF
25406
25407# Transform confdefs.h into two sed scripts, `conftest.defines' and
25408# `conftest.undefs', that substitutes the proper values into
25409# config.h.in to produce config.h. The first handles `#define'
25410# templates, and the second `#undef' templates.
25411# And first: Protect against being on the right side of a sed subst in
25412# config.status. Protect against being in an unquoted here document
25413# in config.status.
25414rm -f conftest.defines conftest.undefs
25415# Using a here document instead of a string reduces the quoting nightmare.
25416# Putting comments in sed scripts is not portable.
25417#
25418# `end' is used to avoid that the second main sed command (meant for
25419# 0-ary CPP macros) applies to n-ary macro definitions.
25420# See the Autoconf documentation for `clear'.
25421cat >confdef2sed.sed <<\_ACEOF
25422s/[\\&,]/\\&/g
25423s,[\\$`],\\&,g
25424t clear
25425: clear
25426s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25427t end
25428s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25429: end
25430_ACEOF
25431# If some macros were called several times there might be several times
25432# the same #defines, which is useless. Nevertheless, we may not want to
25433# sort them, since we want the *last* AC-DEFINE to be honored.
25434uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25435sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25436rm -f confdef2sed.sed
25437
25438# This sed command replaces #undef with comments. This is necessary, for
c906108c
SS
25439# example, in the case of _POSIX_SOURCE, which is predefined and required
25440# on some systems where configure will not decide to define it.
b4e70030
JB
25441cat >>conftest.undefs <<\_ACEOF
25442s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25443_ACEOF
25444
25445# Break up conftest.defines because some shells have a limit on the size
25446# of here documents, and old seds have small limits too (100 cmds).
25447echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25448echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25449echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25450echo ' :' >>$CONFIG_STATUS
25451rm -f conftest.tail
25452while grep . conftest.defines >/dev/null
bec39cab 25453do
b4e70030
JB
25454 # Write a limited-size here document to $tmp/defines.sed.
25455 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25456 # Speed up: don't consider the non `#define' lines.
25457 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
25458 # Work around the forget-to-reset-the-flag bug.
25459 echo 't clr' >>$CONFIG_STATUS
25460 echo ': clr' >>$CONFIG_STATUS
25461 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
bec39cab 25462 echo 'CEOF
b4e70030
JB
25463 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25464 rm -f $tmp/in
25465 mv $tmp/out $tmp/in
25466' >>$CONFIG_STATUS
25467 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
bec39cab
AC
25468 rm -f conftest.defines
25469 mv conftest.tail conftest.defines
25470done
b4e70030
JB
25471rm -f conftest.defines
25472echo ' fi # grep' >>$CONFIG_STATUS
25473echo >>$CONFIG_STATUS
25474
25475# Break up conftest.undefs because some shells have a limit on the size
25476# of here documents, and old seds have small limits too (100 cmds).
25477echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25478rm -f conftest.tail
25479while grep . conftest.undefs >/dev/null
25480do
25481 # Write a limited-size here document to $tmp/undefs.sed.
25482 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25483 # Speed up: don't consider the non `#undef'
25484 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25485 # Work around the forget-to-reset-the-flag bug.
25486 echo 't clr' >>$CONFIG_STATUS
25487 echo ': clr' >>$CONFIG_STATUS
25488 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25489 echo 'CEOF
25490 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25491 rm -f $tmp/in
25492 mv $tmp/out $tmp/in
25493' >>$CONFIG_STATUS
25494 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25495 rm -f conftest.undefs
25496 mv conftest.tail conftest.undefs
25497done
25498rm -f conftest.undefs
bec39cab
AC
25499
25500cat >>$CONFIG_STATUS <<\_ACEOF
b4e70030
JB
25501 # Let's still pretend it is `configure' which instantiates (i.e., don't
25502 # use $as_me), people would be surprised to read:
25503 # /* config.h. Generated by config.status. */
25504 if test x"$ac_file" = x-; then
25505 echo "/* Generated by configure. */" >$tmp/config.h
25506 else
25507 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25508 fi
25509 cat $tmp/in >>$tmp/config.h
25510 rm -f $tmp/in
bec39cab 25511 if test x"$ac_file" != x-; then
b4e70030 25512 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
bec39cab
AC
25513 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25514echo "$as_me: $ac_file is unchanged" >&6;}
25515 else
b4e70030
JB
25516 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25517$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25518 X"$ac_file" : 'X\(//\)[^/]' \| \
25519 X"$ac_file" : 'X\(//\)$' \| \
25520 X"$ac_file" : 'X\(/\)' \| \
25521 . : '\(.\)' 2>/dev/null ||
25522echo X"$ac_file" |
25523 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25524 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25525 /^X\(\/\/\)$/{ s//\1/; q; }
25526 /^X\(\/\).*/{ s//\1/; q; }
25527 s/.*/./; q'`
25528 { if $as_mkdir_p; then
25529 mkdir -p "$ac_dir"
25530 else
25531 as_dir="$ac_dir"
25532 as_dirs=
25533 while test ! -d "$as_dir"; do
25534 as_dirs="$as_dir $as_dirs"
25535 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25536$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25537 X"$as_dir" : 'X\(//\)[^/]' \| \
25538 X"$as_dir" : 'X\(//\)$' \| \
25539 X"$as_dir" : 'X\(/\)' \| \
25540 . : '\(.\)' 2>/dev/null ||
25541echo X"$as_dir" |
25542 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25543 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25544 /^X\(\/\/\)$/{ s//\1/; q; }
25545 /^X\(\/\).*/{ s//\1/; q; }
25546 s/.*/./; q'`
25547 done
25548 test ! -n "$as_dirs" || mkdir $as_dirs
25549 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25550echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25551 { (exit 1); exit 1; }; }; }
25552
bec39cab 25553 rm -f $ac_file
b4e70030 25554 mv $tmp/config.h $ac_file
bec39cab
AC
25555 fi
25556 else
b4e70030
JB
25557 cat $tmp/config.h
25558 rm -f $tmp/config.h
bec39cab 25559 fi
b4e70030
JB
25560done
25561_ACEOF
25562cat >>$CONFIG_STATUS <<\_ACEOF
25563
25564#
25565# CONFIG_LINKS section.
25566#
25567
25568for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
25569 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25570 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
c906108c 25571
b4e70030
JB
25572 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
25573echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
c906108c
SS
25574
25575 if test ! -r $srcdir/$ac_source; then
bec39cab
AC
25576 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
25577echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
25578 { (exit 1); exit 1; }; }
c906108c 25579 fi
b4e70030
JB
25580 rm -f $ac_dest
25581
25582 # Make relative symlinks.
25583 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25584$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25585 X"$ac_dest" : 'X\(//\)[^/]' \| \
25586 X"$ac_dest" : 'X\(//\)$' \| \
25587 X"$ac_dest" : 'X\(/\)' \| \
25588 . : '\(.\)' 2>/dev/null ||
25589echo X"$ac_dest" |
25590 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25591 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25592 /^X\(\/\/\)$/{ s//\1/; q; }
25593 /^X\(\/\).*/{ s//\1/; q; }
25594 s/.*/./; q'`
25595 { if $as_mkdir_p; then
25596 mkdir -p "$ac_dest_dir"
25597 else
25598 as_dir="$ac_dest_dir"
25599 as_dirs=
25600 while test ! -d "$as_dir"; do
25601 as_dirs="$as_dir $as_dirs"
25602 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25603$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25604 X"$as_dir" : 'X\(//\)[^/]' \| \
25605 X"$as_dir" : 'X\(//\)$' \| \
25606 X"$as_dir" : 'X\(/\)' \| \
25607 . : '\(.\)' 2>/dev/null ||
25608echo X"$as_dir" |
25609 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25610 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25611 /^X\(\/\/\)$/{ s//\1/; q; }
25612 /^X\(\/\).*/{ s//\1/; q; }
25613 s/.*/./; q'`
25614 done
25615 test ! -n "$as_dirs" || mkdir $as_dirs
25616 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25617echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25618 { (exit 1); exit 1; }; }; }
25619
25620 ac_builddir=.
25621
25622if test "$ac_dest_dir" != .; then
25623 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25624 # A "../" for each directory in $ac_dir_suffix.
25625 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25626else
25627 ac_dir_suffix= ac_top_builddir=
25628fi
25629
25630case $srcdir in
25631 .) # No --srcdir option. We are building in place.
25632 ac_srcdir=.
25633 if test -z "$ac_top_builddir"; then
25634 ac_top_srcdir=.
25635 else
25636 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25637 fi ;;
25638 [\\/]* | ?:[\\/]* ) # Absolute path.
25639 ac_srcdir=$srcdir$ac_dir_suffix;
25640 ac_top_srcdir=$srcdir ;;
25641 *) # Relative path.
25642 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25643 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25644esac
25645
25646# Do not use `cd foo && pwd` to compute absolute paths, because
25647# the directories may not exist.
25648case `pwd` in
25649.) ac_abs_builddir="$ac_dest_dir";;
25650*)
25651 case "$ac_dest_dir" in
25652 .) ac_abs_builddir=`pwd`;;
25653 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25654 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25655 esac;;
25656esac
25657case $ac_abs_builddir in
25658.) ac_abs_top_builddir=${ac_top_builddir}.;;
25659*)
25660 case ${ac_top_builddir}. in
25661 .) ac_abs_top_builddir=$ac_abs_builddir;;
25662 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25663 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25664 esac;;
25665esac
25666case $ac_abs_builddir in
25667.) ac_abs_srcdir=$ac_srcdir;;
25668*)
25669 case $ac_srcdir in
25670 .) ac_abs_srcdir=$ac_abs_builddir;;
25671 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25672 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25673 esac;;
25674esac
25675case $ac_abs_builddir in
25676.) ac_abs_top_srcdir=$ac_top_srcdir;;
25677*)
25678 case $ac_top_srcdir in
25679 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25680 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25681 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25682 esac;;
25683esac
25684
bec39cab
AC
25685
25686 case $srcdir in
25687 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
b4e70030 25688 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
c906108c 25689 esac
b4e70030
JB
25690
25691 # Try a symlink, then a hard link, then a copy.
25692 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
25693 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
25694 cp -p $srcdir/$ac_source $ac_dest ||
25695 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
25696echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
bec39cab 25697 { (exit 1); exit 1; }; }
b4e70030
JB
25698done
25699_ACEOF
25700cat >>$CONFIG_STATUS <<\_ACEOF
25701
25702#
25703# CONFIG_COMMANDS section.
25704#
25705for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25706 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25707 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25708 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25709$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25710 X"$ac_dest" : 'X\(//\)[^/]' \| \
25711 X"$ac_dest" : 'X\(//\)$' \| \
25712 X"$ac_dest" : 'X\(/\)' \| \
25713 . : '\(.\)' 2>/dev/null ||
25714echo X"$ac_dest" |
25715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25717 /^X\(\/\/\)$/{ s//\1/; q; }
25718 /^X\(\/\).*/{ s//\1/; q; }
25719 s/.*/./; q'`
25720 { if $as_mkdir_p; then
25721 mkdir -p "$ac_dir"
25722 else
25723 as_dir="$ac_dir"
25724 as_dirs=
25725 while test ! -d "$as_dir"; do
25726 as_dirs="$as_dir $as_dirs"
25727 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25728$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25729 X"$as_dir" : 'X\(//\)[^/]' \| \
25730 X"$as_dir" : 'X\(//\)$' \| \
25731 X"$as_dir" : 'X\(/\)' \| \
25732 . : '\(.\)' 2>/dev/null ||
25733echo X"$as_dir" |
25734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25735 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25736 /^X\(\/\/\)$/{ s//\1/; q; }
25737 /^X\(\/\).*/{ s//\1/; q; }
25738 s/.*/./; q'`
25739 done
25740 test ! -n "$as_dirs" || mkdir $as_dirs
25741 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25742echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25743 { (exit 1); exit 1; }; }; }
25744
25745 ac_builddir=.
25746
25747if test "$ac_dir" != .; then
25748 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25749 # A "../" for each directory in $ac_dir_suffix.
25750 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25751else
25752 ac_dir_suffix= ac_top_builddir=
25753fi
25754
25755case $srcdir in
25756 .) # No --srcdir option. We are building in place.
25757 ac_srcdir=.
25758 if test -z "$ac_top_builddir"; then
25759 ac_top_srcdir=.
25760 else
25761 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25762 fi ;;
25763 [\\/]* | ?:[\\/]* ) # Absolute path.
25764 ac_srcdir=$srcdir$ac_dir_suffix;
25765 ac_top_srcdir=$srcdir ;;
25766 *) # Relative path.
25767 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25768 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25769esac
25770
25771# Do not use `cd foo && pwd` to compute absolute paths, because
25772# the directories may not exist.
25773case `pwd` in
25774.) ac_abs_builddir="$ac_dir";;
25775*)
25776 case "$ac_dir" in
25777 .) ac_abs_builddir=`pwd`;;
25778 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25779 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25780 esac;;
25781esac
25782case $ac_abs_builddir in
25783.) ac_abs_top_builddir=${ac_top_builddir}.;;
25784*)
25785 case ${ac_top_builddir}. in
25786 .) ac_abs_top_builddir=$ac_abs_builddir;;
25787 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25788 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25789 esac;;
25790esac
25791case $ac_abs_builddir in
25792.) ac_abs_srcdir=$ac_srcdir;;
25793*)
25794 case $ac_srcdir in
25795 .) ac_abs_srcdir=$ac_abs_builddir;;
25796 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25797 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25798 esac;;
25799esac
25800case $ac_abs_builddir in
25801.) ac_abs_top_srcdir=$ac_top_srcdir;;
25802*)
25803 case $ac_top_srcdir in
25804 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25805 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25806 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25807 esac;;
25808esac
bec39cab 25809
bec39cab 25810
b4e70030
JB
25811 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25812echo "$as_me: executing $ac_dest commands" >&6;}
25813 case $ac_dest in
25814 gdb_stdint.h )
4e8d927d
DJ
25815if test "$GCC" = yes; then
25816 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
25817else
25818 echo "/* generated for $CC */" > tmp-stdint.h
25819fi
25820
25821sed 's/^ *//' >> tmp-stdint.h <<EOF
25822
25823 #ifndef GCC_GENERATED_STDINT_H
25824 #define GCC_GENERATED_STDINT_H 1
25825
25826 #include <sys/types.h>
25827EOF
25828
25829if test "$acx_cv_header_stdint" != stdint.h; then
25830 echo "#include <stddef.h>" >> tmp-stdint.h
25831fi
25832if test "$acx_cv_header_stdint" != stddef.h; then
25833 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
25834fi
25835
25836sed 's/^ *//' >> tmp-stdint.h <<EOF
25837 /* glibc uses these symbols as guards to prevent redefinitions. */
25838 #ifdef __int8_t_defined
25839 #define _INT8_T
25840 #define _INT16_T
25841 #define _INT32_T
25842 #endif
25843 #ifdef __uint32_t_defined
25844 #define _UINT32_T
25845 #endif
25846
25847EOF
25848
25849# ----------------- done header, emit basic int types -------------
25850if test "$acx_cv_header_stdint" = stddef.h; then
25851 sed 's/^ *//' >> tmp-stdint.h <<EOF
25852
25853 #ifndef _UINT8_T
25854 #define _UINT8_T
07abfebf
RS
25855 #ifndef __uint8_t_defined
25856 #define __uint8_t_defined
4e8d927d
DJ
25857 typedef unsigned $acx_cv_type_int8_t uint8_t;
25858 #endif
07abfebf 25859 #endif
4e8d927d
DJ
25860
25861 #ifndef _UINT16_T
25862 #define _UINT16_T
07abfebf
RS
25863 #ifndef __uint16_t_defined
25864 #define __uint16_t_defined
4e8d927d
DJ
25865 typedef unsigned $acx_cv_type_int16_t uint16_t;
25866 #endif
07abfebf 25867 #endif
4e8d927d
DJ
25868
25869 #ifndef _UINT32_T
25870 #define _UINT32_T
07abfebf
RS
25871 #ifndef __uint32_t_defined
25872 #define __uint32_t_defined
4e8d927d
DJ
25873 typedef unsigned $acx_cv_type_int32_t uint32_t;
25874 #endif
07abfebf 25875 #endif
4e8d927d
DJ
25876
25877 #ifndef _INT8_T
25878 #define _INT8_T
07abfebf
RS
25879 #ifndef __int8_t_defined
25880 #define __int8_t_defined
4e8d927d
DJ
25881 typedef $acx_cv_type_int8_t int8_t;
25882 #endif
07abfebf 25883 #endif
4e8d927d
DJ
25884
25885 #ifndef _INT16_T
25886 #define _INT16_T
07abfebf
RS
25887 #ifndef __int16_t_defined
25888 #define __int16_t_defined
4e8d927d
DJ
25889 typedef $acx_cv_type_int16_t int16_t;
25890 #endif
07abfebf 25891 #endif
4e8d927d
DJ
25892
25893 #ifndef _INT32_T
25894 #define _INT32_T
07abfebf
RS
25895 #ifndef __int32_t_defined
25896 #define __int32_t_defined
4e8d927d
DJ
25897 typedef $acx_cv_type_int32_t int32_t;
25898 #endif
07abfebf 25899 #endif
4e8d927d
DJ
25900EOF
25901elif test "$ac_cv_type_u_int32_t" = yes; then
25902 sed 's/^ *//' >> tmp-stdint.h <<EOF
25903
25904 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
25905 #ifndef _INT8_T
25906 #define _INT8_T
25907 #endif
25908 #ifndef _INT16_T
25909 #define _INT16_T
25910 #endif
25911 #ifndef _INT32_T
25912 #define _INT32_T
25913 #endif
25914
25915 #ifndef _UINT8_T
25916 #define _UINT8_T
07abfebf
RS
25917 #ifndef __uint8_t_defined
25918 #define __uint8_t_defined
4e8d927d
DJ
25919 typedef u_int8_t uint8_t;
25920 #endif
07abfebf 25921 #endif
4e8d927d
DJ
25922
25923 #ifndef _UINT16_T
25924 #define _UINT16_T
07abfebf
RS
25925 #ifndef __uint16_t_defined
25926 #define __uint16_t_defined
4e8d927d
DJ
25927 typedef u_int16_t uint16_t;
25928 #endif
07abfebf 25929 #endif
4e8d927d
DJ
25930
25931 #ifndef _UINT32_T
25932 #define _UINT32_T
07abfebf
RS
25933 #ifndef __uint32_t_defined
25934 #define __uint32_t_defined
4e8d927d
DJ
25935 typedef u_int32_t uint32_t;
25936 #endif
07abfebf 25937 #endif
4e8d927d
DJ
25938EOF
25939else
25940 sed 's/^ *//' >> tmp-stdint.h <<EOF
25941
25942 /* Some systems have guard macros to prevent redefinitions, define them. */
25943 #ifndef _INT8_T
25944 #define _INT8_T
25945 #endif
25946 #ifndef _INT16_T
25947 #define _INT16_T
25948 #endif
25949 #ifndef _INT32_T
25950 #define _INT32_T
25951 #endif
25952 #ifndef _UINT8_T
25953 #define _UINT8_T
25954 #endif
25955 #ifndef _UINT16_T
25956 #define _UINT16_T
25957 #endif
25958 #ifndef _UINT32_T
25959 #define _UINT32_T
25960 #endif
25961EOF
25962fi
25963
25964# ------------- done basic int types, emit int64_t types ------------
25965if test "$ac_cv_type_uint64_t" = yes; then
25966 sed 's/^ *//' >> tmp-stdint.h <<EOF
25967
25968 /* system headers have good uint64_t and int64_t */
25969 #ifndef _INT64_T
25970 #define _INT64_T
25971 #endif
25972 #ifndef _UINT64_T
25973 #define _UINT64_T
25974 #endif
25975EOF
25976elif test "$ac_cv_type_u_int64_t" = yes; then
25977 sed 's/^ *//' >> tmp-stdint.h <<EOF
25978
25979 /* system headers have an u_int64_t (and int64_t) */
25980 #ifndef _INT64_T
25981 #define _INT64_T
25982 #endif
25983 #ifndef _UINT64_T
25984 #define _UINT64_T
07abfebf
RS
25985 #ifndef __uint64_t_defined
25986 #define __uint64_t_defined
4e8d927d
DJ
25987 typedef u_int64_t uint64_t;
25988 #endif
07abfebf 25989 #endif
4e8d927d
DJ
25990EOF
25991elif test -n "$acx_cv_type_int64_t"; then
25992 sed 's/^ *//' >> tmp-stdint.h <<EOF
25993
25994 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
25995 #ifndef _INT64_T
25996 #define _INT64_T
25997 typedef $acx_cv_type_int64_t int64_t;
25998 #endif
25999 #ifndef _UINT64_T
26000 #define _UINT64_T
07abfebf
RS
26001 #ifndef __uint64_t_defined
26002 #define __uint64_t_defined
4e8d927d
DJ
26003 typedef unsigned $acx_cv_type_int64_t uint64_t;
26004 #endif
07abfebf 26005 #endif
4e8d927d
DJ
26006EOF
26007else
26008 sed 's/^ *//' >> tmp-stdint.h <<EOF
26009
26010 /* some common heuristics for int64_t, using compiler-specific tests */
26011 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
26012 #ifndef _INT64_T
26013 #define _INT64_T
07abfebf 26014 #ifndef __int64_t_defined
4e8d927d
DJ
26015 typedef long long int64_t;
26016 #endif
07abfebf 26017 #endif
4e8d927d
DJ
26018 #ifndef _UINT64_T
26019 #define _UINT64_T
26020 typedef unsigned long long uint64_t;
26021 #endif
26022
26023 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
26024 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
26025 does not implement __extension__. But that compiler doesn't define
26026 __GNUC_MINOR__. */
26027 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
26028 # define __extension__
26029 # endif
26030
26031 # ifndef _INT64_T
26032 # define _INT64_T
26033 __extension__ typedef long long int64_t;
26034 # endif
26035 # ifndef _UINT64_T
26036 # define _UINT64_T
26037 __extension__ typedef unsigned long long uint64_t;
26038 # endif
26039
26040 #elif !defined __STRICT_ANSI__
26041 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
26042
26043 # ifndef _INT64_T
26044 # define _INT64_T
26045 typedef __int64 int64_t;
26046 # endif
26047 # ifndef _UINT64_T
26048 # define _UINT64_T
26049 typedef unsigned __int64 uint64_t;
26050 # endif
26051 # endif /* compiler */
26052
26053 #endif /* ANSI version */
26054EOF
26055fi
26056
26057# ------------- done int64_t types, emit intptr types ------------
26058if test "$ac_cv_type_uintptr_t" != yes; then
26059 sed 's/^ *//' >> tmp-stdint.h <<EOF
26060
26061 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
07abfebf 26062 #ifndef __uintptr_t_defined
4e8d927d 26063 typedef u$acx_cv_type_intptr_t uintptr_t;
07abfebf
RS
26064 #endif
26065 #ifndef __intptr_t_defined
4e8d927d 26066 typedef $acx_cv_type_intptr_t intptr_t;
07abfebf 26067 #endif
4e8d927d
DJ
26068EOF
26069fi
26070
26071# ------------- done intptr types, emit int_least types ------------
26072if test "$ac_cv_type_int_least32_t" != yes; then
26073 sed 's/^ *//' >> tmp-stdint.h <<EOF
26074
26075 /* Define int_least types */
26076 typedef int8_t int_least8_t;
26077 typedef int16_t int_least16_t;
26078 typedef int32_t int_least32_t;
26079 #ifdef _INT64_T
26080 typedef int64_t int_least64_t;
26081 #endif
26082
26083 typedef uint8_t uint_least8_t;
26084 typedef uint16_t uint_least16_t;
26085 typedef uint32_t uint_least32_t;
26086 #ifdef _UINT64_T
26087 typedef uint64_t uint_least64_t;
26088 #endif
26089EOF
26090fi
26091
26092# ------------- done intptr types, emit int_fast types ------------
26093if test "$ac_cv_type_int_fast32_t" != yes; then
26094 sed 's/^ *//' >> tmp-stdint.h <<EOF
26095
26096 /* Define int_fast types. short is often slow */
26097 typedef int8_t int_fast8_t;
26098 typedef int int_fast16_t;
26099 typedef int32_t int_fast32_t;
26100 #ifdef _INT64_T
26101 typedef int64_t int_fast64_t;
26102 #endif
26103
26104 typedef uint8_t uint_fast8_t;
26105 typedef unsigned int uint_fast16_t;
26106 typedef uint32_t uint_fast32_t;
26107 #ifdef _UINT64_T
26108 typedef uint64_t uint_fast64_t;
26109 #endif
26110EOF
26111fi
26112
26113if test "$ac_cv_type_uintmax_t" != yes; then
26114 sed 's/^ *//' >> tmp-stdint.h <<EOF
26115
26116 /* Define intmax based on what we found */
26117 #ifdef _INT64_T
26118 typedef int64_t intmax_t;
26119 #else
26120 typedef long intmax_t;
26121 #endif
26122 #ifdef _UINT64_T
26123 typedef uint64_t uintmax_t;
26124 #else
26125 typedef unsigned long uintmax_t;
26126 #endif
26127EOF
26128fi
26129
26130sed 's/^ *//' >> tmp-stdint.h <<EOF
26131
26132 #endif /* GCC_GENERATED_STDINT_H */
26133EOF
26134
26135if test -r gdb_stdint.h && cmp -s tmp-stdint.h gdb_stdint.h; then
26136 rm -f tmp-stdint.h
26137else
26138 mv -f tmp-stdint.h gdb_stdint.h
bec39cab
AC
26139fi
26140
4e8d927d 26141 ;;
b4e70030 26142 default )
c906108c 26143
db985757 26144sed -e '/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
c906108c
SS
26145mv -f Makefile.tmp Makefile
26146
2acceee2 26147
c906108c
SS
26148case x$CONFIG_HEADERS in
26149xconfig.h:config.in)
26150echo > stamp-h ;;
26151esac
bec39cab
AC
26152 ;;
26153 esac
b4e70030
JB
26154done
26155_ACEOF
c906108c 26156
b4e70030 26157cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
26158
26159{ (exit 0); exit 0; }
26160_ACEOF
c906108c 26161chmod +x $CONFIG_STATUS
bec39cab
AC
26162ac_clean_files=$ac_clean_files_save
26163
26164
26165# configure is writing to config.log, and then calls config.status.
26166# config.status does its own redirection, appending to config.log.
26167# Unfortunately, on DOS this fails, as config.log is still kept open
26168# by configure, so config.status won't be able to write to it; its
26169# output is simply discarded. So we exec the FD to /dev/null,
26170# effectively closing config.log, so it can be properly (re)opened and
26171# appended to by config.status. When coming back to configure, we
26172# need to make the FD available again.
26173if test "$no_create" != yes; then
26174 ac_cs_success=:
26175 ac_config_status_args=
26176 test "$silent" = yes &&
26177 ac_config_status_args="$ac_config_status_args --quiet"
26178 exec 5>/dev/null
26179 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26180 exec 5>>config.log
26181 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26182 # would make configure fail if this is the last instruction.
26183 $ac_cs_success || { (exit 1); exit 1; }
26184fi
c906108c 26185
bec39cab
AC
26186#
26187# CONFIG_SUBDIRS section.
26188#
c906108c
SS
26189if test "$no_recursion" != yes; then
26190
26191 # Remove --cache-file and --srcdir arguments so they do not pile up.
26192 ac_sub_configure_args=
26193 ac_prev=
b4e70030 26194 for ac_arg in $ac_configure_args; do
c906108c
SS
26195 if test -n "$ac_prev"; then
26196 ac_prev=
26197 continue
26198 fi
bec39cab 26199 case $ac_arg in
c906108c
SS
26200 -cache-file | --cache-file | --cache-fil | --cache-fi \
26201 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
26202 ac_prev=cache_file ;;
26203 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
bec39cab
AC
26204 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
26205 | --c=*)
26206 ;;
26207 --config-cache | -C)
c906108c
SS
26208 ;;
26209 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
26210 ac_prev=srcdir ;;
26211 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26212 ;;
bec39cab
AC
26213 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
26214 ac_prev=prefix ;;
26215 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26216 ;;
b4e70030 26217 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
c906108c
SS
26218 esac
26219 done
26220
bec39cab
AC
26221 # Always prepend --prefix to ensure using the same prefix
26222 # in subdir configurations.
26223 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
26224
b4e70030 26225 ac_popdir=`pwd`
bec39cab 26226 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
c906108c
SS
26227
26228 # Do not complain, so a configure script can configure whichever
26229 # parts of a large source tree are present.
bec39cab 26230 test -d $srcdir/$ac_dir || continue
c906108c 26231
b4e70030
JB
26232 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
26233echo "$as_me: configuring in $ac_dir" >&6;}
26234 { if $as_mkdir_p; then
26235 mkdir -p "$ac_dir"
26236 else
26237 as_dir="$ac_dir"
bec39cab 26238 as_dirs=
b4e70030
JB
26239 while test ! -d "$as_dir"; do
26240 as_dirs="$as_dir $as_dirs"
26241 as_dir=`(dirname "$as_dir") 2>/dev/null ||
bec39cab
AC
26242$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26243 X"$as_dir" : 'X\(//\)[^/]' \| \
26244 X"$as_dir" : 'X\(//\)$' \| \
b4e70030
JB
26245 X"$as_dir" : 'X\(/\)' \| \
26246 . : '\(.\)' 2>/dev/null ||
bec39cab 26247echo X"$as_dir" |
b4e70030
JB
26248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26249 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26250 /^X\(\/\/\)$/{ s//\1/; q; }
26251 /^X\(\/\).*/{ s//\1/; q; }
26252 s/.*/./; q'`
bec39cab 26253 done
b4e70030
JB
26254 test ! -n "$as_dirs" || mkdir $as_dirs
26255 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26256echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
bec39cab 26257 { (exit 1); exit 1; }; }; }
b4e70030 26258
bec39cab
AC
26259 ac_builddir=.
26260
b4e70030 26261if test "$ac_dir" != .; then
bec39cab 26262 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
26263 # A "../" for each directory in $ac_dir_suffix.
26264 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26265else
26266 ac_dir_suffix= ac_top_builddir=
26267fi
bec39cab
AC
26268
26269case $srcdir in
b4e70030 26270 .) # No --srcdir option. We are building in place.
bec39cab 26271 ac_srcdir=.
b4e70030
JB
26272 if test -z "$ac_top_builddir"; then
26273 ac_top_srcdir=.
26274 else
26275 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26276 fi ;;
26277 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 26278 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
26279 ac_top_srcdir=$srcdir ;;
26280 *) # Relative path.
26281 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26282 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26283esac
26284
26285# Do not use `cd foo && pwd` to compute absolute paths, because
26286# the directories may not exist.
26287case `pwd` in
26288.) ac_abs_builddir="$ac_dir";;
26289*)
26290 case "$ac_dir" in
26291 .) ac_abs_builddir=`pwd`;;
26292 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26293 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26294 esac;;
26295esac
26296case $ac_abs_builddir in
26297.) ac_abs_top_builddir=${ac_top_builddir}.;;
26298*)
26299 case ${ac_top_builddir}. in
26300 .) ac_abs_top_builddir=$ac_abs_builddir;;
26301 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26302 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26303 esac;;
26304esac
26305case $ac_abs_builddir in
26306.) ac_abs_srcdir=$ac_srcdir;;
26307*)
26308 case $ac_srcdir in
26309 .) ac_abs_srcdir=$ac_abs_builddir;;
26310 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26311 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26312 esac;;
26313esac
26314case $ac_abs_builddir in
26315.) ac_abs_top_srcdir=$ac_top_srcdir;;
26316*)
26317 case $ac_top_srcdir in
26318 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26319 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26320 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26321 esac;;
bec39cab 26322esac
c906108c 26323
c906108c 26324
b4e70030 26325 cd $ac_dir
c906108c
SS
26326
26327 # Check for guested configure; otherwise get Cygnus style configure.
bec39cab
AC
26328 if test -f $ac_srcdir/configure.gnu; then
26329 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
26330 elif test -f $ac_srcdir/configure; then
26331 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
26332 elif test -f $ac_srcdir/configure.in; then
c906108c
SS
26333 ac_sub_configure=$ac_configure
26334 else
bec39cab
AC
26335 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26336echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
c906108c
SS
26337 ac_sub_configure=
26338 fi
26339
26340 # The recursion is here.
26341 if test -n "$ac_sub_configure"; then
c906108c 26342 # Make the cache file name correct relative to the subdirectory.
bec39cab
AC
26343 case $cache_file in
26344 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
b4e70030
JB
26345 *) # Relative path.
26346 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
c906108c 26347 esac
c906108c 26348
bec39cab
AC
26349 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26350echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
c906108c 26351 # The eval makes quoting arguments work.
b4e70030
JB
26352 eval $ac_sub_configure $ac_sub_configure_args \
26353 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
bec39cab
AC
26354 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
26355echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26356 { (exit 1); exit 1; }; }
c906108c
SS
26357 fi
26358
b4e70030 26359 cd $ac_popdir
c906108c
SS
26360 done
26361fi
26362
26363
26364exit 0
This page took 2.068593 seconds and 4 git commands to generate.