]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/configure
* frv-tdep.c: Include "solib.h".
[thirdparty/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"
6a30b0a5 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 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 IGNORE_SIM IGNORE_SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags xm_h tm_h nm_h LIBICONV LIBOBJS LTLIBOBJS'
b4e70030 317ac_subst_files='host_makefile_frag target_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
3119test "$program_prefix" != NONE &&
b4e70030 3120 program_transform_name="s,^,$program_prefix,;$program_transform_name"
bec39cab
AC
3121# Use a double $ so make ignores it.
3122test "$program_suffix" != NONE &&
b4e70030 3123 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
bec39cab
AC
3124# Double any \ or $. echo might interpret backslashes.
3125# By default was `s,x,x', remove it if useless.
3126cat <<\_ACEOF >conftest.sed
3127s/[\\$]/&&/g;s/;s,x,x,$//
3128_ACEOF
3129program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
b4e70030 3130rm conftest.sed
bec39cab
AC
3131
3132
3133# The CLI cannot be disabled yet, but may be in the future.
3134
3135# Enable CLI.
b4e70030 3136# Check whether --enable-gdbcli or --disable-gdbcli was given.
bec39cab 3137if test "${enable_gdbcli+set}" = set; then
b4e70030
JB
3138 enableval="$enable_gdbcli"
3139 case $enableval in
bec39cab
AC
3140 yes)
3141 ;;
3142 no)
3143 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
3144echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
3145 { (exit 1); exit 1; }; } ;;
3146 *)
3147 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
3148echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
3149 { (exit 1); exit 1; }; } ;;
3150 esac
3151else
3152 enable_gdbcli=yes
b4e70030 3153fi;
bec39cab
AC
3154if test x"$enable_gdbcli" = xyes; then
3155 if test -d $srcdir/cli; then
3156 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
3157 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
3158 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
3159 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
3160 fi
3161fi
3162
3163# Enable MI.
b4e70030 3164# Check whether --enable-gdbmi or --disable-gdbmi was given.
bec39cab 3165if test "${enable_gdbmi+set}" = set; then
b4e70030
JB
3166 enableval="$enable_gdbmi"
3167 case $enableval in
bec39cab
AC
3168 yes | no)
3169 ;;
3170 *)
3171 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
3172echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
3173 { (exit 1); exit 1; }; } ;;
3174 esac
3175else
3176 enable_gdbmi=yes
b4e70030 3177fi;
bec39cab
AC
3178if test x"$enable_gdbmi" = xyes; then
3179 if test -d $srcdir/mi; then
3180 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
3181 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
3182 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
3183 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
3184 fi
3185fi
3186
3187# Enable TUI.
b4e70030 3188# Check whether --enable-tui or --disable-tui was given.
bec39cab 3189if test "${enable_tui+set}" = set; then
b4e70030
JB
3190 enableval="$enable_tui"
3191 case $enableval in
bec39cab
AC
3192 yes | no)
3193 ;;
3194 *)
3195 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
3196echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
3197 { (exit 1); exit 1; }; } ;;
3198 esac
3199else
3200 enable_tui=yes
b4e70030 3201fi;
bec39cab
AC
3202
3203# Enable gdbtk.
b4e70030 3204# Check whether --enable-gdbtk or --disable-gdbtk was given.
bec39cab 3205if test "${enable_gdbtk+set}" = set; then
b4e70030
JB
3206 enableval="$enable_gdbtk"
3207 case $enableval in
bec39cab
AC
3208 yes | no)
3209 ;;
3210 *)
3211 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
3212echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
3213 { (exit 1); exit 1; }; } ;;
3214 esac
3215else
04ac69aa 3216 if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
bec39cab
AC
3217 enable_gdbtk=yes
3218 else
3219 enable_gdbtk=no
3220 fi
b4e70030 3221fi;
bec39cab
AC
3222# We unconditionally disable gdbtk tests on selected platforms.
3223case $host_os in
3224 go32* | windows*)
3225 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
3226echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
3227 enable_gdbtk=no ;;
3228esac
3229
3230# Libunwind support.
20e95c23
DJ
3231echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3232echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3233if test "${ac_cv_header_stdc+set}" = set; then
3234 echo $ECHO_N "(cached) $ECHO_C" >&6
3235else
3236 cat >conftest.$ac_ext <<_ACEOF
3237/* confdefs.h. */
3238_ACEOF
3239cat confdefs.h >>conftest.$ac_ext
3240cat >>conftest.$ac_ext <<_ACEOF
3241/* end confdefs.h. */
3242#include <stdlib.h>
3243#include <stdarg.h>
3244#include <string.h>
3245#include <float.h>
3246
3247int
3248main ()
3249{
3250
3251 ;
3252 return 0;
3253}
3254_ACEOF
3255rm -f conftest.$ac_objext
3256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3257 (eval $ac_compile) 2>conftest.er1
3258 ac_status=$?
3259 grep -v '^ *+' conftest.er1 >conftest.err
3260 rm -f conftest.er1
3261 cat conftest.err >&5
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); } &&
3264 { ac_try='test -z "$ac_c_werror_flag"
3265 || test ! -s conftest.err'
3266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3267 (eval $ac_try) 2>&5
3268 ac_status=$?
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); }; } &&
3271 { ac_try='test -s conftest.$ac_objext'
3272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3273 (eval $ac_try) 2>&5
3274 ac_status=$?
3275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276 (exit $ac_status); }; }; then
3277 ac_cv_header_stdc=yes
3278else
3279 echo "$as_me: failed program was:" >&5
3280sed 's/^/| /' conftest.$ac_ext >&5
3281
3282ac_cv_header_stdc=no
3283fi
3284rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3285
3286if test $ac_cv_header_stdc = yes; then
3287 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3288 cat >conftest.$ac_ext <<_ACEOF
3289/* confdefs.h. */
3290_ACEOF
3291cat confdefs.h >>conftest.$ac_ext
3292cat >>conftest.$ac_ext <<_ACEOF
3293/* end confdefs.h. */
3294#include <string.h>
3295
3296_ACEOF
3297if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3298 $EGREP "memchr" >/dev/null 2>&1; then
3299 :
3300else
3301 ac_cv_header_stdc=no
3302fi
3303rm -f conftest*
3304
3305fi
3306
3307if test $ac_cv_header_stdc = yes; then
3308 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3309 cat >conftest.$ac_ext <<_ACEOF
3310/* confdefs.h. */
3311_ACEOF
3312cat confdefs.h >>conftest.$ac_ext
3313cat >>conftest.$ac_ext <<_ACEOF
3314/* end confdefs.h. */
3315#include <stdlib.h>
3316
3317_ACEOF
3318if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3319 $EGREP "free" >/dev/null 2>&1; then
3320 :
3321else
3322 ac_cv_header_stdc=no
3323fi
3324rm -f conftest*
3325
3326fi
3327
3328if test $ac_cv_header_stdc = yes; then
3329 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3330 if test "$cross_compiling" = yes; then
3331 :
3332else
3333 cat >conftest.$ac_ext <<_ACEOF
3334/* confdefs.h. */
3335_ACEOF
3336cat confdefs.h >>conftest.$ac_ext
3337cat >>conftest.$ac_ext <<_ACEOF
3338/* end confdefs.h. */
3339#include <ctype.h>
3340#if ((' ' & 0x0FF) == 0x020)
3341# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3342# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3343#else
3344# define ISLOWER(c) \
3345 (('a' <= (c) && (c) <= 'i') \
3346 || ('j' <= (c) && (c) <= 'r') \
3347 || ('s' <= (c) && (c) <= 'z'))
3348# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3349#endif
3350
3351#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3352int
3353main ()
3354{
3355 int i;
3356 for (i = 0; i < 256; i++)
3357 if (XOR (islower (i), ISLOWER (i))
3358 || toupper (i) != TOUPPER (i))
3359 exit(2);
3360 exit (0);
3361}
3362_ACEOF
3363rm -f conftest$ac_exeext
3364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3365 (eval $ac_link) 2>&5
3366 ac_status=$?
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3370 (eval $ac_try) 2>&5
3371 ac_status=$?
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); }; }; then
3374 :
3375else
3376 echo "$as_me: program exited with status $ac_status" >&5
3377echo "$as_me: failed program was:" >&5
3378sed 's/^/| /' conftest.$ac_ext >&5
3379
3380( exit $ac_status )
3381ac_cv_header_stdc=no
3382fi
3383rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3384fi
3385fi
3386fi
3387echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3388echo "${ECHO_T}$ac_cv_header_stdc" >&6
3389if test $ac_cv_header_stdc = yes; then
3390
3391cat >>confdefs.h <<\_ACEOF
3392#define STDC_HEADERS 1
3393_ACEOF
3394
3395fi
3396
3397# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3408 inttypes.h stdint.h unistd.h
3409do
3410as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3411echo "$as_me:$LINENO: checking for $ac_header" >&5
3412echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3413if eval "test \"\${$as_ac_Header+set}\" = set"; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3415else
3416 cat >conftest.$ac_ext <<_ACEOF
3417/* confdefs.h. */
3418_ACEOF
3419cat confdefs.h >>conftest.$ac_ext
3420cat >>conftest.$ac_ext <<_ACEOF
3421/* end confdefs.h. */
3422$ac_includes_default
3423
3424#include <$ac_header>
3425_ACEOF
3426rm -f conftest.$ac_objext
3427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3428 (eval $ac_compile) 2>conftest.er1
3429 ac_status=$?
3430 grep -v '^ *+' conftest.er1 >conftest.err
3431 rm -f conftest.er1
3432 cat conftest.err >&5
3433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); } &&
3435 { ac_try='test -z "$ac_c_werror_flag"
3436 || test ! -s conftest.err'
3437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3438 (eval $ac_try) 2>&5
3439 ac_status=$?
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); }; } &&
3442 { ac_try='test -s conftest.$ac_objext'
3443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444 (eval $ac_try) 2>&5
3445 ac_status=$?
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); }; }; then
3448 eval "$as_ac_Header=yes"
3449else
3450 echo "$as_me: failed program was:" >&5
3451sed 's/^/| /' conftest.$ac_ext >&5
3452
3453eval "$as_ac_Header=no"
3454fi
3455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3456fi
3457echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3458echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3459if test `eval echo '${'$as_ac_Header'}'` = yes; then
3460 cat >>confdefs.h <<_ACEOF
3461#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3462_ACEOF
3463
3464fi
3465
3466done
3467
3468
bec39cab 3469
b4e70030 3470# Check whether --with-libunwind or --without-libunwind was given.
bec39cab 3471if test "${with_libunwind+set}" = set; then
b4e70030
JB
3472 withval="$with_libunwind"
3473 case "${withval}" in
bec39cab
AC
3474 yes) enable_libunwind=yes ;;
3475 no) enable_libunwind=no ;;
3476 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
3477echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
3478 { (exit 1); exit 1; }; } ;;
3479esac
3480else
3481
3482
3483for ac_header in libunwind.h
3484do
3485as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
3486if eval "test \"\${$as_ac_Header+set}\" = set"; then
3487 echo "$as_me:$LINENO: checking for $ac_header" >&5
3488echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3489if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3490 echo $ECHO_N "(cached) $ECHO_C" >&6
3491fi
b4e70030
JB
3492echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3493echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3494else
3495 # Is the header compilable?
b4e70030
JB
3496echo "$as_me:$LINENO: checking $ac_header usability" >&5
3497echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
3498cat >conftest.$ac_ext <<_ACEOF
3499/* confdefs.h. */
3500_ACEOF
3501cat confdefs.h >>conftest.$ac_ext
3502cat >>conftest.$ac_ext <<_ACEOF
3503/* end confdefs.h. */
3504$ac_includes_default
3505#include <$ac_header>
3506_ACEOF
3507rm -f conftest.$ac_objext
3508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3509 (eval $ac_compile) 2>conftest.er1
3510 ac_status=$?
3511 grep -v '^ *+' conftest.er1 >conftest.err
3512 rm -f conftest.er1
3513 cat conftest.err >&5
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); } &&
b4e70030
JB
3516 { ac_try='test -z "$ac_c_werror_flag"
3517 || test ! -s conftest.err'
bec39cab
AC
3518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519 (eval $ac_try) 2>&5
3520 ac_status=$?
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); }; } &&
3523 { ac_try='test -s conftest.$ac_objext'
3524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3525 (eval $ac_try) 2>&5
3526 ac_status=$?
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); }; }; then
3529 ac_header_compiler=yes
3530else
3531 echo "$as_me: failed program was:" >&5
3532sed 's/^/| /' conftest.$ac_ext >&5
3533
b4e70030 3534ac_header_compiler=no
bec39cab
AC
3535fi
3536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
3537echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3538echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
3539
3540# Is the header present?
b4e70030
JB
3541echo "$as_me:$LINENO: checking $ac_header presence" >&5
3542echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
3543cat >conftest.$ac_ext <<_ACEOF
3544/* confdefs.h. */
3545_ACEOF
3546cat confdefs.h >>conftest.$ac_ext
3547cat >>conftest.$ac_ext <<_ACEOF
3548/* end confdefs.h. */
3549#include <$ac_header>
3550_ACEOF
3551if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3552 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3553 ac_status=$?
3554 grep -v '^ *+' conftest.er1 >conftest.err
3555 rm -f conftest.er1
3556 cat conftest.err >&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); } >/dev/null; then
3559 if test -s conftest.err; then
3560 ac_cpp_err=$ac_c_preproc_warn_flag
3561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3562 else
3563 ac_cpp_err=
3564 fi
3565else
3566 ac_cpp_err=yes
3567fi
3568if test -z "$ac_cpp_err"; then
3569 ac_header_preproc=yes
3570else
3571 echo "$as_me: failed program was:" >&5
3572sed 's/^/| /' conftest.$ac_ext >&5
3573
3574 ac_header_preproc=no
3575fi
3576rm -f conftest.err conftest.$ac_ext
b4e70030
JB
3577echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3578echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
3579
3580# So? What about this header?
3581case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3582 yes:no: )
3583 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3584echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3586echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3587 ac_header_preproc=yes
3588 ;;
3589 no:yes:* )
3590 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3591echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3592 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3593echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3594 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3595echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3596 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3597echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3599echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3600 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3601echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
3602 (
3603 cat <<\_ASBOX
3604## ------------------------------------------ ##
3605## Report this to the AC_PACKAGE_NAME lists. ##
3606## ------------------------------------------ ##
3607_ASBOX
3608 ) |
3609 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
3610 ;;
3611esac
b4e70030
JB
3612echo "$as_me:$LINENO: checking for $ac_header" >&5
3613echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3614if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3615 echo $ECHO_N "(cached) $ECHO_C" >&6
3616else
3617 eval "$as_ac_Header=\$ac_header_preproc"
3618fi
b4e70030
JB
3619echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3620echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3621
3622fi
3623if test `eval echo '${'$as_ac_Header'}'` = yes; then
3624 cat >>confdefs.h <<_ACEOF
3625#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3626_ACEOF
3627
3628fi
3629
3630done
3631
3632
3633for ac_header in libunwind-ia64.h
3634do
3635as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
3636if eval "test \"\${$as_ac_Header+set}\" = set"; then
3637 echo "$as_me:$LINENO: checking for $ac_header" >&5
3638echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3639if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3640 echo $ECHO_N "(cached) $ECHO_C" >&6
3641fi
b4e70030
JB
3642echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3643echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3644else
3645 # Is the header compilable?
b4e70030
JB
3646echo "$as_me:$LINENO: checking $ac_header usability" >&5
3647echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
3648cat >conftest.$ac_ext <<_ACEOF
3649/* confdefs.h. */
3650_ACEOF
3651cat confdefs.h >>conftest.$ac_ext
3652cat >>conftest.$ac_ext <<_ACEOF
3653/* end confdefs.h. */
3654$ac_includes_default
3655#include <$ac_header>
3656_ACEOF
3657rm -f conftest.$ac_objext
3658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3659 (eval $ac_compile) 2>conftest.er1
3660 ac_status=$?
3661 grep -v '^ *+' conftest.er1 >conftest.err
3662 rm -f conftest.er1
3663 cat conftest.err >&5
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); } &&
b4e70030
JB
3666 { ac_try='test -z "$ac_c_werror_flag"
3667 || test ! -s conftest.err'
bec39cab
AC
3668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669 (eval $ac_try) 2>&5
3670 ac_status=$?
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); }; } &&
3673 { ac_try='test -s conftest.$ac_objext'
3674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3675 (eval $ac_try) 2>&5
3676 ac_status=$?
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3678 (exit $ac_status); }; }; then
3679 ac_header_compiler=yes
3680else
3681 echo "$as_me: failed program was:" >&5
3682sed 's/^/| /' conftest.$ac_ext >&5
3683
b4e70030 3684ac_header_compiler=no
bec39cab
AC
3685fi
3686rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
3687echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3688echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
3689
3690# Is the header present?
b4e70030
JB
3691echo "$as_me:$LINENO: checking $ac_header presence" >&5
3692echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
3693cat >conftest.$ac_ext <<_ACEOF
3694/* confdefs.h. */
3695_ACEOF
3696cat confdefs.h >>conftest.$ac_ext
3697cat >>conftest.$ac_ext <<_ACEOF
3698/* end confdefs.h. */
3699#include <$ac_header>
3700_ACEOF
3701if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3702 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3703 ac_status=$?
3704 grep -v '^ *+' conftest.er1 >conftest.err
3705 rm -f conftest.er1
3706 cat conftest.err >&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } >/dev/null; then
3709 if test -s conftest.err; then
3710 ac_cpp_err=$ac_c_preproc_warn_flag
3711 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3712 else
3713 ac_cpp_err=
3714 fi
3715else
3716 ac_cpp_err=yes
3717fi
3718if test -z "$ac_cpp_err"; then
3719 ac_header_preproc=yes
3720else
3721 echo "$as_me: failed program was:" >&5
3722sed 's/^/| /' conftest.$ac_ext >&5
3723
3724 ac_header_preproc=no
3725fi
3726rm -f conftest.err conftest.$ac_ext
b4e70030
JB
3727echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3728echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
3729
3730# So? What about this header?
3731case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3732 yes:no: )
3733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3734echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3736echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3737 ac_header_preproc=yes
3738 ;;
3739 no:yes:* )
3740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3741echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3743echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3745echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3747echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3749echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3751echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
3752 (
3753 cat <<\_ASBOX
3754## ------------------------------------------ ##
3755## Report this to the AC_PACKAGE_NAME lists. ##
3756## ------------------------------------------ ##
3757_ASBOX
3758 ) |
3759 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
3760 ;;
3761esac
b4e70030
JB
3762echo "$as_me:$LINENO: checking for $ac_header" >&5
3763echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3764if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3765 echo $ECHO_N "(cached) $ECHO_C" >&6
3766else
3767 eval "$as_ac_Header=\$ac_header_preproc"
3768fi
b4e70030
JB
3769echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3770echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3771
3772fi
3773if test `eval echo '${'$as_ac_Header'}'` = yes; then
3774 cat >>confdefs.h <<_ACEOF
3775#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3776_ACEOF
3777
3778fi
3779
3780done
3781
3782 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
3783 enable_libunwind=yes;
3784 fi
3785
b4e70030 3786fi;
bec39cab
AC
3787
3788if test x"$enable_libunwind" = xyes; then
3789
3790for ac_header in libunwind.h
3791do
3792as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
3793if eval "test \"\${$as_ac_Header+set}\" = set"; then
3794 echo "$as_me:$LINENO: checking for $ac_header" >&5
3795echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3796if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3797 echo $ECHO_N "(cached) $ECHO_C" >&6
3798fi
b4e70030
JB
3799echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3800echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3801else
3802 # Is the header compilable?
b4e70030
JB
3803echo "$as_me:$LINENO: checking $ac_header usability" >&5
3804echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
3805cat >conftest.$ac_ext <<_ACEOF
3806/* confdefs.h. */
3807_ACEOF
3808cat confdefs.h >>conftest.$ac_ext
3809cat >>conftest.$ac_ext <<_ACEOF
3810/* end confdefs.h. */
3811$ac_includes_default
3812#include <$ac_header>
3813_ACEOF
3814rm -f conftest.$ac_objext
3815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3816 (eval $ac_compile) 2>conftest.er1
3817 ac_status=$?
3818 grep -v '^ *+' conftest.er1 >conftest.err
3819 rm -f conftest.er1
3820 cat conftest.err >&5
3821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3822 (exit $ac_status); } &&
b4e70030
JB
3823 { ac_try='test -z "$ac_c_werror_flag"
3824 || test ! -s conftest.err'
bec39cab
AC
3825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3826 (eval $ac_try) 2>&5
3827 ac_status=$?
3828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 (exit $ac_status); }; } &&
3830 { ac_try='test -s conftest.$ac_objext'
3831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3832 (eval $ac_try) 2>&5
3833 ac_status=$?
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); }; }; then
3836 ac_header_compiler=yes
3837else
3838 echo "$as_me: failed program was:" >&5
3839sed 's/^/| /' conftest.$ac_ext >&5
3840
b4e70030 3841ac_header_compiler=no
bec39cab
AC
3842fi
3843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
3844echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3845echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
3846
3847# Is the header present?
b4e70030
JB
3848echo "$as_me:$LINENO: checking $ac_header presence" >&5
3849echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
3850cat >conftest.$ac_ext <<_ACEOF
3851/* confdefs.h. */
3852_ACEOF
3853cat confdefs.h >>conftest.$ac_ext
3854cat >>conftest.$ac_ext <<_ACEOF
3855/* end confdefs.h. */
3856#include <$ac_header>
3857_ACEOF
3858if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3859 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3860 ac_status=$?
3861 grep -v '^ *+' conftest.er1 >conftest.err
3862 rm -f conftest.er1
3863 cat conftest.err >&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); } >/dev/null; then
3866 if test -s conftest.err; then
3867 ac_cpp_err=$ac_c_preproc_warn_flag
3868 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3869 else
3870 ac_cpp_err=
3871 fi
3872else
3873 ac_cpp_err=yes
3874fi
3875if test -z "$ac_cpp_err"; then
3876 ac_header_preproc=yes
3877else
3878 echo "$as_me: failed program was:" >&5
3879sed 's/^/| /' conftest.$ac_ext >&5
3880
3881 ac_header_preproc=no
3882fi
3883rm -f conftest.err conftest.$ac_ext
b4e70030
JB
3884echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3885echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
3886
3887# So? What about this header?
3888case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3889 yes:no: )
3890 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3891echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3893echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3894 ac_header_preproc=yes
3895 ;;
3896 no:yes:* )
3897 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3898echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3899 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3900echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3901 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3902echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3903 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3904echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3906echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3907 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3908echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
3909 (
3910 cat <<\_ASBOX
3911## ------------------------------------------ ##
3912## Report this to the AC_PACKAGE_NAME lists. ##
3913## ------------------------------------------ ##
3914_ASBOX
3915 ) |
3916 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
3917 ;;
3918esac
b4e70030
JB
3919echo "$as_me:$LINENO: checking for $ac_header" >&5
3920echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3921if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3922 echo $ECHO_N "(cached) $ECHO_C" >&6
3923else
3924 eval "$as_ac_Header=\$ac_header_preproc"
3925fi
b4e70030
JB
3926echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3927echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3928
3929fi
3930if test `eval echo '${'$as_ac_Header'}'` = yes; then
3931 cat >>confdefs.h <<_ACEOF
3932#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3933_ACEOF
3934
3935fi
3936
3937done
3938
3939
3940for ac_header in libunwind-ia64.h
3941do
3942as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
3943if eval "test \"\${$as_ac_Header+set}\" = set"; then
3944 echo "$as_me:$LINENO: checking for $ac_header" >&5
3945echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3946if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3948fi
b4e70030
JB
3949echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3950echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3951else
3952 # Is the header compilable?
b4e70030
JB
3953echo "$as_me:$LINENO: checking $ac_header usability" >&5
3954echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
3955cat >conftest.$ac_ext <<_ACEOF
3956/* confdefs.h. */
3957_ACEOF
3958cat confdefs.h >>conftest.$ac_ext
3959cat >>conftest.$ac_ext <<_ACEOF
3960/* end confdefs.h. */
3961$ac_includes_default
3962#include <$ac_header>
3963_ACEOF
3964rm -f conftest.$ac_objext
3965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3966 (eval $ac_compile) 2>conftest.er1
3967 ac_status=$?
3968 grep -v '^ *+' conftest.er1 >conftest.err
3969 rm -f conftest.er1
3970 cat conftest.err >&5
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); } &&
b4e70030
JB
3973 { ac_try='test -z "$ac_c_werror_flag"
3974 || test ! -s conftest.err'
bec39cab
AC
3975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3976 (eval $ac_try) 2>&5
3977 ac_status=$?
3978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3979 (exit $ac_status); }; } &&
3980 { ac_try='test -s conftest.$ac_objext'
3981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3982 (eval $ac_try) 2>&5
3983 ac_status=$?
3984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3985 (exit $ac_status); }; }; then
3986 ac_header_compiler=yes
3987else
3988 echo "$as_me: failed program was:" >&5
3989sed 's/^/| /' conftest.$ac_ext >&5
3990
b4e70030 3991ac_header_compiler=no
bec39cab
AC
3992fi
3993rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
3994echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3995echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
3996
3997# Is the header present?
b4e70030
JB
3998echo "$as_me:$LINENO: checking $ac_header presence" >&5
3999echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
4000cat >conftest.$ac_ext <<_ACEOF
4001/* confdefs.h. */
4002_ACEOF
4003cat confdefs.h >>conftest.$ac_ext
4004cat >>conftest.$ac_ext <<_ACEOF
4005/* end confdefs.h. */
4006#include <$ac_header>
4007_ACEOF
4008if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4010 ac_status=$?
4011 grep -v '^ *+' conftest.er1 >conftest.err
4012 rm -f conftest.er1
4013 cat conftest.err >&5
4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); } >/dev/null; then
4016 if test -s conftest.err; then
4017 ac_cpp_err=$ac_c_preproc_warn_flag
4018 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4019 else
4020 ac_cpp_err=
4021 fi
4022else
4023 ac_cpp_err=yes
4024fi
4025if test -z "$ac_cpp_err"; then
4026 ac_header_preproc=yes
4027else
4028 echo "$as_me: failed program was:" >&5
4029sed 's/^/| /' conftest.$ac_ext >&5
4030
4031 ac_header_preproc=no
4032fi
4033rm -f conftest.err conftest.$ac_ext
b4e70030
JB
4034echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4035echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
4036
4037# So? What about this header?
4038case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4039 yes:no: )
4040 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4041echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4043echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4044 ac_header_preproc=yes
4045 ;;
4046 no:yes:* )
4047 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4048echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4049 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4050echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4051 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4052echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4053 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4054echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4056echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4057 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4058echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
4059 (
4060 cat <<\_ASBOX
4061## ------------------------------------------ ##
4062## Report this to the AC_PACKAGE_NAME lists. ##
4063## ------------------------------------------ ##
4064_ASBOX
4065 ) |
4066 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
4067 ;;
4068esac
b4e70030
JB
4069echo "$as_me:$LINENO: checking for $ac_header" >&5
4070echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4071if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4073else
4074 eval "$as_ac_Header=\$ac_header_preproc"
4075fi
b4e70030
JB
4076echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4077echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
4078
4079fi
4080if test `eval echo '${'$as_ac_Header'}'` = yes; then
4081 cat >>confdefs.h <<_ACEOF
4082#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4083_ACEOF
4084
4085fi
4086
4087done
4088
60ca704f
SE
4089
4090cat >>confdefs.h <<\_ACEOF
bec39cab
AC
4091#define HAVE_LIBUNWIND 1
4092_ACEOF
4093
4094 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
4095 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
4096 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
4097fi
4098
4099# Profiling support.
b4e70030 4100# Check whether --enable-profiling or --disable-profiling was given.
bec39cab 4101if test "${enable_profiling+set}" = set; then
b4e70030
JB
4102 enableval="$enable_profiling"
4103 case $enableval in
bec39cab
AC
4104 yes | no)
4105 ;;
4106 *)
4107 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
4108echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
4109 { (exit 1); exit 1; }; } ;;
4110 esac
4111else
4112 enable_profiling=no
b4e70030 4113fi;
bec39cab
AC
4114
4115
4116
4117for ac_func in monstartup _mcleanup
4118do
4119as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
4120echo "$as_me:$LINENO: checking for $ac_func" >&5
4121echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4122if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
4123 echo $ECHO_N "(cached) $ECHO_C" >&6
4124else
4125 cat >conftest.$ac_ext <<_ACEOF
4126/* confdefs.h. */
4127_ACEOF
4128cat confdefs.h >>conftest.$ac_ext
4129cat >>conftest.$ac_ext <<_ACEOF
4130/* end confdefs.h. */
4131/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4133#define $ac_func innocuous_$ac_func
4134
4135/* System header to define __stub macros and hopefully few prototypes,
4136 which can conflict with char $ac_func (); below.
4137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4138 <limits.h> exists even on freestanding compilers. */
4139
4140#ifdef __STDC__
4141# include <limits.h>
4142#else
4143# include <assert.h>
4144#endif
4145
4146#undef $ac_func
4147
b4e70030 4148/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
4149#ifdef __cplusplus
4150extern "C"
b4e70030 4151{
bec39cab 4152#endif
b4e70030
JB
4153/* We use char because int might match the return type of a gcc2
4154 builtin and then its argument prototype would still apply. */
bec39cab
AC
4155char $ac_func ();
4156/* The GNU C library defines this for functions which it implements
4157 to always fail with ENOSYS. Some functions are actually named
4158 something starting with __ and the normal name is an alias. */
b4e70030 4159#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
bec39cab 4160choke me
b4e70030
JB
4161#else
4162char (*f) () = $ac_func;
4163#endif
4164#ifdef __cplusplus
4165}
bec39cab
AC
4166#endif
4167
4168int
4169main ()
4170{
b4e70030 4171return f != $ac_func;
bec39cab
AC
4172 ;
4173 return 0;
4174}
4175_ACEOF
4176rm -f conftest.$ac_objext conftest$ac_exeext
4177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4178 (eval $ac_link) 2>conftest.er1
4179 ac_status=$?
4180 grep -v '^ *+' conftest.er1 >conftest.err
4181 rm -f conftest.er1
4182 cat conftest.err >&5
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); } &&
b4e70030
JB
4185 { ac_try='test -z "$ac_c_werror_flag"
4186 || test ! -s conftest.err'
bec39cab
AC
4187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4188 (eval $ac_try) 2>&5
4189 ac_status=$?
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191 (exit $ac_status); }; } &&
4192 { ac_try='test -s conftest$ac_exeext'
4193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4194 (eval $ac_try) 2>&5
4195 ac_status=$?
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); }; }; then
4198 eval "$as_ac_var=yes"
4199else
4200 echo "$as_me: failed program was:" >&5
4201sed 's/^/| /' conftest.$ac_ext >&5
4202
b4e70030 4203eval "$as_ac_var=no"
bec39cab
AC
4204fi
4205rm -f conftest.err conftest.$ac_objext \
4206 conftest$ac_exeext conftest.$ac_ext
4207fi
b4e70030
JB
4208echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4209echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
4210if test `eval echo '${'$as_ac_var'}'` = yes; then
4211 cat >>confdefs.h <<_ACEOF
4212#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4213_ACEOF
4214
4215fi
4216done
4217
b4e70030
JB
4218echo "$as_me:$LINENO: checking for _etext" >&5
4219echo $ECHO_N "checking for _etext... $ECHO_C" >&6
bec39cab
AC
4220if test "${ac_cv_var__etext+set}" = set; then
4221 echo $ECHO_N "(cached) $ECHO_C" >&6
4222else
4223 cat >conftest.$ac_ext <<_ACEOF
4224/* confdefs.h. */
4225_ACEOF
4226cat confdefs.h >>conftest.$ac_ext
4227cat >>conftest.$ac_ext <<_ACEOF
4228/* end confdefs.h. */
4229#include <stdlib.h>
4230extern char _etext;
4231
4232int
4233main ()
4234{
4235free (&_etext);
4236 ;
4237 return 0;
4238}
4239_ACEOF
4240rm -f conftest.$ac_objext conftest$ac_exeext
4241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4242 (eval $ac_link) 2>conftest.er1
4243 ac_status=$?
4244 grep -v '^ *+' conftest.er1 >conftest.err
4245 rm -f conftest.er1
4246 cat conftest.err >&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); } &&
b4e70030
JB
4249 { ac_try='test -z "$ac_c_werror_flag"
4250 || test ! -s conftest.err'
bec39cab
AC
4251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4252 (eval $ac_try) 2>&5
4253 ac_status=$?
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); }; } &&
4256 { ac_try='test -s conftest$ac_exeext'
4257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4258 (eval $ac_try) 2>&5
4259 ac_status=$?
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; }; then
4262 ac_cv_var__etext=yes
4263else
4264 echo "$as_me: failed program was:" >&5
4265sed 's/^/| /' conftest.$ac_ext >&5
4266
b4e70030 4267ac_cv_var__etext=no
bec39cab
AC
4268fi
4269rm -f conftest.err conftest.$ac_objext \
4270 conftest$ac_exeext conftest.$ac_ext
4271fi
b4e70030
JB
4272echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
4273echo "${ECHO_T}$ac_cv_var__etext" >&6
bec39cab
AC
4274if test $ac_cv_var__etext = yes; then
4275
4276cat >>confdefs.h <<\_ACEOF
4277#define HAVE__ETEXT 1
4278_ACEOF
4279
01fe12f6
JB
4280fi
4281echo "$as_me:$LINENO: checking for etext" >&5
4282echo $ECHO_N "checking for etext... $ECHO_C" >&6
4283if test "${ac_cv_var_etext+set}" = set; then
4284 echo $ECHO_N "(cached) $ECHO_C" >&6
4285else
4286 cat >conftest.$ac_ext <<_ACEOF
4287/* confdefs.h. */
4288_ACEOF
4289cat confdefs.h >>conftest.$ac_ext
4290cat >>conftest.$ac_ext <<_ACEOF
4291/* end confdefs.h. */
4292#include <stdlib.h>
4293extern char etext;
4294
4295int
4296main ()
4297{
4298free (&etext);
4299 ;
4300 return 0;
4301}
4302_ACEOF
4303rm -f conftest.$ac_objext conftest$ac_exeext
4304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4305 (eval $ac_link) 2>conftest.er1
4306 ac_status=$?
4307 grep -v '^ *+' conftest.er1 >conftest.err
4308 rm -f conftest.er1
4309 cat conftest.err >&5
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); } &&
4312 { ac_try='test -z "$ac_c_werror_flag"
4313 || test ! -s conftest.err'
4314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315 (eval $ac_try) 2>&5
4316 ac_status=$?
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; } &&
4319 { ac_try='test -s conftest$ac_exeext'
4320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4321 (eval $ac_try) 2>&5
4322 ac_status=$?
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); }; }; then
4325 ac_cv_var_etext=yes
4326else
4327 echo "$as_me: failed program was:" >&5
4328sed 's/^/| /' conftest.$ac_ext >&5
4329
4330ac_cv_var_etext=no
4331fi
4332rm -f conftest.err conftest.$ac_objext \
4333 conftest$ac_exeext conftest.$ac_ext
4334fi
4335echo "$as_me:$LINENO: result: $ac_cv_var_etext" >&5
4336echo "${ECHO_T}$ac_cv_var_etext" >&6
4337if test $ac_cv_var_etext = yes; then
4338
4339cat >>confdefs.h <<\_ACEOF
4340#define HAVE_ETEXT 1
4341_ACEOF
4342
bec39cab
AC
4343fi
4344if test "$enable_profiling" = yes ; then
4345 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
4346 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
4347echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
4348 { (exit 1); exit 1; }; }
4349 fi
4350 PROFILE_CFLAGS=-pg
4351 OLD_CFLAGS="$CFLAGS"
4352 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
4353
b4e70030
JB
4354 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
4355echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
bec39cab
AC
4356if test "${ac_cv_cc_supports_pg+set}" = set; then
4357 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4358else
bec39cab
AC
4359 cat >conftest.$ac_ext <<_ACEOF
4360/* confdefs.h. */
4361_ACEOF
4362cat confdefs.h >>conftest.$ac_ext
4363cat >>conftest.$ac_ext <<_ACEOF
4364/* end confdefs.h. */
4365
4366int
4367main ()
4368{
4369int x;
4370 ;
4371 return 0;
4372}
4373_ACEOF
4374rm -f conftest.$ac_objext
4375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4376 (eval $ac_compile) 2>conftest.er1
4377 ac_status=$?
4378 grep -v '^ *+' conftest.er1 >conftest.err
4379 rm -f conftest.er1
4380 cat conftest.err >&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); } &&
b4e70030
JB
4383 { ac_try='test -z "$ac_c_werror_flag"
4384 || test ! -s conftest.err'
bec39cab
AC
4385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4386 (eval $ac_try) 2>&5
4387 ac_status=$?
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); }; } &&
4390 { ac_try='test -s conftest.$ac_objext'
4391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4392 (eval $ac_try) 2>&5
4393 ac_status=$?
4394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); }; }; then
4396 ac_cv_cc_supports_pg=yes
4397else
4398 echo "$as_me: failed program was:" >&5
4399sed 's/^/| /' conftest.$ac_ext >&5
4400
b4e70030 4401ac_cv_cc_supports_pg=no
bec39cab
AC
4402fi
4403rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4404fi
b4e70030
JB
4405echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
4406echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
bec39cab
AC
4407
4408 if test $ac_cv_cc_supports_pg = no; then
4409 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
4410echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
4411 { (exit 1); exit 1; }; }
4412 fi
4413
4414 CFLAGS="$OLD_CFLAGS"
4415fi
4416
4417# --------------------- #
4418# Checks for programs. #
4419# --------------------- #
4420
4421for ac_prog in gawk mawk nawk awk
4422do
4423 # Extract the first word of "$ac_prog", so it can be a program name with args.
4424set dummy $ac_prog; ac_word=$2
b4e70030
JB
4425echo "$as_me:$LINENO: checking for $ac_word" >&5
4426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4427if test "${ac_cv_prog_AWK+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4429else
4430 if test -n "$AWK"; then
4431 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4432else
4433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434for as_dir in $PATH
4435do
4436 IFS=$as_save_IFS
4437 test -z "$as_dir" && as_dir=.
4438 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4440 ac_cv_prog_AWK="$ac_prog"
4441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4442 break 2
4443 fi
4444done
4445done
4446
4447fi
4448fi
4449AWK=$ac_cv_prog_AWK
4450if test -n "$AWK"; then
b4e70030
JB
4451 echo "$as_me:$LINENO: result: $AWK" >&5
4452echo "${ECHO_T}$AWK" >&6
bec39cab 4453else
b4e70030
JB
4454 echo "$as_me:$LINENO: result: no" >&5
4455echo "${ECHO_T}no" >&6
bec39cab
AC
4456fi
4457
4458 test -n "$AWK" && break
4459done
4460
4461# Find a good install program. We prefer a C program (faster),
4462# so one script is as good as another. But avoid the broken or
4463# incompatible versions:
4464# SysV /etc/install, /usr/sbin/install
4465# SunOS /usr/etc/install
4466# IRIX /sbin/install
4467# AIX /bin/install
4468# AmigaOS /C/install, which installs bootblocks on floppy discs
4469# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4470# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4471# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4472# OS/2's system install, which has a completely different semantic
4473# ./install, which can be erroneously created by make from ./install.sh.
b4e70030
JB
4474echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4475echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
bec39cab
AC
4476if test -z "$INSTALL"; then
4477if test "${ac_cv_path_install+set}" = set; then
4478 echo $ECHO_N "(cached) $ECHO_C" >&6
4479else
4480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481for as_dir in $PATH
4482do
4483 IFS=$as_save_IFS
4484 test -z "$as_dir" && as_dir=.
4485 # Account for people who put trailing slashes in PATH elements.
4486case $as_dir/ in
4487 ./ | .// | /cC/* | \
4488 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4489 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4490 /usr/ucb/* ) ;;
c906108c 4491 *)
bec39cab
AC
4492 # OSF1 and SCO ODT 3.0 have their own names for install.
4493 # Don't use installbsd from OSF since it installs stuff as root
4494 # by default.
4495 for ac_prog in ginstall scoinst install; do
4496 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4497 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
bec39cab
AC
4498 if test $ac_prog = install &&
4499 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4500 # AIX install. It has an incompatible calling convention.
4501 :
4502 elif test $ac_prog = install &&
4503 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4504 # program-specific install script used by HP pwplus--don't use.
4505 :
4506 else
4507 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4508 break 3
4509 fi
4510 fi
4511 done
4512 done
4513 ;;
c906108c 4514esac
bec39cab
AC
4515done
4516
4517
4518fi
4519 if test "${ac_cv_path_install+set}" = set; then
4520 INSTALL=$ac_cv_path_install
4521 else
b4e70030
JB
4522 # As a last resort, use the slow shell script. We don't cache a
4523 # path for INSTALL within a source directory, because that will
bec39cab 4524 # break other packages using the cache if that directory is
b4e70030 4525 # removed, or if the path is relative.
bec39cab
AC
4526 INSTALL=$ac_install_sh
4527 fi
4528fi
b4e70030
JB
4529echo "$as_me:$LINENO: result: $INSTALL" >&5
4530echo "${ECHO_T}$INSTALL" >&6
bec39cab
AC
4531
4532# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4533# It thinks the first close brace ends the variable substitution.
4534test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4535
4536test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4537
4538test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4539
b4e70030
JB
4540echo "$as_me:$LINENO: checking whether ln -s works" >&5
4541echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
bec39cab
AC
4542LN_S=$as_ln_s
4543if test "$LN_S" = "ln -s"; then
b4e70030
JB
4544 echo "$as_me:$LINENO: result: yes" >&5
4545echo "${ECHO_T}yes" >&6
bec39cab 4546else
b4e70030
JB
4547 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4548echo "${ECHO_T}no, using $LN_S" >&6
bec39cab
AC
4549fi
4550
4551if test -n "$ac_tool_prefix"; then
4552 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4553set dummy ${ac_tool_prefix}ranlib; ac_word=$2
b4e70030
JB
4554echo "$as_me:$LINENO: checking for $ac_word" >&5
4555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4556if test "${ac_cv_prog_RANLIB+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
4558else
4559 if test -n "$RANLIB"; then
4560 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4561else
4562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563for as_dir in $PATH
4564do
4565 IFS=$as_save_IFS
4566 test -z "$as_dir" && as_dir=.
4567 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4569 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4571 break 2
4572 fi
4573done
4574done
4575
4576fi
4577fi
4578RANLIB=$ac_cv_prog_RANLIB
4579if test -n "$RANLIB"; then
b4e70030
JB
4580 echo "$as_me:$LINENO: result: $RANLIB" >&5
4581echo "${ECHO_T}$RANLIB" >&6
bec39cab 4582else
b4e70030
JB
4583 echo "$as_me:$LINENO: result: no" >&5
4584echo "${ECHO_T}no" >&6
bec39cab
AC
4585fi
4586
4587fi
4588if test -z "$ac_cv_prog_RANLIB"; then
4589 ac_ct_RANLIB=$RANLIB
4590 # Extract the first word of "ranlib", so it can be a program name with args.
4591set dummy ranlib; ac_word=$2
b4e70030
JB
4592echo "$as_me:$LINENO: checking for $ac_word" >&5
4593echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4594if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4595 echo $ECHO_N "(cached) $ECHO_C" >&6
4596else
4597 if test -n "$ac_ct_RANLIB"; then
4598 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4599else
4600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4601for as_dir in $PATH
4602do
4603 IFS=$as_save_IFS
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4607 ac_cv_prog_ac_ct_RANLIB="ranlib"
4608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4609 break 2
4610 fi
4611done
4612done
4613
b4e70030 4614 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
bec39cab
AC
4615fi
4616fi
4617ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4618if test -n "$ac_ct_RANLIB"; then
b4e70030
JB
4619 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4620echo "${ECHO_T}$ac_ct_RANLIB" >&6
bec39cab 4621else
b4e70030
JB
4622 echo "$as_me:$LINENO: result: no" >&5
4623echo "${ECHO_T}no" >&6
bec39cab
AC
4624fi
4625
b4e70030 4626 RANLIB=$ac_ct_RANLIB
bec39cab
AC
4627else
4628 RANLIB="$ac_cv_prog_RANLIB"
4629fi
4630
4631for ac_prog in 'bison -y' byacc
4632do
4633 # Extract the first word of "$ac_prog", so it can be a program name with args.
4634set dummy $ac_prog; ac_word=$2
b4e70030
JB
4635echo "$as_me:$LINENO: checking for $ac_word" >&5
4636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4637if test "${ac_cv_prog_YACC+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4639else
4640 if test -n "$YACC"; then
4641 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4642else
4643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644for as_dir in $PATH
4645do
4646 IFS=$as_save_IFS
4647 test -z "$as_dir" && as_dir=.
4648 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4650 ac_cv_prog_YACC="$ac_prog"
4651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4652 break 2
4653 fi
4654done
4655done
4656
4657fi
4658fi
4659YACC=$ac_cv_prog_YACC
4660if test -n "$YACC"; then
b4e70030
JB
4661 echo "$as_me:$LINENO: result: $YACC" >&5
4662echo "${ECHO_T}$YACC" >&6
bec39cab 4663else
b4e70030
JB
4664 echo "$as_me:$LINENO: result: no" >&5
4665echo "${ECHO_T}no" >&6
bec39cab
AC
4666fi
4667
4668 test -n "$YACC" && break
4669done
4670test -n "$YACC" || YACC="yacc"
4671
4672
4673if test -n "$ac_tool_prefix"; then
4674 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4675set dummy ${ac_tool_prefix}ar; ac_word=$2
b4e70030
JB
4676echo "$as_me:$LINENO: checking for $ac_word" >&5
4677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4678if test "${ac_cv_prog_AR+set}" = set; then
4679 echo $ECHO_N "(cached) $ECHO_C" >&6
4680else
4681 if test -n "$AR"; then
4682 ac_cv_prog_AR="$AR" # Let the user override the test.
4683else
4684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4685for as_dir in $PATH
4686do
4687 IFS=$as_save_IFS
4688 test -z "$as_dir" && as_dir=.
4689 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4691 ac_cv_prog_AR="${ac_tool_prefix}ar"
4692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4693 break 2
4694 fi
4695done
4696done
4697
4698fi
4699fi
4700AR=$ac_cv_prog_AR
4701if test -n "$AR"; then
b4e70030
JB
4702 echo "$as_me:$LINENO: result: $AR" >&5
4703echo "${ECHO_T}$AR" >&6
bec39cab 4704else
b4e70030
JB
4705 echo "$as_me:$LINENO: result: no" >&5
4706echo "${ECHO_T}no" >&6
bec39cab
AC
4707fi
4708
4709fi
4710if test -z "$ac_cv_prog_AR"; then
4711 ac_ct_AR=$AR
4712 # Extract the first word of "ar", so it can be a program name with args.
4713set dummy ar; ac_word=$2
b4e70030
JB
4714echo "$as_me:$LINENO: checking for $ac_word" >&5
4715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4716if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4717 echo $ECHO_N "(cached) $ECHO_C" >&6
4718else
4719 if test -n "$ac_ct_AR"; then
4720 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4721else
4722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723for as_dir in $PATH
4724do
4725 IFS=$as_save_IFS
4726 test -z "$as_dir" && as_dir=.
4727 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4729 ac_cv_prog_ac_ct_AR="ar"
4730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4731 break 2
4732 fi
4733done
4734done
4735
4736fi
4737fi
4738ac_ct_AR=$ac_cv_prog_ac_ct_AR
4739if test -n "$ac_ct_AR"; then
b4e70030
JB
4740 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4741echo "${ECHO_T}$ac_ct_AR" >&6
bec39cab 4742else
b4e70030
JB
4743 echo "$as_me:$LINENO: result: no" >&5
4744echo "${ECHO_T}no" >&6
bec39cab
AC
4745fi
4746
b4e70030 4747 AR=$ac_ct_AR
bec39cab
AC
4748else
4749 AR="$ac_cv_prog_AR"
4750fi
4751
4752if test -n "$ac_tool_prefix"; then
4753 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4754set dummy ${ac_tool_prefix}dlltool; ac_word=$2
b4e70030
JB
4755echo "$as_me:$LINENO: checking for $ac_word" >&5
4756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4757if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4758 echo $ECHO_N "(cached) $ECHO_C" >&6
4759else
4760 if test -n "$DLLTOOL"; then
4761 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4762else
4763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764for as_dir in $PATH
4765do
4766 IFS=$as_save_IFS
4767 test -z "$as_dir" && as_dir=.
4768 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4770 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4772 break 2
4773 fi
4774done
4775done
4776
4777fi
4778fi
4779DLLTOOL=$ac_cv_prog_DLLTOOL
4780if test -n "$DLLTOOL"; then
b4e70030
JB
4781 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4782echo "${ECHO_T}$DLLTOOL" >&6
bec39cab 4783else
b4e70030
JB
4784 echo "$as_me:$LINENO: result: no" >&5
4785echo "${ECHO_T}no" >&6
bec39cab
AC
4786fi
4787
4788fi
4789if test -z "$ac_cv_prog_DLLTOOL"; then
4790 ac_ct_DLLTOOL=$DLLTOOL
4791 # Extract the first word of "dlltool", so it can be a program name with args.
4792set dummy dlltool; ac_word=$2
b4e70030
JB
4793echo "$as_me:$LINENO: checking for $ac_word" >&5
4794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4795if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4796 echo $ECHO_N "(cached) $ECHO_C" >&6
4797else
4798 if test -n "$ac_ct_DLLTOOL"; then
4799 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4800else
4801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802for as_dir in $PATH
4803do
4804 IFS=$as_save_IFS
4805 test -z "$as_dir" && as_dir=.
4806 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4808 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4810 break 2
4811 fi
4812done
4813done
4814
4815fi
4816fi
4817ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4818if test -n "$ac_ct_DLLTOOL"; then
b4e70030
JB
4819 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4820echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
bec39cab 4821else
b4e70030
JB
4822 echo "$as_me:$LINENO: result: no" >&5
4823echo "${ECHO_T}no" >&6
bec39cab
AC
4824fi
4825
b4e70030 4826 DLLTOOL=$ac_ct_DLLTOOL
bec39cab
AC
4827else
4828 DLLTOOL="$ac_cv_prog_DLLTOOL"
4829fi
4830
4831if test -n "$ac_tool_prefix"; then
4832 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4833set dummy ${ac_tool_prefix}windres; ac_word=$2
b4e70030
JB
4834echo "$as_me:$LINENO: checking for $ac_word" >&5
4835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4836if test "${ac_cv_prog_WINDRES+set}" = set; then
4837 echo $ECHO_N "(cached) $ECHO_C" >&6
4838else
4839 if test -n "$WINDRES"; then
4840 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4841else
4842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843for as_dir in $PATH
4844do
4845 IFS=$as_save_IFS
4846 test -z "$as_dir" && as_dir=.
4847 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4849 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4851 break 2
4852 fi
4853done
4854done
4855
4856fi
4857fi
4858WINDRES=$ac_cv_prog_WINDRES
4859if test -n "$WINDRES"; then
b4e70030
JB
4860 echo "$as_me:$LINENO: result: $WINDRES" >&5
4861echo "${ECHO_T}$WINDRES" >&6
bec39cab 4862else
b4e70030
JB
4863 echo "$as_me:$LINENO: result: no" >&5
4864echo "${ECHO_T}no" >&6
bec39cab
AC
4865fi
4866
4867fi
4868if test -z "$ac_cv_prog_WINDRES"; then
4869 ac_ct_WINDRES=$WINDRES
4870 # Extract the first word of "windres", so it can be a program name with args.
4871set dummy windres; ac_word=$2
b4e70030
JB
4872echo "$as_me:$LINENO: checking for $ac_word" >&5
4873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4874if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4875 echo $ECHO_N "(cached) $ECHO_C" >&6
4876else
4877 if test -n "$ac_ct_WINDRES"; then
4878 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4879else
4880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881for as_dir in $PATH
4882do
4883 IFS=$as_save_IFS
4884 test -z "$as_dir" && as_dir=.
4885 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4887 ac_cv_prog_ac_ct_WINDRES="windres"
4888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4889 break 2
4890 fi
4891done
4892done
4893
4894fi
4895fi
4896ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4897if test -n "$ac_ct_WINDRES"; then
b4e70030
JB
4898 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4899echo "${ECHO_T}$ac_ct_WINDRES" >&6
bec39cab 4900else
b4e70030
JB
4901 echo "$as_me:$LINENO: result: no" >&5
4902echo "${ECHO_T}no" >&6
c906108c 4903fi
bec39cab 4904
b4e70030 4905 WINDRES=$ac_ct_WINDRES
c906108c 4906else
bec39cab 4907 WINDRES="$ac_cv_prog_WINDRES"
c906108c
SS
4908fi
4909
bec39cab
AC
4910
4911# Needed for GNU/Hurd.
4912if test -n "$ac_tool_prefix"; then
4913 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
4914set dummy ${ac_tool_prefix}mig; ac_word=$2
b4e70030
JB
4915echo "$as_me:$LINENO: checking for $ac_word" >&5
4916echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4917if test "${ac_cv_prog_MIG+set}" = set; then
4918 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4919else
bec39cab
AC
4920 if test -n "$MIG"; then
4921 ac_cv_prog_MIG="$MIG" # Let the user override the test.
4922else
4923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924for as_dir in $PATH
4925do
4926 IFS=$as_save_IFS
4927 test -z "$as_dir" && as_dir=.
4928 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4930 ac_cv_prog_MIG="${ac_tool_prefix}mig"
4931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4932 break 2
4933 fi
4934done
4935done
4936
c906108c 4937fi
bec39cab
AC
4938fi
4939MIG=$ac_cv_prog_MIG
4940if test -n "$MIG"; then
b4e70030
JB
4941 echo "$as_me:$LINENO: result: $MIG" >&5
4942echo "${ECHO_T}$MIG" >&6
c906108c 4943else
b4e70030
JB
4944 echo "$as_me:$LINENO: result: no" >&5
4945echo "${ECHO_T}no" >&6
c906108c
SS
4946fi
4947
bec39cab
AC
4948fi
4949if test -z "$ac_cv_prog_MIG"; then
4950 ac_ct_MIG=$MIG
4951 # Extract the first word of "mig", so it can be a program name with args.
4952set dummy mig; ac_word=$2
b4e70030
JB
4953echo "$as_me:$LINENO: checking for $ac_word" >&5
4954echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4955if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
4956 echo $ECHO_N "(cached) $ECHO_C" >&6
4957else
4958 if test -n "$ac_ct_MIG"; then
4959 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
4960else
4961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962for as_dir in $PATH
4963do
4964 IFS=$as_save_IFS
4965 test -z "$as_dir" && as_dir=.
4966 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4968 ac_cv_prog_ac_ct_MIG="mig"
4969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4970 break 2
4971 fi
4972done
4973done
c906108c 4974
bec39cab
AC
4975fi
4976fi
4977ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
4978if test -n "$ac_ct_MIG"; then
b4e70030
JB
4979 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
4980echo "${ECHO_T}$ac_ct_MIG" >&6
bec39cab 4981else
b4e70030
JB
4982 echo "$as_me:$LINENO: result: no" >&5
4983echo "${ECHO_T}no" >&6
bec39cab 4984fi
c906108c 4985
b4e70030 4986 MIG=$ac_ct_MIG
bec39cab
AC
4987else
4988 MIG="$ac_cv_prog_MIG"
4989fi
c906108c 4990
c906108c 4991
bec39cab
AC
4992# ---------------------- #
4993# Checks for libraries. #
4994# ---------------------- #
c906108c 4995
bec39cab 4996# We might need to link with -lm; most simulators need it.
c906108c 4997
b4e70030
JB
4998echo "$as_me:$LINENO: checking for main in -lm" >&5
4999echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
bec39cab
AC
5000if test "${ac_cv_lib_m_main+set}" = set; then
5001 echo $ECHO_N "(cached) $ECHO_C" >&6
5002else
5003 ac_check_lib_save_LIBS=$LIBS
5004LIBS="-lm $LIBS"
5005cat >conftest.$ac_ext <<_ACEOF
5006/* confdefs.h. */
5007_ACEOF
5008cat confdefs.h >>conftest.$ac_ext
5009cat >>conftest.$ac_ext <<_ACEOF
5010/* end confdefs.h. */
c906108c 5011
c906108c 5012
bec39cab
AC
5013int
5014main ()
5015{
b4e70030 5016main ();
bec39cab
AC
5017 ;
5018 return 0;
5019}
5020_ACEOF
5021rm -f conftest.$ac_objext conftest$ac_exeext
5022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5023 (eval $ac_link) 2>conftest.er1
5024 ac_status=$?
5025 grep -v '^ *+' conftest.er1 >conftest.err
5026 rm -f conftest.er1
5027 cat conftest.err >&5
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); } &&
b4e70030
JB
5030 { ac_try='test -z "$ac_c_werror_flag"
5031 || test ! -s conftest.err'
bec39cab
AC
5032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5033 (eval $ac_try) 2>&5
5034 ac_status=$?
5035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); }; } &&
5037 { ac_try='test -s conftest$ac_exeext'
5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039 (eval $ac_try) 2>&5
5040 ac_status=$?
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; }; then
5043 ac_cv_lib_m_main=yes
5044else
5045 echo "$as_me: failed program was:" >&5
5046sed 's/^/| /' conftest.$ac_ext >&5
5047
b4e70030 5048ac_cv_lib_m_main=no
bec39cab
AC
5049fi
5050rm -f conftest.err conftest.$ac_objext \
5051 conftest$ac_exeext conftest.$ac_ext
5052LIBS=$ac_check_lib_save_LIBS
5053fi
b4e70030
JB
5054echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
5055echo "${ECHO_T}$ac_cv_lib_m_main" >&6
bec39cab
AC
5056if test $ac_cv_lib_m_main = yes; then
5057 cat >>confdefs.h <<_ACEOF
5058#define HAVE_LIBM 1
5059_ACEOF
5060
5061 LIBS="-lm $LIBS"
c906108c 5062
c906108c 5063fi
bec39cab
AC
5064
5065
5066# We need to link with -lw to get `wctype' on Solaris before Solaris
5067# 2.6. Solaris 2.6 and beyond have this function in libc, and have a
5068# libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
5069# is known to have this problem). Therefore we avoid libw if we can.
b4e70030
JB
5070echo "$as_me:$LINENO: checking for wctype" >&5
5071echo $ECHO_N "checking for wctype... $ECHO_C" >&6
bec39cab
AC
5072if test "${ac_cv_func_wctype+set}" = set; then
5073 echo $ECHO_N "(cached) $ECHO_C" >&6
5074else
5075 cat >conftest.$ac_ext <<_ACEOF
5076/* confdefs.h. */
5077_ACEOF
5078cat confdefs.h >>conftest.$ac_ext
5079cat >>conftest.$ac_ext <<_ACEOF
5080/* end confdefs.h. */
5081/* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
5082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5083#define wctype innocuous_wctype
5084
5085/* System header to define __stub macros and hopefully few prototypes,
5086 which can conflict with char wctype (); below.
5087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5088 <limits.h> exists even on freestanding compilers. */
5089
5090#ifdef __STDC__
5091# include <limits.h>
5092#else
5093# include <assert.h>
5094#endif
5095
5096#undef wctype
5097
b4e70030 5098/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5099#ifdef __cplusplus
5100extern "C"
b4e70030 5101{
bec39cab 5102#endif
b4e70030
JB
5103/* We use char because int might match the return type of a gcc2
5104 builtin and then its argument prototype would still apply. */
bec39cab
AC
5105char wctype ();
5106/* The GNU C library defines this for functions which it implements
5107 to always fail with ENOSYS. Some functions are actually named
5108 something starting with __ and the normal name is an alias. */
b4e70030 5109#if defined (__stub_wctype) || defined (__stub___wctype)
bec39cab 5110choke me
b4e70030
JB
5111#else
5112char (*f) () = wctype;
5113#endif
5114#ifdef __cplusplus
5115}
bec39cab
AC
5116#endif
5117
5118int
5119main ()
5120{
b4e70030 5121return f != wctype;
bec39cab
AC
5122 ;
5123 return 0;
5124}
5125_ACEOF
5126rm -f conftest.$ac_objext conftest$ac_exeext
5127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5128 (eval $ac_link) 2>conftest.er1
5129 ac_status=$?
5130 grep -v '^ *+' conftest.er1 >conftest.err
5131 rm -f conftest.er1
5132 cat conftest.err >&5
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); } &&
b4e70030
JB
5135 { ac_try='test -z "$ac_c_werror_flag"
5136 || test ! -s conftest.err'
bec39cab
AC
5137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5138 (eval $ac_try) 2>&5
5139 ac_status=$?
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); }; } &&
5142 { ac_try='test -s conftest$ac_exeext'
5143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5144 (eval $ac_try) 2>&5
5145 ac_status=$?
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); }; }; then
5148 ac_cv_func_wctype=yes
5149else
5150 echo "$as_me: failed program was:" >&5
5151sed 's/^/| /' conftest.$ac_ext >&5
5152
b4e70030 5153ac_cv_func_wctype=no
bec39cab
AC
5154fi
5155rm -f conftest.err conftest.$ac_objext \
5156 conftest$ac_exeext conftest.$ac_ext
5157fi
b4e70030
JB
5158echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
5159echo "${ECHO_T}$ac_cv_func_wctype" >&6
bec39cab
AC
5160if test $ac_cv_func_wctype = yes; then
5161 :
c906108c 5162else
c906108c 5163
b4e70030
JB
5164echo "$as_me:$LINENO: checking for wctype in -lw" >&5
5165echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
bec39cab
AC
5166if test "${ac_cv_lib_w_wctype+set}" = set; then
5167 echo $ECHO_N "(cached) $ECHO_C" >&6
5168else
5169 ac_check_lib_save_LIBS=$LIBS
5170LIBS="-lw $LIBS"
5171cat >conftest.$ac_ext <<_ACEOF
5172/* confdefs.h. */
5173_ACEOF
5174cat confdefs.h >>conftest.$ac_ext
5175cat >>conftest.$ac_ext <<_ACEOF
5176/* end confdefs.h. */
c906108c 5177
b4e70030 5178/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5179#ifdef __cplusplus
5180extern "C"
5181#endif
b4e70030
JB
5182/* We use char because int might match the return type of a gcc2
5183 builtin and then its argument prototype would still apply. */
bec39cab
AC
5184char wctype ();
5185int
5186main ()
5187{
b4e70030 5188wctype ();
bec39cab
AC
5189 ;
5190 return 0;
5191}
5192_ACEOF
5193rm -f conftest.$ac_objext conftest$ac_exeext
5194if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5195 (eval $ac_link) 2>conftest.er1
5196 ac_status=$?
5197 grep -v '^ *+' conftest.er1 >conftest.err
5198 rm -f conftest.er1
5199 cat conftest.err >&5
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); } &&
b4e70030
JB
5202 { ac_try='test -z "$ac_c_werror_flag"
5203 || test ! -s conftest.err'
bec39cab
AC
5204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5205 (eval $ac_try) 2>&5
5206 ac_status=$?
5207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5208 (exit $ac_status); }; } &&
5209 { ac_try='test -s conftest$ac_exeext'
5210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5211 (eval $ac_try) 2>&5
5212 ac_status=$?
5213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5214 (exit $ac_status); }; }; then
5215 ac_cv_lib_w_wctype=yes
5216else
5217 echo "$as_me: failed program was:" >&5
5218sed 's/^/| /' conftest.$ac_ext >&5
5219
b4e70030 5220ac_cv_lib_w_wctype=no
bec39cab
AC
5221fi
5222rm -f conftest.err conftest.$ac_objext \
5223 conftest$ac_exeext conftest.$ac_ext
5224LIBS=$ac_check_lib_save_LIBS
5225fi
b4e70030
JB
5226echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
5227echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
bec39cab
AC
5228if test $ac_cv_lib_w_wctype = yes; then
5229 cat >>confdefs.h <<_ACEOF
5230#define HAVE_LIBW 1
5231_ACEOF
c906108c 5232
bec39cab 5233 LIBS="-lw $LIBS"
c906108c 5234
bec39cab 5235fi
c906108c 5236
bec39cab 5237fi
c906108c 5238
ddc9cd0f 5239
bec39cab 5240# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
b4e70030
JB
5241echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
5242echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
bec39cab
AC
5243if test "${ac_cv_search_gethostbyname+set}" = set; then
5244 echo $ECHO_N "(cached) $ECHO_C" >&6
5245else
5246 ac_func_search_save_LIBS=$LIBS
b4e70030 5247ac_cv_search_gethostbyname=no
bec39cab
AC
5248cat >conftest.$ac_ext <<_ACEOF
5249/* confdefs.h. */
5250_ACEOF
5251cat confdefs.h >>conftest.$ac_ext
5252cat >>conftest.$ac_ext <<_ACEOF
5253/* end confdefs.h. */
ddc9cd0f 5254
b4e70030 5255/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5256#ifdef __cplusplus
5257extern "C"
5258#endif
b4e70030
JB
5259/* We use char because int might match the return type of a gcc2
5260 builtin and then its argument prototype would still apply. */
bec39cab
AC
5261char gethostbyname ();
5262int
5263main ()
5264{
b4e70030 5265gethostbyname ();
bec39cab
AC
5266 ;
5267 return 0;
5268}
5269_ACEOF
b4e70030 5270rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
5271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5272 (eval $ac_link) 2>conftest.er1
5273 ac_status=$?
5274 grep -v '^ *+' conftest.er1 >conftest.err
5275 rm -f conftest.er1
5276 cat conftest.err >&5
5277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278 (exit $ac_status); } &&
b4e70030
JB
5279 { ac_try='test -z "$ac_c_werror_flag"
5280 || test ! -s conftest.err'
bec39cab
AC
5281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5282 (eval $ac_try) 2>&5
5283 ac_status=$?
5284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5285 (exit $ac_status); }; } &&
5286 { ac_try='test -s conftest$ac_exeext'
5287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5288 (eval $ac_try) 2>&5
5289 ac_status=$?
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); }; }; then
b4e70030 5292 ac_cv_search_gethostbyname="none required"
bec39cab
AC
5293else
5294 echo "$as_me: failed program was:" >&5
5295sed 's/^/| /' conftest.$ac_ext >&5
ddc9cd0f 5296
bec39cab
AC
5297fi
5298rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
5299 conftest$ac_exeext conftest.$ac_ext
5300if test "$ac_cv_search_gethostbyname" = no; then
5301 for ac_lib in nsl; do
5302 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5303 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
5304/* confdefs.h. */
5305_ACEOF
5306cat confdefs.h >>conftest.$ac_ext
5307cat >>conftest.$ac_ext <<_ACEOF
5308/* end confdefs.h. */
ddc9cd0f 5309
b4e70030 5310/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5311#ifdef __cplusplus
5312extern "C"
5313#endif
b4e70030
JB
5314/* We use char because int might match the return type of a gcc2
5315 builtin and then its argument prototype would still apply. */
5316char gethostbyname ();
bec39cab
AC
5317int
5318main ()
5319{
b4e70030 5320gethostbyname ();
bec39cab
AC
5321 ;
5322 return 0;
5323}
5324_ACEOF
b4e70030 5325rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
5326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5327 (eval $ac_link) 2>conftest.er1
5328 ac_status=$?
5329 grep -v '^ *+' conftest.er1 >conftest.err
5330 rm -f conftest.er1
5331 cat conftest.err >&5
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); } &&
b4e70030
JB
5334 { ac_try='test -z "$ac_c_werror_flag"
5335 || test ! -s conftest.err'
bec39cab
AC
5336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5337 (eval $ac_try) 2>&5
5338 ac_status=$?
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); }; } &&
5341 { ac_try='test -s conftest$ac_exeext'
5342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5343 (eval $ac_try) 2>&5
5344 ac_status=$?
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); }; }; then
b4e70030
JB
5347 ac_cv_search_gethostbyname="-l$ac_lib"
5348break
bec39cab
AC
5349else
5350 echo "$as_me: failed program was:" >&5
5351sed 's/^/| /' conftest.$ac_ext >&5
5352
5353fi
5354rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
5355 conftest$ac_exeext conftest.$ac_ext
5356 done
bec39cab
AC
5357fi
5358LIBS=$ac_func_search_save_LIBS
5359fi
b4e70030
JB
5360echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
5361echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
5362if test "$ac_cv_search_gethostbyname" != no; then
5363 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
96baa820 5364
bec39cab 5365fi
96baa820 5366
c906108c 5367
b4e70030
JB
5368# Some systems (e.g. Solaris) have `socketpair' in libsocket.
5369echo "$as_me:$LINENO: checking for library containing socketpair" >&5
5370echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
5371if test "${ac_cv_search_socketpair+set}" = set; then
5372 echo $ECHO_N "(cached) $ECHO_C" >&6
5373else
5374 ac_func_search_save_LIBS=$LIBS
5375ac_cv_search_socketpair=no
5376cat >conftest.$ac_ext <<_ACEOF
5377/* confdefs.h. */
5378_ACEOF
5379cat confdefs.h >>conftest.$ac_ext
5380cat >>conftest.$ac_ext <<_ACEOF
5381/* end confdefs.h. */
5382
5383/* Override any gcc2 internal prototype to avoid an error. */
5384#ifdef __cplusplus
5385extern "C"
5386#endif
5387/* We use char because int might match the return type of a gcc2
5388 builtin and then its argument prototype would still apply. */
5389char socketpair ();
5390int
5391main ()
5392{
5393socketpair ();
5394 ;
5395 return 0;
5396}
5397_ACEOF
5398rm -f conftest.$ac_objext conftest$ac_exeext
5399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5400 (eval $ac_link) 2>conftest.er1
5401 ac_status=$?
5402 grep -v '^ *+' conftest.er1 >conftest.err
5403 rm -f conftest.er1
5404 cat conftest.err >&5
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); } &&
5407 { ac_try='test -z "$ac_c_werror_flag"
5408 || test ! -s conftest.err'
5409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5410 (eval $ac_try) 2>&5
5411 ac_status=$?
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); }; } &&
5414 { ac_try='test -s conftest$ac_exeext'
5415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5416 (eval $ac_try) 2>&5
5417 ac_status=$?
5418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5419 (exit $ac_status); }; }; then
5420 ac_cv_search_socketpair="none required"
5421else
5422 echo "$as_me: failed program was:" >&5
5423sed 's/^/| /' conftest.$ac_ext >&5
5424
5425fi
5426rm -f conftest.err conftest.$ac_objext \
5427 conftest$ac_exeext conftest.$ac_ext
5428if test "$ac_cv_search_socketpair" = no; then
5429 for ac_lib in socket; do
5430 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5431 cat >conftest.$ac_ext <<_ACEOF
5432/* confdefs.h. */
5433_ACEOF
5434cat confdefs.h >>conftest.$ac_ext
5435cat >>conftest.$ac_ext <<_ACEOF
5436/* end confdefs.h. */
5437
5438/* Override any gcc2 internal prototype to avoid an error. */
5439#ifdef __cplusplus
5440extern "C"
5441#endif
5442/* We use char because int might match the return type of a gcc2
5443 builtin and then its argument prototype would still apply. */
5444char socketpair ();
5445int
5446main ()
5447{
5448socketpair ();
5449 ;
5450 return 0;
5451}
5452_ACEOF
5453rm -f conftest.$ac_objext conftest$ac_exeext
5454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5455 (eval $ac_link) 2>conftest.er1
5456 ac_status=$?
5457 grep -v '^ *+' conftest.er1 >conftest.err
5458 rm -f conftest.er1
5459 cat conftest.err >&5
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); } &&
5462 { ac_try='test -z "$ac_c_werror_flag"
5463 || test ! -s conftest.err'
5464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5465 (eval $ac_try) 2>&5
5466 ac_status=$?
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); }; } &&
5469 { ac_try='test -s conftest$ac_exeext'
5470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5471 (eval $ac_try) 2>&5
5472 ac_status=$?
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); }; }; then
5475 ac_cv_search_socketpair="-l$ac_lib"
5476break
5477else
5478 echo "$as_me: failed program was:" >&5
5479sed 's/^/| /' conftest.$ac_ext >&5
5480
5481fi
5482rm -f conftest.err conftest.$ac_objext \
5483 conftest$ac_exeext conftest.$ac_ext
5484 done
5485fi
5486LIBS=$ac_func_search_save_LIBS
5487fi
5488echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
5489echo "${ECHO_T}$ac_cv_search_socketpair" >&6
5490if test "$ac_cv_search_socketpair" != no; then
5491 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
5492
5493fi
5494
5495
5496# For the TUI, we need enhanced curses functionality.
bec39cab
AC
5497#
5498# FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
5499# curses library because the latter might not provide all the
5500# functionality we need. However, this leads to problems on systems
5501# where the linker searches /usr/local/lib, but the compiler doesn't
5502# search /usr/local/include, if ncurses is installed in /usr/local. A
5503# default installation of ncurses on alpha*-dec-osf* will lead to such
5504# a situation.
b4e70030
JB
5505echo "$as_me:$LINENO: checking for library containing waddstr" >&5
5506echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
bec39cab
AC
5507if test "${ac_cv_search_waddstr+set}" = set; then
5508 echo $ECHO_N "(cached) $ECHO_C" >&6
5509else
5510 ac_func_search_save_LIBS=$LIBS
b4e70030 5511ac_cv_search_waddstr=no
bec39cab
AC
5512cat >conftest.$ac_ext <<_ACEOF
5513/* confdefs.h. */
5514_ACEOF
5515cat confdefs.h >>conftest.$ac_ext
5516cat >>conftest.$ac_ext <<_ACEOF
5517/* end confdefs.h. */
c906108c 5518
b4e70030 5519/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5520#ifdef __cplusplus
5521extern "C"
5522#endif
b4e70030
JB
5523/* We use char because int might match the return type of a gcc2
5524 builtin and then its argument prototype would still apply. */
bec39cab
AC
5525char waddstr ();
5526int
5527main ()
5528{
b4e70030 5529waddstr ();
bec39cab
AC
5530 ;
5531 return 0;
5532}
5533_ACEOF
b4e70030 5534rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
5535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5536 (eval $ac_link) 2>conftest.er1
5537 ac_status=$?
5538 grep -v '^ *+' conftest.er1 >conftest.err
5539 rm -f conftest.er1
5540 cat conftest.err >&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); } &&
b4e70030
JB
5543 { ac_try='test -z "$ac_c_werror_flag"
5544 || test ! -s conftest.err'
bec39cab
AC
5545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5546 (eval $ac_try) 2>&5
5547 ac_status=$?
5548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5549 (exit $ac_status); }; } &&
5550 { ac_try='test -s conftest$ac_exeext'
5551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5552 (eval $ac_try) 2>&5
5553 ac_status=$?
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); }; }; then
b4e70030 5556 ac_cv_search_waddstr="none required"
bec39cab
AC
5557else
5558 echo "$as_me: failed program was:" >&5
5559sed 's/^/| /' conftest.$ac_ext >&5
1ba607ad
AC
5560
5561fi
bec39cab 5562rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
5563 conftest$ac_exeext conftest.$ac_ext
5564if test "$ac_cv_search_waddstr" = no; then
5565 for ac_lib in ncurses cursesX curses; do
5566 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5567 cat >conftest.$ac_ext <<_ACEOF
5568/* confdefs.h. */
5569_ACEOF
5570cat confdefs.h >>conftest.$ac_ext
5571cat >>conftest.$ac_ext <<_ACEOF
5572/* end confdefs.h. */
5573
5574/* Override any gcc2 internal prototype to avoid an error. */
5575#ifdef __cplusplus
5576extern "C"
5577#endif
5578/* We use char because int might match the return type of a gcc2
5579 builtin and then its argument prototype would still apply. */
5580char waddstr ();
5581int
5582main ()
5583{
5584waddstr ();
5585 ;
5586 return 0;
5587}
5588_ACEOF
5589rm -f conftest.$ac_objext conftest$ac_exeext
5590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5591 (eval $ac_link) 2>conftest.er1
5592 ac_status=$?
5593 grep -v '^ *+' conftest.er1 >conftest.err
5594 rm -f conftest.er1
5595 cat conftest.err >&5
5596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5597 (exit $ac_status); } &&
5598 { ac_try='test -z "$ac_c_werror_flag"
5599 || test ! -s conftest.err'
5600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5601 (eval $ac_try) 2>&5
5602 ac_status=$?
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); }; } &&
5605 { ac_try='test -s conftest$ac_exeext'
5606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5607 (eval $ac_try) 2>&5
5608 ac_status=$?
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); }; }; then
5611 ac_cv_search_waddstr="-l$ac_lib"
5612break
4e8d927d 5613else
b4e70030
JB
5614 echo "$as_me: failed program was:" >&5
5615sed 's/^/| /' conftest.$ac_ext >&5
5616
5617fi
5618rm -f conftest.err conftest.$ac_objext \
5619 conftest$ac_exeext conftest.$ac_ext
5620 done
1ba607ad 5621fi
bec39cab
AC
5622LIBS=$ac_func_search_save_LIBS
5623fi
b4e70030
JB
5624echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
5625echo "${ECHO_T}$ac_cv_search_waddstr" >&6
5626if test "$ac_cv_search_waddstr" != no; then
5627 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
c906108c 5628
8bb2c122 5629fi
8bb2c122 5630
8bb2c122 5631
bec39cab
AC
5632# Since GDB uses Readline, we need termcap functionality. In many
5633# cases this will be provided by the curses library, but some systems
5634# have a seperate termcap library, or no curses library at all.
8bb2c122 5635
bec39cab
AC
5636case $host_os in
5637 cygwin*)
5638 if test -d $srcdir/libtermcap; then
5639 LIBS="../libtermcap/libtermcap.a $LIBS"
5640 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
5641 fi ;;
5642 go32* | *djgpp*)
5643 ac_cv_search_tgetent="none required"
5644 ;;
7ef34f2c
MM
5645 *mingw32*)
5646 ac_cv_search_tgetent="none required"
5647 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
5648 ;;
bec39cab 5649esac
627af7ea 5650
bec39cab 5651# These are the libraries checked by Readline.
b4e70030
JB
5652echo "$as_me:$LINENO: checking for library containing tgetent" >&5
5653echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
bec39cab
AC
5654if test "${ac_cv_search_tgetent+set}" = set; then
5655 echo $ECHO_N "(cached) $ECHO_C" >&6
5656else
5657 ac_func_search_save_LIBS=$LIBS
b4e70030 5658ac_cv_search_tgetent=no
bec39cab
AC
5659cat >conftest.$ac_ext <<_ACEOF
5660/* confdefs.h. */
5661_ACEOF
5662cat confdefs.h >>conftest.$ac_ext
5663cat >>conftest.$ac_ext <<_ACEOF
5664/* end confdefs.h. */
5665
b4e70030 5666/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5667#ifdef __cplusplus
5668extern "C"
5669#endif
b4e70030
JB
5670/* We use char because int might match the return type of a gcc2
5671 builtin and then its argument prototype would still apply. */
bec39cab
AC
5672char tgetent ();
5673int
5674main ()
5675{
b4e70030 5676tgetent ();
bec39cab
AC
5677 ;
5678 return 0;
5679}
5680_ACEOF
b4e70030 5681rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
5682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5683 (eval $ac_link) 2>conftest.er1
5684 ac_status=$?
5685 grep -v '^ *+' conftest.er1 >conftest.err
5686 rm -f conftest.er1
5687 cat conftest.err >&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); } &&
b4e70030
JB
5690 { ac_try='test -z "$ac_c_werror_flag"
5691 || test ! -s conftest.err'
bec39cab
AC
5692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5693 (eval $ac_try) 2>&5
5694 ac_status=$?
5695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5696 (exit $ac_status); }; } &&
5697 { ac_try='test -s conftest$ac_exeext'
5698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5699 (eval $ac_try) 2>&5
5700 ac_status=$?
5701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702 (exit $ac_status); }; }; then
b4e70030 5703 ac_cv_search_tgetent="none required"
627af7ea 5704else
bec39cab
AC
5705 echo "$as_me: failed program was:" >&5
5706sed 's/^/| /' conftest.$ac_ext >&5
627af7ea 5707
627af7ea 5708fi
bec39cab 5709rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
5710 conftest$ac_exeext conftest.$ac_ext
5711if test "$ac_cv_search_tgetent" = no; then
5712 for ac_lib in termcap tinfo curses ncurses; do
5713 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5714 cat >conftest.$ac_ext <<_ACEOF
5715/* confdefs.h. */
5716_ACEOF
5717cat confdefs.h >>conftest.$ac_ext
5718cat >>conftest.$ac_ext <<_ACEOF
5719/* end confdefs.h. */
5720
5721/* Override any gcc2 internal prototype to avoid an error. */
5722#ifdef __cplusplus
5723extern "C"
5724#endif
5725/* We use char because int might match the return type of a gcc2
5726 builtin and then its argument prototype would still apply. */
5727char tgetent ();
5728int
5729main ()
5730{
5731tgetent ();
5732 ;
5733 return 0;
5734}
5735_ACEOF
5736rm -f conftest.$ac_objext conftest$ac_exeext
5737if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5738 (eval $ac_link) 2>conftest.er1
5739 ac_status=$?
5740 grep -v '^ *+' conftest.er1 >conftest.err
5741 rm -f conftest.er1
5742 cat conftest.err >&5
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); } &&
5745 { ac_try='test -z "$ac_c_werror_flag"
5746 || test ! -s conftest.err'
5747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748 (eval $ac_try) 2>&5
5749 ac_status=$?
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); }; } &&
5752 { ac_try='test -s conftest$ac_exeext'
5753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5754 (eval $ac_try) 2>&5
5755 ac_status=$?
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); }; }; then
5758 ac_cv_search_tgetent="-l$ac_lib"
5759break
4e8d927d 5760else
b4e70030
JB
5761 echo "$as_me: failed program was:" >&5
5762sed 's/^/| /' conftest.$ac_ext >&5
5763
5764fi
5765rm -f conftest.err conftest.$ac_objext \
5766 conftest$ac_exeext conftest.$ac_ext
5767 done
bec39cab
AC
5768fi
5769LIBS=$ac_func_search_save_LIBS
5770fi
b4e70030
JB
5771echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
5772echo "${ECHO_T}$ac_cv_search_tgetent" >&6
5773if test "$ac_cv_search_tgetent" != no; then
5774 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
627af7ea 5775
06825bd1
MK
5776fi
5777
06825bd1 5778
bec39cab
AC
5779if test "$ac_cv_search_tgetent" = no; then
5780 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
5781echo "$as_me: error: no termcap library found" >&2;}
5782 { (exit 1); exit 1; }; }
8ee53726
MK
5783fi
5784
3841debe 5785
6a30b0a5
AS
5786# Check whether --with-system-readline or --without-system-readline was given.
5787if test "${with_system_readline+set}" = set; then
5788 withval="$with_system_readline"
5789
5790fi;
5791
5792if test "$with_system_readline" = yes; then
5793 READLINE=-lreadline
5794 READLINE_DEPS=
5795 READLINE_CFLAGS=
5796else
5797 READLINE='$(READLINE_DIR)/libreadline.a'
5798 READLINE_DEPS='$(READLINE)'
5799 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
5800fi
5801
5802
5803
5804
5805
5c39566f
DJ
5806# Check whether --with-expat or --without-expat was given.
5807if test "${with_expat+set}" = set; then
5808 withval="$with_expat"
5809
5810else
5811 with_expat=auto
5812fi;
5813echo "$as_me:$LINENO: checking whether to use expat" >&5
5814echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6
5815echo "$as_me:$LINENO: result: $with_expat" >&5
5816echo "${ECHO_T}$with_expat" >&6
5817
5818if test "${with_expat}" = no; then
5819 { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
5820echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
5821 HAVE_LIBEXPAT=no
5822else
5823
3841debe
DJ
5824 if test "X$prefix" = "XNONE"; then
5825 acl_final_prefix="$ac_default_prefix"
5826 else
5827 acl_final_prefix="$prefix"
5828 fi
5829 if test "X$exec_prefix" = "XNONE"; then
5830 acl_final_exec_prefix='${prefix}'
5831 else
5832 acl_final_exec_prefix="$exec_prefix"
5833 fi
5834 acl_save_prefix="$prefix"
5835 prefix="$acl_final_prefix"
5836 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5837 prefix="$acl_save_prefix"
5838
5839
5840# Check whether --with-gnu-ld or --without-gnu-ld was given.
5841if test "${with_gnu_ld+set}" = set; then
5842 withval="$with_gnu_ld"
5843 test "$withval" = no || with_gnu_ld=yes
5844else
5845 with_gnu_ld=no
5846fi;
5847# Prepare PATH_SEPARATOR.
5848# The user is always right.
5849if test "${PATH_SEPARATOR+set}" != set; then
5850 echo "#! /bin/sh" >conf$$.sh
5851 echo "exit 0" >>conf$$.sh
5852 chmod +x conf$$.sh
5853 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5854 PATH_SEPARATOR=';'
5855 else
5856 PATH_SEPARATOR=:
5857 fi
5858 rm -f conf$$.sh
5859fi
5860ac_prog=ld
5861if test "$GCC" = yes; then
5862 # Check if gcc -print-prog-name=ld gives a path.
5863 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5864echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5865 case $host in
5866 *-*-mingw*)
5867 # gcc leaves a trailing carriage return which upsets mingw
5868 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5869 *)
5870 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5871 esac
5872 case $ac_prog in
5873 # Accept absolute paths.
5874 [\\/]* | [A-Za-z]:[\\/]*)
5875 re_direlt='/[^/][^/]*/\.\./'
5876 # Canonicalize the path of ld
5877 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5878 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5879 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5880 done
5881 test -z "$LD" && LD="$ac_prog"
5882 ;;
5883 "")
5884 # If it fails, then pretend we aren't using GCC.
5885 ac_prog=ld
5886 ;;
5887 *)
5888 # If it is relative, then search for the first ld in PATH.
5889 with_gnu_ld=unknown
5890 ;;
5891 esac
5892elif test "$with_gnu_ld" = yes; then
5893 echo "$as_me:$LINENO: checking for GNU ld" >&5
5894echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5895else
5896 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5897echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5898fi
5899if test "${acl_cv_path_LD+set}" = set; then
5900 echo $ECHO_N "(cached) $ECHO_C" >&6
5901else
5902 if test -z "$LD"; then
5903 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5904 for ac_dir in $PATH; do
5905 test -z "$ac_dir" && ac_dir=.
5906 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5907 acl_cv_path_LD="$ac_dir/$ac_prog"
5908 # Check to see if the program is GNU ld. I'd rather use --version,
5909 # but apparently some GNU ld's only accept -v.
5910 # Break only if it was the GNU/non-GNU ld that we prefer.
5911 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5912 test "$with_gnu_ld" != no && break
5913 else
5914 test "$with_gnu_ld" != yes && break
5915 fi
5916 fi
5917 done
5918 IFS="$ac_save_ifs"
5919else
5920 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5921fi
5922fi
5923
5924LD="$acl_cv_path_LD"
5925if test -n "$LD"; then
5926 echo "$as_me:$LINENO: result: $LD" >&5
5927echo "${ECHO_T}$LD" >&6
5928else
5929 echo "$as_me:$LINENO: result: no" >&5
5930echo "${ECHO_T}no" >&6
5931fi
5932test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5933echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5934 { (exit 1); exit 1; }; }
5935echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5936echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5937if test "${acl_cv_prog_gnu_ld+set}" = set; then
5938 echo $ECHO_N "(cached) $ECHO_C" >&6
5939else
5940 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5941if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5942 acl_cv_prog_gnu_ld=yes
5943else
5944 acl_cv_prog_gnu_ld=no
5945fi
5946fi
5947echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5948echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5949with_gnu_ld=$acl_cv_prog_gnu_ld
5950
5951
5952
5953 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5954echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5955if test "${acl_cv_rpath+set}" = set; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5957else
5958
5959 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5960 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5961 . ./conftest.sh
5962 rm -f ./conftest.sh
5963 acl_cv_rpath=done
5964
5965fi
5966echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5967echo "${ECHO_T}$acl_cv_rpath" >&6
5968 wl="$acl_cv_wl"
5969 libext="$acl_cv_libext"
5970 shlibext="$acl_cv_shlibext"
5971 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5972 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5973 hardcode_direct="$acl_cv_hardcode_direct"
5974 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5975 # Check whether --enable-rpath or --disable-rpath was given.
5976if test "${enable_rpath+set}" = set; then
5977 enableval="$enable_rpath"
5978 :
5979else
5980 enable_rpath=yes
5981fi;
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991 use_additional=yes
5992
5993 acl_save_prefix="$prefix"
5994 prefix="$acl_final_prefix"
5995 acl_save_exec_prefix="$exec_prefix"
5996 exec_prefix="$acl_final_exec_prefix"
5997
5998 eval additional_includedir=\"$includedir\"
5999 eval additional_libdir=\"$libdir\"
6000
6001 exec_prefix="$acl_save_exec_prefix"
6002 prefix="$acl_save_prefix"
6003
6004
6005# Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
6006if test "${with_libexpat_prefix+set}" = set; then
6007 withval="$with_libexpat_prefix"
6008
6009 if test "X$withval" = "Xno"; then
6010 use_additional=no
6011 else
6012 if test "X$withval" = "X"; then
6013
6014 acl_save_prefix="$prefix"
6015 prefix="$acl_final_prefix"
6016 acl_save_exec_prefix="$exec_prefix"
6017 exec_prefix="$acl_final_exec_prefix"
6018
6019 eval additional_includedir=\"$includedir\"
6020 eval additional_libdir=\"$libdir\"
6021
6022 exec_prefix="$acl_save_exec_prefix"
6023 prefix="$acl_save_prefix"
6024
6025 else
6026 additional_includedir="$withval/include"
6027 additional_libdir="$withval/lib"
6028 fi
6029 fi
6030
6031fi;
6032 LIBEXPAT=
6033 LTLIBEXPAT=
6034 INCEXPAT=
6035 rpathdirs=
6036 ltrpathdirs=
6037 names_already_handled=
6038 names_next_round='expat '
6039 while test -n "$names_next_round"; do
6040 names_this_round="$names_next_round"
6041 names_next_round=
6042 for name in $names_this_round; do
6043 already_handled=
6044 for n in $names_already_handled; do
6045 if test "$n" = "$name"; then
6046 already_handled=yes
6047 break
6048 fi
6049 done
6050 if test -z "$already_handled"; then
6051 names_already_handled="$names_already_handled $name"
6052 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6053 eval value=\"\$HAVE_LIB$uppername\"
6054 if test -n "$value"; then
6055 if test "$value" = yes; then
6056 eval value=\"\$LIB$uppername\"
6057 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
6058 eval value=\"\$LTLIB$uppername\"
6059 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
6060 else
6061 :
6062 fi
6063 else
6064 found_dir=
6065 found_la=
6066 found_so=
6067 found_a=
6068 if test $use_additional = yes; then
6069 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6070 found_dir="$additional_libdir"
6071 found_so="$additional_libdir/lib$name.$shlibext"
6072 if test -f "$additional_libdir/lib$name.la"; then
6073 found_la="$additional_libdir/lib$name.la"
6074 fi
6075 else
6076 if test -f "$additional_libdir/lib$name.$libext"; then
6077 found_dir="$additional_libdir"
6078 found_a="$additional_libdir/lib$name.$libext"
6079 if test -f "$additional_libdir/lib$name.la"; then
6080 found_la="$additional_libdir/lib$name.la"
6081 fi
6082 fi
6083 fi
6084 fi
6085 if test "X$found_dir" = "X"; then
6086 for x in $LDFLAGS $LTLIBEXPAT; do
6087
6088 acl_save_prefix="$prefix"
6089 prefix="$acl_final_prefix"
6090 acl_save_exec_prefix="$exec_prefix"
6091 exec_prefix="$acl_final_exec_prefix"
6092 eval x=\"$x\"
6093 exec_prefix="$acl_save_exec_prefix"
6094 prefix="$acl_save_prefix"
6095
6096 case "$x" in
6097 -L*)
6098 dir=`echo "X$x" | sed -e 's/^X-L//'`
6099 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6100 found_dir="$dir"
6101 found_so="$dir/lib$name.$shlibext"
6102 if test -f "$dir/lib$name.la"; then
6103 found_la="$dir/lib$name.la"
6104 fi
6105 else
6106 if test -f "$dir/lib$name.$libext"; then
6107 found_dir="$dir"
6108 found_a="$dir/lib$name.$libext"
6109 if test -f "$dir/lib$name.la"; then
6110 found_la="$dir/lib$name.la"
6111 fi
6112 fi
6113 fi
6114 ;;
6115 esac
6116 if test "X$found_dir" != "X"; then
6117 break
6118 fi
6119 done
6120 fi
6121 if test "X$found_dir" != "X"; then
6122 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
6123 if test "X$found_so" != "X"; then
6124 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6125 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6126 else
6127 haveit=
6128 for x in $ltrpathdirs; do
6129 if test "X$x" = "X$found_dir"; then
6130 haveit=yes
6131 break
6132 fi
6133 done
6134 if test -z "$haveit"; then
6135 ltrpathdirs="$ltrpathdirs $found_dir"
6136 fi
6137 if test "$hardcode_direct" = yes; then
6138 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6139 else
6140 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6141 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6142 haveit=
6143 for x in $rpathdirs; do
6144 if test "X$x" = "X$found_dir"; then
6145 haveit=yes
6146 break
6147 fi
6148 done
6149 if test -z "$haveit"; then
6150 rpathdirs="$rpathdirs $found_dir"
6151 fi
6152 else
6153 haveit=
6154 for x in $LDFLAGS $LIBEXPAT; do
6155
6156 acl_save_prefix="$prefix"
6157 prefix="$acl_final_prefix"
6158 acl_save_exec_prefix="$exec_prefix"
6159 exec_prefix="$acl_final_exec_prefix"
6160 eval x=\"$x\"
6161 exec_prefix="$acl_save_exec_prefix"
6162 prefix="$acl_save_prefix"
6163
6164 if test "X$x" = "X-L$found_dir"; then
6165 haveit=yes
6166 break
6167 fi
6168 done
6169 if test -z "$haveit"; then
6170 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
6171 fi
6172 if test "$hardcode_minus_L" != no; then
6173 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6174 else
6175 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
6176 fi
6177 fi
6178 fi
6179 fi
6180 else
6181 if test "X$found_a" != "X"; then
6182 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
6183 else
6184 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
6185 fi
6186 fi
6187 additional_includedir=
6188 case "$found_dir" in
6189 */lib | */lib/)
6190 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6191 additional_includedir="$basedir/include"
6192 ;;
6193 esac
6194 if test "X$additional_includedir" != "X"; then
6195 if test "X$additional_includedir" != "X/usr/include"; then
6196 haveit=
6197 if test "X$additional_includedir" = "X/usr/local/include"; then
6198 if test -n "$GCC"; then
6199 case $host_os in
6200 linux*) haveit=yes;;
6201 esac
6202 fi
6203 fi
6204 if test -z "$haveit"; then
6205 for x in $CPPFLAGS $INCEXPAT; do
6206
6207 acl_save_prefix="$prefix"
6208 prefix="$acl_final_prefix"
6209 acl_save_exec_prefix="$exec_prefix"
6210 exec_prefix="$acl_final_exec_prefix"
6211 eval x=\"$x\"
6212 exec_prefix="$acl_save_exec_prefix"
6213 prefix="$acl_save_prefix"
6214
6215 if test "X$x" = "X-I$additional_includedir"; then
6216 haveit=yes
6217 break
6218 fi
6219 done
6220 if test -z "$haveit"; then
6221 if test -d "$additional_includedir"; then
6222 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
6223 fi
6224 fi
6225 fi
6226 fi
6227 fi
6228 if test -n "$found_la"; then
6229 save_libdir="$libdir"
6230 case "$found_la" in
6231 */* | *\\*) . "$found_la" ;;
6232 *) . "./$found_la" ;;
6233 esac
6234 libdir="$save_libdir"
6235 for dep in $dependency_libs; do
6236 case "$dep" in
6237 -L*)
6238 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6239 if test "X$additional_libdir" != "X/usr/lib"; then
6240 haveit=
6241 if test "X$additional_libdir" = "X/usr/local/lib"; then
6242 if test -n "$GCC"; then
6243 case $host_os in
6244 linux*) haveit=yes;;
6245 esac
6246 fi
6247 fi
6248 if test -z "$haveit"; then
6249 haveit=
6250 for x in $LDFLAGS $LIBEXPAT; do
6251
6252 acl_save_prefix="$prefix"
6253 prefix="$acl_final_prefix"
6254 acl_save_exec_prefix="$exec_prefix"
6255 exec_prefix="$acl_final_exec_prefix"
6256 eval x=\"$x\"
6257 exec_prefix="$acl_save_exec_prefix"
6258 prefix="$acl_save_prefix"
6259
6260 if test "X$x" = "X-L$additional_libdir"; then
6261 haveit=yes
6262 break
6263 fi
6264 done
6265 if test -z "$haveit"; then
6266 if test -d "$additional_libdir"; then
6267 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
6268 fi
6269 fi
6270 haveit=
6271 for x in $LDFLAGS $LTLIBEXPAT; do
6272
6273 acl_save_prefix="$prefix"
6274 prefix="$acl_final_prefix"
6275 acl_save_exec_prefix="$exec_prefix"
6276 exec_prefix="$acl_final_exec_prefix"
6277 eval x=\"$x\"
6278 exec_prefix="$acl_save_exec_prefix"
6279 prefix="$acl_save_prefix"
6280
6281 if test "X$x" = "X-L$additional_libdir"; then
6282 haveit=yes
6283 break
6284 fi
6285 done
6286 if test -z "$haveit"; then
6287 if test -d "$additional_libdir"; then
6288 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
6289 fi
6290 fi
6291 fi
6292 fi
6293 ;;
6294 -R*)
6295 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6296 if test "$enable_rpath" != no; then
6297 haveit=
6298 for x in $rpathdirs; do
6299 if test "X$x" = "X$dir"; then
6300 haveit=yes
6301 break
6302 fi
6303 done
6304 if test -z "$haveit"; then
6305 rpathdirs="$rpathdirs $dir"
6306 fi
6307 haveit=
6308 for x in $ltrpathdirs; do
6309 if test "X$x" = "X$dir"; then
6310 haveit=yes
6311 break
6312 fi
6313 done
6314 if test -z "$haveit"; then
6315 ltrpathdirs="$ltrpathdirs $dir"
6316 fi
6317 fi
6318 ;;
6319 -l*)
6320 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6321 ;;
6322 *.la)
6323 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6324 ;;
6325 *)
6326 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
6327 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
6328 ;;
6329 esac
6330 done
6331 fi
6332 else
6333 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
6334 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
6335 fi
6336 fi
6337 fi
6338 done
6339 done
6340 if test "X$rpathdirs" != "X"; then
6341 if test -n "$hardcode_libdir_separator"; then
6342 alldirs=
6343 for found_dir in $rpathdirs; do
6344 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6345 done
6346 acl_save_libdir="$libdir"
6347 libdir="$alldirs"
6348 eval flag=\"$hardcode_libdir_flag_spec\"
6349 libdir="$acl_save_libdir"
6350 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
6351 else
6352 for found_dir in $rpathdirs; do
6353 acl_save_libdir="$libdir"
6354 libdir="$found_dir"
6355 eval flag=\"$hardcode_libdir_flag_spec\"
6356 libdir="$acl_save_libdir"
6357 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
6358 done
6359 fi
6360 fi
6361 if test "X$ltrpathdirs" != "X"; then
6362 for found_dir in $ltrpathdirs; do
6363 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
6364 done
6365 fi
6366
6367
6368 ac_save_CPPFLAGS="$CPPFLAGS"
6369
6370 for element in $INCEXPAT; do
6371 haveit=
6372 for x in $CPPFLAGS; do
6373
6374 acl_save_prefix="$prefix"
6375 prefix="$acl_final_prefix"
6376 acl_save_exec_prefix="$exec_prefix"
6377 exec_prefix="$acl_final_exec_prefix"
6378 eval x=\"$x\"
6379 exec_prefix="$acl_save_exec_prefix"
6380 prefix="$acl_save_prefix"
6381
6382 if test "X$x" = "X$element"; then
6383 haveit=yes
6384 break
6385 fi
6386 done
6387 if test -z "$haveit"; then
6388 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6389 fi
6390 done
6391
6392
6393 echo "$as_me:$LINENO: checking for libexpat" >&5
6394echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
6395if test "${ac_cv_libexpat+set}" = set; then
6396 echo $ECHO_N "(cached) $ECHO_C" >&6
6397else
6398
6399 ac_save_LIBS="$LIBS"
6400 LIBS="$LIBS $LIBEXPAT"
6401 cat >conftest.$ac_ext <<_ACEOF
6402/* confdefs.h. */
6403_ACEOF
6404cat confdefs.h >>conftest.$ac_ext
6405cat >>conftest.$ac_ext <<_ACEOF
6406/* end confdefs.h. */
6407#include "expat.h"
6408int
6409main ()
6410{
6411XML_Parser p = XML_ParserCreate (0);
6412 ;
6413 return 0;
6414}
6415_ACEOF
6416rm -f conftest.$ac_objext conftest$ac_exeext
6417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6418 (eval $ac_link) 2>conftest.er1
6419 ac_status=$?
6420 grep -v '^ *+' conftest.er1 >conftest.err
6421 rm -f conftest.er1
6422 cat conftest.err >&5
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); } &&
6425 { ac_try='test -z "$ac_c_werror_flag"
6426 || test ! -s conftest.err'
6427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6428 (eval $ac_try) 2>&5
6429 ac_status=$?
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); }; } &&
6432 { ac_try='test -s conftest$ac_exeext'
6433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6434 (eval $ac_try) 2>&5
6435 ac_status=$?
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); }; }; then
6438 ac_cv_libexpat=yes
6439else
6440 echo "$as_me: failed program was:" >&5
6441sed 's/^/| /' conftest.$ac_ext >&5
6442
6443ac_cv_libexpat=no
6444fi
6445rm -f conftest.err conftest.$ac_objext \
6446 conftest$ac_exeext conftest.$ac_ext
6447 LIBS="$ac_save_LIBS"
6448
6449fi
6450echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
6451echo "${ECHO_T}$ac_cv_libexpat" >&6
6452 if test "$ac_cv_libexpat" = yes; then
6453 HAVE_LIBEXPAT=yes
6454
6455cat >>confdefs.h <<\_ACEOF
6456#define HAVE_LIBEXPAT 1
6457_ACEOF
6458
6459 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
6460echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
6461 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
6462echo "${ECHO_T}$LIBEXPAT" >&6
6463 else
6464 HAVE_LIBEXPAT=no
6465 CPPFLAGS="$ac_save_CPPFLAGS"
6466 LIBEXPAT=
6467 LTLIBEXPAT=
6468 fi
6469
6470
6471
6472
6473
6474
5c39566f
DJ
6475 if test "$HAVE_LIBEXPAT" != yes; then
6476 if test "$with_expat" = yes; then
6477 { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
6478echo "$as_me: error: expat is missing or unusable" >&2;}
6479 { (exit 1); exit 1; }; }
6480 else
6481 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
6482echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
6483 fi
6484 else
6485 save_LIBS=$LIBS
6486 LIBS="$LIBS $LIBEXPAT"
ca4ca11e
DJ
6487
6488for ac_func in XML_StopParser
6489do
6490as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6491echo "$as_me:$LINENO: checking for $ac_func" >&5
6492echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6493if eval "test \"\${$as_ac_var+set}\" = set"; then
6494 echo $ECHO_N "(cached) $ECHO_C" >&6
6495else
6496 cat >conftest.$ac_ext <<_ACEOF
6497/* confdefs.h. */
6498_ACEOF
6499cat confdefs.h >>conftest.$ac_ext
6500cat >>conftest.$ac_ext <<_ACEOF
6501/* end confdefs.h. */
6502/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6504#define $ac_func innocuous_$ac_func
6505
6506/* System header to define __stub macros and hopefully few prototypes,
6507 which can conflict with char $ac_func (); below.
6508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6509 <limits.h> exists even on freestanding compilers. */
6510
6511#ifdef __STDC__
6512# include <limits.h>
6513#else
6514# include <assert.h>
6515#endif
6516
6517#undef $ac_func
6518
6519/* Override any gcc2 internal prototype to avoid an error. */
6520#ifdef __cplusplus
6521extern "C"
6522{
6523#endif
6524/* We use char because int might match the return type of a gcc2
6525 builtin and then its argument prototype would still apply. */
6526char $ac_func ();
6527/* The GNU C library defines this for functions which it implements
6528 to always fail with ENOSYS. Some functions are actually named
6529 something starting with __ and the normal name is an alias. */
6530#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6531choke me
6532#else
6533char (*f) () = $ac_func;
6534#endif
6535#ifdef __cplusplus
6536}
6537#endif
6538
6539int
6540main ()
6541{
6542return f != $ac_func;
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 eval "$as_ac_var=yes"
6570else
6571 echo "$as_me: failed program was:" >&5
6572sed 's/^/| /' conftest.$ac_ext >&5
6573
6574eval "$as_ac_var=no"
6575fi
6576rm -f conftest.err conftest.$ac_objext \
6577 conftest$ac_exeext conftest.$ac_ext
6578fi
6579echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6580echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6581if test `eval echo '${'$as_ac_var'}'` = yes; then
6582 cat >>confdefs.h <<_ACEOF
6583#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6584_ACEOF
6585
6586fi
6587done
6588
5c39566f
DJ
6589 LIBS=$save_LIBS
6590 fi
3841debe
DJ
6591fi
6592
bec39cab
AC
6593# ------------------------- #
6594# Checks for header files. #
6595# ------------------------- #
8ee53726 6596
0e5d83e3 6597
bec39cab
AC
6598
6599
6600
6601
6602ac_header_dirent=no
6603for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6604 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
b4e70030
JB
6605echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6606echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6607if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
6608 echo $ECHO_N "(cached) $ECHO_C" >&6
6609else
6610 cat >conftest.$ac_ext <<_ACEOF
6611/* confdefs.h. */
6612_ACEOF
6613cat confdefs.h >>conftest.$ac_ext
6614cat >>conftest.$ac_ext <<_ACEOF
6615/* end confdefs.h. */
6616#include <sys/types.h>
0e5d83e3 6617#include <$ac_hdr>
bec39cab
AC
6618
6619int
6620main ()
6621{
6622if ((DIR *) 0)
6623return 0;
6624 ;
6625 return 0;
6626}
6627_ACEOF
6628rm -f conftest.$ac_objext
6629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6630 (eval $ac_compile) 2>conftest.er1
6631 ac_status=$?
6632 grep -v '^ *+' conftest.er1 >conftest.err
6633 rm -f conftest.er1
6634 cat conftest.err >&5
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); } &&
b4e70030
JB
6637 { ac_try='test -z "$ac_c_werror_flag"
6638 || test ! -s conftest.err'
bec39cab
AC
6639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6640 (eval $ac_try) 2>&5
6641 ac_status=$?
6642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); }; } &&
6644 { ac_try='test -s conftest.$ac_objext'
6645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6646 (eval $ac_try) 2>&5
6647 ac_status=$?
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); }; }; then
6650 eval "$as_ac_Header=yes"
6651else
6652 echo "$as_me: failed program was:" >&5
6653sed 's/^/| /' conftest.$ac_ext >&5
6654
b4e70030 6655eval "$as_ac_Header=no"
bec39cab
AC
6656fi
6657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6658fi
b4e70030
JB
6659echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6660echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
6661if test `eval echo '${'$as_ac_Header'}'` = yes; then
6662 cat >>confdefs.h <<_ACEOF
6663#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6664_ACEOF
6665
6666ac_header_dirent=$ac_hdr; break
0e5d83e3 6667fi
0e5d83e3 6668
bec39cab
AC
6669done
6670# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6671if test $ac_header_dirent = dirent.h; then
b4e70030
JB
6672 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6673echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
bec39cab
AC
6674if test "${ac_cv_search_opendir+set}" = set; then
6675 echo $ECHO_N "(cached) $ECHO_C" >&6
6676else
6677 ac_func_search_save_LIBS=$LIBS
b4e70030 6678ac_cv_search_opendir=no
bec39cab
AC
6679cat >conftest.$ac_ext <<_ACEOF
6680/* confdefs.h. */
6681_ACEOF
6682cat confdefs.h >>conftest.$ac_ext
6683cat >>conftest.$ac_ext <<_ACEOF
6684/* end confdefs.h. */
0e5d83e3 6685
b4e70030 6686/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
6687#ifdef __cplusplus
6688extern "C"
6689#endif
b4e70030
JB
6690/* We use char because int might match the return type of a gcc2
6691 builtin and then its argument prototype would still apply. */
bec39cab
AC
6692char opendir ();
6693int
6694main ()
6695{
b4e70030 6696opendir ();
bec39cab
AC
6697 ;
6698 return 0;
6699}
6700_ACEOF
b4e70030 6701rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
6702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6703 (eval $ac_link) 2>conftest.er1
6704 ac_status=$?
6705 grep -v '^ *+' conftest.er1 >conftest.err
6706 rm -f conftest.er1
6707 cat conftest.err >&5
6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); } &&
b4e70030
JB
6710 { ac_try='test -z "$ac_c_werror_flag"
6711 || test ! -s conftest.err'
bec39cab
AC
6712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6713 (eval $ac_try) 2>&5
6714 ac_status=$?
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); }; } &&
6717 { ac_try='test -s conftest$ac_exeext'
6718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6719 (eval $ac_try) 2>&5
6720 ac_status=$?
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); }; }; then
b4e70030 6723 ac_cv_search_opendir="none required"
bec39cab
AC
6724else
6725 echo "$as_me: failed program was:" >&5
6726sed 's/^/| /' conftest.$ac_ext >&5
6727
6728fi
bec39cab 6729rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
6730 conftest$ac_exeext conftest.$ac_ext
6731if test "$ac_cv_search_opendir" = no; then
6732 for ac_lib in dir; do
6733 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6734 cat >conftest.$ac_ext <<_ACEOF
6735/* confdefs.h. */
6736_ACEOF
6737cat confdefs.h >>conftest.$ac_ext
6738cat >>conftest.$ac_ext <<_ACEOF
6739/* end confdefs.h. */
6740
6741/* Override any gcc2 internal prototype to avoid an error. */
6742#ifdef __cplusplus
6743extern "C"
6744#endif
6745/* We use char because int might match the return type of a gcc2
6746 builtin and then its argument prototype would still apply. */
6747char opendir ();
6748int
6749main ()
6750{
6751opendir ();
6752 ;
6753 return 0;
6754}
6755_ACEOF
6756rm -f conftest.$ac_objext conftest$ac_exeext
6757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6758 (eval $ac_link) 2>conftest.er1
6759 ac_status=$?
6760 grep -v '^ *+' conftest.er1 >conftest.err
6761 rm -f conftest.er1
6762 cat conftest.err >&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } &&
6765 { ac_try='test -z "$ac_c_werror_flag"
6766 || test ! -s conftest.err'
6767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6768 (eval $ac_try) 2>&5
6769 ac_status=$?
6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); }; } &&
6772 { ac_try='test -s conftest$ac_exeext'
6773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6774 (eval $ac_try) 2>&5
6775 ac_status=$?
6776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6777 (exit $ac_status); }; }; then
6778 ac_cv_search_opendir="-l$ac_lib"
6779break
4e8d927d 6780else
b4e70030
JB
6781 echo "$as_me: failed program was:" >&5
6782sed 's/^/| /' conftest.$ac_ext >&5
6783
6784fi
6785rm -f conftest.err conftest.$ac_objext \
6786 conftest$ac_exeext conftest.$ac_ext
6787 done
0e5d83e3 6788fi
bec39cab 6789LIBS=$ac_func_search_save_LIBS
0e5d83e3 6790fi
b4e70030
JB
6791echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6792echo "${ECHO_T}$ac_cv_search_opendir" >&6
6793if test "$ac_cv_search_opendir" != no; then
6794 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
0e5d83e3 6795
0e5d83e3
JJ
6796fi
6797
d28f9cdf 6798else
b4e70030
JB
6799 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6800echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
bec39cab
AC
6801if test "${ac_cv_search_opendir+set}" = set; then
6802 echo $ECHO_N "(cached) $ECHO_C" >&6
6803else
6804 ac_func_search_save_LIBS=$LIBS
b4e70030 6805ac_cv_search_opendir=no
bec39cab
AC
6806cat >conftest.$ac_ext <<_ACEOF
6807/* confdefs.h. */
6808_ACEOF
6809cat confdefs.h >>conftest.$ac_ext
6810cat >>conftest.$ac_ext <<_ACEOF
6811/* end confdefs.h. */
d28f9cdf 6812
b4e70030 6813/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
6814#ifdef __cplusplus
6815extern "C"
d28f9cdf 6816#endif
b4e70030
JB
6817/* We use char because int might match the return type of a gcc2
6818 builtin and then its argument prototype would still apply. */
bec39cab
AC
6819char opendir ();
6820int
6821main ()
6822{
b4e70030 6823opendir ();
bec39cab
AC
6824 ;
6825 return 0;
6826}
6827_ACEOF
b4e70030 6828rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
6829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6830 (eval $ac_link) 2>conftest.er1
6831 ac_status=$?
6832 grep -v '^ *+' conftest.er1 >conftest.err
6833 rm -f conftest.er1
6834 cat conftest.err >&5
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); } &&
b4e70030
JB
6837 { ac_try='test -z "$ac_c_werror_flag"
6838 || test ! -s conftest.err'
bec39cab
AC
6839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6840 (eval $ac_try) 2>&5
6841 ac_status=$?
6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843 (exit $ac_status); }; } &&
6844 { ac_try='test -s conftest$ac_exeext'
6845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6846 (eval $ac_try) 2>&5
6847 ac_status=$?
6848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849 (exit $ac_status); }; }; then
b4e70030 6850 ac_cv_search_opendir="none required"
d28f9cdf 6851else
bec39cab
AC
6852 echo "$as_me: failed program was:" >&5
6853sed 's/^/| /' conftest.$ac_ext >&5
6854
d28f9cdf 6855fi
bec39cab 6856rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
6857 conftest$ac_exeext conftest.$ac_ext
6858if test "$ac_cv_search_opendir" = no; then
6859 for ac_lib in x; do
6860 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6861 cat >conftest.$ac_ext <<_ACEOF
6862/* confdefs.h. */
6863_ACEOF
6864cat confdefs.h >>conftest.$ac_ext
6865cat >>conftest.$ac_ext <<_ACEOF
6866/* end confdefs.h. */
6867
6868/* Override any gcc2 internal prototype to avoid an error. */
6869#ifdef __cplusplus
6870extern "C"
6871#endif
6872/* We use char because int might match the return type of a gcc2
6873 builtin and then its argument prototype would still apply. */
6874char opendir ();
6875int
6876main ()
6877{
6878opendir ();
6879 ;
6880 return 0;
6881}
6882_ACEOF
6883rm -f conftest.$ac_objext conftest$ac_exeext
6884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6885 (eval $ac_link) 2>conftest.er1
6886 ac_status=$?
6887 grep -v '^ *+' conftest.er1 >conftest.err
6888 rm -f conftest.er1
6889 cat conftest.err >&5
6890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6891 (exit $ac_status); } &&
6892 { ac_try='test -z "$ac_c_werror_flag"
6893 || test ! -s conftest.err'
6894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6895 (eval $ac_try) 2>&5
6896 ac_status=$?
6897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6898 (exit $ac_status); }; } &&
6899 { ac_try='test -s conftest$ac_exeext'
6900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6901 (eval $ac_try) 2>&5
6902 ac_status=$?
6903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904 (exit $ac_status); }; }; then
6905 ac_cv_search_opendir="-l$ac_lib"
6906break
4e8d927d 6907else
b4e70030
JB
6908 echo "$as_me: failed program was:" >&5
6909sed 's/^/| /' conftest.$ac_ext >&5
6910
6911fi
6912rm -f conftest.err conftest.$ac_objext \
6913 conftest$ac_exeext conftest.$ac_ext
6914 done
bec39cab
AC
6915fi
6916LIBS=$ac_func_search_save_LIBS
d28f9cdf 6917fi
b4e70030
JB
6918echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6919echo "${ECHO_T}$ac_cv_search_opendir" >&6
6920if test "$ac_cv_search_opendir" != no; then
6921 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
d28f9cdf 6922
d28f9cdf
DJ
6923fi
6924
bec39cab 6925fi
b0b1c2c0 6926
b4e70030
JB
6927echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6928echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
bec39cab
AC
6929if test "${ac_cv_header_stat_broken+set}" = set; then
6930 echo $ECHO_N "(cached) $ECHO_C" >&6
b0b1c2c0 6931else
bec39cab
AC
6932 cat >conftest.$ac_ext <<_ACEOF
6933/* confdefs.h. */
6934_ACEOF
6935cat confdefs.h >>conftest.$ac_ext
6936cat >>conftest.$ac_ext <<_ACEOF
6937/* end confdefs.h. */
6938#include <sys/types.h>
6939#include <sys/stat.h>
b0b1c2c0 6940
b4e70030 6941#if defined(S_ISBLK) && defined(S_IFDIR)
bec39cab
AC
6942# if S_ISBLK (S_IFDIR)
6943You lose.
6944# endif
6945#endif
b0b1c2c0 6946
b4e70030 6947#if defined(S_ISBLK) && defined(S_IFCHR)
bec39cab
AC
6948# if S_ISBLK (S_IFCHR)
6949You lose.
6950# endif
6951#endif
d28f9cdf 6952
b4e70030 6953#if defined(S_ISLNK) && defined(S_IFREG)
bec39cab
AC
6954# if S_ISLNK (S_IFREG)
6955You lose.
6956# endif
6957#endif
d28f9cdf 6958
b4e70030 6959#if defined(S_ISSOCK) && defined(S_IFREG)
bec39cab
AC
6960# if S_ISSOCK (S_IFREG)
6961You lose.
6962# endif
6963#endif
6964
6965_ACEOF
6966if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6967 $EGREP "You lose" >/dev/null 2>&1; then
6968 ac_cv_header_stat_broken=yes
d28f9cdf 6969else
bec39cab 6970 ac_cv_header_stat_broken=no
d28f9cdf
DJ
6971fi
6972rm -f conftest*
d28f9cdf 6973
d28f9cdf 6974fi
b4e70030
JB
6975echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6976echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
bec39cab 6977if test $ac_cv_header_stat_broken = yes; then
d28f9cdf 6978
bec39cab
AC
6979cat >>confdefs.h <<\_ACEOF
6980#define STAT_MACROS_BROKEN 1
6981_ACEOF
8bb2c122 6982
7a292a7a 6983fi
bec39cab 6984
b4e70030
JB
6985echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6986echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
bec39cab
AC
6987if test "${ac_cv_header_stdc+set}" = set; then
6988 echo $ECHO_N "(cached) $ECHO_C" >&6
7a292a7a 6989else
bec39cab
AC
6990 cat >conftest.$ac_ext <<_ACEOF
6991/* confdefs.h. */
6992_ACEOF
6993cat confdefs.h >>conftest.$ac_ext
6994cat >>conftest.$ac_ext <<_ACEOF
6995/* end confdefs.h. */
6996#include <stdlib.h>
6997#include <stdarg.h>
6998#include <string.h>
6999#include <float.h>
7a292a7a 7000
bec39cab
AC
7001int
7002main ()
7003{
7a292a7a 7004
bec39cab
AC
7005 ;
7006 return 0;
7007}
7008_ACEOF
7009rm -f conftest.$ac_objext
7010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7011 (eval $ac_compile) 2>conftest.er1
7012 ac_status=$?
7013 grep -v '^ *+' conftest.er1 >conftest.err
7014 rm -f conftest.er1
7015 cat conftest.err >&5
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); } &&
b4e70030
JB
7018 { ac_try='test -z "$ac_c_werror_flag"
7019 || test ! -s conftest.err'
bec39cab
AC
7020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7021 (eval $ac_try) 2>&5
7022 ac_status=$?
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); }; } &&
7025 { ac_try='test -s conftest.$ac_objext'
7026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7027 (eval $ac_try) 2>&5
7028 ac_status=$?
7029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030 (exit $ac_status); }; }; then
7031 ac_cv_header_stdc=yes
c906108c 7032else
bec39cab
AC
7033 echo "$as_me: failed program was:" >&5
7034sed 's/^/| /' conftest.$ac_ext >&5
c906108c 7035
b4e70030 7036ac_cv_header_stdc=no
c906108c 7037fi
bec39cab 7038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 7039
bec39cab
AC
7040if test $ac_cv_header_stdc = yes; then
7041 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7042 cat >conftest.$ac_ext <<_ACEOF
7043/* confdefs.h. */
7044_ACEOF
7045cat confdefs.h >>conftest.$ac_ext
7046cat >>conftest.$ac_ext <<_ACEOF
7047/* end confdefs.h. */
7048#include <string.h>
c906108c 7049
bec39cab
AC
7050_ACEOF
7051if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7052 $EGREP "memchr" >/dev/null 2>&1; then
7053 :
8bb2c122 7054else
bec39cab 7055 ac_cv_header_stdc=no
8bb2c122 7056fi
bec39cab
AC
7057rm -f conftest*
7058
c906108c
SS
7059fi
7060
bec39cab
AC
7061if test $ac_cv_header_stdc = yes; then
7062 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
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 <stdlib.h>
7070
7071_ACEOF
7072if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7073 $EGREP "free" >/dev/null 2>&1; then
7074 :
c906108c 7075else
bec39cab 7076 ac_cv_header_stdc=no
c906108c 7077fi
bec39cab
AC
7078rm -f conftest*
7079
c906108c
SS
7080fi
7081
bec39cab
AC
7082if test $ac_cv_header_stdc = yes; then
7083 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7084 if test "$cross_compiling" = yes; then
7085 :
c906108c 7086else
bec39cab
AC
7087 cat >conftest.$ac_ext <<_ACEOF
7088/* confdefs.h. */
7089_ACEOF
7090cat confdefs.h >>conftest.$ac_ext
7091cat >>conftest.$ac_ext <<_ACEOF
7092/* end confdefs.h. */
7093#include <ctype.h>
7094#if ((' ' & 0x0FF) == 0x020)
7095# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7096# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7097#else
7098# define ISLOWER(c) \
7099 (('a' <= (c) && (c) <= 'i') \
7100 || ('j' <= (c) && (c) <= 'r') \
7101 || ('s' <= (c) && (c) <= 'z'))
7102# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7103#endif
7104
7105#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7106int
7107main ()
7108{
7109 int i;
7110 for (i = 0; i < 256; i++)
7111 if (XOR (islower (i), ISLOWER (i))
7112 || toupper (i) != TOUPPER (i))
b4e70030
JB
7113 exit(2);
7114 exit (0);
bec39cab
AC
7115}
7116_ACEOF
7117rm -f conftest$ac_exeext
7118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7119 (eval $ac_link) 2>&5
7120 ac_status=$?
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7124 (eval $ac_try) 2>&5
7125 ac_status=$?
7126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7127 (exit $ac_status); }; }; then
7128 :
7129else
7130 echo "$as_me: program exited with status $ac_status" >&5
7131echo "$as_me: failed program was:" >&5
7132sed 's/^/| /' conftest.$ac_ext >&5
7133
7134( exit $ac_status )
7135ac_cv_header_stdc=no
c906108c 7136fi
b4e70030 7137rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 7138fi
c906108c 7139fi
bec39cab 7140fi
b4e70030
JB
7141echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7142echo "${ECHO_T}$ac_cv_header_stdc" >&6
bec39cab 7143if test $ac_cv_header_stdc = yes; then
c906108c 7144
bec39cab
AC
7145cat >>confdefs.h <<\_ACEOF
7146#define STDC_HEADERS 1
7147_ACEOF
c906108c 7148
bec39cab 7149fi
8bb2c122 7150
bec39cab 7151
7cb9022a 7152for ac_header in nlist.h
bec39cab
AC
7153do
7154as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7155if eval "test \"\${$as_ac_Header+set}\" = set"; then
7156 echo "$as_me:$LINENO: checking for $ac_header" >&5
7157echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7158if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7159 echo $ECHO_N "(cached) $ECHO_C" >&6
7160fi
b4e70030
JB
7161echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7162echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7163else
7164 # Is the header compilable?
b4e70030
JB
7165echo "$as_me:$LINENO: checking $ac_header usability" >&5
7166echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7167cat >conftest.$ac_ext <<_ACEOF
7168/* confdefs.h. */
7169_ACEOF
7170cat confdefs.h >>conftest.$ac_ext
7171cat >>conftest.$ac_ext <<_ACEOF
7172/* end confdefs.h. */
7173$ac_includes_default
7174#include <$ac_header>
7175_ACEOF
7176rm -f conftest.$ac_objext
7177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7178 (eval $ac_compile) 2>conftest.er1
7179 ac_status=$?
7180 grep -v '^ *+' conftest.er1 >conftest.err
7181 rm -f conftest.er1
7182 cat conftest.err >&5
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); } &&
b4e70030
JB
7185 { ac_try='test -z "$ac_c_werror_flag"
7186 || test ! -s conftest.err'
bec39cab
AC
7187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7188 (eval $ac_try) 2>&5
7189 ac_status=$?
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); }; } &&
7192 { ac_try='test -s conftest.$ac_objext'
7193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7194 (eval $ac_try) 2>&5
7195 ac_status=$?
7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); }; }; then
7198 ac_header_compiler=yes
7199else
7200 echo "$as_me: failed program was:" >&5
7201sed 's/^/| /' conftest.$ac_ext >&5
7202
b4e70030 7203ac_header_compiler=no
bec39cab
AC
7204fi
7205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7206echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7207echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7208
7209# Is the header present?
b4e70030
JB
7210echo "$as_me:$LINENO: checking $ac_header presence" >&5
7211echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7212cat >conftest.$ac_ext <<_ACEOF
7213/* confdefs.h. */
7214_ACEOF
7215cat confdefs.h >>conftest.$ac_ext
7216cat >>conftest.$ac_ext <<_ACEOF
7217/* end confdefs.h. */
7218#include <$ac_header>
7219_ACEOF
7220if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7221 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7222 ac_status=$?
7223 grep -v '^ *+' conftest.er1 >conftest.err
7224 rm -f conftest.er1
7225 cat conftest.err >&5
7226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); } >/dev/null; then
7228 if test -s conftest.err; then
7229 ac_cpp_err=$ac_c_preproc_warn_flag
7230 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7231 else
7232 ac_cpp_err=
7233 fi
c906108c 7234else
bec39cab 7235 ac_cpp_err=yes
c906108c 7236fi
bec39cab
AC
7237if test -z "$ac_cpp_err"; then
7238 ac_header_preproc=yes
c906108c 7239else
bec39cab
AC
7240 echo "$as_me: failed program was:" >&5
7241sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 7242
bec39cab
AC
7243 ac_header_preproc=no
7244fi
7245rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7246echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7247echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 7248
bec39cab
AC
7249# So? What about this header?
7250case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7251 yes:no: )
7252 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7253echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7255echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7256 ac_header_preproc=yes
7257 ;;
7258 no:yes:* )
7259 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7260echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7261 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7262echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7263 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7264echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7265 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7266echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7267 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7268echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7269 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7270echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7271 (
7272 cat <<\_ASBOX
7273## ------------------------------------------ ##
7274## Report this to the AC_PACKAGE_NAME lists. ##
7275## ------------------------------------------ ##
7276_ASBOX
7277 ) |
7278 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7279 ;;
7280esac
b4e70030
JB
7281echo "$as_me:$LINENO: checking for $ac_header" >&5
7282echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7283if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7284 echo $ECHO_N "(cached) $ECHO_C" >&6
95ca63c4 7285else
bec39cab 7286 eval "$as_ac_Header=\$ac_header_preproc"
95ca63c4 7287fi
b4e70030
JB
7288echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7289echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 7290
95ca63c4 7291fi
bec39cab
AC
7292if test `eval echo '${'$as_ac_Header'}'` = yes; then
7293 cat >>confdefs.h <<_ACEOF
7294#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7295_ACEOF
7296
95ca63c4
CF
7297fi
7298
bec39cab 7299done
95ca63c4
CF
7300
7301
7cb9022a 7302for ac_header in link.h
bec39cab
AC
7303do
7304as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7305echo "$as_me:$LINENO: checking for $ac_header" >&5
7306echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7307if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7308 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 7309else
7cb9022a 7310 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
7311/* confdefs.h. */
7312_ACEOF
7313cat confdefs.h >>conftest.$ac_ext
7314cat >>conftest.$ac_ext <<_ACEOF
7315/* end confdefs.h. */
7cb9022a
MK
7316#if HAVE_SYS_TYPES_H
7317# include <sys/types.h>
7318#endif
7319#if HAVE_NLIST_H
7320# include <nlist.h>
7321#endif
7322
7323
bec39cab
AC
7324#include <$ac_header>
7325_ACEOF
7326rm -f conftest.$ac_objext
7327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7328 (eval $ac_compile) 2>conftest.er1
7329 ac_status=$?
7330 grep -v '^ *+' conftest.er1 >conftest.err
7331 rm -f conftest.er1
7332 cat conftest.err >&5
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); } &&
b4e70030
JB
7335 { ac_try='test -z "$ac_c_werror_flag"
7336 || test ! -s conftest.err'
bec39cab
AC
7337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7338 (eval $ac_try) 2>&5
7339 ac_status=$?
7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); }; } &&
7342 { ac_try='test -s conftest.$ac_objext'
7343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7344 (eval $ac_try) 2>&5
7345 ac_status=$?
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); }; }; then
7cb9022a 7348 eval "$as_ac_Header=yes"
bec39cab
AC
7349else
7350 echo "$as_me: failed program was:" >&5
7351sed 's/^/| /' conftest.$ac_ext >&5
7352
b4e70030 7353eval "$as_ac_Header=no"
bec39cab
AC
7354fi
7355rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 7356fi
b4e70030
JB
7357echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7358echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7359if test `eval echo '${'$as_ac_Header'}'` = yes; then
7360 cat >>confdefs.h <<_ACEOF
7361#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7362_ACEOF
95ca63c4 7363
bec39cab 7364fi
95ca63c4 7365
bec39cab 7366done
95ca63c4 7367
c906108c 7368
7cb9022a 7369for ac_header in machine/reg.h
bec39cab
AC
7370do
7371as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7372if eval "test \"\${$as_ac_Header+set}\" = set"; then
7373 echo "$as_me:$LINENO: checking for $ac_header" >&5
7374echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7375if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7376 echo $ECHO_N "(cached) $ECHO_C" >&6
7377fi
b4e70030
JB
7378echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7379echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7380else
7381 # Is the header compilable?
b4e70030
JB
7382echo "$as_me:$LINENO: checking $ac_header usability" >&5
7383echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7384cat >conftest.$ac_ext <<_ACEOF
7385/* confdefs.h. */
7386_ACEOF
7387cat confdefs.h >>conftest.$ac_ext
7388cat >>conftest.$ac_ext <<_ACEOF
7389/* end confdefs.h. */
7390$ac_includes_default
7391#include <$ac_header>
7392_ACEOF
7393rm -f conftest.$ac_objext
7394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7395 (eval $ac_compile) 2>conftest.er1
7396 ac_status=$?
7397 grep -v '^ *+' conftest.er1 >conftest.err
7398 rm -f conftest.er1
7399 cat conftest.err >&5
7400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7401 (exit $ac_status); } &&
b4e70030
JB
7402 { ac_try='test -z "$ac_c_werror_flag"
7403 || test ! -s conftest.err'
bec39cab
AC
7404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7405 (eval $ac_try) 2>&5
7406 ac_status=$?
7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); }; } &&
7409 { ac_try='test -s conftest.$ac_objext'
7410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7411 (eval $ac_try) 2>&5
7412 ac_status=$?
7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414 (exit $ac_status); }; }; then
7415 ac_header_compiler=yes
7416else
7417 echo "$as_me: failed program was:" >&5
7418sed 's/^/| /' conftest.$ac_ext >&5
7419
b4e70030 7420ac_header_compiler=no
bec39cab
AC
7421fi
7422rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7423echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7424echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7425
7426# Is the header present?
b4e70030
JB
7427echo "$as_me:$LINENO: checking $ac_header presence" >&5
7428echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7429cat >conftest.$ac_ext <<_ACEOF
7430/* confdefs.h. */
7431_ACEOF
7432cat confdefs.h >>conftest.$ac_ext
7433cat >>conftest.$ac_ext <<_ACEOF
7434/* end confdefs.h. */
7435#include <$ac_header>
7436_ACEOF
7437if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7438 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7439 ac_status=$?
7440 grep -v '^ *+' conftest.er1 >conftest.err
7441 rm -f conftest.er1
7442 cat conftest.err >&5
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); } >/dev/null; then
7445 if test -s conftest.err; then
7446 ac_cpp_err=$ac_c_preproc_warn_flag
7447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7448 else
7449 ac_cpp_err=
7450 fi
75c6e08a 7451else
bec39cab 7452 ac_cpp_err=yes
75c6e08a 7453fi
bec39cab
AC
7454if test -z "$ac_cpp_err"; then
7455 ac_header_preproc=yes
7456else
7457 echo "$as_me: failed program was:" >&5
7458sed 's/^/| /' conftest.$ac_ext >&5
7459
7460 ac_header_preproc=no
75c6e08a 7461fi
bec39cab 7462rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7463echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7464echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
7465
7466# So? What about this header?
7467case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7468 yes:no: )
7469 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7470echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7472echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7473 ac_header_preproc=yes
7474 ;;
7475 no:yes:* )
7476 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7477echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7478 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7479echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7480 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7481echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7482 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7483echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7485echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7486 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7487echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7488 (
7489 cat <<\_ASBOX
7490## ------------------------------------------ ##
7491## Report this to the AC_PACKAGE_NAME lists. ##
7492## ------------------------------------------ ##
7493_ASBOX
7494 ) |
7495 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7496 ;;
7497esac
b4e70030
JB
7498echo "$as_me:$LINENO: checking for $ac_header" >&5
7499echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7500if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7501 echo $ECHO_N "(cached) $ECHO_C" >&6
75c6e08a 7502else
bec39cab
AC
7503 eval "$as_ac_Header=\$ac_header_preproc"
7504fi
b4e70030
JB
7505echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7506echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 7507
75c6e08a 7508fi
bec39cab
AC
7509if test `eval echo '${'$as_ac_Header'}'` = yes; then
7510 cat >>confdefs.h <<_ACEOF
7511#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7512_ACEOF
75c6e08a 7513
bec39cab 7514fi
75c6e08a 7515
bec39cab 7516done
75c6e08a
MK
7517
7518
9a156167 7519
bec39cab
AC
7520for ac_header in poll.h sys/poll.h
7521do
7522as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7523if eval "test \"\${$as_ac_Header+set}\" = set"; then
7524 echo "$as_me:$LINENO: checking for $ac_header" >&5
7525echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7526if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
7528fi
b4e70030
JB
7529echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7530echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7531else
7532 # Is the header compilable?
b4e70030
JB
7533echo "$as_me:$LINENO: checking $ac_header usability" >&5
7534echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7535cat >conftest.$ac_ext <<_ACEOF
7536/* confdefs.h. */
7537_ACEOF
7538cat confdefs.h >>conftest.$ac_ext
7539cat >>conftest.$ac_ext <<_ACEOF
7540/* end confdefs.h. */
7541$ac_includes_default
7542#include <$ac_header>
7543_ACEOF
7544rm -f conftest.$ac_objext
7545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7546 (eval $ac_compile) 2>conftest.er1
7547 ac_status=$?
7548 grep -v '^ *+' conftest.er1 >conftest.err
7549 rm -f conftest.er1
7550 cat conftest.err >&5
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7552 (exit $ac_status); } &&
b4e70030
JB
7553 { ac_try='test -z "$ac_c_werror_flag"
7554 || test ! -s conftest.err'
bec39cab
AC
7555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7556 (eval $ac_try) 2>&5
7557 ac_status=$?
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); }; } &&
7560 { ac_try='test -s conftest.$ac_objext'
7561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7562 (eval $ac_try) 2>&5
7563 ac_status=$?
7564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); }; }; then
7566 ac_header_compiler=yes
7567else
7568 echo "$as_me: failed program was:" >&5
7569sed 's/^/| /' conftest.$ac_ext >&5
7570
b4e70030 7571ac_header_compiler=no
bec39cab
AC
7572fi
7573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7574echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7575echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7576
7577# Is the header present?
b4e70030
JB
7578echo "$as_me:$LINENO: checking $ac_header presence" >&5
7579echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7580cat >conftest.$ac_ext <<_ACEOF
7581/* confdefs.h. */
7582_ACEOF
7583cat confdefs.h >>conftest.$ac_ext
7584cat >>conftest.$ac_ext <<_ACEOF
7585/* end confdefs.h. */
7586#include <$ac_header>
7587_ACEOF
7588if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7589 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7590 ac_status=$?
7591 grep -v '^ *+' conftest.er1 >conftest.err
7592 rm -f conftest.er1
7593 cat conftest.err >&5
7594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7595 (exit $ac_status); } >/dev/null; then
7596 if test -s conftest.err; then
7597 ac_cpp_err=$ac_c_preproc_warn_flag
7598 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7599 else
7600 ac_cpp_err=
7601 fi
9a156167 7602else
bec39cab 7603 ac_cpp_err=yes
9a156167 7604fi
bec39cab
AC
7605if test -z "$ac_cpp_err"; then
7606 ac_header_preproc=yes
7607else
7608 echo "$as_me: failed program was:" >&5
7609sed 's/^/| /' conftest.$ac_ext >&5
9a156167 7610
bec39cab 7611 ac_header_preproc=no
9a156167 7612fi
bec39cab 7613rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7614echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7615echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 7616
bec39cab
AC
7617# So? What about this header?
7618case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7619 yes:no: )
7620 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7621echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7623echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7624 ac_header_preproc=yes
7625 ;;
7626 no:yes:* )
7627 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7628echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7629 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7630echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7631 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7632echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7633 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7634echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7636echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7637 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7638echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7639 (
7640 cat <<\_ASBOX
7641## ------------------------------------------ ##
7642## Report this to the AC_PACKAGE_NAME lists. ##
7643## ------------------------------------------ ##
7644_ASBOX
7645 ) |
7646 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7647 ;;
7648esac
b4e70030
JB
7649echo "$as_me:$LINENO: checking for $ac_header" >&5
7650echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7651if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7652 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 7653else
bec39cab 7654 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 7655fi
b4e70030
JB
7656echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7657echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167 7658
bec39cab
AC
7659fi
7660if test `eval echo '${'$as_ac_Header'}'` = yes; then
7661 cat >>confdefs.h <<_ACEOF
7662#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7663_ACEOF
9a156167 7664
bec39cab 7665fi
9a156167 7666
bec39cab 7667done
9a156167 7668
9a156167 7669
9a156167 7670
bec39cab
AC
7671
7672for ac_header in proc_service.h thread_db.h gnu/libc-version.h
7673do
7674as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7675if eval "test \"\${$as_ac_Header+set}\" = set"; then
7676 echo "$as_me:$LINENO: checking for $ac_header" >&5
7677echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7678if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7679 echo $ECHO_N "(cached) $ECHO_C" >&6
7680fi
b4e70030
JB
7681echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7682echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7683else
7684 # Is the header compilable?
b4e70030
JB
7685echo "$as_me:$LINENO: checking $ac_header usability" >&5
7686echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7687cat >conftest.$ac_ext <<_ACEOF
7688/* confdefs.h. */
7689_ACEOF
7690cat confdefs.h >>conftest.$ac_ext
7691cat >>conftest.$ac_ext <<_ACEOF
436868fb
DP
7692/* end confdefs.h. */
7693$ac_includes_default
7694#include <$ac_header>
7695_ACEOF
7696rm -f conftest.$ac_objext
7697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7698 (eval $ac_compile) 2>conftest.er1
7699 ac_status=$?
7700 grep -v '^ *+' conftest.er1 >conftest.err
7701 rm -f conftest.er1
7702 cat conftest.err >&5
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); } &&
7705 { ac_try='test -z "$ac_c_werror_flag"
7706 || test ! -s conftest.err'
7707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7708 (eval $ac_try) 2>&5
7709 ac_status=$?
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); }; } &&
7712 { ac_try='test -s conftest.$ac_objext'
7713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7714 (eval $ac_try) 2>&5
7715 ac_status=$?
7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717 (exit $ac_status); }; }; then
7718 ac_header_compiler=yes
7719else
7720 echo "$as_me: failed program was:" >&5
7721sed 's/^/| /' conftest.$ac_ext >&5
7722
7723ac_header_compiler=no
7724fi
7725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7726echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7727echo "${ECHO_T}$ac_header_compiler" >&6
7728
7729# Is the header present?
7730echo "$as_me:$LINENO: checking $ac_header presence" >&5
7731echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7732cat >conftest.$ac_ext <<_ACEOF
7733/* confdefs.h. */
7734_ACEOF
7735cat confdefs.h >>conftest.$ac_ext
7736cat >>conftest.$ac_ext <<_ACEOF
7737/* end confdefs.h. */
7738#include <$ac_header>
7739_ACEOF
7740if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7741 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7742 ac_status=$?
7743 grep -v '^ *+' conftest.er1 >conftest.err
7744 rm -f conftest.er1
7745 cat conftest.err >&5
7746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747 (exit $ac_status); } >/dev/null; then
7748 if test -s conftest.err; then
7749 ac_cpp_err=$ac_c_preproc_warn_flag
7750 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7751 else
7752 ac_cpp_err=
7753 fi
7754else
7755 ac_cpp_err=yes
7756fi
7757if test -z "$ac_cpp_err"; then
7758 ac_header_preproc=yes
7759else
7760 echo "$as_me: failed program was:" >&5
7761sed 's/^/| /' conftest.$ac_ext >&5
7762
7763 ac_header_preproc=no
7764fi
7765rm -f conftest.err conftest.$ac_ext
7766echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7767echo "${ECHO_T}$ac_header_preproc" >&6
7768
7769# So? What about this header?
7770case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7771 yes:no: )
7772 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7773echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7775echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7776 ac_header_preproc=yes
7777 ;;
7778 no:yes:* )
7779 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7780echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7781 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7782echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7783 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7784echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7785 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7786echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7787 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7788echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7789 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7790echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7791 (
7792 cat <<\_ASBOX
7793## ------------------------------------------ ##
7794## Report this to the AC_PACKAGE_NAME lists. ##
7795## ------------------------------------------ ##
7796_ASBOX
7797 ) |
7798 sed "s/^/$as_me: WARNING: /" >&2
7799 ;;
7800esac
7801echo "$as_me:$LINENO: checking for $ac_header" >&5
7802echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7803if eval "test \"\${$as_ac_Header+set}\" = set"; then
7804 echo $ECHO_N "(cached) $ECHO_C" >&6
7805else
7806 eval "$as_ac_Header=\$ac_header_preproc"
7807fi
7808echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7809echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7810
7811fi
7812if test `eval echo '${'$as_ac_Header'}'` = yes; then
7813 cat >>confdefs.h <<_ACEOF
7814#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7815_ACEOF
7816
7817fi
7818
7819done
7820
7821
7822for ac_header in signal.h
7823do
7824as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7825if eval "test \"\${$as_ac_Header+set}\" = set"; then
7826 echo "$as_me:$LINENO: checking for $ac_header" >&5
7827echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7828if eval "test \"\${$as_ac_Header+set}\" = set"; then
7829 echo $ECHO_N "(cached) $ECHO_C" >&6
7830fi
7831echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7832echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7833else
7834 # Is the header compilable?
7835echo "$as_me:$LINENO: checking $ac_header usability" >&5
7836echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7837cat >conftest.$ac_ext <<_ACEOF
7838/* confdefs.h. */
7839_ACEOF
7840cat confdefs.h >>conftest.$ac_ext
7841cat >>conftest.$ac_ext <<_ACEOF
bec39cab
AC
7842/* end confdefs.h. */
7843$ac_includes_default
7844#include <$ac_header>
7845_ACEOF
7846rm -f conftest.$ac_objext
7847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7848 (eval $ac_compile) 2>conftest.er1
7849 ac_status=$?
7850 grep -v '^ *+' conftest.er1 >conftest.err
7851 rm -f conftest.er1
7852 cat conftest.err >&5
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); } &&
b4e70030
JB
7855 { ac_try='test -z "$ac_c_werror_flag"
7856 || test ! -s conftest.err'
bec39cab
AC
7857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7858 (eval $ac_try) 2>&5
7859 ac_status=$?
7860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); }; } &&
7862 { ac_try='test -s conftest.$ac_objext'
7863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7864 (eval $ac_try) 2>&5
7865 ac_status=$?
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); }; }; then
7868 ac_header_compiler=yes
7869else
7870 echo "$as_me: failed program was:" >&5
7871sed 's/^/| /' conftest.$ac_ext >&5
7872
b4e70030 7873ac_header_compiler=no
bec39cab
AC
7874fi
7875rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7876echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7877echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7878
7879# Is the header present?
b4e70030
JB
7880echo "$as_me:$LINENO: checking $ac_header presence" >&5
7881echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7882cat >conftest.$ac_ext <<_ACEOF
7883/* confdefs.h. */
7884_ACEOF
7885cat confdefs.h >>conftest.$ac_ext
7886cat >>conftest.$ac_ext <<_ACEOF
7887/* end confdefs.h. */
7888#include <$ac_header>
7889_ACEOF
7890if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7891 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7892 ac_status=$?
7893 grep -v '^ *+' conftest.er1 >conftest.err
7894 rm -f conftest.er1
7895 cat conftest.err >&5
7896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); } >/dev/null; then
7898 if test -s conftest.err; then
7899 ac_cpp_err=$ac_c_preproc_warn_flag
7900 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7901 else
7902 ac_cpp_err=
7903 fi
9a156167 7904else
bec39cab 7905 ac_cpp_err=yes
9a156167 7906fi
bec39cab
AC
7907if test -z "$ac_cpp_err"; then
7908 ac_header_preproc=yes
7909else
7910 echo "$as_me: failed program was:" >&5
7911sed 's/^/| /' conftest.$ac_ext >&5
9a156167 7912
bec39cab 7913 ac_header_preproc=no
9a156167 7914fi
bec39cab 7915rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7916echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7917echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 7918
bec39cab
AC
7919# So? What about this header?
7920case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7921 yes:no: )
7922 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7923echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7925echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7926 ac_header_preproc=yes
7927 ;;
7928 no:yes:* )
7929 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7930echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7931 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7932echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7933 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7934echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7935 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7936echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7937 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7938echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7939 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7940echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7941 (
7942 cat <<\_ASBOX
7943## ------------------------------------------ ##
7944## Report this to the AC_PACKAGE_NAME lists. ##
7945## ------------------------------------------ ##
7946_ASBOX
7947 ) |
7948 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7949 ;;
7950esac
b4e70030
JB
7951echo "$as_me:$LINENO: checking for $ac_header" >&5
7952echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7953if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7954 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 7955else
bec39cab 7956 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 7957fi
b4e70030
JB
7958echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7959echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167
MK
7960
7961fi
bec39cab
AC
7962if test `eval echo '${'$as_ac_Header'}'` = yes; then
7963 cat >>confdefs.h <<_ACEOF
7964#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7965_ACEOF
9a156167 7966
bec39cab
AC
7967fi
7968
7969done
9a156167 7970
c890192f 7971
bec39cab
AC
7972for ac_header in stddef.h
7973do
7974as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7975if eval "test \"\${$as_ac_Header+set}\" = set"; then
7976 echo "$as_me:$LINENO: checking for $ac_header" >&5
7977echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7978if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7979 echo $ECHO_N "(cached) $ECHO_C" >&6
7980fi
b4e70030
JB
7981echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7982echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7983else
7984 # Is the header compilable?
b4e70030
JB
7985echo "$as_me:$LINENO: checking $ac_header usability" >&5
7986echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7987cat >conftest.$ac_ext <<_ACEOF
7988/* confdefs.h. */
7989_ACEOF
7990cat confdefs.h >>conftest.$ac_ext
7991cat >>conftest.$ac_ext <<_ACEOF
7992/* end confdefs.h. */
7993$ac_includes_default
7994#include <$ac_header>
7995_ACEOF
7996rm -f conftest.$ac_objext
7997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7998 (eval $ac_compile) 2>conftest.er1
7999 ac_status=$?
8000 grep -v '^ *+' conftest.er1 >conftest.err
8001 rm -f conftest.er1
8002 cat conftest.err >&5
8003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004 (exit $ac_status); } &&
b4e70030
JB
8005 { ac_try='test -z "$ac_c_werror_flag"
8006 || test ! -s conftest.err'
bec39cab
AC
8007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8008 (eval $ac_try) 2>&5
8009 ac_status=$?
8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 (exit $ac_status); }; } &&
8012 { ac_try='test -s conftest.$ac_objext'
8013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8014 (eval $ac_try) 2>&5
8015 ac_status=$?
8016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017 (exit $ac_status); }; }; then
8018 ac_header_compiler=yes
8019else
8020 echo "$as_me: failed program was:" >&5
8021sed 's/^/| /' conftest.$ac_ext >&5
8022
b4e70030 8023ac_header_compiler=no
bec39cab
AC
8024fi
8025rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8026echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8027echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8028
8029# Is the header present?
b4e70030
JB
8030echo "$as_me:$LINENO: checking $ac_header presence" >&5
8031echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8032cat >conftest.$ac_ext <<_ACEOF
8033/* confdefs.h. */
8034_ACEOF
8035cat confdefs.h >>conftest.$ac_ext
8036cat >>conftest.$ac_ext <<_ACEOF
8037/* end confdefs.h. */
8038#include <$ac_header>
8039_ACEOF
8040if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8041 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8042 ac_status=$?
8043 grep -v '^ *+' conftest.er1 >conftest.err
8044 rm -f conftest.er1
8045 cat conftest.err >&5
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); } >/dev/null; then
8048 if test -s conftest.err; then
8049 ac_cpp_err=$ac_c_preproc_warn_flag
8050 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8051 else
8052 ac_cpp_err=
8053 fi
c890192f 8054else
bec39cab
AC
8055 ac_cpp_err=yes
8056fi
8057if test -z "$ac_cpp_err"; then
8058 ac_header_preproc=yes
c890192f 8059else
bec39cab
AC
8060 echo "$as_me: failed program was:" >&5
8061sed 's/^/| /' conftest.$ac_ext >&5
8062
8063 ac_header_preproc=no
c890192f 8064fi
bec39cab 8065rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8066echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8067echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8068
8069# So? What about this header?
8070case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8071 yes:no: )
8072 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8073echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8075echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8076 ac_header_preproc=yes
8077 ;;
8078 no:yes:* )
8079 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8080echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8081 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8082echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8083 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8084echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8085 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8086echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8088echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8089 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8090echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8091 (
8092 cat <<\_ASBOX
8093## ------------------------------------------ ##
8094## Report this to the AC_PACKAGE_NAME lists. ##
8095## ------------------------------------------ ##
8096_ASBOX
8097 ) |
8098 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8099 ;;
8100esac
b4e70030
JB
8101echo "$as_me:$LINENO: checking for $ac_header" >&5
8102echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8103if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8104 echo $ECHO_N "(cached) $ECHO_C" >&6
c890192f 8105else
bec39cab 8106 eval "$as_ac_Header=\$ac_header_preproc"
c890192f 8107fi
b4e70030
JB
8108echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8109echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 8110
c890192f 8111fi
bec39cab
AC
8112if test `eval echo '${'$as_ac_Header'}'` = yes; then
8113 cat >>confdefs.h <<_ACEOF
8114#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8115_ACEOF
c890192f 8116
c890192f
MK
8117fi
8118
bec39cab 8119done
9a156167 8120
bec39cab
AC
8121
8122for ac_header in stdlib.h
8123do
8124as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8125if eval "test \"\${$as_ac_Header+set}\" = set"; then
8126 echo "$as_me:$LINENO: checking for $ac_header" >&5
8127echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8128if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8129 echo $ECHO_N "(cached) $ECHO_C" >&6
8130fi
b4e70030
JB
8131echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8132echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8133else
8134 # Is the header compilable?
b4e70030
JB
8135echo "$as_me:$LINENO: checking $ac_header usability" >&5
8136echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8137cat >conftest.$ac_ext <<_ACEOF
8138/* confdefs.h. */
8139_ACEOF
8140cat confdefs.h >>conftest.$ac_ext
8141cat >>conftest.$ac_ext <<_ACEOF
8142/* end confdefs.h. */
8143$ac_includes_default
8144#include <$ac_header>
8145_ACEOF
8146rm -f conftest.$ac_objext
8147if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8148 (eval $ac_compile) 2>conftest.er1
8149 ac_status=$?
8150 grep -v '^ *+' conftest.er1 >conftest.err
8151 rm -f conftest.er1
8152 cat conftest.err >&5
8153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154 (exit $ac_status); } &&
b4e70030
JB
8155 { ac_try='test -z "$ac_c_werror_flag"
8156 || test ! -s conftest.err'
bec39cab
AC
8157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8158 (eval $ac_try) 2>&5
8159 ac_status=$?
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); }; } &&
8162 { ac_try='test -s conftest.$ac_objext'
8163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8164 (eval $ac_try) 2>&5
8165 ac_status=$?
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); }; }; then
8168 ac_header_compiler=yes
8169else
8170 echo "$as_me: failed program was:" >&5
8171sed 's/^/| /' conftest.$ac_ext >&5
8172
b4e70030 8173ac_header_compiler=no
bec39cab
AC
8174fi
8175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8176echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8177echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8178
8179# Is the header present?
b4e70030
JB
8180echo "$as_me:$LINENO: checking $ac_header presence" >&5
8181echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8182cat >conftest.$ac_ext <<_ACEOF
8183/* confdefs.h. */
8184_ACEOF
8185cat confdefs.h >>conftest.$ac_ext
8186cat >>conftest.$ac_ext <<_ACEOF
8187/* end confdefs.h. */
8188#include <$ac_header>
8189_ACEOF
8190if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8191 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8192 ac_status=$?
8193 grep -v '^ *+' conftest.er1 >conftest.err
8194 rm -f conftest.er1
8195 cat conftest.err >&5
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); } >/dev/null; then
8198 if test -s conftest.err; then
8199 ac_cpp_err=$ac_c_preproc_warn_flag
8200 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8201 else
8202 ac_cpp_err=
8203 fi
9a156167 8204else
bec39cab
AC
8205 ac_cpp_err=yes
8206fi
8207if test -z "$ac_cpp_err"; then
8208 ac_header_preproc=yes
9a156167 8209else
bec39cab
AC
8210 echo "$as_me: failed program was:" >&5
8211sed 's/^/| /' conftest.$ac_ext >&5
8212
8213 ac_header_preproc=no
9a156167 8214fi
bec39cab 8215rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8216echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8217echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8218
8219# So? What about this header?
8220case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8221 yes:no: )
8222 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8223echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8225echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8226 ac_header_preproc=yes
8227 ;;
8228 no:yes:* )
8229 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8230echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8231 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8232echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8233 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8234echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8235 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8236echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8238echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8239 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8240echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8241 (
8242 cat <<\_ASBOX
8243## ------------------------------------------ ##
8244## Report this to the AC_PACKAGE_NAME lists. ##
8245## ------------------------------------------ ##
8246_ASBOX
8247 ) |
8248 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8249 ;;
8250esac
b4e70030
JB
8251echo "$as_me:$LINENO: checking for $ac_header" >&5
8252echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8253if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8254 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 8255else
bec39cab 8256 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 8257fi
b4e70030
JB
8258echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8259echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 8260
9a156167 8261fi
bec39cab
AC
8262if test `eval echo '${'$as_ac_Header'}'` = yes; then
8263 cat >>confdefs.h <<_ACEOF
8264#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8265_ACEOF
9a156167 8266
9a156167
MK
8267fi
8268
bec39cab
AC
8269done
8270
06825bd1 8271
bec39cab
AC
8272for ac_header in stdint.h
8273do
8274as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8275if eval "test \"\${$as_ac_Header+set}\" = set"; then
8276 echo "$as_me:$LINENO: checking for $ac_header" >&5
8277echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8278if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8279 echo $ECHO_N "(cached) $ECHO_C" >&6
8280fi
b4e70030
JB
8281echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8282echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8283else
8284 # Is the header compilable?
b4e70030
JB
8285echo "$as_me:$LINENO: checking $ac_header usability" >&5
8286echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8287cat >conftest.$ac_ext <<_ACEOF
8288/* confdefs.h. */
8289_ACEOF
8290cat confdefs.h >>conftest.$ac_ext
8291cat >>conftest.$ac_ext <<_ACEOF
8292/* end confdefs.h. */
8293$ac_includes_default
8294#include <$ac_header>
8295_ACEOF
8296rm -f conftest.$ac_objext
8297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8298 (eval $ac_compile) 2>conftest.er1
8299 ac_status=$?
8300 grep -v '^ *+' conftest.er1 >conftest.err
8301 rm -f conftest.er1
8302 cat conftest.err >&5
8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); } &&
b4e70030
JB
8305 { ac_try='test -z "$ac_c_werror_flag"
8306 || test ! -s conftest.err'
bec39cab
AC
8307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8308 (eval $ac_try) 2>&5
8309 ac_status=$?
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); }; } &&
8312 { ac_try='test -s conftest.$ac_objext'
8313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8314 (eval $ac_try) 2>&5
8315 ac_status=$?
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); }; }; then
8318 ac_header_compiler=yes
8319else
8320 echo "$as_me: failed program was:" >&5
8321sed 's/^/| /' conftest.$ac_ext >&5
8322
b4e70030 8323ac_header_compiler=no
bec39cab
AC
8324fi
8325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8326echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8327echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8328
8329# Is the header present?
b4e70030
JB
8330echo "$as_me:$LINENO: checking $ac_header presence" >&5
8331echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8332cat >conftest.$ac_ext <<_ACEOF
8333/* confdefs.h. */
8334_ACEOF
8335cat confdefs.h >>conftest.$ac_ext
8336cat >>conftest.$ac_ext <<_ACEOF
8337/* end confdefs.h. */
8338#include <$ac_header>
8339_ACEOF
8340if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8341 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8342 ac_status=$?
8343 grep -v '^ *+' conftest.er1 >conftest.err
8344 rm -f conftest.er1
8345 cat conftest.err >&5
8346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); } >/dev/null; then
8348 if test -s conftest.err; then
8349 ac_cpp_err=$ac_c_preproc_warn_flag
8350 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8351 else
8352 ac_cpp_err=
8353 fi
06825bd1 8354else
bec39cab
AC
8355 ac_cpp_err=yes
8356fi
8357if test -z "$ac_cpp_err"; then
8358 ac_header_preproc=yes
06825bd1 8359else
bec39cab
AC
8360 echo "$as_me: failed program was:" >&5
8361sed 's/^/| /' conftest.$ac_ext >&5
8362
8363 ac_header_preproc=no
06825bd1 8364fi
bec39cab 8365rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8366echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8367echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8368
8369# So? What about this header?
8370case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8371 yes:no: )
8372 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8373echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8375echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8376 ac_header_preproc=yes
8377 ;;
8378 no:yes:* )
8379 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8380echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8381 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8382echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8383 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8384echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8385 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8386echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8388echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8389 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8390echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8391 (
8392 cat <<\_ASBOX
8393## ------------------------------------------ ##
8394## Report this to the AC_PACKAGE_NAME lists. ##
8395## ------------------------------------------ ##
8396_ASBOX
8397 ) |
8398 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8399 ;;
8400esac
b4e70030
JB
8401echo "$as_me:$LINENO: checking for $ac_header" >&5
8402echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8403if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8404 echo $ECHO_N "(cached) $ECHO_C" >&6
06825bd1 8405else
bec39cab 8406 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 8407fi
b4e70030
JB
8408echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8409echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 8410
06825bd1 8411fi
bec39cab
AC
8412if test `eval echo '${'$as_ac_Header'}'` = yes; then
8413 cat >>confdefs.h <<_ACEOF
8414#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8415_ACEOF
06825bd1 8416
06825bd1 8417fi
4f0be353 8418
bec39cab 8419done
4f0be353 8420
06825bd1 8421
06825bd1 8422
bec39cab
AC
8423
8424for ac_header in string.h memory.h strings.h
8425do
8426as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8427if eval "test \"\${$as_ac_Header+set}\" = set"; then
8428 echo "$as_me:$LINENO: checking for $ac_header" >&5
8429echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8430if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8431 echo $ECHO_N "(cached) $ECHO_C" >&6
8432fi
b4e70030
JB
8433echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8434echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8435else
8436 # Is the header compilable?
b4e70030
JB
8437echo "$as_me:$LINENO: checking $ac_header usability" >&5
8438echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8439cat >conftest.$ac_ext <<_ACEOF
8440/* confdefs.h. */
8441_ACEOF
8442cat confdefs.h >>conftest.$ac_ext
8443cat >>conftest.$ac_ext <<_ACEOF
8444/* end confdefs.h. */
8445$ac_includes_default
8446#include <$ac_header>
8447_ACEOF
8448rm -f conftest.$ac_objext
8449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8450 (eval $ac_compile) 2>conftest.er1
8451 ac_status=$?
8452 grep -v '^ *+' conftest.er1 >conftest.err
8453 rm -f conftest.er1
8454 cat conftest.err >&5
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); } &&
b4e70030
JB
8457 { ac_try='test -z "$ac_c_werror_flag"
8458 || test ! -s conftest.err'
bec39cab
AC
8459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460 (eval $ac_try) 2>&5
8461 ac_status=$?
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); }; } &&
8464 { ac_try='test -s conftest.$ac_objext'
8465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8466 (eval $ac_try) 2>&5
8467 ac_status=$?
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); }; }; then
8470 ac_header_compiler=yes
8471else
8472 echo "$as_me: failed program was:" >&5
8473sed 's/^/| /' conftest.$ac_ext >&5
8474
b4e70030 8475ac_header_compiler=no
bec39cab
AC
8476fi
8477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8478echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8479echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8480
8481# Is the header present?
b4e70030
JB
8482echo "$as_me:$LINENO: checking $ac_header presence" >&5
8483echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8484cat >conftest.$ac_ext <<_ACEOF
8485/* confdefs.h. */
8486_ACEOF
8487cat confdefs.h >>conftest.$ac_ext
8488cat >>conftest.$ac_ext <<_ACEOF
8489/* end confdefs.h. */
8490#include <$ac_header>
8491_ACEOF
8492if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8493 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8494 ac_status=$?
8495 grep -v '^ *+' conftest.er1 >conftest.err
8496 rm -f conftest.er1
8497 cat conftest.err >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); } >/dev/null; then
8500 if test -s conftest.err; then
8501 ac_cpp_err=$ac_c_preproc_warn_flag
8502 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8503 else
8504 ac_cpp_err=
8505 fi
06825bd1 8506else
bec39cab
AC
8507 ac_cpp_err=yes
8508fi
8509if test -z "$ac_cpp_err"; then
8510 ac_header_preproc=yes
06825bd1 8511else
bec39cab
AC
8512 echo "$as_me: failed program was:" >&5
8513sed 's/^/| /' conftest.$ac_ext >&5
8514
8515 ac_header_preproc=no
06825bd1 8516fi
bec39cab 8517rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8518echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8519echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8520
8521# So? What about this header?
8522case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8523 yes:no: )
8524 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8525echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8527echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8528 ac_header_preproc=yes
8529 ;;
8530 no:yes:* )
8531 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8532echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8533 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8534echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8535 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8536echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8537 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8538echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8540echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8541 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8542echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8543 (
8544 cat <<\_ASBOX
8545## ------------------------------------------ ##
8546## Report this to the AC_PACKAGE_NAME lists. ##
8547## ------------------------------------------ ##
8548_ASBOX
8549 ) |
8550 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8551 ;;
8552esac
b4e70030
JB
8553echo "$as_me:$LINENO: checking for $ac_header" >&5
8554echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8555if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8556 echo $ECHO_N "(cached) $ECHO_C" >&6
8557else
8558 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 8559fi
b4e70030
JB
8560echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8561echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
06825bd1 8562
06825bd1 8563fi
bec39cab
AC
8564if test `eval echo '${'$as_ac_Header'}'` = yes; then
8565 cat >>confdefs.h <<_ACEOF
8566#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8567_ACEOF
06825bd1 8568
06825bd1
MK
8569fi
8570
bec39cab 8571done
5ee754fc 8572
bec39cab
AC
8573
8574for ac_header in sys/fault.h
5ee754fc 8575do
bec39cab 8576as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8577if eval "test \"\${$as_ac_Header+set}\" = set"; then
8578 echo "$as_me:$LINENO: checking for $ac_header" >&5
8579echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8580if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8581 echo $ECHO_N "(cached) $ECHO_C" >&6
8582fi
b4e70030
JB
8583echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8584echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8585else
8586 # Is the header compilable?
b4e70030
JB
8587echo "$as_me:$LINENO: checking $ac_header usability" >&5
8588echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8589cat >conftest.$ac_ext <<_ACEOF
8590/* confdefs.h. */
8591_ACEOF
8592cat confdefs.h >>conftest.$ac_ext
8593cat >>conftest.$ac_ext <<_ACEOF
8594/* end confdefs.h. */
8595$ac_includes_default
8596#include <$ac_header>
8597_ACEOF
8598rm -f conftest.$ac_objext
8599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8600 (eval $ac_compile) 2>conftest.er1
8601 ac_status=$?
8602 grep -v '^ *+' conftest.er1 >conftest.err
8603 rm -f conftest.er1
8604 cat conftest.err >&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); } &&
b4e70030
JB
8607 { ac_try='test -z "$ac_c_werror_flag"
8608 || test ! -s conftest.err'
bec39cab
AC
8609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8610 (eval $ac_try) 2>&5
8611 ac_status=$?
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); }; } &&
8614 { ac_try='test -s conftest.$ac_objext'
8615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8616 (eval $ac_try) 2>&5
8617 ac_status=$?
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); }; }; then
8620 ac_header_compiler=yes
8621else
8622 echo "$as_me: failed program was:" >&5
8623sed 's/^/| /' conftest.$ac_ext >&5
8624
b4e70030 8625ac_header_compiler=no
bec39cab
AC
8626fi
8627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8628echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8629echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8630
8631# Is the header present?
b4e70030
JB
8632echo "$as_me:$LINENO: checking $ac_header presence" >&5
8633echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8634cat >conftest.$ac_ext <<_ACEOF
8635/* confdefs.h. */
8636_ACEOF
8637cat confdefs.h >>conftest.$ac_ext
8638cat >>conftest.$ac_ext <<_ACEOF
8639/* end confdefs.h. */
8640#include <$ac_header>
8641_ACEOF
8642if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8643 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8644 ac_status=$?
8645 grep -v '^ *+' conftest.er1 >conftest.err
8646 rm -f conftest.er1
8647 cat conftest.err >&5
8648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 (exit $ac_status); } >/dev/null; then
8650 if test -s conftest.err; then
8651 ac_cpp_err=$ac_c_preproc_warn_flag
8652 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8653 else
8654 ac_cpp_err=
8655 fi
5ee754fc 8656else
bec39cab 8657 ac_cpp_err=yes
5ee754fc 8658fi
bec39cab
AC
8659if test -z "$ac_cpp_err"; then
8660 ac_header_preproc=yes
8661else
8662 echo "$as_me: failed program was:" >&5
8663sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 8664
bec39cab 8665 ac_header_preproc=no
5ee754fc 8666fi
bec39cab 8667rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8668echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8669echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8670
8671# So? What about this header?
8672case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8673 yes:no: )
8674 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8675echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8676 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8677echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8678 ac_header_preproc=yes
8679 ;;
8680 no:yes:* )
8681 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8682echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8683 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8684echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8685 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8686echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8687 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8688echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8689 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8690echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8691 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8692echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8693 (
8694 cat <<\_ASBOX
8695## ------------------------------------------ ##
8696## Report this to the AC_PACKAGE_NAME lists. ##
8697## ------------------------------------------ ##
8698_ASBOX
8699 ) |
8700 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8701 ;;
8702esac
b4e70030
JB
8703echo "$as_me:$LINENO: checking for $ac_header" >&5
8704echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8705if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8706 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 8707else
bec39cab 8708 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 8709fi
b4e70030
JB
8710echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8711echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c906108c 8712
5ee754fc 8713fi
bec39cab
AC
8714if test `eval echo '${'$as_ac_Header'}'` = yes; then
8715 cat >>confdefs.h <<_ACEOF
8716#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8717_ACEOF
c906108c 8718
5ee754fc 8719fi
bec39cab
AC
8720
8721done
8722
8723
8724for ac_header in sys/file.h
8725do
8726as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8727if eval "test \"\${$as_ac_Header+set}\" = set"; then
8728 echo "$as_me:$LINENO: checking for $ac_header" >&5
8729echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8730if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8731 echo $ECHO_N "(cached) $ECHO_C" >&6
8732fi
b4e70030
JB
8733echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8734echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8735else
8736 # Is the header compilable?
b4e70030
JB
8737echo "$as_me:$LINENO: checking $ac_header usability" >&5
8738echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8739cat >conftest.$ac_ext <<_ACEOF
8740/* confdefs.h. */
8741_ACEOF
8742cat confdefs.h >>conftest.$ac_ext
8743cat >>conftest.$ac_ext <<_ACEOF
8744/* end confdefs.h. */
8745$ac_includes_default
8746#include <$ac_header>
8747_ACEOF
8748rm -f conftest.$ac_objext
8749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8750 (eval $ac_compile) 2>conftest.er1
8751 ac_status=$?
8752 grep -v '^ *+' conftest.er1 >conftest.err
8753 rm -f conftest.er1
8754 cat conftest.err >&5
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); } &&
b4e70030
JB
8757 { ac_try='test -z "$ac_c_werror_flag"
8758 || test ! -s conftest.err'
bec39cab
AC
8759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8760 (eval $ac_try) 2>&5
8761 ac_status=$?
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); }; } &&
8764 { ac_try='test -s conftest.$ac_objext'
8765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8766 (eval $ac_try) 2>&5
8767 ac_status=$?
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); }; }; then
8770 ac_header_compiler=yes
8771else
8772 echo "$as_me: failed program was:" >&5
8773sed 's/^/| /' conftest.$ac_ext >&5
8774
b4e70030 8775ac_header_compiler=no
bec39cab
AC
8776fi
8777rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8778echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8779echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8780
8781# Is the header present?
b4e70030
JB
8782echo "$as_me:$LINENO: checking $ac_header presence" >&5
8783echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8784cat >conftest.$ac_ext <<_ACEOF
8785/* confdefs.h. */
8786_ACEOF
8787cat confdefs.h >>conftest.$ac_ext
8788cat >>conftest.$ac_ext <<_ACEOF
8789/* end confdefs.h. */
8790#include <$ac_header>
8791_ACEOF
8792if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8793 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8794 ac_status=$?
8795 grep -v '^ *+' conftest.er1 >conftest.err
8796 rm -f conftest.er1
8797 cat conftest.err >&5
8798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799 (exit $ac_status); } >/dev/null; then
8800 if test -s conftest.err; then
8801 ac_cpp_err=$ac_c_preproc_warn_flag
8802 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8803 else
8804 ac_cpp_err=
8805 fi
5ee754fc 8806else
bec39cab 8807 ac_cpp_err=yes
5ee754fc 8808fi
bec39cab
AC
8809if test -z "$ac_cpp_err"; then
8810 ac_header_preproc=yes
8811else
8812 echo "$as_me: failed program was:" >&5
8813sed 's/^/| /' conftest.$ac_ext >&5
c906108c 8814
bec39cab 8815 ac_header_preproc=no
5ee754fc 8816fi
bec39cab 8817rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8818echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8819echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 8820
bec39cab
AC
8821# So? What about this header?
8822case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8823 yes:no: )
8824 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8825echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8826 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8827echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8828 ac_header_preproc=yes
8829 ;;
8830 no:yes:* )
8831 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8832echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8833 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8834echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8835 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8836echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8837 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8838echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8840echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8841 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8842echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8843 (
8844 cat <<\_ASBOX
8845## ------------------------------------------ ##
8846## Report this to the AC_PACKAGE_NAME lists. ##
8847## ------------------------------------------ ##
8848_ASBOX
8849 ) |
8850 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8851 ;;
8852esac
b4e70030
JB
8853echo "$as_me:$LINENO: checking for $ac_header" >&5
8854echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8855if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8856 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 8857else
bec39cab
AC
8858 eval "$as_ac_Header=\$ac_header_preproc"
8859fi
b4e70030
JB
8860echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8861echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 8862
bec39cab
AC
8863fi
8864if test `eval echo '${'$as_ac_Header'}'` = yes; then
8865 cat >>confdefs.h <<_ACEOF
8866#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8867_ACEOF
5ee754fc 8868
bec39cab 8869fi
5ee754fc 8870
bec39cab 8871done
5ee754fc 8872
5ee754fc 8873
bec39cab
AC
8874for ac_header in sys/filio.h
8875do
8876as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8877if eval "test \"\${$as_ac_Header+set}\" = set"; then
8878 echo "$as_me:$LINENO: checking for $ac_header" >&5
8879echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8880if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8881 echo $ECHO_N "(cached) $ECHO_C" >&6
8882fi
b4e70030
JB
8883echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8884echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8885else
8886 # Is the header compilable?
b4e70030
JB
8887echo "$as_me:$LINENO: checking $ac_header usability" >&5
8888echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8889cat >conftest.$ac_ext <<_ACEOF
8890/* confdefs.h. */
8891_ACEOF
8892cat confdefs.h >>conftest.$ac_ext
8893cat >>conftest.$ac_ext <<_ACEOF
8894/* end confdefs.h. */
8895$ac_includes_default
8896#include <$ac_header>
8897_ACEOF
8898rm -f conftest.$ac_objext
8899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8900 (eval $ac_compile) 2>conftest.er1
8901 ac_status=$?
8902 grep -v '^ *+' conftest.er1 >conftest.err
8903 rm -f conftest.er1
8904 cat conftest.err >&5
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 (exit $ac_status); } &&
b4e70030
JB
8907 { ac_try='test -z "$ac_c_werror_flag"
8908 || test ! -s conftest.err'
bec39cab
AC
8909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8910 (eval $ac_try) 2>&5
8911 ac_status=$?
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); }; } &&
8914 { ac_try='test -s conftest.$ac_objext'
8915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8916 (eval $ac_try) 2>&5
8917 ac_status=$?
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 (exit $ac_status); }; }; then
8920 ac_header_compiler=yes
8921else
8922 echo "$as_me: failed program was:" >&5
8923sed 's/^/| /' conftest.$ac_ext >&5
8924
b4e70030 8925ac_header_compiler=no
bec39cab
AC
8926fi
8927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8928echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8929echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8930
8931# Is the header present?
b4e70030
JB
8932echo "$as_me:$LINENO: checking $ac_header presence" >&5
8933echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8934cat >conftest.$ac_ext <<_ACEOF
8935/* confdefs.h. */
8936_ACEOF
8937cat confdefs.h >>conftest.$ac_ext
8938cat >>conftest.$ac_ext <<_ACEOF
8939/* end confdefs.h. */
8940#include <$ac_header>
8941_ACEOF
8942if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8943 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8944 ac_status=$?
8945 grep -v '^ *+' conftest.er1 >conftest.err
8946 rm -f conftest.er1
8947 cat conftest.err >&5
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); } >/dev/null; then
8950 if test -s conftest.err; then
8951 ac_cpp_err=$ac_c_preproc_warn_flag
8952 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8953 else
8954 ac_cpp_err=
8955 fi
5ee754fc 8956else
bec39cab 8957 ac_cpp_err=yes
5ee754fc 8958fi
bec39cab
AC
8959if test -z "$ac_cpp_err"; then
8960 ac_header_preproc=yes
8961else
8962 echo "$as_me: failed program was:" >&5
8963sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 8964
bec39cab 8965 ac_header_preproc=no
5ee754fc 8966fi
bec39cab 8967rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8968echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8969echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 8970
bec39cab
AC
8971# So? What about this header?
8972case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8973 yes:no: )
8974 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8975echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8977echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8978 ac_header_preproc=yes
8979 ;;
8980 no:yes:* )
8981 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8982echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8983 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8984echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8985 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8986echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8987 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8988echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8990echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8991 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8992echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8993 (
8994 cat <<\_ASBOX
8995## ------------------------------------------ ##
8996## Report this to the AC_PACKAGE_NAME lists. ##
8997## ------------------------------------------ ##
8998_ASBOX
8999 ) |
9000 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9001 ;;
9002esac
b4e70030
JB
9003echo "$as_me:$LINENO: checking for $ac_header" >&5
9004echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9005if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 9006 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 9007else
bec39cab 9008 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9009fi
b4e70030
JB
9010echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9011echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 9012
5ee754fc 9013fi
bec39cab
AC
9014if test `eval echo '${'$as_ac_Header'}'` = yes; then
9015 cat >>confdefs.h <<_ACEOF
9016#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9017_ACEOF
5ee754fc
MK
9018
9019fi
9020
bec39cab
AC
9021done
9022
9023
9024for ac_header in sys/ioctl.h
9025do
9026as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9027if eval "test \"\${$as_ac_Header+set}\" = set"; then
9028 echo "$as_me:$LINENO: checking for $ac_header" >&5
9029echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9030if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9031 echo $ECHO_N "(cached) $ECHO_C" >&6
9032fi
b4e70030
JB
9033echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9034echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9035else
9036 # Is the header compilable?
b4e70030
JB
9037echo "$as_me:$LINENO: checking $ac_header usability" >&5
9038echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9039cat >conftest.$ac_ext <<_ACEOF
9040/* confdefs.h. */
9041_ACEOF
9042cat confdefs.h >>conftest.$ac_ext
9043cat >>conftest.$ac_ext <<_ACEOF
9044/* end confdefs.h. */
9045$ac_includes_default
9046#include <$ac_header>
9047_ACEOF
9048rm -f conftest.$ac_objext
9049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9050 (eval $ac_compile) 2>conftest.er1
9051 ac_status=$?
9052 grep -v '^ *+' conftest.er1 >conftest.err
9053 rm -f conftest.er1
9054 cat conftest.err >&5
9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 (exit $ac_status); } &&
b4e70030
JB
9057 { ac_try='test -z "$ac_c_werror_flag"
9058 || test ! -s conftest.err'
bec39cab
AC
9059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9060 (eval $ac_try) 2>&5
9061 ac_status=$?
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); }; } &&
9064 { ac_try='test -s conftest.$ac_objext'
9065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9066 (eval $ac_try) 2>&5
9067 ac_status=$?
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); }; }; then
9070 ac_header_compiler=yes
9071else
9072 echo "$as_me: failed program was:" >&5
9073sed 's/^/| /' conftest.$ac_ext >&5
9074
b4e70030 9075ac_header_compiler=no
bec39cab
AC
9076fi
9077rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9078echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9079echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9080
9081# Is the header present?
b4e70030
JB
9082echo "$as_me:$LINENO: checking $ac_header presence" >&5
9083echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9084cat >conftest.$ac_ext <<_ACEOF
9085/* confdefs.h. */
9086_ACEOF
9087cat confdefs.h >>conftest.$ac_ext
9088cat >>conftest.$ac_ext <<_ACEOF
9089/* end confdefs.h. */
9090#include <$ac_header>
9091_ACEOF
9092if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9093 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9094 ac_status=$?
9095 grep -v '^ *+' conftest.er1 >conftest.err
9096 rm -f conftest.er1
9097 cat conftest.err >&5
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); } >/dev/null; then
9100 if test -s conftest.err; then
9101 ac_cpp_err=$ac_c_preproc_warn_flag
9102 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9103 else
9104 ac_cpp_err=
9105 fi
5ee754fc 9106else
bec39cab 9107 ac_cpp_err=yes
5ee754fc 9108fi
bec39cab
AC
9109if test -z "$ac_cpp_err"; then
9110 ac_header_preproc=yes
9111else
9112 echo "$as_me: failed program was:" >&5
9113sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 9114
bec39cab 9115 ac_header_preproc=no
5ee754fc 9116fi
bec39cab 9117rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9118echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9119echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9120
bec39cab
AC
9121# So? What about this header?
9122case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9123 yes:no: )
9124 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9125echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9126 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9127echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9128 ac_header_preproc=yes
9129 ;;
9130 no:yes:* )
9131 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9132echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9133 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9134echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9135 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9136echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9137 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9138echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9140echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9141 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9142echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9143 (
9144 cat <<\_ASBOX
9145## ------------------------------------------ ##
9146## Report this to the AC_PACKAGE_NAME lists. ##
9147## ------------------------------------------ ##
9148_ASBOX
9149 ) |
9150 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9151 ;;
9152esac
b4e70030
JB
9153echo "$as_me:$LINENO: checking for $ac_header" >&5
9154echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9155if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 9156 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 9157else
bec39cab 9158 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9159fi
b4e70030
JB
9160echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9161echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc
MK
9162
9163fi
bec39cab
AC
9164if test `eval echo '${'$as_ac_Header'}'` = yes; then
9165 cat >>confdefs.h <<_ACEOF
9166#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9167_ACEOF
9168
5ee754fc
MK
9169fi
9170
bec39cab 9171done
5ee754fc 9172
5ee754fc 9173
bec39cab 9174for ac_header in sys/param.h
5ee754fc 9175do
bec39cab 9176as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9177if eval "test \"\${$as_ac_Header+set}\" = set"; then
9178 echo "$as_me:$LINENO: checking for $ac_header" >&5
9179echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9180if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9181 echo $ECHO_N "(cached) $ECHO_C" >&6
9182fi
b4e70030
JB
9183echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9184echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9185else
9186 # Is the header compilable?
b4e70030
JB
9187echo "$as_me:$LINENO: checking $ac_header usability" >&5
9188echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9189cat >conftest.$ac_ext <<_ACEOF
9190/* confdefs.h. */
9191_ACEOF
9192cat confdefs.h >>conftest.$ac_ext
9193cat >>conftest.$ac_ext <<_ACEOF
9194/* end confdefs.h. */
9195$ac_includes_default
9196#include <$ac_header>
9197_ACEOF
9198rm -f conftest.$ac_objext
9199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9200 (eval $ac_compile) 2>conftest.er1
9201 ac_status=$?
9202 grep -v '^ *+' conftest.er1 >conftest.err
9203 rm -f conftest.er1
9204 cat conftest.err >&5
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); } &&
b4e70030
JB
9207 { ac_try='test -z "$ac_c_werror_flag"
9208 || test ! -s conftest.err'
bec39cab
AC
9209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9210 (eval $ac_try) 2>&5
9211 ac_status=$?
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); }; } &&
9214 { ac_try='test -s conftest.$ac_objext'
9215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9216 (eval $ac_try) 2>&5
9217 ac_status=$?
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); }; }; then
9220 ac_header_compiler=yes
9221else
9222 echo "$as_me: failed program was:" >&5
9223sed 's/^/| /' conftest.$ac_ext >&5
9224
b4e70030 9225ac_header_compiler=no
bec39cab
AC
9226fi
9227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9228echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9229echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9230
9231# Is the header present?
b4e70030
JB
9232echo "$as_me:$LINENO: checking $ac_header presence" >&5
9233echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9234cat >conftest.$ac_ext <<_ACEOF
9235/* confdefs.h. */
9236_ACEOF
9237cat confdefs.h >>conftest.$ac_ext
9238cat >>conftest.$ac_ext <<_ACEOF
9239/* end confdefs.h. */
9240#include <$ac_header>
9241_ACEOF
9242if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9243 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9244 ac_status=$?
9245 grep -v '^ *+' conftest.er1 >conftest.err
9246 rm -f conftest.er1
9247 cat conftest.err >&5
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); } >/dev/null; then
9250 if test -s conftest.err; then
9251 ac_cpp_err=$ac_c_preproc_warn_flag
9252 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9253 else
9254 ac_cpp_err=
9255 fi
5ee754fc 9256else
bec39cab 9257 ac_cpp_err=yes
5ee754fc 9258fi
bec39cab
AC
9259if test -z "$ac_cpp_err"; then
9260 ac_header_preproc=yes
9261else
9262 echo "$as_me: failed program was:" >&5
9263sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 9264
bec39cab 9265 ac_header_preproc=no
5ee754fc 9266fi
bec39cab 9267rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9268echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9269echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
9270
9271# So? What about this header?
9272case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9273 yes:no: )
9274 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9275echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9277echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9278 ac_header_preproc=yes
9279 ;;
9280 no:yes:* )
9281 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9282echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9283 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9284echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9285 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9286echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9287 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9288echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9289 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9290echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9291 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9292echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9293 (
9294 cat <<\_ASBOX
9295## ------------------------------------------ ##
9296## Report this to the AC_PACKAGE_NAME lists. ##
9297## ------------------------------------------ ##
9298_ASBOX
9299 ) |
9300 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9301 ;;
9302esac
b4e70030
JB
9303echo "$as_me:$LINENO: checking for $ac_header" >&5
9304echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9305if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 9306 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 9307else
bec39cab 9308 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9309fi
b4e70030
JB
9310echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9311echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 9312
5ee754fc 9313fi
bec39cab
AC
9314if test `eval echo '${'$as_ac_Header'}'` = yes; then
9315 cat >>confdefs.h <<_ACEOF
9316#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9317_ACEOF
9318
5ee754fc 9319fi
bec39cab 9320
5ee754fc
MK
9321done
9322
bec39cab 9323
7eb368b3
NR
9324for ac_header in sys/resource.h
9325do
9326as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9327if eval "test \"\${$as_ac_Header+set}\" = set"; then
9328 echo "$as_me:$LINENO: checking for $ac_header" >&5
9329echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9330if eval "test \"\${$as_ac_Header+set}\" = set"; then
9331 echo $ECHO_N "(cached) $ECHO_C" >&6
9332fi
9333echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9334echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9335else
9336 # Is the header compilable?
9337echo "$as_me:$LINENO: checking $ac_header usability" >&5
9338echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9339cat >conftest.$ac_ext <<_ACEOF
9340/* confdefs.h. */
9341_ACEOF
9342cat confdefs.h >>conftest.$ac_ext
9343cat >>conftest.$ac_ext <<_ACEOF
9344/* end confdefs.h. */
9345$ac_includes_default
9346#include <$ac_header>
9347_ACEOF
9348rm -f conftest.$ac_objext
9349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9350 (eval $ac_compile) 2>conftest.er1
9351 ac_status=$?
9352 grep -v '^ *+' conftest.er1 >conftest.err
9353 rm -f conftest.er1
9354 cat conftest.err >&5
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); } &&
9357 { ac_try='test -z "$ac_c_werror_flag"
9358 || test ! -s conftest.err'
9359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9360 (eval $ac_try) 2>&5
9361 ac_status=$?
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); }; } &&
9364 { ac_try='test -s conftest.$ac_objext'
9365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9366 (eval $ac_try) 2>&5
9367 ac_status=$?
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); }; }; then
9370 ac_header_compiler=yes
9371else
9372 echo "$as_me: failed program was:" >&5
9373sed 's/^/| /' conftest.$ac_ext >&5
9374
9375ac_header_compiler=no
9376fi
9377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9378echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9379echo "${ECHO_T}$ac_header_compiler" >&6
9380
9381# Is the header present?
9382echo "$as_me:$LINENO: checking $ac_header presence" >&5
9383echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9384cat >conftest.$ac_ext <<_ACEOF
9385/* confdefs.h. */
9386_ACEOF
9387cat confdefs.h >>conftest.$ac_ext
9388cat >>conftest.$ac_ext <<_ACEOF
9389/* end confdefs.h. */
9390#include <$ac_header>
9391_ACEOF
9392if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9393 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9394 ac_status=$?
9395 grep -v '^ *+' conftest.er1 >conftest.err
9396 rm -f conftest.er1
9397 cat conftest.err >&5
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); } >/dev/null; then
9400 if test -s conftest.err; then
9401 ac_cpp_err=$ac_c_preproc_warn_flag
9402 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9403 else
9404 ac_cpp_err=
9405 fi
9406else
9407 ac_cpp_err=yes
9408fi
9409if test -z "$ac_cpp_err"; then
9410 ac_header_preproc=yes
9411else
9412 echo "$as_me: failed program was:" >&5
9413sed 's/^/| /' conftest.$ac_ext >&5
9414
9415 ac_header_preproc=no
9416fi
9417rm -f conftest.err conftest.$ac_ext
9418echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9419echo "${ECHO_T}$ac_header_preproc" >&6
9420
9421# So? What about this header?
9422case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9423 yes:no: )
9424 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9425echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9427echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9428 ac_header_preproc=yes
9429 ;;
9430 no:yes:* )
9431 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9432echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9433 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9434echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9435 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9436echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9437 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9438echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9440echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9441 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9442echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9443 (
9444 cat <<\_ASBOX
9445## ------------------------------------------ ##
9446## Report this to the AC_PACKAGE_NAME lists. ##
9447## ------------------------------------------ ##
9448_ASBOX
9449 ) |
9450 sed "s/^/$as_me: WARNING: /" >&2
9451 ;;
9452esac
9453echo "$as_me:$LINENO: checking for $ac_header" >&5
9454echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9455if eval "test \"\${$as_ac_Header+set}\" = set"; then
9456 echo $ECHO_N "(cached) $ECHO_C" >&6
9457else
9458 eval "$as_ac_Header=\$ac_header_preproc"
9459fi
9460echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9461echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9462
9463fi
9464if test `eval echo '${'$as_ac_Header'}'` = yes; then
9465 cat >>confdefs.h <<_ACEOF
9466#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9467_ACEOF
9468
9469fi
9470
9471done
9472
9473
bec39cab 9474for ac_header in sys/proc.h
5ee754fc 9475do
bec39cab 9476as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9477echo "$as_me:$LINENO: checking for $ac_header" >&5
9478echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9479if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 9480 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 9481else
7cb9022a 9482 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
9483/* confdefs.h. */
9484_ACEOF
9485cat confdefs.h >>conftest.$ac_ext
9486cat >>conftest.$ac_ext <<_ACEOF
9487/* end confdefs.h. */
7cb9022a
MK
9488#if HAVE_SYS_PARAM_H
9489# include <sys/param.h>
9490#endif
9491
9492
bec39cab
AC
9493#include <$ac_header>
9494_ACEOF
9495rm -f conftest.$ac_objext
9496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9497 (eval $ac_compile) 2>conftest.er1
9498 ac_status=$?
9499 grep -v '^ *+' conftest.er1 >conftest.err
9500 rm -f conftest.er1
9501 cat conftest.err >&5
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); } &&
b4e70030
JB
9504 { ac_try='test -z "$ac_c_werror_flag"
9505 || test ! -s conftest.err'
bec39cab
AC
9506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9507 (eval $ac_try) 2>&5
9508 ac_status=$?
9509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9510 (exit $ac_status); }; } &&
9511 { ac_try='test -s conftest.$ac_objext'
9512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9513 (eval $ac_try) 2>&5
9514 ac_status=$?
9515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9516 (exit $ac_status); }; }; then
7cb9022a 9517 eval "$as_ac_Header=yes"
bec39cab
AC
9518else
9519 echo "$as_me: failed program was:" >&5
9520sed 's/^/| /' conftest.$ac_ext >&5
9521
b4e70030 9522eval "$as_ac_Header=no"
bec39cab
AC
9523fi
9524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 9525fi
b4e70030
JB
9526echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9527echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9528if test `eval echo '${'$as_ac_Header'}'` = yes; then
9529 cat >>confdefs.h <<_ACEOF
9530#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9531_ACEOF
9532
5ee754fc 9533fi
bec39cab 9534
5ee754fc
MK
9535done
9536
bec39cab
AC
9537
9538for ac_header in sys/procfs.h
5ee754fc 9539do
bec39cab 9540as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9541if eval "test \"\${$as_ac_Header+set}\" = set"; then
9542 echo "$as_me:$LINENO: checking for $ac_header" >&5
9543echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9544if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9545 echo $ECHO_N "(cached) $ECHO_C" >&6
9546fi
b4e70030
JB
9547echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9548echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9549else
9550 # Is the header compilable?
b4e70030
JB
9551echo "$as_me:$LINENO: checking $ac_header usability" >&5
9552echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9553cat >conftest.$ac_ext <<_ACEOF
9554/* confdefs.h. */
9555_ACEOF
9556cat confdefs.h >>conftest.$ac_ext
9557cat >>conftest.$ac_ext <<_ACEOF
9558/* end confdefs.h. */
9559$ac_includes_default
9560#include <$ac_header>
9561_ACEOF
9562rm -f conftest.$ac_objext
9563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9564 (eval $ac_compile) 2>conftest.er1
9565 ac_status=$?
9566 grep -v '^ *+' conftest.er1 >conftest.err
9567 rm -f conftest.er1
9568 cat conftest.err >&5
9569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570 (exit $ac_status); } &&
b4e70030
JB
9571 { ac_try='test -z "$ac_c_werror_flag"
9572 || test ! -s conftest.err'
bec39cab
AC
9573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9574 (eval $ac_try) 2>&5
9575 ac_status=$?
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); }; } &&
9578 { ac_try='test -s conftest.$ac_objext'
9579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9580 (eval $ac_try) 2>&5
9581 ac_status=$?
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); }; }; then
9584 ac_header_compiler=yes
9585else
9586 echo "$as_me: failed program was:" >&5
9587sed 's/^/| /' conftest.$ac_ext >&5
9588
b4e70030 9589ac_header_compiler=no
bec39cab
AC
9590fi
9591rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9592echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9593echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9594
9595# Is the header present?
b4e70030
JB
9596echo "$as_me:$LINENO: checking $ac_header presence" >&5
9597echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9598cat >conftest.$ac_ext <<_ACEOF
9599/* confdefs.h. */
9600_ACEOF
9601cat confdefs.h >>conftest.$ac_ext
9602cat >>conftest.$ac_ext <<_ACEOF
9603/* end confdefs.h. */
9604#include <$ac_header>
9605_ACEOF
9606if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9607 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9608 ac_status=$?
9609 grep -v '^ *+' conftest.er1 >conftest.err
9610 rm -f conftest.er1
9611 cat conftest.err >&5
9612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613 (exit $ac_status); } >/dev/null; then
9614 if test -s conftest.err; then
9615 ac_cpp_err=$ac_c_preproc_warn_flag
9616 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9617 else
9618 ac_cpp_err=
9619 fi
9620else
9621 ac_cpp_err=yes
5ee754fc 9622fi
bec39cab
AC
9623if test -z "$ac_cpp_err"; then
9624 ac_header_preproc=yes
5ee754fc 9625else
bec39cab
AC
9626 echo "$as_me: failed program was:" >&5
9627sed 's/^/| /' conftest.$ac_ext >&5
9628
9629 ac_header_preproc=no
5ee754fc 9630fi
bec39cab 9631rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9632echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9633echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9634
bec39cab
AC
9635# So? What about this header?
9636case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9637 yes:no: )
9638 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9639echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9641echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9642 ac_header_preproc=yes
9643 ;;
9644 no:yes:* )
9645 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9646echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9647 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9648echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9649 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9650echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9651 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9652echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9654echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9655 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9656echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9657 (
9658 cat <<\_ASBOX
9659## ------------------------------------------ ##
9660## Report this to the AC_PACKAGE_NAME lists. ##
9661## ------------------------------------------ ##
9662_ASBOX
9663 ) |
9664 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9665 ;;
9666esac
b4e70030
JB
9667echo "$as_me:$LINENO: checking for $ac_header" >&5
9668echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9669if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9670 echo $ECHO_N "(cached) $ECHO_C" >&6
9671else
9672 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9673fi
b4e70030
JB
9674echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9675echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9676
5ee754fc 9677fi
bec39cab
AC
9678if test `eval echo '${'$as_ac_Header'}'` = yes; then
9679 cat >>confdefs.h <<_ACEOF
9680#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9681_ACEOF
9682
5ee754fc 9683fi
bec39cab 9684
5ee754fc
MK
9685done
9686
bec39cab
AC
9687
9688
9689for ac_header in sys/ptrace.h ptrace.h
5ee754fc 9690do
bec39cab 9691as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9692if eval "test \"\${$as_ac_Header+set}\" = set"; then
9693 echo "$as_me:$LINENO: checking for $ac_header" >&5
9694echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9695if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9696 echo $ECHO_N "(cached) $ECHO_C" >&6
9697fi
b4e70030
JB
9698echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9699echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9700else
9701 # Is the header compilable?
b4e70030
JB
9702echo "$as_me:$LINENO: checking $ac_header usability" >&5
9703echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9704cat >conftest.$ac_ext <<_ACEOF
9705/* confdefs.h. */
9706_ACEOF
9707cat confdefs.h >>conftest.$ac_ext
9708cat >>conftest.$ac_ext <<_ACEOF
9709/* end confdefs.h. */
9710$ac_includes_default
9711#include <$ac_header>
9712_ACEOF
9713rm -f conftest.$ac_objext
9714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9715 (eval $ac_compile) 2>conftest.er1
9716 ac_status=$?
9717 grep -v '^ *+' conftest.er1 >conftest.err
9718 rm -f conftest.er1
9719 cat conftest.err >&5
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); } &&
b4e70030
JB
9722 { ac_try='test -z "$ac_c_werror_flag"
9723 || test ! -s conftest.err'
bec39cab
AC
9724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9725 (eval $ac_try) 2>&5
9726 ac_status=$?
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); }; } &&
9729 { ac_try='test -s conftest.$ac_objext'
9730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9731 (eval $ac_try) 2>&5
9732 ac_status=$?
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); }; }; then
9735 ac_header_compiler=yes
9736else
9737 echo "$as_me: failed program was:" >&5
9738sed 's/^/| /' conftest.$ac_ext >&5
9739
b4e70030 9740ac_header_compiler=no
bec39cab
AC
9741fi
9742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9743echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9744echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9745
9746# Is the header present?
b4e70030
JB
9747echo "$as_me:$LINENO: checking $ac_header presence" >&5
9748echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9749cat >conftest.$ac_ext <<_ACEOF
9750/* confdefs.h. */
9751_ACEOF
9752cat confdefs.h >>conftest.$ac_ext
9753cat >>conftest.$ac_ext <<_ACEOF
9754/* end confdefs.h. */
9755#include <$ac_header>
9756_ACEOF
9757if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9758 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9759 ac_status=$?
9760 grep -v '^ *+' conftest.er1 >conftest.err
9761 rm -f conftest.er1
9762 cat conftest.err >&5
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); } >/dev/null; then
9765 if test -s conftest.err; then
9766 ac_cpp_err=$ac_c_preproc_warn_flag
9767 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9768 else
9769 ac_cpp_err=
9770 fi
9771else
9772 ac_cpp_err=yes
5ee754fc 9773fi
bec39cab
AC
9774if test -z "$ac_cpp_err"; then
9775 ac_header_preproc=yes
5ee754fc 9776else
bec39cab
AC
9777 echo "$as_me: failed program was:" >&5
9778sed 's/^/| /' conftest.$ac_ext >&5
9779
9780 ac_header_preproc=no
5ee754fc 9781fi
bec39cab 9782rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9783echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9784echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9785
bec39cab
AC
9786# So? What about this header?
9787case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9788 yes:no: )
9789 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9790echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9791 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9792echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9793 ac_header_preproc=yes
9794 ;;
9795 no:yes:* )
9796 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9797echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9798 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9799echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9800 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9801echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9802 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9803echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9804 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9805echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9806 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9807echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9808 (
9809 cat <<\_ASBOX
9810## ------------------------------------------ ##
9811## Report this to the AC_PACKAGE_NAME lists. ##
9812## ------------------------------------------ ##
9813_ASBOX
9814 ) |
9815 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9816 ;;
9817esac
b4e70030
JB
9818echo "$as_me:$LINENO: checking for $ac_header" >&5
9819echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9820if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9821 echo $ECHO_N "(cached) $ECHO_C" >&6
9822else
9823 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9824fi
b4e70030
JB
9825echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9826echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9827
5ee754fc 9828fi
bec39cab
AC
9829if test `eval echo '${'$as_ac_Header'}'` = yes; then
9830 cat >>confdefs.h <<_ACEOF
9831#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9832_ACEOF
9833
5ee754fc 9834fi
bec39cab 9835
5ee754fc
MK
9836done
9837
bec39cab
AC
9838
9839
9840for ac_header in sys/reg.h sys/debugreg.h
5ee754fc 9841do
bec39cab 9842as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9843if eval "test \"\${$as_ac_Header+set}\" = set"; then
9844 echo "$as_me:$LINENO: checking for $ac_header" >&5
9845echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9846if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9847 echo $ECHO_N "(cached) $ECHO_C" >&6
9848fi
b4e70030
JB
9849echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9850echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9851else
9852 # Is the header compilable?
b4e70030
JB
9853echo "$as_me:$LINENO: checking $ac_header usability" >&5
9854echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9855cat >conftest.$ac_ext <<_ACEOF
9856/* confdefs.h. */
9857_ACEOF
9858cat confdefs.h >>conftest.$ac_ext
9859cat >>conftest.$ac_ext <<_ACEOF
9860/* end confdefs.h. */
9861$ac_includes_default
9862#include <$ac_header>
9863_ACEOF
9864rm -f conftest.$ac_objext
9865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9866 (eval $ac_compile) 2>conftest.er1
9867 ac_status=$?
9868 grep -v '^ *+' conftest.er1 >conftest.err
9869 rm -f conftest.er1
9870 cat conftest.err >&5
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); } &&
b4e70030
JB
9873 { ac_try='test -z "$ac_c_werror_flag"
9874 || test ! -s conftest.err'
bec39cab
AC
9875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9876 (eval $ac_try) 2>&5
9877 ac_status=$?
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); }; } &&
9880 { ac_try='test -s conftest.$ac_objext'
9881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9882 (eval $ac_try) 2>&5
9883 ac_status=$?
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); }; }; then
9886 ac_header_compiler=yes
9887else
9888 echo "$as_me: failed program was:" >&5
9889sed 's/^/| /' conftest.$ac_ext >&5
9890
b4e70030 9891ac_header_compiler=no
bec39cab
AC
9892fi
9893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9894echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9895echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9896
9897# Is the header present?
b4e70030
JB
9898echo "$as_me:$LINENO: checking $ac_header presence" >&5
9899echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9900cat >conftest.$ac_ext <<_ACEOF
9901/* confdefs.h. */
9902_ACEOF
9903cat confdefs.h >>conftest.$ac_ext
9904cat >>conftest.$ac_ext <<_ACEOF
9905/* end confdefs.h. */
9906#include <$ac_header>
9907_ACEOF
9908if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9909 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9910 ac_status=$?
9911 grep -v '^ *+' conftest.er1 >conftest.err
9912 rm -f conftest.er1
9913 cat conftest.err >&5
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); } >/dev/null; then
9916 if test -s conftest.err; then
9917 ac_cpp_err=$ac_c_preproc_warn_flag
9918 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9919 else
9920 ac_cpp_err=
9921 fi
9922else
9923 ac_cpp_err=yes
5ee754fc 9924fi
bec39cab
AC
9925if test -z "$ac_cpp_err"; then
9926 ac_header_preproc=yes
5ee754fc 9927else
bec39cab
AC
9928 echo "$as_me: failed program was:" >&5
9929sed 's/^/| /' conftest.$ac_ext >&5
9930
9931 ac_header_preproc=no
5ee754fc 9932fi
bec39cab 9933rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9934echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9935echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9936
bec39cab
AC
9937# So? What about this header?
9938case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9939 yes:no: )
9940 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9941echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9942 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9943echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9944 ac_header_preproc=yes
9945 ;;
9946 no:yes:* )
9947 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9948echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9949 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9950echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9951 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9952echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9953 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9954echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9956echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9957 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9958echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9959 (
9960 cat <<\_ASBOX
9961## ------------------------------------------ ##
9962## Report this to the AC_PACKAGE_NAME lists. ##
9963## ------------------------------------------ ##
9964_ASBOX
9965 ) |
9966 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9967 ;;
9968esac
b4e70030
JB
9969echo "$as_me:$LINENO: checking for $ac_header" >&5
9970echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9971if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9972 echo $ECHO_N "(cached) $ECHO_C" >&6
9973else
9974 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9975fi
b4e70030
JB
9976echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9977echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9978
5ee754fc 9979fi
bec39cab
AC
9980if test `eval echo '${'$as_ac_Header'}'` = yes; then
9981 cat >>confdefs.h <<_ACEOF
9982#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9983_ACEOF
9984
5ee754fc 9985fi
bec39cab 9986
5ee754fc
MK
9987done
9988
bec39cab
AC
9989
9990for ac_header in sys/select.h
5ee754fc 9991do
bec39cab 9992as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9993if eval "test \"\${$as_ac_Header+set}\" = set"; then
9994 echo "$as_me:$LINENO: checking for $ac_header" >&5
9995echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9996if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9997 echo $ECHO_N "(cached) $ECHO_C" >&6
9998fi
b4e70030
JB
9999echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10000echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10001else
10002 # Is the header compilable?
b4e70030
JB
10003echo "$as_me:$LINENO: checking $ac_header usability" >&5
10004echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10005cat >conftest.$ac_ext <<_ACEOF
10006/* confdefs.h. */
10007_ACEOF
10008cat confdefs.h >>conftest.$ac_ext
10009cat >>conftest.$ac_ext <<_ACEOF
10010/* end confdefs.h. */
10011$ac_includes_default
10012#include <$ac_header>
10013_ACEOF
10014rm -f conftest.$ac_objext
10015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10016 (eval $ac_compile) 2>conftest.er1
10017 ac_status=$?
10018 grep -v '^ *+' conftest.er1 >conftest.err
10019 rm -f conftest.er1
10020 cat conftest.err >&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); } &&
b4e70030
JB
10023 { ac_try='test -z "$ac_c_werror_flag"
10024 || test ! -s conftest.err'
bec39cab
AC
10025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10026 (eval $ac_try) 2>&5
10027 ac_status=$?
10028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10029 (exit $ac_status); }; } &&
10030 { ac_try='test -s conftest.$ac_objext'
10031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10032 (eval $ac_try) 2>&5
10033 ac_status=$?
10034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10035 (exit $ac_status); }; }; then
10036 ac_header_compiler=yes
10037else
10038 echo "$as_me: failed program was:" >&5
10039sed 's/^/| /' conftest.$ac_ext >&5
10040
b4e70030 10041ac_header_compiler=no
bec39cab
AC
10042fi
10043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10044echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10045echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10046
10047# Is the header present?
b4e70030
JB
10048echo "$as_me:$LINENO: checking $ac_header presence" >&5
10049echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10050cat >conftest.$ac_ext <<_ACEOF
10051/* confdefs.h. */
10052_ACEOF
10053cat confdefs.h >>conftest.$ac_ext
10054cat >>conftest.$ac_ext <<_ACEOF
10055/* end confdefs.h. */
10056#include <$ac_header>
10057_ACEOF
10058if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10059 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10060 ac_status=$?
10061 grep -v '^ *+' conftest.er1 >conftest.err
10062 rm -f conftest.er1
10063 cat conftest.err >&5
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 (exit $ac_status); } >/dev/null; then
10066 if test -s conftest.err; then
10067 ac_cpp_err=$ac_c_preproc_warn_flag
10068 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10069 else
10070 ac_cpp_err=
10071 fi
10072else
10073 ac_cpp_err=yes
5ee754fc 10074fi
bec39cab
AC
10075if test -z "$ac_cpp_err"; then
10076 ac_header_preproc=yes
5ee754fc 10077else
bec39cab
AC
10078 echo "$as_me: failed program was:" >&5
10079sed 's/^/| /' conftest.$ac_ext >&5
10080
10081 ac_header_preproc=no
5ee754fc 10082fi
bec39cab 10083rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10084echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10085echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10086
bec39cab
AC
10087# So? What about this header?
10088case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10089 yes:no: )
10090 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10091echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10093echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10094 ac_header_preproc=yes
10095 ;;
10096 no:yes:* )
10097 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10098echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10099 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10100echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10101 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10102echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10103 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10104echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10106echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10107 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10108echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10109 (
10110 cat <<\_ASBOX
10111## ------------------------------------------ ##
10112## Report this to the AC_PACKAGE_NAME lists. ##
10113## ------------------------------------------ ##
10114_ASBOX
10115 ) |
10116 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10117 ;;
10118esac
b4e70030
JB
10119echo "$as_me:$LINENO: checking for $ac_header" >&5
10120echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10121if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10122 echo $ECHO_N "(cached) $ECHO_C" >&6
10123else
10124 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10125fi
b4e70030
JB
10126echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10127echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10128
5ee754fc 10129fi
bec39cab
AC
10130if test `eval echo '${'$as_ac_Header'}'` = yes; then
10131 cat >>confdefs.h <<_ACEOF
10132#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10133_ACEOF
10134
5ee754fc 10135fi
bec39cab 10136
5ee754fc
MK
10137done
10138
bec39cab
AC
10139
10140for ac_header in sys/syscall.h
5ee754fc 10141do
bec39cab 10142as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10143if eval "test \"\${$as_ac_Header+set}\" = set"; then
10144 echo "$as_me:$LINENO: checking for $ac_header" >&5
10145echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10146if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10147 echo $ECHO_N "(cached) $ECHO_C" >&6
10148fi
b4e70030
JB
10149echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10150echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10151else
10152 # Is the header compilable?
b4e70030
JB
10153echo "$as_me:$LINENO: checking $ac_header usability" >&5
10154echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10155cat >conftest.$ac_ext <<_ACEOF
10156/* confdefs.h. */
10157_ACEOF
10158cat confdefs.h >>conftest.$ac_ext
10159cat >>conftest.$ac_ext <<_ACEOF
10160/* end confdefs.h. */
10161$ac_includes_default
10162#include <$ac_header>
10163_ACEOF
10164rm -f conftest.$ac_objext
10165if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10166 (eval $ac_compile) 2>conftest.er1
10167 ac_status=$?
10168 grep -v '^ *+' conftest.er1 >conftest.err
10169 rm -f conftest.er1
10170 cat conftest.err >&5
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); } &&
b4e70030
JB
10173 { ac_try='test -z "$ac_c_werror_flag"
10174 || test ! -s conftest.err'
bec39cab
AC
10175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10176 (eval $ac_try) 2>&5
10177 ac_status=$?
10178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); }; } &&
10180 { ac_try='test -s conftest.$ac_objext'
10181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10182 (eval $ac_try) 2>&5
10183 ac_status=$?
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); }; }; then
10186 ac_header_compiler=yes
10187else
10188 echo "$as_me: failed program was:" >&5
10189sed 's/^/| /' conftest.$ac_ext >&5
10190
b4e70030 10191ac_header_compiler=no
bec39cab
AC
10192fi
10193rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10194echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10195echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10196
10197# Is the header present?
b4e70030
JB
10198echo "$as_me:$LINENO: checking $ac_header presence" >&5
10199echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10200cat >conftest.$ac_ext <<_ACEOF
10201/* confdefs.h. */
10202_ACEOF
10203cat confdefs.h >>conftest.$ac_ext
10204cat >>conftest.$ac_ext <<_ACEOF
10205/* end confdefs.h. */
10206#include <$ac_header>
10207_ACEOF
10208if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10209 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10210 ac_status=$?
10211 grep -v '^ *+' conftest.er1 >conftest.err
10212 rm -f conftest.er1
10213 cat conftest.err >&5
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); } >/dev/null; then
10216 if test -s conftest.err; then
10217 ac_cpp_err=$ac_c_preproc_warn_flag
10218 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10219 else
10220 ac_cpp_err=
10221 fi
10222else
10223 ac_cpp_err=yes
5ee754fc 10224fi
bec39cab
AC
10225if test -z "$ac_cpp_err"; then
10226 ac_header_preproc=yes
5ee754fc 10227else
bec39cab
AC
10228 echo "$as_me: failed program was:" >&5
10229sed 's/^/| /' conftest.$ac_ext >&5
10230
10231 ac_header_preproc=no
5ee754fc 10232fi
bec39cab 10233rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10234echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10235echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10236
bec39cab
AC
10237# So? What about this header?
10238case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10239 yes:no: )
10240 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10241echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10243echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10244 ac_header_preproc=yes
10245 ;;
10246 no:yes:* )
10247 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10248echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10249 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10250echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10251 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10252echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10253 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10254echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10256echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10257 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10258echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10259 (
10260 cat <<\_ASBOX
10261## ------------------------------------------ ##
10262## Report this to the AC_PACKAGE_NAME lists. ##
10263## ------------------------------------------ ##
10264_ASBOX
10265 ) |
10266 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10267 ;;
10268esac
b4e70030
JB
10269echo "$as_me:$LINENO: checking for $ac_header" >&5
10270echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10271if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10272 echo $ECHO_N "(cached) $ECHO_C" >&6
10273else
10274 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10275fi
b4e70030
JB
10276echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10277echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10278
5ee754fc 10279fi
bec39cab
AC
10280if test `eval echo '${'$as_ac_Header'}'` = yes; then
10281 cat >>confdefs.h <<_ACEOF
10282#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10283_ACEOF
10284
5ee754fc 10285fi
bec39cab 10286
5ee754fc
MK
10287done
10288
bec39cab
AC
10289
10290for ac_header in sys/types.h
5ee754fc 10291do
bec39cab 10292as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10293if eval "test \"\${$as_ac_Header+set}\" = set"; then
10294 echo "$as_me:$LINENO: checking for $ac_header" >&5
10295echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10296if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10297 echo $ECHO_N "(cached) $ECHO_C" >&6
10298fi
b4e70030
JB
10299echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10300echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10301else
10302 # Is the header compilable?
b4e70030
JB
10303echo "$as_me:$LINENO: checking $ac_header usability" >&5
10304echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10305cat >conftest.$ac_ext <<_ACEOF
10306/* confdefs.h. */
10307_ACEOF
10308cat confdefs.h >>conftest.$ac_ext
10309cat >>conftest.$ac_ext <<_ACEOF
10310/* end confdefs.h. */
10311$ac_includes_default
10312#include <$ac_header>
10313_ACEOF
10314rm -f conftest.$ac_objext
10315if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10316 (eval $ac_compile) 2>conftest.er1
10317 ac_status=$?
10318 grep -v '^ *+' conftest.er1 >conftest.err
10319 rm -f conftest.er1
10320 cat conftest.err >&5
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); } &&
b4e70030
JB
10323 { ac_try='test -z "$ac_c_werror_flag"
10324 || test ! -s conftest.err'
bec39cab
AC
10325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10326 (eval $ac_try) 2>&5
10327 ac_status=$?
10328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329 (exit $ac_status); }; } &&
10330 { ac_try='test -s conftest.$ac_objext'
10331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10332 (eval $ac_try) 2>&5
10333 ac_status=$?
10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 (exit $ac_status); }; }; then
10336 ac_header_compiler=yes
10337else
10338 echo "$as_me: failed program was:" >&5
10339sed 's/^/| /' conftest.$ac_ext >&5
10340
b4e70030 10341ac_header_compiler=no
bec39cab
AC
10342fi
10343rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10344echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10345echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10346
10347# Is the header present?
b4e70030
JB
10348echo "$as_me:$LINENO: checking $ac_header presence" >&5
10349echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10350cat >conftest.$ac_ext <<_ACEOF
10351/* confdefs.h. */
10352_ACEOF
10353cat confdefs.h >>conftest.$ac_ext
10354cat >>conftest.$ac_ext <<_ACEOF
10355/* end confdefs.h. */
10356#include <$ac_header>
10357_ACEOF
10358if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10360 ac_status=$?
10361 grep -v '^ *+' conftest.er1 >conftest.err
10362 rm -f conftest.er1
10363 cat conftest.err >&5
10364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10365 (exit $ac_status); } >/dev/null; then
10366 if test -s conftest.err; then
10367 ac_cpp_err=$ac_c_preproc_warn_flag
10368 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10369 else
10370 ac_cpp_err=
10371 fi
10372else
10373 ac_cpp_err=yes
5ee754fc 10374fi
bec39cab
AC
10375if test -z "$ac_cpp_err"; then
10376 ac_header_preproc=yes
5ee754fc 10377else
bec39cab
AC
10378 echo "$as_me: failed program was:" >&5
10379sed 's/^/| /' conftest.$ac_ext >&5
10380
10381 ac_header_preproc=no
5ee754fc 10382fi
bec39cab 10383rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10384echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10385echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10386
bec39cab
AC
10387# So? What about this header?
10388case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10389 yes:no: )
10390 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10391echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10393echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10394 ac_header_preproc=yes
10395 ;;
10396 no:yes:* )
10397 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10398echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10399 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10400echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10401 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10402echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10403 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10404echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10406echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10407 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10408echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10409 (
10410 cat <<\_ASBOX
10411## ------------------------------------------ ##
10412## Report this to the AC_PACKAGE_NAME lists. ##
10413## ------------------------------------------ ##
10414_ASBOX
10415 ) |
10416 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10417 ;;
10418esac
b4e70030
JB
10419echo "$as_me:$LINENO: checking for $ac_header" >&5
10420echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10421if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10422 echo $ECHO_N "(cached) $ECHO_C" >&6
10423else
10424 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10425fi
b4e70030
JB
10426echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10427echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10428
5ee754fc 10429fi
bec39cab
AC
10430if test `eval echo '${'$as_ac_Header'}'` = yes; then
10431 cat >>confdefs.h <<_ACEOF
10432#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10433_ACEOF
10434
5ee754fc 10435fi
bec39cab 10436
5ee754fc
MK
10437done
10438
bec39cab
AC
10439
10440for ac_header in sys/user.h
5ee754fc 10441do
bec39cab 10442as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10443echo "$as_me:$LINENO: checking for $ac_header" >&5
10444echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10445if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 10446 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 10447else
7cb9022a 10448 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
10449/* confdefs.h. */
10450_ACEOF
10451cat confdefs.h >>conftest.$ac_ext
10452cat >>conftest.$ac_ext <<_ACEOF
10453/* end confdefs.h. */
7cb9022a
MK
10454#if HAVE_SYS_PARAM_H
10455# include <sys/param.h>
10456#endif
10457
10458
bec39cab
AC
10459#include <$ac_header>
10460_ACEOF
10461rm -f conftest.$ac_objext
10462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10463 (eval $ac_compile) 2>conftest.er1
10464 ac_status=$?
10465 grep -v '^ *+' conftest.er1 >conftest.err
10466 rm -f conftest.er1
10467 cat conftest.err >&5
10468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469 (exit $ac_status); } &&
b4e70030
JB
10470 { ac_try='test -z "$ac_c_werror_flag"
10471 || test ! -s conftest.err'
bec39cab
AC
10472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10473 (eval $ac_try) 2>&5
10474 ac_status=$?
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); }; } &&
10477 { ac_try='test -s conftest.$ac_objext'
10478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10479 (eval $ac_try) 2>&5
10480 ac_status=$?
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); }; }; then
7cb9022a 10483 eval "$as_ac_Header=yes"
bec39cab
AC
10484else
10485 echo "$as_me: failed program was:" >&5
10486sed 's/^/| /' conftest.$ac_ext >&5
10487
b4e70030 10488eval "$as_ac_Header=no"
bec39cab
AC
10489fi
10490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 10491fi
b4e70030
JB
10492echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10493echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10494if test `eval echo '${'$as_ac_Header'}'` = yes; then
10495 cat >>confdefs.h <<_ACEOF
10496#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10497_ACEOF
10498
5ee754fc 10499fi
bec39cab 10500
5ee754fc
MK
10501done
10502
bec39cab
AC
10503
10504
10505for ac_header in sys/wait.h wait.h
5ee754fc 10506do
bec39cab 10507as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10508if eval "test \"\${$as_ac_Header+set}\" = set"; then
10509 echo "$as_me:$LINENO: checking for $ac_header" >&5
10510echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10511if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10512 echo $ECHO_N "(cached) $ECHO_C" >&6
10513fi
b4e70030
JB
10514echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10515echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10516else
10517 # Is the header compilable?
b4e70030
JB
10518echo "$as_me:$LINENO: checking $ac_header usability" >&5
10519echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10520cat >conftest.$ac_ext <<_ACEOF
10521/* confdefs.h. */
10522_ACEOF
10523cat confdefs.h >>conftest.$ac_ext
10524cat >>conftest.$ac_ext <<_ACEOF
10525/* end confdefs.h. */
10526$ac_includes_default
10527#include <$ac_header>
10528_ACEOF
10529rm -f conftest.$ac_objext
10530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10531 (eval $ac_compile) 2>conftest.er1
10532 ac_status=$?
10533 grep -v '^ *+' conftest.er1 >conftest.err
10534 rm -f conftest.er1
10535 cat conftest.err >&5
10536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537 (exit $ac_status); } &&
b4e70030
JB
10538 { ac_try='test -z "$ac_c_werror_flag"
10539 || test ! -s conftest.err'
bec39cab
AC
10540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10541 (eval $ac_try) 2>&5
10542 ac_status=$?
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); }; } &&
10545 { ac_try='test -s conftest.$ac_objext'
10546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10547 (eval $ac_try) 2>&5
10548 ac_status=$?
10549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10550 (exit $ac_status); }; }; then
10551 ac_header_compiler=yes
10552else
10553 echo "$as_me: failed program was:" >&5
10554sed 's/^/| /' conftest.$ac_ext >&5
10555
b4e70030 10556ac_header_compiler=no
bec39cab
AC
10557fi
10558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10559echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10560echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10561
10562# Is the header present?
b4e70030
JB
10563echo "$as_me:$LINENO: checking $ac_header presence" >&5
10564echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10565cat >conftest.$ac_ext <<_ACEOF
10566/* confdefs.h. */
10567_ACEOF
10568cat confdefs.h >>conftest.$ac_ext
10569cat >>conftest.$ac_ext <<_ACEOF
10570/* end confdefs.h. */
10571#include <$ac_header>
10572_ACEOF
10573if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10574 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10575 ac_status=$?
10576 grep -v '^ *+' conftest.er1 >conftest.err
10577 rm -f conftest.er1
10578 cat conftest.err >&5
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); } >/dev/null; then
10581 if test -s conftest.err; then
10582 ac_cpp_err=$ac_c_preproc_warn_flag
10583 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10584 else
10585 ac_cpp_err=
10586 fi
10587else
10588 ac_cpp_err=yes
5ee754fc 10589fi
bec39cab
AC
10590if test -z "$ac_cpp_err"; then
10591 ac_header_preproc=yes
5ee754fc 10592else
bec39cab
AC
10593 echo "$as_me: failed program was:" >&5
10594sed 's/^/| /' conftest.$ac_ext >&5
10595
10596 ac_header_preproc=no
5ee754fc 10597fi
bec39cab 10598rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10599echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10600echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10601
bec39cab
AC
10602# So? What about this header?
10603case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10604 yes:no: )
10605 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10606echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10608echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10609 ac_header_preproc=yes
10610 ;;
10611 no:yes:* )
10612 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10613echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10614 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10615echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10616 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10617echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10618 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10619echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10621echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10622 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10623echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10624 (
10625 cat <<\_ASBOX
10626## ------------------------------------------ ##
10627## Report this to the AC_PACKAGE_NAME lists. ##
10628## ------------------------------------------ ##
10629_ASBOX
10630 ) |
10631 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10632 ;;
10633esac
b4e70030
JB
10634echo "$as_me:$LINENO: checking for $ac_header" >&5
10635echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10636if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10637 echo $ECHO_N "(cached) $ECHO_C" >&6
10638else
10639 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 10640fi
b4e70030
JB
10641echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10642echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10643
9608ab8b 10644fi
bec39cab
AC
10645if test `eval echo '${'$as_ac_Header'}'` = yes; then
10646 cat >>confdefs.h <<_ACEOF
10647#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10648_ACEOF
10649
9608ab8b 10650fi
bec39cab 10651
9608ab8b 10652done
5ee754fc 10653
bec39cab
AC
10654
10655
10656
10657for ac_header in termios.h termio.h sgtty.h
5ee754fc 10658do
bec39cab 10659as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10660if eval "test \"\${$as_ac_Header+set}\" = set"; then
10661 echo "$as_me:$LINENO: checking for $ac_header" >&5
10662echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10663if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10664 echo $ECHO_N "(cached) $ECHO_C" >&6
10665fi
b4e70030
JB
10666echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10667echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10668else
10669 # Is the header compilable?
b4e70030
JB
10670echo "$as_me:$LINENO: checking $ac_header usability" >&5
10671echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10672cat >conftest.$ac_ext <<_ACEOF
10673/* confdefs.h. */
10674_ACEOF
10675cat confdefs.h >>conftest.$ac_ext
10676cat >>conftest.$ac_ext <<_ACEOF
10677/* end confdefs.h. */
10678$ac_includes_default
10679#include <$ac_header>
10680_ACEOF
10681rm -f conftest.$ac_objext
10682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10683 (eval $ac_compile) 2>conftest.er1
10684 ac_status=$?
10685 grep -v '^ *+' conftest.er1 >conftest.err
10686 rm -f conftest.er1
10687 cat conftest.err >&5
10688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10689 (exit $ac_status); } &&
b4e70030
JB
10690 { ac_try='test -z "$ac_c_werror_flag"
10691 || test ! -s conftest.err'
bec39cab
AC
10692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10693 (eval $ac_try) 2>&5
10694 ac_status=$?
10695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); }; } &&
10697 { ac_try='test -s conftest.$ac_objext'
10698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10699 (eval $ac_try) 2>&5
10700 ac_status=$?
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); }; }; then
10703 ac_header_compiler=yes
10704else
10705 echo "$as_me: failed program was:" >&5
10706sed 's/^/| /' conftest.$ac_ext >&5
10707
b4e70030 10708ac_header_compiler=no
bec39cab
AC
10709fi
10710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10711echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10712echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10713
10714# Is the header present?
b4e70030
JB
10715echo "$as_me:$LINENO: checking $ac_header presence" >&5
10716echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10717cat >conftest.$ac_ext <<_ACEOF
10718/* confdefs.h. */
10719_ACEOF
10720cat confdefs.h >>conftest.$ac_ext
10721cat >>conftest.$ac_ext <<_ACEOF
10722/* end confdefs.h. */
10723#include <$ac_header>
10724_ACEOF
10725if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10727 ac_status=$?
10728 grep -v '^ *+' conftest.er1 >conftest.err
10729 rm -f conftest.er1
10730 cat conftest.err >&5
10731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732 (exit $ac_status); } >/dev/null; then
10733 if test -s conftest.err; then
10734 ac_cpp_err=$ac_c_preproc_warn_flag
10735 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10736 else
10737 ac_cpp_err=
10738 fi
10739else
10740 ac_cpp_err=yes
9608ab8b 10741fi
bec39cab
AC
10742if test -z "$ac_cpp_err"; then
10743 ac_header_preproc=yes
9608ab8b 10744else
bec39cab
AC
10745 echo "$as_me: failed program was:" >&5
10746sed 's/^/| /' conftest.$ac_ext >&5
10747
10748 ac_header_preproc=no
9608ab8b 10749fi
bec39cab 10750rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10751echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10752echo "${ECHO_T}$ac_header_preproc" >&6
9608ab8b 10753
bec39cab
AC
10754# So? What about this header?
10755case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10756 yes:no: )
10757 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10758echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10760echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10761 ac_header_preproc=yes
10762 ;;
10763 no:yes:* )
10764 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10765echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10766 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10767echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10768 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10769echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10770 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10771echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10773echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10774 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10775echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10776 (
10777 cat <<\_ASBOX
10778## ------------------------------------------ ##
10779## Report this to the AC_PACKAGE_NAME lists. ##
10780## ------------------------------------------ ##
10781_ASBOX
10782 ) |
10783 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10784 ;;
10785esac
b4e70030
JB
10786echo "$as_me:$LINENO: checking for $ac_header" >&5
10787echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10788if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10789 echo $ECHO_N "(cached) $ECHO_C" >&6
10790else
10791 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 10792fi
b4e70030
JB
10793echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10794echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10795
9608ab8b 10796fi
bec39cab
AC
10797if test `eval echo '${'$as_ac_Header'}'` = yes; then
10798 cat >>confdefs.h <<_ACEOF
10799#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10800_ACEOF
10801
9608ab8b 10802fi
bec39cab 10803
5ee754fc 10804done
9608ab8b 10805
bec39cab
AC
10806
10807for ac_header in unistd.h
78434e59 10808do
bec39cab 10809as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10810if eval "test \"\${$as_ac_Header+set}\" = set"; then
10811 echo "$as_me:$LINENO: checking for $ac_header" >&5
10812echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10813if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10814 echo $ECHO_N "(cached) $ECHO_C" >&6
10815fi
b4e70030
JB
10816echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10817echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10818else
10819 # Is the header compilable?
b4e70030
JB
10820echo "$as_me:$LINENO: checking $ac_header usability" >&5
10821echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10822cat >conftest.$ac_ext <<_ACEOF
10823/* confdefs.h. */
10824_ACEOF
10825cat confdefs.h >>conftest.$ac_ext
10826cat >>conftest.$ac_ext <<_ACEOF
10827/* end confdefs.h. */
10828$ac_includes_default
10829#include <$ac_header>
10830_ACEOF
10831rm -f conftest.$ac_objext
10832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10833 (eval $ac_compile) 2>conftest.er1
10834 ac_status=$?
10835 grep -v '^ *+' conftest.er1 >conftest.err
10836 rm -f conftest.er1
10837 cat conftest.err >&5
10838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); } &&
b4e70030
JB
10840 { ac_try='test -z "$ac_c_werror_flag"
10841 || test ! -s conftest.err'
bec39cab
AC
10842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10843 (eval $ac_try) 2>&5
10844 ac_status=$?
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); }; } &&
10847 { ac_try='test -s conftest.$ac_objext'
10848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10849 (eval $ac_try) 2>&5
10850 ac_status=$?
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); }; }; then
10853 ac_header_compiler=yes
10854else
10855 echo "$as_me: failed program was:" >&5
10856sed 's/^/| /' conftest.$ac_ext >&5
10857
b4e70030 10858ac_header_compiler=no
bec39cab
AC
10859fi
10860rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10861echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10862echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10863
10864# Is the header present?
b4e70030
JB
10865echo "$as_me:$LINENO: checking $ac_header presence" >&5
10866echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10867cat >conftest.$ac_ext <<_ACEOF
10868/* confdefs.h. */
10869_ACEOF
10870cat confdefs.h >>conftest.$ac_ext
10871cat >>conftest.$ac_ext <<_ACEOF
10872/* end confdefs.h. */
10873#include <$ac_header>
10874_ACEOF
10875if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10876 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10877 ac_status=$?
10878 grep -v '^ *+' conftest.er1 >conftest.err
10879 rm -f conftest.er1
10880 cat conftest.err >&5
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); } >/dev/null; then
10883 if test -s conftest.err; then
10884 ac_cpp_err=$ac_c_preproc_warn_flag
10885 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10886 else
10887 ac_cpp_err=
10888 fi
10889else
10890 ac_cpp_err=yes
78434e59 10891fi
bec39cab
AC
10892if test -z "$ac_cpp_err"; then
10893 ac_header_preproc=yes
78434e59 10894else
bec39cab
AC
10895 echo "$as_me: failed program was:" >&5
10896sed 's/^/| /' conftest.$ac_ext >&5
10897
10898 ac_header_preproc=no
78434e59 10899fi
bec39cab 10900rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10901echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10902echo "${ECHO_T}$ac_header_preproc" >&6
78434e59 10903
bec39cab
AC
10904# So? What about this header?
10905case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10906 yes:no: )
10907 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10908echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10910echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10911 ac_header_preproc=yes
10912 ;;
10913 no:yes:* )
10914 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10915echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10916 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10917echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10918 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10919echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10920 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10921echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10923echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10924 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10925echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10926 (
10927 cat <<\_ASBOX
10928## ------------------------------------------ ##
10929## Report this to the AC_PACKAGE_NAME lists. ##
10930## ------------------------------------------ ##
10931_ASBOX
10932 ) |
10933 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10934 ;;
10935esac
b4e70030
JB
10936echo "$as_me:$LINENO: checking for $ac_header" >&5
10937echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10938if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10939 echo $ECHO_N "(cached) $ECHO_C" >&6
10940else
10941 eval "$as_ac_Header=\$ac_header_preproc"
086ec9eb 10942fi
b4e70030
JB
10943echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10944echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10945
086ec9eb 10946fi
bec39cab
AC
10947if test `eval echo '${'$as_ac_Header'}'` = yes; then
10948 cat >>confdefs.h <<_ACEOF
10949#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10950_ACEOF
10951
086ec9eb 10952fi
bec39cab 10953
086ec9eb
MK
10954done
10955
9608ab8b 10956
b1d19a62 10957# On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
5ee754fc
MK
10958# between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
10959# think that we don't have <curses.h> if we're using GCC.
10960case $host_os in
b1d19a62 10961 solaris2.[789])
5ee754fc 10962 if test "$GCC" = yes; then
bec39cab
AC
10963
10964cat >>confdefs.h <<\_ACEOF
5ee754fc 10965#define _MSE_INT_H 1
bec39cab 10966_ACEOF
5ee754fc
MK
10967
10968 fi ;;
10969esac
bec39cab
AC
10970
10971
10972
10973
10974for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
5ee754fc 10975do
bec39cab 10976as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10977if eval "test \"\${$as_ac_Header+set}\" = set"; then
10978 echo "$as_me:$LINENO: checking for $ac_header" >&5
10979echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10980if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10981 echo $ECHO_N "(cached) $ECHO_C" >&6
10982fi
b4e70030
JB
10983echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10984echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10985else
10986 # Is the header compilable?
b4e70030
JB
10987echo "$as_me:$LINENO: checking $ac_header usability" >&5
10988echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10989cat >conftest.$ac_ext <<_ACEOF
10990/* confdefs.h. */
10991_ACEOF
10992cat confdefs.h >>conftest.$ac_ext
10993cat >>conftest.$ac_ext <<_ACEOF
10994/* end confdefs.h. */
10995$ac_includes_default
10996#include <$ac_header>
10997_ACEOF
10998rm -f conftest.$ac_objext
10999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11000 (eval $ac_compile) 2>conftest.er1
11001 ac_status=$?
11002 grep -v '^ *+' conftest.er1 >conftest.err
11003 rm -f conftest.er1
11004 cat conftest.err >&5
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); } &&
b4e70030
JB
11007 { ac_try='test -z "$ac_c_werror_flag"
11008 || test ! -s conftest.err'
bec39cab
AC
11009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11010 (eval $ac_try) 2>&5
11011 ac_status=$?
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); }; } &&
11014 { ac_try='test -s conftest.$ac_objext'
11015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11016 (eval $ac_try) 2>&5
11017 ac_status=$?
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); }; }; then
11020 ac_header_compiler=yes
11021else
11022 echo "$as_me: failed program was:" >&5
11023sed 's/^/| /' conftest.$ac_ext >&5
11024
b4e70030 11025ac_header_compiler=no
bec39cab
AC
11026fi
11027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
11028echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11029echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
11030
11031# Is the header present?
b4e70030
JB
11032echo "$as_me:$LINENO: checking $ac_header presence" >&5
11033echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
11034cat >conftest.$ac_ext <<_ACEOF
11035/* confdefs.h. */
11036_ACEOF
11037cat confdefs.h >>conftest.$ac_ext
11038cat >>conftest.$ac_ext <<_ACEOF
11039/* end confdefs.h. */
11040#include <$ac_header>
11041_ACEOF
11042if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11043 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11044 ac_status=$?
11045 grep -v '^ *+' conftest.er1 >conftest.err
11046 rm -f conftest.er1
11047 cat conftest.err >&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); } >/dev/null; then
11050 if test -s conftest.err; then
11051 ac_cpp_err=$ac_c_preproc_warn_flag
11052 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11053 else
11054 ac_cpp_err=
11055 fi
11056else
11057 ac_cpp_err=yes
c906108c 11058fi
bec39cab
AC
11059if test -z "$ac_cpp_err"; then
11060 ac_header_preproc=yes
11061else
11062 echo "$as_me: failed program was:" >&5
11063sed 's/^/| /' conftest.$ac_ext >&5
11064
11065 ac_header_preproc=no
c906108c 11066fi
bec39cab 11067rm -f conftest.err conftest.$ac_ext
b4e70030
JB
11068echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11069echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
11070
11071# So? What about this header?
11072case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11073 yes:no: )
11074 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11075echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11077echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11078 ac_header_preproc=yes
11079 ;;
11080 no:yes:* )
11081 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11082echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11083 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11084echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11085 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11086echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11087 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11088echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11090echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11091 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11092echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
11093 (
11094 cat <<\_ASBOX
11095## ------------------------------------------ ##
11096## Report this to the AC_PACKAGE_NAME lists. ##
11097## ------------------------------------------ ##
11098_ASBOX
11099 ) |
11100 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
11101 ;;
11102esac
b4e70030
JB
11103echo "$as_me:$LINENO: checking for $ac_header" >&5
11104echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11105if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 11106 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 11107else
bec39cab 11108 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 11109fi
b4e70030
JB
11110echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11111echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11112
11113fi
11114if test `eval echo '${'$as_ac_Header'}'` = yes; then
11115 cat >>confdefs.h <<_ACEOF
11116#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11117_ACEOF
11118
11119fi
11120
5ee754fc 11121done
c906108c 11122
bec39cab 11123
065a1afc 11124for ac_header in ncurses/term.h
3b78cdbb 11125do
bec39cab 11126as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11127if eval "test \"\${$as_ac_Header+set}\" = set"; then
11128 echo "$as_me:$LINENO: checking for $ac_header" >&5
11129echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11130if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11131 echo $ECHO_N "(cached) $ECHO_C" >&6
11132fi
b4e70030
JB
11133echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11134echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11135else
11136 # Is the header compilable?
b4e70030
JB
11137echo "$as_me:$LINENO: checking $ac_header usability" >&5
11138echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
11139cat >conftest.$ac_ext <<_ACEOF
11140/* confdefs.h. */
11141_ACEOF
11142cat confdefs.h >>conftest.$ac_ext
11143cat >>conftest.$ac_ext <<_ACEOF
11144/* end confdefs.h. */
11145$ac_includes_default
11146#include <$ac_header>
11147_ACEOF
11148rm -f conftest.$ac_objext
11149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11150 (eval $ac_compile) 2>conftest.er1
11151 ac_status=$?
11152 grep -v '^ *+' conftest.er1 >conftest.err
11153 rm -f conftest.er1
11154 cat conftest.err >&5
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156 (exit $ac_status); } &&
b4e70030
JB
11157 { ac_try='test -z "$ac_c_werror_flag"
11158 || test ! -s conftest.err'
bec39cab
AC
11159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11160 (eval $ac_try) 2>&5
11161 ac_status=$?
11162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); }; } &&
11164 { ac_try='test -s conftest.$ac_objext'
11165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11166 (eval $ac_try) 2>&5
11167 ac_status=$?
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); }; }; then
11170 ac_header_compiler=yes
11171else
11172 echo "$as_me: failed program was:" >&5
11173sed 's/^/| /' conftest.$ac_ext >&5
11174
b4e70030 11175ac_header_compiler=no
bec39cab
AC
11176fi
11177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
11178echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11179echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
11180
11181# Is the header present?
b4e70030
JB
11182echo "$as_me:$LINENO: checking $ac_header presence" >&5
11183echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
11184cat >conftest.$ac_ext <<_ACEOF
11185/* confdefs.h. */
11186_ACEOF
11187cat confdefs.h >>conftest.$ac_ext
11188cat >>conftest.$ac_ext <<_ACEOF
11189/* end confdefs.h. */
11190#include <$ac_header>
11191_ACEOF
11192if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11194 ac_status=$?
11195 grep -v '^ *+' conftest.er1 >conftest.err
11196 rm -f conftest.er1
11197 cat conftest.err >&5
11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); } >/dev/null; then
11200 if test -s conftest.err; then
11201 ac_cpp_err=$ac_c_preproc_warn_flag
11202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11203 else
11204 ac_cpp_err=
11205 fi
11206else
11207 ac_cpp_err=yes
3b78cdbb 11208fi
bec39cab
AC
11209if test -z "$ac_cpp_err"; then
11210 ac_header_preproc=yes
11211else
11212 echo "$as_me: failed program was:" >&5
11213sed 's/^/| /' conftest.$ac_ext >&5
11214
11215 ac_header_preproc=no
3b78cdbb 11216fi
bec39cab 11217rm -f conftest.err conftest.$ac_ext
b4e70030
JB
11218echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11219echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
11220
11221# So? What about this header?
11222case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11223 yes:no: )
11224 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11225echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11227echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11228 ac_header_preproc=yes
11229 ;;
11230 no:yes:* )
11231 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11232echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11233 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11234echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11235 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11236echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11237 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11238echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11240echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11241 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11242echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
11243 (
11244 cat <<\_ASBOX
11245## ------------------------------------------ ##
11246## Report this to the AC_PACKAGE_NAME lists. ##
11247## ------------------------------------------ ##
11248_ASBOX
11249 ) |
11250 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
11251 ;;
11252esac
b4e70030
JB
11253echo "$as_me:$LINENO: checking for $ac_header" >&5
11254echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11255if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 11256 echo $ECHO_N "(cached) $ECHO_C" >&6
3b78cdbb 11257else
bec39cab
AC
11258 eval "$as_ac_Header=\$ac_header_preproc"
11259fi
b4e70030
JB
11260echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11261echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 11262
3b78cdbb 11263fi
bec39cab
AC
11264if test `eval echo '${'$as_ac_Header'}'` = yes; then
11265 cat >>confdefs.h <<_ACEOF
11266#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11267_ACEOF
11268
11269fi
11270
3b78cdbb
DA
11271done
11272
c906108c 11273
065a1afc
JB
11274for ac_header in term.h
11275do
11276as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11277echo "$as_me:$LINENO: checking for $ac_header" >&5
11278echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11279if eval "test \"\${$as_ac_Header+set}\" = set"; then
065a1afc
JB
11280 echo $ECHO_N "(cached) $ECHO_C" >&6
11281else
11282 cat >conftest.$ac_ext <<_ACEOF
11283/* confdefs.h. */
11284_ACEOF
11285cat confdefs.h >>conftest.$ac_ext
11286cat >>conftest.$ac_ext <<_ACEOF
11287/* end confdefs.h. */
11288#if HAVE_CURSES_H
11289# include <curses.h>
11290#endif
11291
11292
11293#include <$ac_header>
11294_ACEOF
11295rm -f conftest.$ac_objext
11296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11297 (eval $ac_compile) 2>conftest.er1
11298 ac_status=$?
11299 grep -v '^ *+' conftest.er1 >conftest.err
11300 rm -f conftest.er1
11301 cat conftest.err >&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); } &&
b4e70030
JB
11304 { ac_try='test -z "$ac_c_werror_flag"
11305 || test ! -s conftest.err'
065a1afc
JB
11306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11307 (eval $ac_try) 2>&5
11308 ac_status=$?
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); }; } &&
11311 { ac_try='test -s conftest.$ac_objext'
11312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11313 (eval $ac_try) 2>&5
11314 ac_status=$?
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); }; }; then
11317 eval "$as_ac_Header=yes"
11318else
11319 echo "$as_me: failed program was:" >&5
11320sed 's/^/| /' conftest.$ac_ext >&5
11321
b4e70030 11322eval "$as_ac_Header=no"
065a1afc
JB
11323fi
11324rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11325fi
b4e70030
JB
11326echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11327echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
065a1afc
JB
11328if test `eval echo '${'$as_ac_Header'}'` = yes; then
11329 cat >>confdefs.h <<_ACEOF
11330#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11331_ACEOF
11332
11333fi
11334
11335done
11336
11337
5ee754fc
MK
11338# FIXME: kettenis/20030102: In most cases we include these
11339# unconditionally, so what's the point in checking these?
bec39cab
AC
11340
11341
11342for ac_header in ctype.h time.h
c906108c 11343do
bec39cab 11344as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11345if eval "test \"\${$as_ac_Header+set}\" = set"; then
11346 echo "$as_me:$LINENO: checking for $ac_header" >&5
11347echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11348if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11349 echo $ECHO_N "(cached) $ECHO_C" >&6
11350fi
b4e70030
JB
11351echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11352echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11353else
11354 # Is the header compilable?
b4e70030
JB
11355echo "$as_me:$LINENO: checking $ac_header usability" >&5
11356echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
11357cat >conftest.$ac_ext <<_ACEOF
11358/* confdefs.h. */
11359_ACEOF
11360cat confdefs.h >>conftest.$ac_ext
11361cat >>conftest.$ac_ext <<_ACEOF
11362/* end confdefs.h. */
11363$ac_includes_default
11364#include <$ac_header>
11365_ACEOF
11366rm -f conftest.$ac_objext
11367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11368 (eval $ac_compile) 2>conftest.er1
11369 ac_status=$?
11370 grep -v '^ *+' conftest.er1 >conftest.err
11371 rm -f conftest.er1
11372 cat conftest.err >&5
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); } &&
b4e70030
JB
11375 { ac_try='test -z "$ac_c_werror_flag"
11376 || test ! -s conftest.err'
bec39cab
AC
11377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11378 (eval $ac_try) 2>&5
11379 ac_status=$?
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); }; } &&
11382 { ac_try='test -s conftest.$ac_objext'
11383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11384 (eval $ac_try) 2>&5
11385 ac_status=$?
11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); }; }; then
11388 ac_header_compiler=yes
11389else
11390 echo "$as_me: failed program was:" >&5
11391sed 's/^/| /' conftest.$ac_ext >&5
11392
b4e70030 11393ac_header_compiler=no
bec39cab
AC
11394fi
11395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
11396echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11397echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
11398
11399# Is the header present?
b4e70030
JB
11400echo "$as_me:$LINENO: checking $ac_header presence" >&5
11401echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
11402cat >conftest.$ac_ext <<_ACEOF
11403/* confdefs.h. */
11404_ACEOF
11405cat confdefs.h >>conftest.$ac_ext
11406cat >>conftest.$ac_ext <<_ACEOF
11407/* end confdefs.h. */
11408#include <$ac_header>
11409_ACEOF
11410if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11412 ac_status=$?
11413 grep -v '^ *+' conftest.er1 >conftest.err
11414 rm -f conftest.er1
11415 cat conftest.err >&5
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); } >/dev/null; then
11418 if test -s conftest.err; then
11419 ac_cpp_err=$ac_c_preproc_warn_flag
11420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11421 else
11422 ac_cpp_err=
11423 fi
11424else
11425 ac_cpp_err=yes
c906108c 11426fi
bec39cab
AC
11427if test -z "$ac_cpp_err"; then
11428 ac_header_preproc=yes
11429else
11430 echo "$as_me: failed program was:" >&5
11431sed 's/^/| /' conftest.$ac_ext >&5
11432
11433 ac_header_preproc=no
c906108c 11434fi
bec39cab 11435rm -f conftest.err conftest.$ac_ext
b4e70030
JB
11436echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11437echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
11438
11439# So? What about this header?
11440case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11441 yes:no: )
11442 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11443echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11445echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11446 ac_header_preproc=yes
11447 ;;
11448 no:yes:* )
11449 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11450echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11451 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11452echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11453 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11454echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11455 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11456echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11458echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11459 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11460echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
11461 (
11462 cat <<\_ASBOX
11463## ------------------------------------------ ##
11464## Report this to the AC_PACKAGE_NAME lists. ##
11465## ------------------------------------------ ##
11466_ASBOX
11467 ) |
11468 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
11469 ;;
11470esac
b4e70030
JB
11471echo "$as_me:$LINENO: checking for $ac_header" >&5
11472echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11473if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 11474 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 11475else
bec39cab
AC
11476 eval "$as_ac_Header=\$ac_header_preproc"
11477fi
b4e70030
JB
11478echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11479echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11480
11481fi
11482if test `eval echo '${'$as_ac_Header'}'` = yes; then
11483 cat >>confdefs.h <<_ACEOF
11484#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11485_ACEOF
11486
c906108c 11487fi
bec39cab 11488
c906108c
SS
11489done
11490
5ee754fc 11491
4e8d927d 11492# Create a header we can use portably to get the standard integer types.
666ec76f 11493
4e8d927d
DJ
11494
11495inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
11496
11497acx_cv_header_stdint=stddef.h
11498acx_cv_header_stdint_kind="(already complete)"
11499for i in stdint.h $inttype_headers; do
11500 unset ac_cv_type_uintptr_t
11501 unset ac_cv_type_uintmax_t
11502 unset ac_cv_type_int_least32_t
11503 unset ac_cv_type_int_fast32_t
11504 unset ac_cv_type_uint64_t
11505 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
b4e70030
JB
11506 echo "$as_me:$LINENO: checking for uintmax_t" >&5
11507echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
4e8d927d 11508if test "${ac_cv_type_uintmax_t+set}" = set; then
bec39cab 11509 echo $ECHO_N "(cached) $ECHO_C" >&6
40a7debc 11510else
bec39cab
AC
11511 cat >conftest.$ac_ext <<_ACEOF
11512/* confdefs.h. */
11513_ACEOF
11514cat confdefs.h >>conftest.$ac_ext
11515cat >>conftest.$ac_ext <<_ACEOF
11516/* end confdefs.h. */
4e8d927d
DJ
11517#include <sys/types.h>
11518#include <$i>
11519
bec39cab
AC
11520int
11521main ()
11522{
b4e70030 11523if ((uintmax_t *) 0)
4e8d927d 11524 return 0;
b4e70030 11525if (sizeof (uintmax_t))
4e8d927d
DJ
11526 return 0;
11527 ;
bec39cab
AC
11528 return 0;
11529}
11530_ACEOF
11531rm -f conftest.$ac_objext
11532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11533 (eval $ac_compile) 2>conftest.er1
11534 ac_status=$?
11535 grep -v '^ *+' conftest.er1 >conftest.err
11536 rm -f conftest.er1
11537 cat conftest.err >&5
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); } &&
b4e70030
JB
11540 { ac_try='test -z "$ac_c_werror_flag"
11541 || test ! -s conftest.err'
bec39cab
AC
11542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11543 (eval $ac_try) 2>&5
11544 ac_status=$?
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); }; } &&
11547 { ac_try='test -s conftest.$ac_objext'
11548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11549 (eval $ac_try) 2>&5
11550 ac_status=$?
11551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11552 (exit $ac_status); }; }; then
4e8d927d 11553 ac_cv_type_uintmax_t=yes
40a7debc 11554else
bec39cab
AC
11555 echo "$as_me: failed program was:" >&5
11556sed 's/^/| /' conftest.$ac_ext >&5
11557
b4e70030 11558ac_cv_type_uintmax_t=no
40a7debc 11559fi
bec39cab 11560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40a7debc 11561fi
b4e70030
JB
11562echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
11563echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
4e8d927d
DJ
11564if test $ac_cv_type_uintmax_t = yes; then
11565 acx_cv_header_stdint=$i
666ec76f 11566else
4e8d927d 11567 continue
666ec76f 11568fi
4e8d927d 11569
b4e70030
JB
11570 echo "$as_me:$LINENO: checking for uintptr_t" >&5
11571echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4e8d927d 11572if test "${ac_cv_type_uintptr_t+set}" = set; then
bec39cab
AC
11573 echo $ECHO_N "(cached) $ECHO_C" >&6
11574else
11575 cat >conftest.$ac_ext <<_ACEOF
11576/* confdefs.h. */
11577_ACEOF
11578cat confdefs.h >>conftest.$ac_ext
11579cat >>conftest.$ac_ext <<_ACEOF
11580/* end confdefs.h. */
4e8d927d
DJ
11581#include <sys/types.h>
11582#include <$i>
11583
666ec76f
MK
11584int
11585main ()
11586{
b4e70030 11587if ((uintptr_t *) 0)
4e8d927d 11588 return 0;
b4e70030 11589if (sizeof (uintptr_t))
4e8d927d 11590 return 0;
666ec76f
MK
11591 ;
11592 return 0;
11593}
11594_ACEOF
11595rm -f conftest.$ac_objext
11596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11597 (eval $ac_compile) 2>conftest.er1
11598 ac_status=$?
11599 grep -v '^ *+' conftest.er1 >conftest.err
11600 rm -f conftest.er1
11601 cat conftest.err >&5
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); } &&
b4e70030
JB
11604 { ac_try='test -z "$ac_c_werror_flag"
11605 || test ! -s conftest.err'
666ec76f
MK
11606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11607 (eval $ac_try) 2>&5
11608 ac_status=$?
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); }; } &&
11611 { ac_try='test -s conftest.$ac_objext'
11612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11613 (eval $ac_try) 2>&5
11614 ac_status=$?
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); }; }; then
4e8d927d 11617 ac_cv_type_uintptr_t=yes
666ec76f
MK
11618else
11619 echo "$as_me: failed program was:" >&5
11620sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 11621
b4e70030 11622ac_cv_type_uintptr_t=no
a3828db0
MK
11623fi
11624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11625fi
b4e70030
JB
11626echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11627echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4e8d927d
DJ
11628if test $ac_cv_type_uintptr_t = yes; then
11629 :
a3828db0 11630else
4e8d927d 11631 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 11632fi
4e8d927d 11633
b4e70030
JB
11634 echo "$as_me:$LINENO: checking for int_least32_t" >&5
11635echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
4e8d927d 11636if test "${ac_cv_type_int_least32_t+set}" = set; then
a3828db0
MK
11637 echo $ECHO_N "(cached) $ECHO_C" >&6
11638else
11639 cat >conftest.$ac_ext <<_ACEOF
666ec76f
MK
11640/* confdefs.h. */
11641_ACEOF
11642cat confdefs.h >>conftest.$ac_ext
11643cat >>conftest.$ac_ext <<_ACEOF
11644/* end confdefs.h. */
4e8d927d
DJ
11645#include <sys/types.h>
11646#include <$i>
11647
bec39cab
AC
11648int
11649main ()
11650{
b4e70030 11651if ((int_least32_t *) 0)
4e8d927d 11652 return 0;
b4e70030 11653if (sizeof (int_least32_t))
4e8d927d 11654 return 0;
bec39cab
AC
11655 ;
11656 return 0;
11657}
11658_ACEOF
11659rm -f conftest.$ac_objext
11660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11661 (eval $ac_compile) 2>conftest.er1
11662 ac_status=$?
11663 grep -v '^ *+' conftest.er1 >conftest.err
11664 rm -f conftest.er1
11665 cat conftest.err >&5
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); } &&
b4e70030
JB
11668 { ac_try='test -z "$ac_c_werror_flag"
11669 || test ! -s conftest.err'
bec39cab
AC
11670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11671 (eval $ac_try) 2>&5
11672 ac_status=$?
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); }; } &&
11675 { ac_try='test -s conftest.$ac_objext'
11676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11677 (eval $ac_try) 2>&5
11678 ac_status=$?
11679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11680 (exit $ac_status); }; }; then
4e8d927d 11681 ac_cv_type_int_least32_t=yes
b9362cc7 11682else
bec39cab
AC
11683 echo "$as_me: failed program was:" >&5
11684sed 's/^/| /' conftest.$ac_ext >&5
11685
b4e70030 11686ac_cv_type_int_least32_t=no
b9362cc7 11687fi
bec39cab 11688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b9362cc7 11689fi
b4e70030
JB
11690echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
11691echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
4e8d927d
DJ
11692if test $ac_cv_type_int_least32_t = yes; then
11693 :
a3828db0 11694else
4e8d927d 11695 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 11696fi
5ee754fc 11697
b4e70030
JB
11698 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
11699echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
4e8d927d 11700if test "${ac_cv_type_int_fast32_t+set}" = set; then
bec39cab
AC
11701 echo $ECHO_N "(cached) $ECHO_C" >&6
11702else
11703 cat >conftest.$ac_ext <<_ACEOF
11704/* confdefs.h. */
11705_ACEOF
11706cat confdefs.h >>conftest.$ac_ext
11707cat >>conftest.$ac_ext <<_ACEOF
11708/* end confdefs.h. */
4e8d927d
DJ
11709#include <sys/types.h>
11710#include <$i>
11711
bec39cab
AC
11712int
11713main ()
11714{
b4e70030 11715if ((int_fast32_t *) 0)
4e8d927d 11716 return 0;
b4e70030 11717if (sizeof (int_fast32_t))
4e8d927d 11718 return 0;
bec39cab
AC
11719 ;
11720 return 0;
11721}
11722_ACEOF
11723rm -f conftest.$ac_objext
11724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11725 (eval $ac_compile) 2>conftest.er1
11726 ac_status=$?
11727 grep -v '^ *+' conftest.er1 >conftest.err
11728 rm -f conftest.er1
11729 cat conftest.err >&5
11730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11731 (exit $ac_status); } &&
b4e70030
JB
11732 { ac_try='test -z "$ac_c_werror_flag"
11733 || test ! -s conftest.err'
bec39cab
AC
11734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11735 (eval $ac_try) 2>&5
11736 ac_status=$?
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); }; } &&
11739 { ac_try='test -s conftest.$ac_objext'
11740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11741 (eval $ac_try) 2>&5
11742 ac_status=$?
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); }; }; then
4e8d927d 11745 ac_cv_type_int_fast32_t=yes
c906108c 11746else
bec39cab
AC
11747 echo "$as_me: failed program was:" >&5
11748sed 's/^/| /' conftest.$ac_ext >&5
11749
b4e70030 11750ac_cv_type_int_fast32_t=no
c906108c 11751fi
bec39cab 11752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 11753fi
b4e70030
JB
11754echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
11755echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
4e8d927d
DJ
11756if test $ac_cv_type_int_fast32_t = yes; then
11757 :
a3828db0 11758else
4e8d927d 11759 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 11760fi
4e8d927d 11761
b4e70030
JB
11762 echo "$as_me:$LINENO: checking for uint64_t" >&5
11763echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
4e8d927d 11764if test "${ac_cv_type_uint64_t+set}" = set; then
bec39cab
AC
11765 echo $ECHO_N "(cached) $ECHO_C" >&6
11766else
11767 cat >conftest.$ac_ext <<_ACEOF
11768/* confdefs.h. */
11769_ACEOF
11770cat confdefs.h >>conftest.$ac_ext
11771cat >>conftest.$ac_ext <<_ACEOF
11772/* end confdefs.h. */
4e8d927d
DJ
11773#include <sys/types.h>
11774#include <$i>
11775
bec39cab
AC
11776int
11777main ()
11778{
b4e70030 11779if ((uint64_t *) 0)
4e8d927d 11780 return 0;
b4e70030 11781if (sizeof (uint64_t))
4e8d927d 11782 return 0;
bec39cab
AC
11783 ;
11784 return 0;
11785}
11786_ACEOF
11787rm -f conftest.$ac_objext
11788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11789 (eval $ac_compile) 2>conftest.er1
11790 ac_status=$?
11791 grep -v '^ *+' conftest.er1 >conftest.err
11792 rm -f conftest.er1
11793 cat conftest.err >&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); } &&
b4e70030
JB
11796 { ac_try='test -z "$ac_c_werror_flag"
11797 || test ! -s conftest.err'
bec39cab
AC
11798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11799 (eval $ac_try) 2>&5
11800 ac_status=$?
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); }; } &&
11803 { ac_try='test -s conftest.$ac_objext'
11804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11805 (eval $ac_try) 2>&5
11806 ac_status=$?
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11808 (exit $ac_status); }; }; then
4e8d927d 11809 ac_cv_type_uint64_t=yes
c906108c 11810else
bec39cab
AC
11811 echo "$as_me: failed program was:" >&5
11812sed 's/^/| /' conftest.$ac_ext >&5
11813
b4e70030 11814ac_cv_type_uint64_t=no
c906108c 11815fi
bec39cab 11816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 11817fi
b4e70030
JB
11818echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11819echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
4e8d927d
DJ
11820if test $ac_cv_type_uint64_t = yes; then
11821 :
a3828db0 11822else
4e8d927d 11823 acx_cv_header_stdint_kind="(lacks uint64_t)"
c906108c
SS
11824fi
11825
4e8d927d
DJ
11826 break
11827done
11828if test "$acx_cv_header_stdint" = stddef.h; then
3841debe 11829 acx_cv_header_stdint_kind="(lacks uintmax_t)"
4e8d927d 11830 for i in stdint.h $inttype_headers; do
3841debe 11831 unset ac_cv_type_uintptr_t
4e8d927d
DJ
11832 unset ac_cv_type_uint32_t
11833 unset ac_cv_type_uint64_t
11834 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
b4e70030
JB
11835 echo "$as_me:$LINENO: checking for uint32_t" >&5
11836echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
4e8d927d 11837if test "${ac_cv_type_uint32_t+set}" = set; then
bec39cab 11838 echo $ECHO_N "(cached) $ECHO_C" >&6
bce58c09 11839else
bec39cab
AC
11840 cat >conftest.$ac_ext <<_ACEOF
11841/* confdefs.h. */
11842_ACEOF
11843cat confdefs.h >>conftest.$ac_ext
11844cat >>conftest.$ac_ext <<_ACEOF
11845/* end confdefs.h. */
4e8d927d
DJ
11846#include <sys/types.h>
11847#include <$i>
11848
a3828db0
MK
11849int
11850main ()
11851{
b4e70030 11852if ((uint32_t *) 0)
4e8d927d 11853 return 0;
b4e70030 11854if (sizeof (uint32_t))
4e8d927d 11855 return 0;
a3828db0
MK
11856 ;
11857 return 0;
11858}
bec39cab
AC
11859_ACEOF
11860rm -f conftest.$ac_objext
11861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11862 (eval $ac_compile) 2>conftest.er1
11863 ac_status=$?
11864 grep -v '^ *+' conftest.er1 >conftest.err
11865 rm -f conftest.er1
11866 cat conftest.err >&5
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); } &&
b4e70030
JB
11869 { ac_try='test -z "$ac_c_werror_flag"
11870 || test ! -s conftest.err'
bec39cab
AC
11871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11872 (eval $ac_try) 2>&5
11873 ac_status=$?
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); }; } &&
11876 { ac_try='test -s conftest.$ac_objext'
11877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11878 (eval $ac_try) 2>&5
11879 ac_status=$?
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); }; }; then
4e8d927d 11882 ac_cv_type_uint32_t=yes
bce58c09 11883else
bec39cab
AC
11884 echo "$as_me: failed program was:" >&5
11885sed 's/^/| /' conftest.$ac_ext >&5
11886
b4e70030 11887ac_cv_type_uint32_t=no
bce58c09 11888fi
bec39cab 11889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bce58c09 11890fi
b4e70030
JB
11891echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
11892echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
4e8d927d
DJ
11893if test $ac_cv_type_uint32_t = yes; then
11894 acx_cv_header_stdint=$i
a3828db0 11895else
4e8d927d 11896 continue
e5a7de23 11897fi
4e8d927d 11898
b4e70030
JB
11899 echo "$as_me:$LINENO: checking for uint64_t" >&5
11900echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
4e8d927d 11901if test "${ac_cv_type_uint64_t+set}" = set; then
e5a7de23
EZ
11902 echo $ECHO_N "(cached) $ECHO_C" >&6
11903else
11904 cat >conftest.$ac_ext <<_ACEOF
11905/* confdefs.h. */
11906_ACEOF
11907cat confdefs.h >>conftest.$ac_ext
11908cat >>conftest.$ac_ext <<_ACEOF
11909/* end confdefs.h. */
4e8d927d
DJ
11910#include <sys/types.h>
11911#include <$i>
11912
e5a7de23
EZ
11913int
11914main ()
11915{
b4e70030 11916if ((uint64_t *) 0)
4e8d927d 11917 return 0;
b4e70030 11918if (sizeof (uint64_t))
4e8d927d 11919 return 0;
e5a7de23
EZ
11920 ;
11921 return 0;
11922}
11923_ACEOF
11924rm -f conftest.$ac_objext
11925if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11926 (eval $ac_compile) 2>conftest.er1
11927 ac_status=$?
11928 grep -v '^ *+' conftest.er1 >conftest.err
11929 rm -f conftest.er1
11930 cat conftest.err >&5
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); } &&
b4e70030
JB
11933 { ac_try='test -z "$ac_c_werror_flag"
11934 || test ! -s conftest.err'
e5a7de23
EZ
11935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11936 (eval $ac_try) 2>&5
11937 ac_status=$?
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); }; } &&
11940 { ac_try='test -s conftest.$ac_objext'
11941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11942 (eval $ac_try) 2>&5
11943 ac_status=$?
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); }; }; then
4e8d927d 11946 ac_cv_type_uint64_t=yes
e5a7de23
EZ
11947else
11948 echo "$as_me: failed program was:" >&5
11949sed 's/^/| /' conftest.$ac_ext >&5
11950
b4e70030 11951ac_cv_type_uint64_t=no
e5a7de23
EZ
11952fi
11953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11954fi
b4e70030
JB
11955echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11956echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
3841debe
DJ
11957
11958 echo "$as_me:$LINENO: checking for uintptr_t" >&5
11959echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
11960if test "${ac_cv_type_uintptr_t+set}" = set; then
11961 echo $ECHO_N "(cached) $ECHO_C" >&6
11962else
11963 cat >conftest.$ac_ext <<_ACEOF
11964/* confdefs.h. */
11965_ACEOF
11966cat confdefs.h >>conftest.$ac_ext
11967cat >>conftest.$ac_ext <<_ACEOF
11968/* end confdefs.h. */
11969#include <sys/types.h>
11970#include <$i>
11971
11972int
11973main ()
11974{
11975if ((uintptr_t *) 0)
11976 return 0;
11977if (sizeof (uintptr_t))
11978 return 0;
11979 ;
11980 return 0;
11981}
11982_ACEOF
11983rm -f conftest.$ac_objext
11984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11985 (eval $ac_compile) 2>conftest.er1
11986 ac_status=$?
11987 grep -v '^ *+' conftest.er1 >conftest.err
11988 rm -f conftest.er1
11989 cat conftest.err >&5
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); } &&
11992 { ac_try='test -z "$ac_c_werror_flag"
11993 || test ! -s conftest.err'
11994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11995 (eval $ac_try) 2>&5
11996 ac_status=$?
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); }; } &&
11999 { ac_try='test -s conftest.$ac_objext'
12000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12001 (eval $ac_try) 2>&5
12002 ac_status=$?
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); }; }; then
12005 ac_cv_type_uintptr_t=yes
e5a7de23 12006else
3841debe
DJ
12007 echo "$as_me: failed program was:" >&5
12008sed 's/^/| /' conftest.$ac_ext >&5
12009
12010ac_cv_type_uintptr_t=no
4e8d927d 12011fi
3841debe
DJ
12012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12013fi
12014echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
12015echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
e5a7de23 12016
4e8d927d
DJ
12017 break
12018 done
e5a7de23 12019fi
4e8d927d
DJ
12020if test "$acx_cv_header_stdint" = stddef.h; then
12021 acx_cv_header_stdint_kind="(u_intXX_t style)"
12022 for i in sys/types.h $inttype_headers; do
12023 unset ac_cv_type_u_int32_t
12024 unset ac_cv_type_u_int64_t
12025 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
b4e70030
JB
12026 echo "$as_me:$LINENO: checking for u_int32_t" >&5
12027echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
4e8d927d 12028if test "${ac_cv_type_u_int32_t+set}" = set; then
e5a7de23
EZ
12029 echo $ECHO_N "(cached) $ECHO_C" >&6
12030else
12031 cat >conftest.$ac_ext <<_ACEOF
12032/* confdefs.h. */
12033_ACEOF
12034cat confdefs.h >>conftest.$ac_ext
12035cat >>conftest.$ac_ext <<_ACEOF
12036/* end confdefs.h. */
4e8d927d
DJ
12037#include <sys/types.h>
12038#include <$i>
12039
e5a7de23
EZ
12040int
12041main ()
12042{
b4e70030 12043if ((u_int32_t *) 0)
4e8d927d 12044 return 0;
b4e70030 12045if (sizeof (u_int32_t))
4e8d927d 12046 return 0;
e5a7de23
EZ
12047 ;
12048 return 0;
12049}
12050_ACEOF
12051rm -f conftest.$ac_objext
12052if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12053 (eval $ac_compile) 2>conftest.er1
12054 ac_status=$?
12055 grep -v '^ *+' conftest.er1 >conftest.err
12056 rm -f conftest.er1
12057 cat conftest.err >&5
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); } &&
b4e70030
JB
12060 { ac_try='test -z "$ac_c_werror_flag"
12061 || test ! -s conftest.err'
e5a7de23
EZ
12062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12063 (eval $ac_try) 2>&5
12064 ac_status=$?
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); }; } &&
12067 { ac_try='test -s conftest.$ac_objext'
12068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12069 (eval $ac_try) 2>&5
12070 ac_status=$?
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); }; }; then
4e8d927d 12073 ac_cv_type_u_int32_t=yes
e5a7de23
EZ
12074else
12075 echo "$as_me: failed program was:" >&5
12076sed 's/^/| /' conftest.$ac_ext >&5
12077
b4e70030 12078ac_cv_type_u_int32_t=no
e5a7de23
EZ
12079fi
12080rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12081fi
b4e70030
JB
12082echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
12083echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
4e8d927d
DJ
12084if test $ac_cv_type_u_int32_t = yes; then
12085 acx_cv_header_stdint=$i
e5a7de23 12086else
4e8d927d 12087 continue
a3828db0 12088fi
5ee754fc 12089
b4e70030
JB
12090 echo "$as_me:$LINENO: checking for u_int64_t" >&5
12091echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
4e8d927d 12092if test "${ac_cv_type_u_int64_t+set}" = set; then
bec39cab
AC
12093 echo $ECHO_N "(cached) $ECHO_C" >&6
12094else
12095 cat >conftest.$ac_ext <<_ACEOF
12096/* confdefs.h. */
12097_ACEOF
12098cat confdefs.h >>conftest.$ac_ext
12099cat >>conftest.$ac_ext <<_ACEOF
12100/* end confdefs.h. */
4e8d927d
DJ
12101#include <sys/types.h>
12102#include <$i>
12103
bec39cab
AC
12104int
12105main ()
12106{
b4e70030 12107if ((u_int64_t *) 0)
4e8d927d 12108 return 0;
b4e70030 12109if (sizeof (u_int64_t))
4e8d927d 12110 return 0;
bec39cab
AC
12111 ;
12112 return 0;
12113}
12114_ACEOF
a3828db0
MK
12115rm -f conftest.$ac_objext
12116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12117 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
12118 ac_status=$?
12119 grep -v '^ *+' conftest.er1 >conftest.err
12120 rm -f conftest.er1
12121 cat conftest.err >&5
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); } &&
b4e70030
JB
12124 { ac_try='test -z "$ac_c_werror_flag"
12125 || test ! -s conftest.err'
bec39cab
AC
12126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12127 (eval $ac_try) 2>&5
12128 ac_status=$?
12129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 (exit $ac_status); }; } &&
a3828db0 12131 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
12132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12133 (eval $ac_try) 2>&5
12134 ac_status=$?
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); }; }; then
4e8d927d 12137 ac_cv_type_u_int64_t=yes
bec39cab
AC
12138else
12139 echo "$as_me: failed program was:" >&5
12140sed 's/^/| /' conftest.$ac_ext >&5
12141
b4e70030 12142ac_cv_type_u_int64_t=no
4e8d927d 12143fi
4e8d927d
DJ
12144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12145fi
b4e70030
JB
12146echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
12147echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
4e8d927d
DJ
12148
12149 break
12150 done
12151fi
12152if test "$acx_cv_header_stdint" = stddef.h; then
12153 acx_cv_header_stdint_kind="(using manual detection)"
12154fi
12155
12156test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
12157test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
12158test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
12159test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
12160test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
12161
12162# ----------------- Summarize what we found so far
12163
b4e70030
JB
12164echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5
12165echo $ECHO_N "checking what to include in gdb_stdint.h... $ECHO_C" >&6
4e8d927d 12166
b4e70030 12167case `$as_basename gdb_stdint.h ||
4e8d927d
DJ
12168$as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
12169 Xgdb_stdint.h : 'X\(//\)$' \| \
b4e70030
JB
12170 Xgdb_stdint.h : 'X\(/\)$' \| \
12171 . : '\(.\)' 2>/dev/null ||
4e8d927d 12172echo X/gdb_stdint.h |
b4e70030
JB
12173 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12174 /^X\/\(\/\/\)$/{ s//\1/; q; }
12175 /^X\/\(\/\).*/{ s//\1/; q; }
12176 s/.*/./; q'` in
4e8d927d
DJ
12177 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
12178echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12179 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
12180echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12181 *) ;;
12182esac
12183
b4e70030
JB
12184echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
12185echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
4e8d927d
DJ
12186
12187# ----------------- done included file, check C basic types --------
12188
12189# Lacking an uintptr_t? Test size of void *
12190case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
b4e70030
JB
12191 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
12192echo $ECHO_N "checking for void *... $ECHO_C" >&6
4e8d927d
DJ
12193if test "${ac_cv_type_void_p+set}" = set; then
12194 echo $ECHO_N "(cached) $ECHO_C" >&6
12195else
12196 cat >conftest.$ac_ext <<_ACEOF
a3828db0 12197/* confdefs.h. */
bec39cab
AC
12198_ACEOF
12199cat confdefs.h >>conftest.$ac_ext
12200cat >>conftest.$ac_ext <<_ACEOF
12201/* end confdefs.h. */
a3828db0 12202$ac_includes_default
bec39cab
AC
12203int
12204main ()
12205{
b4e70030 12206if ((void * *) 0)
4e8d927d 12207 return 0;
b4e70030 12208if (sizeof (void *))
4e8d927d 12209 return 0;
bec39cab
AC
12210 ;
12211 return 0;
12212}
12213_ACEOF
a3828db0
MK
12214rm -f conftest.$ac_objext
12215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12216 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
12217 ac_status=$?
12218 grep -v '^ *+' conftest.er1 >conftest.err
12219 rm -f conftest.er1
12220 cat conftest.err >&5
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); } &&
b4e70030
JB
12223 { ac_try='test -z "$ac_c_werror_flag"
12224 || test ! -s conftest.err'
bec39cab
AC
12225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12226 (eval $ac_try) 2>&5
12227 ac_status=$?
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); }; } &&
a3828db0 12230 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
12231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12232 (eval $ac_try) 2>&5
12233 ac_status=$?
12234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 (exit $ac_status); }; }; then
4e8d927d 12236 ac_cv_type_void_p=yes
46711df8 12237else
bec39cab
AC
12238 echo "$as_me: failed program was:" >&5
12239sed 's/^/| /' conftest.$ac_ext >&5
12240
b4e70030 12241ac_cv_type_void_p=no
a3828db0 12242fi
4e8d927d 12243rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d3ea6809 12244fi
b4e70030
JB
12245echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
12246echo "${ECHO_T}$ac_cv_type_void_p" >&6
d3ea6809 12247
b4e70030
JB
12248echo "$as_me:$LINENO: checking size of void *" >&5
12249echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4e8d927d 12250if test "${ac_cv_sizeof_void_p+set}" = set; then
d3ea6809
MM
12251 echo $ECHO_N "(cached) $ECHO_C" >&6
12252else
4e8d927d 12253 if test "$ac_cv_type_void_p" = yes; then
b4e70030 12254 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
12255 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12256 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12257 # This bug is HP SR number 8606223364.
12258 if test "$cross_compiling" = yes; then
12259 # Depending upon the size, compute the lo and hi bounds.
12260cat >conftest.$ac_ext <<_ACEOF
d3ea6809
MM
12261/* confdefs.h. */
12262_ACEOF
12263cat confdefs.h >>conftest.$ac_ext
12264cat >>conftest.$ac_ext <<_ACEOF
12265/* end confdefs.h. */
12266$ac_includes_default
12267int
12268main ()
12269{
b4e70030 12270static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4e8d927d
DJ
12271test_array [0] = 0
12272
d3ea6809
MM
12273 ;
12274 return 0;
12275}
12276_ACEOF
12277rm -f conftest.$ac_objext
12278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12279 (eval $ac_compile) 2>conftest.er1
12280 ac_status=$?
12281 grep -v '^ *+' conftest.er1 >conftest.err
12282 rm -f conftest.er1
12283 cat conftest.err >&5
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); } &&
b4e70030
JB
12286 { ac_try='test -z "$ac_c_werror_flag"
12287 || test ! -s conftest.err'
d3ea6809
MM
12288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12289 (eval $ac_try) 2>&5
12290 ac_status=$?
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292 (exit $ac_status); }; } &&
12293 { ac_try='test -s conftest.$ac_objext'
12294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12295 (eval $ac_try) 2>&5
12296 ac_status=$?
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); }; }; then
4e8d927d
DJ
12299 ac_lo=0 ac_mid=0
12300 while :; do
12301 cat >conftest.$ac_ext <<_ACEOF
d3ea6809
MM
12302/* confdefs.h. */
12303_ACEOF
12304cat confdefs.h >>conftest.$ac_ext
12305cat >>conftest.$ac_ext <<_ACEOF
12306/* end confdefs.h. */
12307$ac_includes_default
12308int
12309main ()
12310{
b4e70030 12311static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4e8d927d
DJ
12312test_array [0] = 0
12313
d3ea6809
MM
12314 ;
12315 return 0;
12316}
12317_ACEOF
12318rm -f conftest.$ac_objext
12319if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12320 (eval $ac_compile) 2>conftest.er1
12321 ac_status=$?
12322 grep -v '^ *+' conftest.er1 >conftest.err
12323 rm -f conftest.er1
12324 cat conftest.err >&5
12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326 (exit $ac_status); } &&
b4e70030
JB
12327 { ac_try='test -z "$ac_c_werror_flag"
12328 || test ! -s conftest.err'
d3ea6809
MM
12329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12330 (eval $ac_try) 2>&5
12331 ac_status=$?
12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); }; } &&
12334 { ac_try='test -s conftest.$ac_objext'
12335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12336 (eval $ac_try) 2>&5
12337 ac_status=$?
12338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12339 (exit $ac_status); }; }; then
4e8d927d 12340 ac_hi=$ac_mid; break
d3ea6809
MM
12341else
12342 echo "$as_me: failed program was:" >&5
12343sed 's/^/| /' conftest.$ac_ext >&5
12344
b4e70030
JB
12345ac_lo=`expr $ac_mid + 1`
12346 if test $ac_lo -le $ac_mid; then
12347 ac_lo= ac_hi=
12348 break
12349 fi
12350 ac_mid=`expr 2 '*' $ac_mid + 1`
a3828db0 12351fi
4e8d927d
DJ
12352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12353 done
bec39cab 12354else
4e8d927d
DJ
12355 echo "$as_me: failed program was:" >&5
12356sed 's/^/| /' conftest.$ac_ext >&5
12357
b4e70030 12358cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
12359/* confdefs.h. */
12360_ACEOF
12361cat confdefs.h >>conftest.$ac_ext
12362cat >>conftest.$ac_ext <<_ACEOF
12363/* end confdefs.h. */
4e8d927d 12364$ac_includes_default
bec39cab
AC
12365int
12366main ()
12367{
b4e70030 12368static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4e8d927d
DJ
12369test_array [0] = 0
12370
bec39cab
AC
12371 ;
12372 return 0;
12373}
12374_ACEOF
a3828db0
MK
12375rm -f conftest.$ac_objext
12376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12377 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
12378 ac_status=$?
12379 grep -v '^ *+' conftest.er1 >conftest.err
12380 rm -f conftest.er1
12381 cat conftest.err >&5
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 (exit $ac_status); } &&
b4e70030
JB
12384 { ac_try='test -z "$ac_c_werror_flag"
12385 || test ! -s conftest.err'
bec39cab
AC
12386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12387 (eval $ac_try) 2>&5
12388 ac_status=$?
12389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390 (exit $ac_status); }; } &&
a3828db0 12391 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
12392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12393 (eval $ac_try) 2>&5
12394 ac_status=$?
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); }; }; then
4e8d927d
DJ
12397 ac_hi=-1 ac_mid=-1
12398 while :; do
12399 cat >conftest.$ac_ext <<_ACEOF
f9f87d2c
MK
12400/* confdefs.h. */
12401_ACEOF
12402cat confdefs.h >>conftest.$ac_ext
12403cat >>conftest.$ac_ext <<_ACEOF
12404/* end confdefs.h. */
4e8d927d 12405$ac_includes_default
f9f87d2c
MK
12406int
12407main ()
12408{
b4e70030 12409static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4e8d927d
DJ
12410test_array [0] = 0
12411
f9f87d2c
MK
12412 ;
12413 return 0;
12414}
12415_ACEOF
12416rm -f conftest.$ac_objext
12417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12418 (eval $ac_compile) 2>conftest.er1
12419 ac_status=$?
12420 grep -v '^ *+' conftest.er1 >conftest.err
12421 rm -f conftest.er1
12422 cat conftest.err >&5
12423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424 (exit $ac_status); } &&
b4e70030
JB
12425 { ac_try='test -z "$ac_c_werror_flag"
12426 || test ! -s conftest.err'
f9f87d2c
MK
12427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12428 (eval $ac_try) 2>&5
12429 ac_status=$?
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); }; } &&
12432 { ac_try='test -s conftest.$ac_objext'
12433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12434 (eval $ac_try) 2>&5
12435 ac_status=$?
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); }; }; then
4e8d927d 12438 ac_lo=$ac_mid; break
f9f87d2c
MK
12439else
12440 echo "$as_me: failed program was:" >&5
12441sed 's/^/| /' conftest.$ac_ext >&5
12442
b4e70030
JB
12443ac_hi=`expr '(' $ac_mid ')' - 1`
12444 if test $ac_mid -le $ac_hi; then
12445 ac_lo= ac_hi=
12446 break
12447 fi
12448 ac_mid=`expr 2 '*' $ac_mid`
f9f87d2c 12449fi
4e8d927d
DJ
12450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12451 done
12452else
12453 echo "$as_me: failed program was:" >&5
12454sed 's/^/| /' conftest.$ac_ext >&5
f9f87d2c 12455
b4e70030 12456ac_lo= ac_hi=
4e8d927d 12457fi
4e8d927d 12458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3be60c3d 12459fi
4e8d927d
DJ
12460rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12461# Binary search between lo and hi bounds.
12462while test "x$ac_lo" != "x$ac_hi"; do
12463 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3be60c3d
MK
12464 cat >conftest.$ac_ext <<_ACEOF
12465/* confdefs.h. */
12466_ACEOF
12467cat confdefs.h >>conftest.$ac_ext
12468cat >>conftest.$ac_ext <<_ACEOF
12469/* end confdefs.h. */
4e8d927d 12470$ac_includes_default
3be60c3d
MK
12471int
12472main ()
12473{
b4e70030 12474static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4e8d927d
DJ
12475test_array [0] = 0
12476
3be60c3d
MK
12477 ;
12478 return 0;
12479}
12480_ACEOF
12481rm -f conftest.$ac_objext
12482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12483 (eval $ac_compile) 2>conftest.er1
12484 ac_status=$?
12485 grep -v '^ *+' conftest.er1 >conftest.err
12486 rm -f conftest.er1
12487 cat conftest.err >&5
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); } &&
b4e70030
JB
12490 { ac_try='test -z "$ac_c_werror_flag"
12491 || test ! -s conftest.err'
3be60c3d
MK
12492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12493 (eval $ac_try) 2>&5
12494 ac_status=$?
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); }; } &&
12497 { ac_try='test -s conftest.$ac_objext'
12498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12499 (eval $ac_try) 2>&5
12500 ac_status=$?
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); }; }; then
4e8d927d 12503 ac_hi=$ac_mid
3be60c3d
MK
12504else
12505 echo "$as_me: failed program was:" >&5
12506sed 's/^/| /' conftest.$ac_ext >&5
12507
b4e70030 12508ac_lo=`expr '(' $ac_mid ')' + 1`
3be60c3d 12509fi
4e8d927d
DJ
12510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12511done
12512case $ac_lo in
12513?*) ac_cv_sizeof_void_p=$ac_lo;;
b4e70030 12514'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4e8d927d 12515See \`config.log' for more details." >&5
b4e70030 12516echo "$as_me: error: cannot compute sizeof (void *), 77
4e8d927d 12517See \`config.log' for more details." >&2;}
b4e70030 12518 { (exit 1); exit 1; }; } ;;
4e8d927d 12519esac
b4e70030
JB
12520else
12521 if test "$cross_compiling" = yes; then
12522 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12523See \`config.log' for more details." >&5
12524echo "$as_me: error: cannot run test program while cross compiling
12525See \`config.log' for more details." >&2;}
12526 { (exit 1); exit 1; }; }
4e8d927d
DJ
12527else
12528 cat >conftest.$ac_ext <<_ACEOF
12529/* confdefs.h. */
3be60c3d 12530_ACEOF
4e8d927d
DJ
12531cat confdefs.h >>conftest.$ac_ext
12532cat >>conftest.$ac_ext <<_ACEOF
12533/* end confdefs.h. */
12534$ac_includes_default
b4e70030
JB
12535long longval () { return (long) (sizeof (void *)); }
12536unsigned long ulongval () { return (long) (sizeof (void *)); }
4e8d927d
DJ
12537#include <stdio.h>
12538#include <stdlib.h>
12539int
12540main ()
12541{
12542
12543 FILE *f = fopen ("conftest.val", "w");
12544 if (! f)
b4e70030
JB
12545 exit (1);
12546 if (((long) (sizeof (void *))) < 0)
4e8d927d 12547 {
b4e70030
JB
12548 long i = longval ();
12549 if (i != ((long) (sizeof (void *))))
12550 exit (1);
4e8d927d
DJ
12551 fprintf (f, "%ld\n", i);
12552 }
12553 else
12554 {
b4e70030
JB
12555 unsigned long i = ulongval ();
12556 if (i != ((long) (sizeof (void *))))
12557 exit (1);
4e8d927d
DJ
12558 fprintf (f, "%lu\n", i);
12559 }
b4e70030 12560 exit (ferror (f) || fclose (f) != 0);
3be60c3d 12561
4e8d927d
DJ
12562 ;
12563 return 0;
12564}
12565_ACEOF
12566rm -f conftest$ac_exeext
12567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12568 (eval $ac_link) 2>&5
12569 ac_status=$?
12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12573 (eval $ac_try) 2>&5
12574 ac_status=$?
12575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576 (exit $ac_status); }; }; then
12577 ac_cv_sizeof_void_p=`cat conftest.val`
12578else
12579 echo "$as_me: program exited with status $ac_status" >&5
12580echo "$as_me: failed program was:" >&5
12581sed 's/^/| /' conftest.$ac_ext >&5
3be60c3d 12582
4e8d927d 12583( exit $ac_status )
b4e70030 12584{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4e8d927d 12585See \`config.log' for more details." >&5
b4e70030 12586echo "$as_me: error: cannot compute sizeof (void *), 77
4e8d927d 12587See \`config.log' for more details." >&2;}
b4e70030
JB
12588 { (exit 1); exit 1; }; }
12589fi
12590rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f9f87d2c 12591fi
4e8d927d
DJ
12592fi
12593rm -f conftest.val
12594else
12595 ac_cv_sizeof_void_p=0
12596fi
12597fi
b4e70030
JB
12598echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
12599echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4e8d927d
DJ
12600cat >>confdefs.h <<_ACEOF
12601#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12602_ACEOF
f9f87d2c 12603
4e8d927d
DJ
12604 ;;
12605esac
46711df8 12606
4e8d927d
DJ
12607# Lacking an uint64_t? Test size of long
12608case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
b4e70030
JB
12609 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
12610echo $ECHO_N "checking for long... $ECHO_C" >&6
4e8d927d 12611if test "${ac_cv_type_long+set}" = set; then
bec39cab 12612 echo $ECHO_N "(cached) $ECHO_C" >&6
46711df8 12613else
bec39cab
AC
12614 cat >conftest.$ac_ext <<_ACEOF
12615/* confdefs.h. */
12616_ACEOF
12617cat confdefs.h >>conftest.$ac_ext
12618cat >>conftest.$ac_ext <<_ACEOF
12619/* end confdefs.h. */
4e8d927d 12620$ac_includes_default
bec39cab 12621int
46711df8
MK
12622main ()
12623{
b4e70030 12624if ((long *) 0)
4e8d927d 12625 return 0;
b4e70030 12626if (sizeof (long))
4e8d927d 12627 return 0;
a3828db0
MK
12628 ;
12629 return 0;
46711df8 12630}
bec39cab 12631_ACEOF
a3828db0
MK
12632rm -f conftest.$ac_objext
12633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12634 (eval $ac_compile) 2>conftest.er1
12635 ac_status=$?
12636 grep -v '^ *+' conftest.er1 >conftest.err
12637 rm -f conftest.er1
12638 cat conftest.err >&5
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); } &&
b4e70030
JB
12641 { ac_try='test -z "$ac_c_werror_flag"
12642 || test ! -s conftest.err'
a3828db0
MK
12643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12644 (eval $ac_try) 2>&5
bec39cab
AC
12645 ac_status=$?
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0
MK
12647 (exit $ac_status); }; } &&
12648 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
12649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12650 (eval $ac_try) 2>&5
12651 ac_status=$?
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); }; }; then
4e8d927d 12654 ac_cv_type_long=yes
46711df8 12655else
a3828db0 12656 echo "$as_me: failed program was:" >&5
bec39cab
AC
12657sed 's/^/| /' conftest.$ac_ext >&5
12658
b4e70030 12659ac_cv_type_long=no
46711df8 12660fi
4e8d927d 12661rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46711df8 12662fi
b4e70030
JB
12663echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12664echo "${ECHO_T}$ac_cv_type_long" >&6
46711df8 12665
b4e70030
JB
12666echo "$as_me:$LINENO: checking size of long" >&5
12667echo $ECHO_N "checking size of long... $ECHO_C" >&6
4e8d927d 12668if test "${ac_cv_sizeof_long+set}" = set; then
bec39cab 12669 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 12670else
4e8d927d 12671 if test "$ac_cv_type_long" = yes; then
b4e70030 12672 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
12673 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12674 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12675 # This bug is HP SR number 8606223364.
12676 if test "$cross_compiling" = yes; then
12677 # Depending upon the size, compute the lo and hi bounds.
12678cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
12679/* confdefs.h. */
12680_ACEOF
12681cat confdefs.h >>conftest.$ac_ext
12682cat >>conftest.$ac_ext <<_ACEOF
12683/* end confdefs.h. */
4e8d927d 12684$ac_includes_default
4e8d927d
DJ
12685int
12686main ()
12687{
b4e70030 12688static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4e8d927d 12689test_array [0] = 0
a3828db0 12690
4e8d927d
DJ
12691 ;
12692 return 0;
12693}
bec39cab
AC
12694_ACEOF
12695rm -f conftest.$ac_objext
12696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12697 (eval $ac_compile) 2>conftest.er1
12698 ac_status=$?
12699 grep -v '^ *+' conftest.er1 >conftest.err
12700 rm -f conftest.er1
12701 cat conftest.err >&5
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); } &&
b4e70030
JB
12704 { ac_try='test -z "$ac_c_werror_flag"
12705 || test ! -s conftest.err'
bec39cab
AC
12706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12707 (eval $ac_try) 2>&5
12708 ac_status=$?
12709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12710 (exit $ac_status); }; } &&
12711 { ac_try='test -s conftest.$ac_objext'
12712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12713 (eval $ac_try) 2>&5
12714 ac_status=$?
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); }; }; then
4e8d927d
DJ
12717 ac_lo=0 ac_mid=0
12718 while :; do
12719 cat >conftest.$ac_ext <<_ACEOF
12720/* confdefs.h. */
12721_ACEOF
12722cat confdefs.h >>conftest.$ac_ext
12723cat >>conftest.$ac_ext <<_ACEOF
12724/* end confdefs.h. */
12725$ac_includes_default
4e8d927d
DJ
12726int
12727main ()
12728{
b4e70030 12729static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4e8d927d
DJ
12730test_array [0] = 0
12731
12732 ;
12733 return 0;
12734}
12735_ACEOF
12736rm -f conftest.$ac_objext
12737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12738 (eval $ac_compile) 2>conftest.er1
12739 ac_status=$?
12740 grep -v '^ *+' conftest.er1 >conftest.err
12741 rm -f conftest.er1
12742 cat conftest.err >&5
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); } &&
b4e70030
JB
12745 { ac_try='test -z "$ac_c_werror_flag"
12746 || test ! -s conftest.err'
4e8d927d
DJ
12747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12748 (eval $ac_try) 2>&5
12749 ac_status=$?
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); }; } &&
12752 { ac_try='test -s conftest.$ac_objext'
12753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12754 (eval $ac_try) 2>&5
12755 ac_status=$?
12756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757 (exit $ac_status); }; }; then
12758 ac_hi=$ac_mid; break
12759else
12760 echo "$as_me: failed program was:" >&5
12761sed 's/^/| /' conftest.$ac_ext >&5
12762
b4e70030
JB
12763ac_lo=`expr $ac_mid + 1`
12764 if test $ac_lo -le $ac_mid; then
12765 ac_lo= ac_hi=
12766 break
12767 fi
12768 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 12769fi
4e8d927d
DJ
12770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12771 done
12772else
12773 echo "$as_me: failed program was:" >&5
12774sed 's/^/| /' conftest.$ac_ext >&5
12775
b4e70030 12776cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
12777/* confdefs.h. */
12778_ACEOF
12779cat confdefs.h >>conftest.$ac_ext
12780cat >>conftest.$ac_ext <<_ACEOF
12781/* end confdefs.h. */
12782$ac_includes_default
4e8d927d
DJ
12783int
12784main ()
12785{
b4e70030 12786static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4e8d927d
DJ
12787test_array [0] = 0
12788
12789 ;
12790 return 0;
12791}
12792_ACEOF
12793rm -f conftest.$ac_objext
12794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12795 (eval $ac_compile) 2>conftest.er1
12796 ac_status=$?
12797 grep -v '^ *+' conftest.er1 >conftest.err
12798 rm -f conftest.er1
12799 cat conftest.err >&5
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); } &&
b4e70030
JB
12802 { ac_try='test -z "$ac_c_werror_flag"
12803 || test ! -s conftest.err'
4e8d927d
DJ
12804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12805 (eval $ac_try) 2>&5
12806 ac_status=$?
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); }; } &&
12809 { ac_try='test -s conftest.$ac_objext'
12810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12811 (eval $ac_try) 2>&5
12812 ac_status=$?
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); }; }; then
12815 ac_hi=-1 ac_mid=-1
12816 while :; do
12817 cat >conftest.$ac_ext <<_ACEOF
12818/* confdefs.h. */
12819_ACEOF
12820cat confdefs.h >>conftest.$ac_ext
12821cat >>conftest.$ac_ext <<_ACEOF
12822/* end confdefs.h. */
12823$ac_includes_default
4e8d927d
DJ
12824int
12825main ()
12826{
b4e70030 12827static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4e8d927d
DJ
12828test_array [0] = 0
12829
12830 ;
12831 return 0;
12832}
12833_ACEOF
12834rm -f conftest.$ac_objext
12835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12836 (eval $ac_compile) 2>conftest.er1
12837 ac_status=$?
12838 grep -v '^ *+' conftest.er1 >conftest.err
12839 rm -f conftest.er1
12840 cat conftest.err >&5
12841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842 (exit $ac_status); } &&
b4e70030
JB
12843 { ac_try='test -z "$ac_c_werror_flag"
12844 || test ! -s conftest.err'
4e8d927d
DJ
12845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12846 (eval $ac_try) 2>&5
12847 ac_status=$?
12848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12849 (exit $ac_status); }; } &&
12850 { ac_try='test -s conftest.$ac_objext'
12851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12852 (eval $ac_try) 2>&5
12853 ac_status=$?
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); }; }; then
12856 ac_lo=$ac_mid; break
12857else
12858 echo "$as_me: failed program was:" >&5
12859sed 's/^/| /' conftest.$ac_ext >&5
12860
b4e70030
JB
12861ac_hi=`expr '(' $ac_mid ')' - 1`
12862 if test $ac_mid -le $ac_hi; then
12863 ac_lo= ac_hi=
12864 break
12865 fi
12866 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 12867fi
4e8d927d
DJ
12868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12869 done
12870else
12871 echo "$as_me: failed program was:" >&5
12872sed 's/^/| /' conftest.$ac_ext >&5
12873
b4e70030 12874ac_lo= ac_hi=
4e8d927d 12875fi
4e8d927d
DJ
12876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12877fi
4e8d927d
DJ
12878rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12879# Binary search between lo and hi bounds.
12880while test "x$ac_lo" != "x$ac_hi"; do
12881 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12882 cat >conftest.$ac_ext <<_ACEOF
12883/* confdefs.h. */
12884_ACEOF
12885cat confdefs.h >>conftest.$ac_ext
12886cat >>conftest.$ac_ext <<_ACEOF
12887/* end confdefs.h. */
12888$ac_includes_default
4e8d927d
DJ
12889int
12890main ()
12891{
b4e70030 12892static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4e8d927d
DJ
12893test_array [0] = 0
12894
12895 ;
12896 return 0;
12897}
12898_ACEOF
12899rm -f conftest.$ac_objext
12900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12901 (eval $ac_compile) 2>conftest.er1
12902 ac_status=$?
12903 grep -v '^ *+' conftest.er1 >conftest.err
12904 rm -f conftest.er1
12905 cat conftest.err >&5
12906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12907 (exit $ac_status); } &&
b4e70030
JB
12908 { ac_try='test -z "$ac_c_werror_flag"
12909 || test ! -s conftest.err'
4e8d927d
DJ
12910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12911 (eval $ac_try) 2>&5
12912 ac_status=$?
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); }; } &&
12915 { ac_try='test -s conftest.$ac_objext'
12916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12917 (eval $ac_try) 2>&5
12918 ac_status=$?
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); }; }; then
12921 ac_hi=$ac_mid
12922else
12923 echo "$as_me: failed program was:" >&5
12924sed 's/^/| /' conftest.$ac_ext >&5
12925
b4e70030 12926ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 12927fi
4e8d927d
DJ
12928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12929done
12930case $ac_lo in
12931?*) ac_cv_sizeof_long=$ac_lo;;
b4e70030 12932'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4e8d927d 12933See \`config.log' for more details." >&5
b4e70030 12934echo "$as_me: error: cannot compute sizeof (long), 77
4e8d927d 12935See \`config.log' for more details." >&2;}
b4e70030 12936 { (exit 1); exit 1; }; } ;;
4e8d927d 12937esac
b4e70030
JB
12938else
12939 if test "$cross_compiling" = yes; then
12940 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12941See \`config.log' for more details." >&5
12942echo "$as_me: error: cannot run test program while cross compiling
12943See \`config.log' for more details." >&2;}
12944 { (exit 1); exit 1; }; }
4e8d927d
DJ
12945else
12946 cat >conftest.$ac_ext <<_ACEOF
12947/* confdefs.h. */
12948_ACEOF
12949cat confdefs.h >>conftest.$ac_ext
12950cat >>conftest.$ac_ext <<_ACEOF
12951/* end confdefs.h. */
12952$ac_includes_default
b4e70030
JB
12953long longval () { return (long) (sizeof (long)); }
12954unsigned long ulongval () { return (long) (sizeof (long)); }
4e8d927d
DJ
12955#include <stdio.h>
12956#include <stdlib.h>
12957int
12958main ()
12959{
12960
12961 FILE *f = fopen ("conftest.val", "w");
12962 if (! f)
b4e70030
JB
12963 exit (1);
12964 if (((long) (sizeof (long))) < 0)
4e8d927d 12965 {
b4e70030
JB
12966 long i = longval ();
12967 if (i != ((long) (sizeof (long))))
12968 exit (1);
4e8d927d
DJ
12969 fprintf (f, "%ld\n", i);
12970 }
12971 else
12972 {
b4e70030
JB
12973 unsigned long i = ulongval ();
12974 if (i != ((long) (sizeof (long))))
12975 exit (1);
4e8d927d
DJ
12976 fprintf (f, "%lu\n", i);
12977 }
b4e70030 12978 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
12979
12980 ;
12981 return 0;
12982}
12983_ACEOF
12984rm -f conftest$ac_exeext
12985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12986 (eval $ac_link) 2>&5
12987 ac_status=$?
12988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12991 (eval $ac_try) 2>&5
12992 ac_status=$?
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); }; }; then
12995 ac_cv_sizeof_long=`cat conftest.val`
12996else
12997 echo "$as_me: program exited with status $ac_status" >&5
12998echo "$as_me: failed program was:" >&5
12999sed 's/^/| /' conftest.$ac_ext >&5
13000
13001( exit $ac_status )
b4e70030 13002{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4e8d927d 13003See \`config.log' for more details." >&5
b4e70030 13004echo "$as_me: error: cannot compute sizeof (long), 77
4e8d927d 13005See \`config.log' for more details." >&2;}
b4e70030
JB
13006 { (exit 1); exit 1; }; }
13007fi
13008rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 13009fi
4e8d927d
DJ
13010fi
13011rm -f conftest.val
13012else
13013 ac_cv_sizeof_long=0
13014fi
13015fi
b4e70030
JB
13016echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13017echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4e8d927d
DJ
13018cat >>confdefs.h <<_ACEOF
13019#define SIZEOF_LONG $ac_cv_sizeof_long
13020_ACEOF
13021
13022 ;;
13023esac
13024
13025if test $acx_cv_header_stdint = stddef.h; then
13026 # Lacking a good header? Test size of everything and deduce all types.
b4e70030
JB
13027 echo "$as_me:$LINENO: checking for int" >&5
13028echo $ECHO_N "checking for int... $ECHO_C" >&6
4e8d927d
DJ
13029if test "${ac_cv_type_int+set}" = set; then
13030 echo $ECHO_N "(cached) $ECHO_C" >&6
13031else
13032 cat >conftest.$ac_ext <<_ACEOF
13033/* confdefs.h. */
13034_ACEOF
13035cat confdefs.h >>conftest.$ac_ext
13036cat >>conftest.$ac_ext <<_ACEOF
13037/* end confdefs.h. */
13038$ac_includes_default
4e8d927d
DJ
13039int
13040main ()
13041{
b4e70030 13042if ((int *) 0)
4e8d927d 13043 return 0;
b4e70030 13044if (sizeof (int))
4e8d927d
DJ
13045 return 0;
13046 ;
13047 return 0;
13048}
13049_ACEOF
13050rm -f conftest.$ac_objext
13051if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13052 (eval $ac_compile) 2>conftest.er1
13053 ac_status=$?
13054 grep -v '^ *+' conftest.er1 >conftest.err
13055 rm -f conftest.er1
13056 cat conftest.err >&5
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); } &&
b4e70030
JB
13059 { ac_try='test -z "$ac_c_werror_flag"
13060 || test ! -s conftest.err'
4e8d927d
DJ
13061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13062 (eval $ac_try) 2>&5
13063 ac_status=$?
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); }; } &&
13066 { ac_try='test -s conftest.$ac_objext'
13067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13068 (eval $ac_try) 2>&5
13069 ac_status=$?
13070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13071 (exit $ac_status); }; }; then
13072 ac_cv_type_int=yes
13073else
13074 echo "$as_me: failed program was:" >&5
13075sed 's/^/| /' conftest.$ac_ext >&5
13076
b4e70030 13077ac_cv_type_int=no
4e8d927d 13078fi
4e8d927d
DJ
13079rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13080fi
b4e70030
JB
13081echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13082echo "${ECHO_T}$ac_cv_type_int" >&6
4e8d927d 13083
b4e70030
JB
13084echo "$as_me:$LINENO: checking size of int" >&5
13085echo $ECHO_N "checking size of int... $ECHO_C" >&6
4e8d927d
DJ
13086if test "${ac_cv_sizeof_int+set}" = set; then
13087 echo $ECHO_N "(cached) $ECHO_C" >&6
13088else
13089 if test "$ac_cv_type_int" = yes; then
b4e70030 13090 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
13091 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13092 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13093 # This bug is HP SR number 8606223364.
13094 if test "$cross_compiling" = yes; then
13095 # Depending upon the size, compute the lo and hi bounds.
13096cat >conftest.$ac_ext <<_ACEOF
13097/* confdefs.h. */
13098_ACEOF
13099cat confdefs.h >>conftest.$ac_ext
13100cat >>conftest.$ac_ext <<_ACEOF
13101/* end confdefs.h. */
13102$ac_includes_default
4e8d927d
DJ
13103int
13104main ()
13105{
b4e70030 13106static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4e8d927d
DJ
13107test_array [0] = 0
13108
13109 ;
13110 return 0;
13111}
13112_ACEOF
13113rm -f conftest.$ac_objext
13114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13115 (eval $ac_compile) 2>conftest.er1
13116 ac_status=$?
13117 grep -v '^ *+' conftest.er1 >conftest.err
13118 rm -f conftest.er1
13119 cat conftest.err >&5
13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 (exit $ac_status); } &&
b4e70030
JB
13122 { ac_try='test -z "$ac_c_werror_flag"
13123 || test ! -s conftest.err'
4e8d927d
DJ
13124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13125 (eval $ac_try) 2>&5
13126 ac_status=$?
13127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13128 (exit $ac_status); }; } &&
13129 { ac_try='test -s conftest.$ac_objext'
13130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13131 (eval $ac_try) 2>&5
13132 ac_status=$?
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); }; }; then
13135 ac_lo=0 ac_mid=0
13136 while :; do
13137 cat >conftest.$ac_ext <<_ACEOF
13138/* confdefs.h. */
13139_ACEOF
13140cat confdefs.h >>conftest.$ac_ext
13141cat >>conftest.$ac_ext <<_ACEOF
13142/* end confdefs.h. */
13143$ac_includes_default
4e8d927d
DJ
13144int
13145main ()
13146{
b4e70030 13147static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4e8d927d
DJ
13148test_array [0] = 0
13149
13150 ;
13151 return 0;
13152}
13153_ACEOF
13154rm -f conftest.$ac_objext
13155if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13156 (eval $ac_compile) 2>conftest.er1
13157 ac_status=$?
13158 grep -v '^ *+' conftest.er1 >conftest.err
13159 rm -f conftest.er1
13160 cat conftest.err >&5
13161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162 (exit $ac_status); } &&
b4e70030
JB
13163 { ac_try='test -z "$ac_c_werror_flag"
13164 || test ! -s conftest.err'
4e8d927d
DJ
13165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13166 (eval $ac_try) 2>&5
13167 ac_status=$?
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); }; } &&
13170 { ac_try='test -s conftest.$ac_objext'
13171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13172 (eval $ac_try) 2>&5
13173 ac_status=$?
13174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175 (exit $ac_status); }; }; then
13176 ac_hi=$ac_mid; break
13177else
13178 echo "$as_me: failed program was:" >&5
13179sed 's/^/| /' conftest.$ac_ext >&5
13180
b4e70030
JB
13181ac_lo=`expr $ac_mid + 1`
13182 if test $ac_lo -le $ac_mid; then
13183 ac_lo= ac_hi=
13184 break
13185 fi
13186 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 13187fi
4e8d927d
DJ
13188rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13189 done
13190else
13191 echo "$as_me: failed program was:" >&5
13192sed 's/^/| /' conftest.$ac_ext >&5
13193
b4e70030 13194cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
13195/* confdefs.h. */
13196_ACEOF
13197cat confdefs.h >>conftest.$ac_ext
13198cat >>conftest.$ac_ext <<_ACEOF
13199/* end confdefs.h. */
13200$ac_includes_default
4e8d927d
DJ
13201int
13202main ()
13203{
b4e70030 13204static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4e8d927d
DJ
13205test_array [0] = 0
13206
13207 ;
13208 return 0;
13209}
13210_ACEOF
13211rm -f conftest.$ac_objext
13212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13213 (eval $ac_compile) 2>conftest.er1
13214 ac_status=$?
13215 grep -v '^ *+' conftest.er1 >conftest.err
13216 rm -f conftest.er1
13217 cat conftest.err >&5
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); } &&
b4e70030
JB
13220 { ac_try='test -z "$ac_c_werror_flag"
13221 || test ! -s conftest.err'
4e8d927d
DJ
13222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13223 (eval $ac_try) 2>&5
13224 ac_status=$?
13225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); }; } &&
13227 { ac_try='test -s conftest.$ac_objext'
13228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13229 (eval $ac_try) 2>&5
13230 ac_status=$?
13231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13232 (exit $ac_status); }; }; then
13233 ac_hi=-1 ac_mid=-1
13234 while :; do
13235 cat >conftest.$ac_ext <<_ACEOF
13236/* confdefs.h. */
13237_ACEOF
13238cat confdefs.h >>conftest.$ac_ext
13239cat >>conftest.$ac_ext <<_ACEOF
13240/* end confdefs.h. */
13241$ac_includes_default
4e8d927d
DJ
13242int
13243main ()
13244{
b4e70030 13245static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4e8d927d
DJ
13246test_array [0] = 0
13247
13248 ;
13249 return 0;
13250}
13251_ACEOF
13252rm -f conftest.$ac_objext
13253if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13254 (eval $ac_compile) 2>conftest.er1
13255 ac_status=$?
13256 grep -v '^ *+' conftest.er1 >conftest.err
13257 rm -f conftest.er1
13258 cat conftest.err >&5
13259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13260 (exit $ac_status); } &&
b4e70030
JB
13261 { ac_try='test -z "$ac_c_werror_flag"
13262 || test ! -s conftest.err'
4e8d927d
DJ
13263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13264 (eval $ac_try) 2>&5
13265 ac_status=$?
13266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13267 (exit $ac_status); }; } &&
13268 { ac_try='test -s conftest.$ac_objext'
13269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13270 (eval $ac_try) 2>&5
13271 ac_status=$?
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); }; }; then
13274 ac_lo=$ac_mid; break
13275else
13276 echo "$as_me: failed program was:" >&5
13277sed 's/^/| /' conftest.$ac_ext >&5
13278
b4e70030
JB
13279ac_hi=`expr '(' $ac_mid ')' - 1`
13280 if test $ac_mid -le $ac_hi; then
13281 ac_lo= ac_hi=
13282 break
13283 fi
13284 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 13285fi
4e8d927d
DJ
13286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13287 done
13288else
13289 echo "$as_me: failed program was:" >&5
13290sed 's/^/| /' conftest.$ac_ext >&5
13291
b4e70030 13292ac_lo= ac_hi=
4e8d927d 13293fi
4e8d927d
DJ
13294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13295fi
4e8d927d
DJ
13296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13297# Binary search between lo and hi bounds.
13298while test "x$ac_lo" != "x$ac_hi"; do
13299 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13300 cat >conftest.$ac_ext <<_ACEOF
13301/* confdefs.h. */
13302_ACEOF
13303cat confdefs.h >>conftest.$ac_ext
13304cat >>conftest.$ac_ext <<_ACEOF
13305/* end confdefs.h. */
13306$ac_includes_default
4e8d927d
DJ
13307int
13308main ()
13309{
b4e70030 13310static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4e8d927d
DJ
13311test_array [0] = 0
13312
13313 ;
13314 return 0;
13315}
13316_ACEOF
13317rm -f conftest.$ac_objext
13318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13319 (eval $ac_compile) 2>conftest.er1
13320 ac_status=$?
13321 grep -v '^ *+' conftest.er1 >conftest.err
13322 rm -f conftest.er1
13323 cat conftest.err >&5
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); } &&
b4e70030
JB
13326 { ac_try='test -z "$ac_c_werror_flag"
13327 || test ! -s conftest.err'
4e8d927d
DJ
13328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13329 (eval $ac_try) 2>&5
13330 ac_status=$?
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); }; } &&
13333 { ac_try='test -s conftest.$ac_objext'
13334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13335 (eval $ac_try) 2>&5
13336 ac_status=$?
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); }; }; then
13339 ac_hi=$ac_mid
13340else
13341 echo "$as_me: failed program was:" >&5
13342sed 's/^/| /' conftest.$ac_ext >&5
13343
b4e70030 13344ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 13345fi
4e8d927d
DJ
13346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13347done
13348case $ac_lo in
13349?*) ac_cv_sizeof_int=$ac_lo;;
b4e70030 13350'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4e8d927d 13351See \`config.log' for more details." >&5
b4e70030 13352echo "$as_me: error: cannot compute sizeof (int), 77
4e8d927d 13353See \`config.log' for more details." >&2;}
b4e70030 13354 { (exit 1); exit 1; }; } ;;
4e8d927d 13355esac
b4e70030
JB
13356else
13357 if test "$cross_compiling" = yes; then
13358 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13359See \`config.log' for more details." >&5
13360echo "$as_me: error: cannot run test program while cross compiling
13361See \`config.log' for more details." >&2;}
13362 { (exit 1); exit 1; }; }
4e8d927d
DJ
13363else
13364 cat >conftest.$ac_ext <<_ACEOF
13365/* confdefs.h. */
13366_ACEOF
13367cat confdefs.h >>conftest.$ac_ext
13368cat >>conftest.$ac_ext <<_ACEOF
13369/* end confdefs.h. */
13370$ac_includes_default
b4e70030
JB
13371long longval () { return (long) (sizeof (int)); }
13372unsigned long ulongval () { return (long) (sizeof (int)); }
4e8d927d
DJ
13373#include <stdio.h>
13374#include <stdlib.h>
13375int
13376main ()
13377{
13378
13379 FILE *f = fopen ("conftest.val", "w");
13380 if (! f)
b4e70030
JB
13381 exit (1);
13382 if (((long) (sizeof (int))) < 0)
4e8d927d 13383 {
b4e70030
JB
13384 long i = longval ();
13385 if (i != ((long) (sizeof (int))))
13386 exit (1);
4e8d927d
DJ
13387 fprintf (f, "%ld\n", i);
13388 }
13389 else
13390 {
b4e70030
JB
13391 unsigned long i = ulongval ();
13392 if (i != ((long) (sizeof (int))))
13393 exit (1);
4e8d927d
DJ
13394 fprintf (f, "%lu\n", i);
13395 }
b4e70030 13396 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
13397
13398 ;
13399 return 0;
13400}
13401_ACEOF
13402rm -f conftest$ac_exeext
13403if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13404 (eval $ac_link) 2>&5
13405 ac_status=$?
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13409 (eval $ac_try) 2>&5
13410 ac_status=$?
13411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13412 (exit $ac_status); }; }; then
13413 ac_cv_sizeof_int=`cat conftest.val`
13414else
13415 echo "$as_me: program exited with status $ac_status" >&5
13416echo "$as_me: failed program was:" >&5
13417sed 's/^/| /' conftest.$ac_ext >&5
13418
13419( exit $ac_status )
b4e70030 13420{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4e8d927d 13421See \`config.log' for more details." >&5
b4e70030 13422echo "$as_me: error: cannot compute sizeof (int), 77
4e8d927d 13423See \`config.log' for more details." >&2;}
b4e70030
JB
13424 { (exit 1); exit 1; }; }
13425fi
13426rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 13427fi
4e8d927d
DJ
13428fi
13429rm -f conftest.val
13430else
13431 ac_cv_sizeof_int=0
13432fi
13433fi
b4e70030
JB
13434echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13435echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4e8d927d
DJ
13436cat >>confdefs.h <<_ACEOF
13437#define SIZEOF_INT $ac_cv_sizeof_int
13438_ACEOF
13439
13440
b4e70030
JB
13441 echo "$as_me:$LINENO: checking for short" >&5
13442echo $ECHO_N "checking for short... $ECHO_C" >&6
4e8d927d
DJ
13443if test "${ac_cv_type_short+set}" = set; then
13444 echo $ECHO_N "(cached) $ECHO_C" >&6
13445else
13446 cat >conftest.$ac_ext <<_ACEOF
13447/* confdefs.h. */
13448_ACEOF
13449cat confdefs.h >>conftest.$ac_ext
13450cat >>conftest.$ac_ext <<_ACEOF
13451/* end confdefs.h. */
13452$ac_includes_default
4e8d927d
DJ
13453int
13454main ()
13455{
b4e70030 13456if ((short *) 0)
4e8d927d 13457 return 0;
b4e70030 13458if (sizeof (short))
4e8d927d
DJ
13459 return 0;
13460 ;
13461 return 0;
13462}
13463_ACEOF
13464rm -f conftest.$ac_objext
13465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13466 (eval $ac_compile) 2>conftest.er1
13467 ac_status=$?
13468 grep -v '^ *+' conftest.er1 >conftest.err
13469 rm -f conftest.er1
13470 cat conftest.err >&5
13471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); } &&
b4e70030
JB
13473 { ac_try='test -z "$ac_c_werror_flag"
13474 || test ! -s conftest.err'
4e8d927d
DJ
13475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13476 (eval $ac_try) 2>&5
13477 ac_status=$?
13478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479 (exit $ac_status); }; } &&
13480 { ac_try='test -s conftest.$ac_objext'
13481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13482 (eval $ac_try) 2>&5
13483 ac_status=$?
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); }; }; then
13486 ac_cv_type_short=yes
13487else
13488 echo "$as_me: failed program was:" >&5
13489sed 's/^/| /' conftest.$ac_ext >&5
13490
b4e70030 13491ac_cv_type_short=no
4e8d927d 13492fi
4e8d927d
DJ
13493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13494fi
b4e70030
JB
13495echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13496echo "${ECHO_T}$ac_cv_type_short" >&6
4e8d927d 13497
b4e70030
JB
13498echo "$as_me:$LINENO: checking size of short" >&5
13499echo $ECHO_N "checking size of short... $ECHO_C" >&6
4e8d927d
DJ
13500if test "${ac_cv_sizeof_short+set}" = set; then
13501 echo $ECHO_N "(cached) $ECHO_C" >&6
13502else
13503 if test "$ac_cv_type_short" = yes; then
b4e70030 13504 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
13505 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13506 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13507 # This bug is HP SR number 8606223364.
13508 if test "$cross_compiling" = yes; then
13509 # Depending upon the size, compute the lo and hi bounds.
13510cat >conftest.$ac_ext <<_ACEOF
13511/* confdefs.h. */
13512_ACEOF
13513cat confdefs.h >>conftest.$ac_ext
13514cat >>conftest.$ac_ext <<_ACEOF
13515/* end confdefs.h. */
13516$ac_includes_default
4e8d927d
DJ
13517int
13518main ()
13519{
b4e70030 13520static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4e8d927d
DJ
13521test_array [0] = 0
13522
13523 ;
13524 return 0;
13525}
13526_ACEOF
13527rm -f conftest.$ac_objext
13528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13529 (eval $ac_compile) 2>conftest.er1
13530 ac_status=$?
13531 grep -v '^ *+' conftest.er1 >conftest.err
13532 rm -f conftest.er1
13533 cat conftest.err >&5
13534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13535 (exit $ac_status); } &&
b4e70030
JB
13536 { ac_try='test -z "$ac_c_werror_flag"
13537 || test ! -s conftest.err'
4e8d927d
DJ
13538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13539 (eval $ac_try) 2>&5
13540 ac_status=$?
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); }; } &&
13543 { ac_try='test -s conftest.$ac_objext'
13544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13545 (eval $ac_try) 2>&5
13546 ac_status=$?
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); }; }; then
13549 ac_lo=0 ac_mid=0
13550 while :; do
13551 cat >conftest.$ac_ext <<_ACEOF
13552/* confdefs.h. */
13553_ACEOF
13554cat confdefs.h >>conftest.$ac_ext
13555cat >>conftest.$ac_ext <<_ACEOF
13556/* end confdefs.h. */
13557$ac_includes_default
4e8d927d
DJ
13558int
13559main ()
13560{
b4e70030 13561static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4e8d927d
DJ
13562test_array [0] = 0
13563
13564 ;
13565 return 0;
13566}
13567_ACEOF
13568rm -f conftest.$ac_objext
13569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13570 (eval $ac_compile) 2>conftest.er1
13571 ac_status=$?
13572 grep -v '^ *+' conftest.er1 >conftest.err
13573 rm -f conftest.er1
13574 cat conftest.err >&5
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); } &&
b4e70030
JB
13577 { ac_try='test -z "$ac_c_werror_flag"
13578 || test ! -s conftest.err'
4e8d927d
DJ
13579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13580 (eval $ac_try) 2>&5
13581 ac_status=$?
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); }; } &&
13584 { ac_try='test -s conftest.$ac_objext'
13585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13586 (eval $ac_try) 2>&5
13587 ac_status=$?
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); }; }; then
13590 ac_hi=$ac_mid; break
13591else
13592 echo "$as_me: failed program was:" >&5
13593sed 's/^/| /' conftest.$ac_ext >&5
13594
b4e70030
JB
13595ac_lo=`expr $ac_mid + 1`
13596 if test $ac_lo -le $ac_mid; then
13597 ac_lo= ac_hi=
13598 break
13599 fi
13600 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 13601fi
4e8d927d
DJ
13602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13603 done
13604else
13605 echo "$as_me: failed program was:" >&5
13606sed 's/^/| /' conftest.$ac_ext >&5
13607
b4e70030 13608cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
13609/* confdefs.h. */
13610_ACEOF
13611cat confdefs.h >>conftest.$ac_ext
13612cat >>conftest.$ac_ext <<_ACEOF
13613/* end confdefs.h. */
13614$ac_includes_default
4e8d927d
DJ
13615int
13616main ()
13617{
b4e70030 13618static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4e8d927d
DJ
13619test_array [0] = 0
13620
13621 ;
13622 return 0;
13623}
13624_ACEOF
13625rm -f conftest.$ac_objext
13626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13627 (eval $ac_compile) 2>conftest.er1
13628 ac_status=$?
13629 grep -v '^ *+' conftest.er1 >conftest.err
13630 rm -f conftest.er1
13631 cat conftest.err >&5
13632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13633 (exit $ac_status); } &&
b4e70030
JB
13634 { ac_try='test -z "$ac_c_werror_flag"
13635 || test ! -s conftest.err'
4e8d927d
DJ
13636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13637 (eval $ac_try) 2>&5
13638 ac_status=$?
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); }; } &&
13641 { ac_try='test -s conftest.$ac_objext'
13642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13643 (eval $ac_try) 2>&5
13644 ac_status=$?
13645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); }; }; then
13647 ac_hi=-1 ac_mid=-1
13648 while :; do
13649 cat >conftest.$ac_ext <<_ACEOF
13650/* confdefs.h. */
13651_ACEOF
13652cat confdefs.h >>conftest.$ac_ext
13653cat >>conftest.$ac_ext <<_ACEOF
13654/* end confdefs.h. */
13655$ac_includes_default
4e8d927d
DJ
13656int
13657main ()
13658{
b4e70030 13659static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4e8d927d
DJ
13660test_array [0] = 0
13661
13662 ;
13663 return 0;
13664}
13665_ACEOF
13666rm -f conftest.$ac_objext
13667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13668 (eval $ac_compile) 2>conftest.er1
13669 ac_status=$?
13670 grep -v '^ *+' conftest.er1 >conftest.err
13671 rm -f conftest.er1
13672 cat conftest.err >&5
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); } &&
b4e70030
JB
13675 { ac_try='test -z "$ac_c_werror_flag"
13676 || test ! -s conftest.err'
4e8d927d
DJ
13677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13678 (eval $ac_try) 2>&5
13679 ac_status=$?
13680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681 (exit $ac_status); }; } &&
13682 { ac_try='test -s conftest.$ac_objext'
13683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13684 (eval $ac_try) 2>&5
13685 ac_status=$?
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); }; }; then
13688 ac_lo=$ac_mid; break
13689else
13690 echo "$as_me: failed program was:" >&5
13691sed 's/^/| /' conftest.$ac_ext >&5
13692
b4e70030
JB
13693ac_hi=`expr '(' $ac_mid ')' - 1`
13694 if test $ac_mid -le $ac_hi; then
13695 ac_lo= ac_hi=
13696 break
13697 fi
13698 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 13699fi
4e8d927d
DJ
13700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13701 done
13702else
13703 echo "$as_me: failed program was:" >&5
13704sed 's/^/| /' conftest.$ac_ext >&5
13705
b4e70030 13706ac_lo= ac_hi=
4e8d927d 13707fi
4e8d927d
DJ
13708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13709fi
4e8d927d
DJ
13710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13711# Binary search between lo and hi bounds.
13712while test "x$ac_lo" != "x$ac_hi"; do
13713 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13714 cat >conftest.$ac_ext <<_ACEOF
13715/* confdefs.h. */
13716_ACEOF
13717cat confdefs.h >>conftest.$ac_ext
13718cat >>conftest.$ac_ext <<_ACEOF
13719/* end confdefs.h. */
13720$ac_includes_default
4e8d927d
DJ
13721int
13722main ()
13723{
b4e70030 13724static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4e8d927d
DJ
13725test_array [0] = 0
13726
13727 ;
13728 return 0;
13729}
13730_ACEOF
13731rm -f conftest.$ac_objext
13732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13733 (eval $ac_compile) 2>conftest.er1
13734 ac_status=$?
13735 grep -v '^ *+' conftest.er1 >conftest.err
13736 rm -f conftest.er1
13737 cat conftest.err >&5
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); } &&
b4e70030
JB
13740 { ac_try='test -z "$ac_c_werror_flag"
13741 || test ! -s conftest.err'
4e8d927d
DJ
13742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13743 (eval $ac_try) 2>&5
13744 ac_status=$?
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); }; } &&
13747 { ac_try='test -s conftest.$ac_objext'
13748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13749 (eval $ac_try) 2>&5
13750 ac_status=$?
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); }; }; then
13753 ac_hi=$ac_mid
13754else
13755 echo "$as_me: failed program was:" >&5
13756sed 's/^/| /' conftest.$ac_ext >&5
13757
b4e70030 13758ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 13759fi
4e8d927d
DJ
13760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13761done
13762case $ac_lo in
13763?*) ac_cv_sizeof_short=$ac_lo;;
b4e70030 13764'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4e8d927d 13765See \`config.log' for more details." >&5
b4e70030 13766echo "$as_me: error: cannot compute sizeof (short), 77
4e8d927d 13767See \`config.log' for more details." >&2;}
b4e70030 13768 { (exit 1); exit 1; }; } ;;
4e8d927d 13769esac
b4e70030
JB
13770else
13771 if test "$cross_compiling" = yes; then
13772 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13773See \`config.log' for more details." >&5
13774echo "$as_me: error: cannot run test program while cross compiling
13775See \`config.log' for more details." >&2;}
13776 { (exit 1); exit 1; }; }
4e8d927d
DJ
13777else
13778 cat >conftest.$ac_ext <<_ACEOF
13779/* confdefs.h. */
13780_ACEOF
13781cat confdefs.h >>conftest.$ac_ext
13782cat >>conftest.$ac_ext <<_ACEOF
13783/* end confdefs.h. */
13784$ac_includes_default
b4e70030
JB
13785long longval () { return (long) (sizeof (short)); }
13786unsigned long ulongval () { return (long) (sizeof (short)); }
4e8d927d
DJ
13787#include <stdio.h>
13788#include <stdlib.h>
13789int
13790main ()
13791{
13792
13793 FILE *f = fopen ("conftest.val", "w");
13794 if (! f)
b4e70030
JB
13795 exit (1);
13796 if (((long) (sizeof (short))) < 0)
4e8d927d 13797 {
b4e70030
JB
13798 long i = longval ();
13799 if (i != ((long) (sizeof (short))))
13800 exit (1);
4e8d927d
DJ
13801 fprintf (f, "%ld\n", i);
13802 }
13803 else
13804 {
b4e70030
JB
13805 unsigned long i = ulongval ();
13806 if (i != ((long) (sizeof (short))))
13807 exit (1);
4e8d927d
DJ
13808 fprintf (f, "%lu\n", i);
13809 }
b4e70030 13810 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
13811
13812 ;
13813 return 0;
13814}
13815_ACEOF
13816rm -f conftest$ac_exeext
13817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13818 (eval $ac_link) 2>&5
13819 ac_status=$?
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823 (eval $ac_try) 2>&5
13824 ac_status=$?
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); }; }; then
13827 ac_cv_sizeof_short=`cat conftest.val`
13828else
13829 echo "$as_me: program exited with status $ac_status" >&5
13830echo "$as_me: failed program was:" >&5
13831sed 's/^/| /' conftest.$ac_ext >&5
13832
13833( exit $ac_status )
b4e70030 13834{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4e8d927d 13835See \`config.log' for more details." >&5
b4e70030 13836echo "$as_me: error: cannot compute sizeof (short), 77
4e8d927d 13837See \`config.log' for more details." >&2;}
b4e70030
JB
13838 { (exit 1); exit 1; }; }
13839fi
13840rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 13841fi
4e8d927d
DJ
13842fi
13843rm -f conftest.val
13844else
13845 ac_cv_sizeof_short=0
13846fi
13847fi
b4e70030
JB
13848echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
13849echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4e8d927d
DJ
13850cat >>confdefs.h <<_ACEOF
13851#define SIZEOF_SHORT $ac_cv_sizeof_short
13852_ACEOF
13853
13854
b4e70030
JB
13855 echo "$as_me:$LINENO: checking for char" >&5
13856echo $ECHO_N "checking for char... $ECHO_C" >&6
4e8d927d
DJ
13857if test "${ac_cv_type_char+set}" = set; then
13858 echo $ECHO_N "(cached) $ECHO_C" >&6
13859else
13860 cat >conftest.$ac_ext <<_ACEOF
13861/* confdefs.h. */
13862_ACEOF
13863cat confdefs.h >>conftest.$ac_ext
13864cat >>conftest.$ac_ext <<_ACEOF
13865/* end confdefs.h. */
13866$ac_includes_default
4e8d927d
DJ
13867int
13868main ()
13869{
b4e70030 13870if ((char *) 0)
4e8d927d 13871 return 0;
b4e70030 13872if (sizeof (char))
4e8d927d
DJ
13873 return 0;
13874 ;
13875 return 0;
13876}
13877_ACEOF
13878rm -f conftest.$ac_objext
13879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13880 (eval $ac_compile) 2>conftest.er1
13881 ac_status=$?
13882 grep -v '^ *+' conftest.er1 >conftest.err
13883 rm -f conftest.er1
13884 cat conftest.err >&5
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); } &&
b4e70030
JB
13887 { ac_try='test -z "$ac_c_werror_flag"
13888 || test ! -s conftest.err'
4e8d927d
DJ
13889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13890 (eval $ac_try) 2>&5
13891 ac_status=$?
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); }; } &&
13894 { ac_try='test -s conftest.$ac_objext'
13895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13896 (eval $ac_try) 2>&5
13897 ac_status=$?
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); }; }; then
13900 ac_cv_type_char=yes
13901else
13902 echo "$as_me: failed program was:" >&5
13903sed 's/^/| /' conftest.$ac_ext >&5
13904
b4e70030 13905ac_cv_type_char=no
4e8d927d 13906fi
4e8d927d
DJ
13907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13908fi
b4e70030
JB
13909echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13910echo "${ECHO_T}$ac_cv_type_char" >&6
4e8d927d 13911
b4e70030
JB
13912echo "$as_me:$LINENO: checking size of char" >&5
13913echo $ECHO_N "checking size of char... $ECHO_C" >&6
4e8d927d
DJ
13914if test "${ac_cv_sizeof_char+set}" = set; then
13915 echo $ECHO_N "(cached) $ECHO_C" >&6
13916else
13917 if test "$ac_cv_type_char" = yes; then
b4e70030 13918 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
13919 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13920 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13921 # This bug is HP SR number 8606223364.
13922 if test "$cross_compiling" = yes; then
13923 # Depending upon the size, compute the lo and hi bounds.
13924cat >conftest.$ac_ext <<_ACEOF
13925/* confdefs.h. */
13926_ACEOF
13927cat confdefs.h >>conftest.$ac_ext
13928cat >>conftest.$ac_ext <<_ACEOF
13929/* end confdefs.h. */
13930$ac_includes_default
4e8d927d
DJ
13931int
13932main ()
13933{
b4e70030 13934static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4e8d927d
DJ
13935test_array [0] = 0
13936
13937 ;
13938 return 0;
13939}
13940_ACEOF
13941rm -f conftest.$ac_objext
13942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13943 (eval $ac_compile) 2>conftest.er1
13944 ac_status=$?
13945 grep -v '^ *+' conftest.er1 >conftest.err
13946 rm -f conftest.er1
13947 cat conftest.err >&5
13948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); } &&
b4e70030
JB
13950 { ac_try='test -z "$ac_c_werror_flag"
13951 || test ! -s conftest.err'
4e8d927d
DJ
13952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13953 (eval $ac_try) 2>&5
13954 ac_status=$?
13955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956 (exit $ac_status); }; } &&
13957 { ac_try='test -s conftest.$ac_objext'
13958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13959 (eval $ac_try) 2>&5
13960 ac_status=$?
13961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13962 (exit $ac_status); }; }; then
13963 ac_lo=0 ac_mid=0
13964 while :; do
13965 cat >conftest.$ac_ext <<_ACEOF
13966/* confdefs.h. */
13967_ACEOF
13968cat confdefs.h >>conftest.$ac_ext
13969cat >>conftest.$ac_ext <<_ACEOF
13970/* end confdefs.h. */
13971$ac_includes_default
4e8d927d
DJ
13972int
13973main ()
13974{
b4e70030 13975static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4e8d927d
DJ
13976test_array [0] = 0
13977
13978 ;
13979 return 0;
13980}
13981_ACEOF
13982rm -f conftest.$ac_objext
13983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13984 (eval $ac_compile) 2>conftest.er1
13985 ac_status=$?
13986 grep -v '^ *+' conftest.er1 >conftest.err
13987 rm -f conftest.er1
13988 cat conftest.err >&5
13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); } &&
b4e70030
JB
13991 { ac_try='test -z "$ac_c_werror_flag"
13992 || test ! -s conftest.err'
4e8d927d
DJ
13993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13994 (eval $ac_try) 2>&5
13995 ac_status=$?
13996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13997 (exit $ac_status); }; } &&
13998 { ac_try='test -s conftest.$ac_objext'
13999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14000 (eval $ac_try) 2>&5
14001 ac_status=$?
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); }; }; then
14004 ac_hi=$ac_mid; break
14005else
14006 echo "$as_me: failed program was:" >&5
14007sed 's/^/| /' conftest.$ac_ext >&5
14008
b4e70030
JB
14009ac_lo=`expr $ac_mid + 1`
14010 if test $ac_lo -le $ac_mid; then
14011 ac_lo= ac_hi=
14012 break
14013 fi
14014 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 14015fi
4e8d927d
DJ
14016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14017 done
14018else
14019 echo "$as_me: failed program was:" >&5
14020sed 's/^/| /' conftest.$ac_ext >&5
14021
b4e70030 14022cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
14023/* confdefs.h. */
14024_ACEOF
14025cat confdefs.h >>conftest.$ac_ext
14026cat >>conftest.$ac_ext <<_ACEOF
14027/* end confdefs.h. */
14028$ac_includes_default
4e8d927d
DJ
14029int
14030main ()
14031{
b4e70030 14032static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4e8d927d
DJ
14033test_array [0] = 0
14034
14035 ;
14036 return 0;
14037}
14038_ACEOF
14039rm -f conftest.$ac_objext
14040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14041 (eval $ac_compile) 2>conftest.er1
14042 ac_status=$?
14043 grep -v '^ *+' conftest.er1 >conftest.err
14044 rm -f conftest.er1
14045 cat conftest.err >&5
14046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047 (exit $ac_status); } &&
b4e70030
JB
14048 { ac_try='test -z "$ac_c_werror_flag"
14049 || test ! -s conftest.err'
4e8d927d
DJ
14050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14051 (eval $ac_try) 2>&5
14052 ac_status=$?
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); }; } &&
14055 { ac_try='test -s conftest.$ac_objext'
14056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14057 (eval $ac_try) 2>&5
14058 ac_status=$?
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); }; }; then
14061 ac_hi=-1 ac_mid=-1
14062 while :; do
14063 cat >conftest.$ac_ext <<_ACEOF
14064/* confdefs.h. */
14065_ACEOF
14066cat confdefs.h >>conftest.$ac_ext
14067cat >>conftest.$ac_ext <<_ACEOF
14068/* end confdefs.h. */
14069$ac_includes_default
4e8d927d
DJ
14070int
14071main ()
14072{
b4e70030 14073static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4e8d927d
DJ
14074test_array [0] = 0
14075
14076 ;
14077 return 0;
14078}
14079_ACEOF
14080rm -f conftest.$ac_objext
14081if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14082 (eval $ac_compile) 2>conftest.er1
14083 ac_status=$?
14084 grep -v '^ *+' conftest.er1 >conftest.err
14085 rm -f conftest.er1
14086 cat conftest.err >&5
14087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088 (exit $ac_status); } &&
b4e70030
JB
14089 { ac_try='test -z "$ac_c_werror_flag"
14090 || test ! -s conftest.err'
4e8d927d
DJ
14091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14092 (eval $ac_try) 2>&5
14093 ac_status=$?
14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); }; } &&
14096 { ac_try='test -s conftest.$ac_objext'
14097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14098 (eval $ac_try) 2>&5
14099 ac_status=$?
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); }; }; then
14102 ac_lo=$ac_mid; break
14103else
14104 echo "$as_me: failed program was:" >&5
14105sed 's/^/| /' conftest.$ac_ext >&5
14106
b4e70030
JB
14107ac_hi=`expr '(' $ac_mid ')' - 1`
14108 if test $ac_mid -le $ac_hi; then
14109 ac_lo= ac_hi=
14110 break
14111 fi
14112 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 14113fi
4e8d927d
DJ
14114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14115 done
14116else
14117 echo "$as_me: failed program was:" >&5
14118sed 's/^/| /' conftest.$ac_ext >&5
14119
b4e70030 14120ac_lo= ac_hi=
4e8d927d 14121fi
4e8d927d
DJ
14122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14123fi
4e8d927d
DJ
14124rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14125# Binary search between lo and hi bounds.
14126while test "x$ac_lo" != "x$ac_hi"; do
14127 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14128 cat >conftest.$ac_ext <<_ACEOF
14129/* confdefs.h. */
14130_ACEOF
14131cat confdefs.h >>conftest.$ac_ext
14132cat >>conftest.$ac_ext <<_ACEOF
14133/* end confdefs.h. */
14134$ac_includes_default
4e8d927d
DJ
14135int
14136main ()
14137{
b4e70030 14138static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4e8d927d
DJ
14139test_array [0] = 0
14140
14141 ;
14142 return 0;
14143}
14144_ACEOF
14145rm -f conftest.$ac_objext
14146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14147 (eval $ac_compile) 2>conftest.er1
14148 ac_status=$?
14149 grep -v '^ *+' conftest.er1 >conftest.err
14150 rm -f conftest.er1
14151 cat conftest.err >&5
14152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153 (exit $ac_status); } &&
b4e70030
JB
14154 { ac_try='test -z "$ac_c_werror_flag"
14155 || test ! -s conftest.err'
4e8d927d
DJ
14156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14157 (eval $ac_try) 2>&5
14158 ac_status=$?
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); }; } &&
14161 { ac_try='test -s conftest.$ac_objext'
14162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14163 (eval $ac_try) 2>&5
14164 ac_status=$?
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); }; }; then
14167 ac_hi=$ac_mid
14168else
14169 echo "$as_me: failed program was:" >&5
14170sed 's/^/| /' conftest.$ac_ext >&5
14171
b4e70030 14172ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 14173fi
4e8d927d
DJ
14174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14175done
14176case $ac_lo in
14177?*) ac_cv_sizeof_char=$ac_lo;;
b4e70030 14178'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4e8d927d 14179See \`config.log' for more details." >&5
b4e70030 14180echo "$as_me: error: cannot compute sizeof (char), 77
4e8d927d 14181See \`config.log' for more details." >&2;}
b4e70030 14182 { (exit 1); exit 1; }; } ;;
4e8d927d 14183esac
b4e70030
JB
14184else
14185 if test "$cross_compiling" = yes; then
14186 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14187See \`config.log' for more details." >&5
14188echo "$as_me: error: cannot run test program while cross compiling
14189See \`config.log' for more details." >&2;}
14190 { (exit 1); exit 1; }; }
4e8d927d
DJ
14191else
14192 cat >conftest.$ac_ext <<_ACEOF
14193/* confdefs.h. */
14194_ACEOF
14195cat confdefs.h >>conftest.$ac_ext
14196cat >>conftest.$ac_ext <<_ACEOF
14197/* end confdefs.h. */
14198$ac_includes_default
b4e70030
JB
14199long longval () { return (long) (sizeof (char)); }
14200unsigned long ulongval () { return (long) (sizeof (char)); }
4e8d927d
DJ
14201#include <stdio.h>
14202#include <stdlib.h>
14203int
14204main ()
14205{
14206
14207 FILE *f = fopen ("conftest.val", "w");
14208 if (! f)
b4e70030
JB
14209 exit (1);
14210 if (((long) (sizeof (char))) < 0)
4e8d927d 14211 {
b4e70030
JB
14212 long i = longval ();
14213 if (i != ((long) (sizeof (char))))
14214 exit (1);
4e8d927d
DJ
14215 fprintf (f, "%ld\n", i);
14216 }
14217 else
14218 {
b4e70030
JB
14219 unsigned long i = ulongval ();
14220 if (i != ((long) (sizeof (char))))
14221 exit (1);
4e8d927d
DJ
14222 fprintf (f, "%lu\n", i);
14223 }
b4e70030 14224 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
14225
14226 ;
14227 return 0;
14228}
14229_ACEOF
14230rm -f conftest$ac_exeext
14231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14232 (eval $ac_link) 2>&5
14233 ac_status=$?
14234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14235 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14237 (eval $ac_try) 2>&5
14238 ac_status=$?
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); }; }; then
14241 ac_cv_sizeof_char=`cat conftest.val`
14242else
14243 echo "$as_me: program exited with status $ac_status" >&5
14244echo "$as_me: failed program was:" >&5
14245sed 's/^/| /' conftest.$ac_ext >&5
14246
14247( exit $ac_status )
b4e70030 14248{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4e8d927d 14249See \`config.log' for more details." >&5
b4e70030 14250echo "$as_me: error: cannot compute sizeof (char), 77
4e8d927d 14251See \`config.log' for more details." >&2;}
b4e70030
JB
14252 { (exit 1); exit 1; }; }
14253fi
14254rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 14255fi
4e8d927d
DJ
14256fi
14257rm -f conftest.val
14258else
14259 ac_cv_sizeof_char=0
14260fi
14261fi
b4e70030
JB
14262echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14263echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4e8d927d
DJ
14264cat >>confdefs.h <<_ACEOF
14265#define SIZEOF_CHAR $ac_cv_sizeof_char
14266_ACEOF
14267
14268
14269
b4e70030
JB
14270 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
14271echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
4e8d927d
DJ
14272 case "$ac_cv_sizeof_char" in
14273 1) acx_cv_type_int8_t=char ;;
14274 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
14275echo "$as_me: error: no 8-bit type" >&2;}
14276 { (exit please report a bug); exit please report a bug; }; }
14277 esac
b4e70030
JB
14278 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
14279echo "${ECHO_T}$acx_cv_type_int8_t" >&6
4e8d927d 14280
b4e70030
JB
14281 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
14282echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
4e8d927d
DJ
14283 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
14284 2:*) acx_cv_type_int16_t=int ;;
14285 *:2) acx_cv_type_int16_t=short ;;
14286 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
14287echo "$as_me: error: no 16-bit type" >&2;}
14288 { (exit please report a bug); exit please report a bug; }; }
14289 esac
b4e70030
JB
14290 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
14291echo "${ECHO_T}$acx_cv_type_int16_t" >&6
4e8d927d 14292
b4e70030
JB
14293 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
14294echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
4e8d927d
DJ
14295 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
14296 4:*) acx_cv_type_int32_t=int ;;
14297 *:4) acx_cv_type_int32_t=long ;;
14298 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
14299echo "$as_me: error: no 32-bit type" >&2;}
14300 { (exit please report a bug); exit please report a bug; }; }
14301 esac
b4e70030
JB
14302 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
14303echo "${ECHO_T}$acx_cv_type_int32_t" >&6
4e8d927d
DJ
14304fi
14305
14306# These tests are here to make the output prettier
14307
14308if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
14309 case "$ac_cv_sizeof_long" in
14310 8) acx_cv_type_int64_t=long ;;
14311 esac
b4e70030
JB
14312 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
14313echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
14314 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
14315echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
4e8d927d
DJ
14316fi
14317
14318# Now we can use the above types
14319
14320if test "$ac_cv_type_uintptr_t" != yes; then
b4e70030
JB
14321 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
14322echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
4e8d927d
DJ
14323 case $ac_cv_sizeof_void_p in
14324 2) acx_cv_type_intptr_t=int16_t ;;
14325 4) acx_cv_type_intptr_t=int32_t ;;
14326 8) acx_cv_type_intptr_t=int64_t ;;
14327 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
14328echo "$as_me: error: no equivalent for intptr_t" >&2;}
14329 { (exit please report a bug); exit please report a bug; }; }
14330 esac
b4e70030
JB
14331 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
14332echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
4e8d927d
DJ
14333fi
14334
14335# ----------------- done all checks, emit header -------------
b4e70030 14336 ac_config_commands="$ac_config_commands gdb_stdint.h"
4e8d927d
DJ
14337
14338
14339
14340
14341# ------------------------- #
14342# Checks for declarations. #
14343# ------------------------- #
14344
b4e70030
JB
14345echo "$as_me:$LINENO: checking whether free is declared" >&5
14346echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
4e8d927d
DJ
14347if test "${ac_cv_have_decl_free+set}" = set; then
14348 echo $ECHO_N "(cached) $ECHO_C" >&6
14349else
14350 cat >conftest.$ac_ext <<_ACEOF
14351/* confdefs.h. */
14352_ACEOF
14353cat confdefs.h >>conftest.$ac_ext
14354cat >>conftest.$ac_ext <<_ACEOF
14355/* end confdefs.h. */
14356$ac_includes_default
14357int
14358main ()
14359{
14360#ifndef free
14361 char *p = (char *) free;
4e8d927d
DJ
14362#endif
14363
14364 ;
14365 return 0;
14366}
14367_ACEOF
14368rm -f conftest.$ac_objext
14369if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14370 (eval $ac_compile) 2>conftest.er1
14371 ac_status=$?
14372 grep -v '^ *+' conftest.er1 >conftest.err
14373 rm -f conftest.er1
14374 cat conftest.err >&5
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); } &&
b4e70030
JB
14377 { ac_try='test -z "$ac_c_werror_flag"
14378 || test ! -s conftest.err'
4e8d927d
DJ
14379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14380 (eval $ac_try) 2>&5
14381 ac_status=$?
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); }; } &&
14384 { ac_try='test -s conftest.$ac_objext'
14385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14386 (eval $ac_try) 2>&5
14387 ac_status=$?
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); }; }; then
14390 ac_cv_have_decl_free=yes
14391else
14392 echo "$as_me: failed program was:" >&5
14393sed 's/^/| /' conftest.$ac_ext >&5
14394
b4e70030 14395ac_cv_have_decl_free=no
4e8d927d 14396fi
4e8d927d
DJ
14397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14398fi
b4e70030
JB
14399echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
14400echo "${ECHO_T}$ac_cv_have_decl_free" >&6
4e8d927d
DJ
14401if test $ac_cv_have_decl_free = yes; then
14402
14403cat >>confdefs.h <<_ACEOF
14404#define HAVE_DECL_FREE 1
14405_ACEOF
14406
14407
14408else
14409 cat >>confdefs.h <<_ACEOF
14410#define HAVE_DECL_FREE 0
14411_ACEOF
14412
14413
14414fi
b4e70030
JB
14415echo "$as_me:$LINENO: checking whether malloc is declared" >&5
14416echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
4e8d927d
DJ
14417if test "${ac_cv_have_decl_malloc+set}" = set; then
14418 echo $ECHO_N "(cached) $ECHO_C" >&6
14419else
14420 cat >conftest.$ac_ext <<_ACEOF
14421/* confdefs.h. */
14422_ACEOF
14423cat confdefs.h >>conftest.$ac_ext
14424cat >>conftest.$ac_ext <<_ACEOF
14425/* end confdefs.h. */
14426$ac_includes_default
14427int
14428main ()
14429{
14430#ifndef malloc
14431 char *p = (char *) malloc;
4e8d927d
DJ
14432#endif
14433
14434 ;
14435 return 0;
14436}
14437_ACEOF
14438rm -f conftest.$ac_objext
14439if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14440 (eval $ac_compile) 2>conftest.er1
14441 ac_status=$?
14442 grep -v '^ *+' conftest.er1 >conftest.err
14443 rm -f conftest.er1
14444 cat conftest.err >&5
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); } &&
b4e70030
JB
14447 { ac_try='test -z "$ac_c_werror_flag"
14448 || test ! -s conftest.err'
4e8d927d
DJ
14449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14450 (eval $ac_try) 2>&5
14451 ac_status=$?
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); }; } &&
14454 { ac_try='test -s conftest.$ac_objext'
14455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14456 (eval $ac_try) 2>&5
14457 ac_status=$?
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); }; }; then
14460 ac_cv_have_decl_malloc=yes
14461else
14462 echo "$as_me: failed program was:" >&5
14463sed 's/^/| /' conftest.$ac_ext >&5
14464
b4e70030 14465ac_cv_have_decl_malloc=no
4e8d927d 14466fi
4e8d927d
DJ
14467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14468fi
b4e70030
JB
14469echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
14470echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
4e8d927d
DJ
14471if test $ac_cv_have_decl_malloc = yes; then
14472
14473cat >>confdefs.h <<_ACEOF
14474#define HAVE_DECL_MALLOC 1
14475_ACEOF
14476
14477
14478else
14479 cat >>confdefs.h <<_ACEOF
14480#define HAVE_DECL_MALLOC 0
14481_ACEOF
14482
14483
14484fi
b4e70030
JB
14485echo "$as_me:$LINENO: checking whether realloc is declared" >&5
14486echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
4e8d927d
DJ
14487if test "${ac_cv_have_decl_realloc+set}" = set; then
14488 echo $ECHO_N "(cached) $ECHO_C" >&6
14489else
14490 cat >conftest.$ac_ext <<_ACEOF
14491/* confdefs.h. */
14492_ACEOF
14493cat confdefs.h >>conftest.$ac_ext
14494cat >>conftest.$ac_ext <<_ACEOF
14495/* end confdefs.h. */
14496$ac_includes_default
14497int
14498main ()
14499{
14500#ifndef realloc
14501 char *p = (char *) realloc;
4e8d927d
DJ
14502#endif
14503
14504 ;
14505 return 0;
14506}
14507_ACEOF
14508rm -f conftest.$ac_objext
14509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14510 (eval $ac_compile) 2>conftest.er1
14511 ac_status=$?
14512 grep -v '^ *+' conftest.er1 >conftest.err
14513 rm -f conftest.er1
14514 cat conftest.err >&5
14515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14516 (exit $ac_status); } &&
b4e70030
JB
14517 { ac_try='test -z "$ac_c_werror_flag"
14518 || test ! -s conftest.err'
4e8d927d
DJ
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); }; } &&
14524 { ac_try='test -s conftest.$ac_objext'
14525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14526 (eval $ac_try) 2>&5
14527 ac_status=$?
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); }; }; then
14530 ac_cv_have_decl_realloc=yes
14531else
14532 echo "$as_me: failed program was:" >&5
14533sed 's/^/| /' conftest.$ac_ext >&5
14534
b4e70030 14535ac_cv_have_decl_realloc=no
4e8d927d 14536fi
4e8d927d
DJ
14537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14538fi
b4e70030
JB
14539echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
14540echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
4e8d927d
DJ
14541if test $ac_cv_have_decl_realloc = yes; then
14542
14543cat >>confdefs.h <<_ACEOF
14544#define HAVE_DECL_REALLOC 1
14545_ACEOF
14546
14547
14548else
14549 cat >>confdefs.h <<_ACEOF
14550#define HAVE_DECL_REALLOC 0
14551_ACEOF
14552
14553
14554fi
14555
14556
b4e70030
JB
14557echo "$as_me:$LINENO: checking whether strerror is declared" >&5
14558echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
4e8d927d
DJ
14559if test "${ac_cv_have_decl_strerror+set}" = set; then
14560 echo $ECHO_N "(cached) $ECHO_C" >&6
14561else
14562 cat >conftest.$ac_ext <<_ACEOF
14563/* confdefs.h. */
14564_ACEOF
14565cat confdefs.h >>conftest.$ac_ext
14566cat >>conftest.$ac_ext <<_ACEOF
14567/* end confdefs.h. */
14568$ac_includes_default
14569int
14570main ()
14571{
14572#ifndef strerror
14573 char *p = (char *) strerror;
4e8d927d
DJ
14574#endif
14575
14576 ;
14577 return 0;
14578}
14579_ACEOF
14580rm -f conftest.$ac_objext
14581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14582 (eval $ac_compile) 2>conftest.er1
14583 ac_status=$?
14584 grep -v '^ *+' conftest.er1 >conftest.err
14585 rm -f conftest.er1
14586 cat conftest.err >&5
14587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588 (exit $ac_status); } &&
b4e70030
JB
14589 { ac_try='test -z "$ac_c_werror_flag"
14590 || test ! -s conftest.err'
4e8d927d
DJ
14591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14592 (eval $ac_try) 2>&5
14593 ac_status=$?
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); }; } &&
14596 { ac_try='test -s conftest.$ac_objext'
14597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14598 (eval $ac_try) 2>&5
14599 ac_status=$?
14600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14601 (exit $ac_status); }; }; then
14602 ac_cv_have_decl_strerror=yes
14603else
14604 echo "$as_me: failed program was:" >&5
14605sed 's/^/| /' conftest.$ac_ext >&5
14606
b4e70030 14607ac_cv_have_decl_strerror=no
4e8d927d 14608fi
4e8d927d
DJ
14609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14610fi
b4e70030
JB
14611echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
14612echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
4e8d927d
DJ
14613if test $ac_cv_have_decl_strerror = yes; then
14614
14615cat >>confdefs.h <<_ACEOF
14616#define HAVE_DECL_STRERROR 1
14617_ACEOF
14618
14619
14620else
14621 cat >>confdefs.h <<_ACEOF
14622#define HAVE_DECL_STRERROR 0
14623_ACEOF
14624
14625
14626fi
b4e70030
JB
14627echo "$as_me:$LINENO: checking whether strstr is declared" >&5
14628echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
4e8d927d
DJ
14629if test "${ac_cv_have_decl_strstr+set}" = set; then
14630 echo $ECHO_N "(cached) $ECHO_C" >&6
14631else
14632 cat >conftest.$ac_ext <<_ACEOF
14633/* confdefs.h. */
14634_ACEOF
14635cat confdefs.h >>conftest.$ac_ext
14636cat >>conftest.$ac_ext <<_ACEOF
14637/* end confdefs.h. */
14638$ac_includes_default
14639int
14640main ()
14641{
14642#ifndef strstr
14643 char *p = (char *) strstr;
4e8d927d
DJ
14644#endif
14645
14646 ;
14647 return 0;
14648}
14649_ACEOF
14650rm -f conftest.$ac_objext
14651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14652 (eval $ac_compile) 2>conftest.er1
14653 ac_status=$?
14654 grep -v '^ *+' conftest.er1 >conftest.err
14655 rm -f conftest.er1
14656 cat conftest.err >&5
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); } &&
b4e70030
JB
14659 { ac_try='test -z "$ac_c_werror_flag"
14660 || test ! -s conftest.err'
4e8d927d
DJ
14661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14662 (eval $ac_try) 2>&5
14663 ac_status=$?
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); }; } &&
14666 { ac_try='test -s conftest.$ac_objext'
14667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14668 (eval $ac_try) 2>&5
14669 ac_status=$?
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); }; }; then
14672 ac_cv_have_decl_strstr=yes
14673else
14674 echo "$as_me: failed program was:" >&5
14675sed 's/^/| /' conftest.$ac_ext >&5
14676
b4e70030 14677ac_cv_have_decl_strstr=no
4e8d927d 14678fi
4e8d927d
DJ
14679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14680fi
b4e70030
JB
14681echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
14682echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
4e8d927d
DJ
14683if test $ac_cv_have_decl_strstr = yes; then
14684
14685cat >>confdefs.h <<_ACEOF
14686#define HAVE_DECL_STRSTR 1
14687_ACEOF
14688
14689
14690else
14691 cat >>confdefs.h <<_ACEOF
14692#define HAVE_DECL_STRSTR 0
14693_ACEOF
14694
14695
14696fi
14697
14698
b4e70030
JB
14699echo "$as_me:$LINENO: checking whether getopt is declared" >&5
14700echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
4e8d927d
DJ
14701if test "${ac_cv_have_decl_getopt+set}" = set; then
14702 echo $ECHO_N "(cached) $ECHO_C" >&6
14703else
14704 cat >conftest.$ac_ext <<_ACEOF
14705/* confdefs.h. */
14706_ACEOF
14707cat confdefs.h >>conftest.$ac_ext
14708cat >>conftest.$ac_ext <<_ACEOF
14709/* end confdefs.h. */
14710$ac_includes_default
14711int
14712main ()
14713{
14714#ifndef getopt
14715 char *p = (char *) getopt;
4e8d927d
DJ
14716#endif
14717
14718 ;
14719 return 0;
14720}
14721_ACEOF
14722rm -f conftest.$ac_objext
14723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14724 (eval $ac_compile) 2>conftest.er1
14725 ac_status=$?
14726 grep -v '^ *+' conftest.er1 >conftest.err
14727 rm -f conftest.er1
14728 cat conftest.err >&5
14729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730 (exit $ac_status); } &&
b4e70030
JB
14731 { ac_try='test -z "$ac_c_werror_flag"
14732 || test ! -s conftest.err'
4e8d927d
DJ
14733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14734 (eval $ac_try) 2>&5
14735 ac_status=$?
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); }; } &&
14738 { ac_try='test -s conftest.$ac_objext'
14739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14740 (eval $ac_try) 2>&5
14741 ac_status=$?
14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); }; }; then
14744 ac_cv_have_decl_getopt=yes
14745else
14746 echo "$as_me: failed program was:" >&5
14747sed 's/^/| /' conftest.$ac_ext >&5
14748
b4e70030 14749ac_cv_have_decl_getopt=no
4e8d927d 14750fi
4e8d927d
DJ
14751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14752fi
b4e70030
JB
14753echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
14754echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
4e8d927d
DJ
14755if test $ac_cv_have_decl_getopt = yes; then
14756
14757cat >>confdefs.h <<_ACEOF
14758#define HAVE_DECL_GETOPT 1
14759_ACEOF
14760
14761
14762else
14763 cat >>confdefs.h <<_ACEOF
14764#define HAVE_DECL_GETOPT 0
14765_ACEOF
14766
14767
14768fi
b4e70030
JB
14769echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
14770echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
4e8d927d
DJ
14771if test "${ac_cv_have_decl_snprintf+set}" = set; then
14772 echo $ECHO_N "(cached) $ECHO_C" >&6
14773else
14774 cat >conftest.$ac_ext <<_ACEOF
14775/* confdefs.h. */
14776_ACEOF
14777cat confdefs.h >>conftest.$ac_ext
14778cat >>conftest.$ac_ext <<_ACEOF
14779/* end confdefs.h. */
14780$ac_includes_default
14781int
14782main ()
14783{
14784#ifndef snprintf
14785 char *p = (char *) snprintf;
4e8d927d
DJ
14786#endif
14787
14788 ;
14789 return 0;
14790}
14791_ACEOF
14792rm -f conftest.$ac_objext
14793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14794 (eval $ac_compile) 2>conftest.er1
14795 ac_status=$?
14796 grep -v '^ *+' conftest.er1 >conftest.err
14797 rm -f conftest.er1
14798 cat conftest.err >&5
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); } &&
b4e70030
JB
14801 { ac_try='test -z "$ac_c_werror_flag"
14802 || test ! -s conftest.err'
4e8d927d
DJ
14803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14804 (eval $ac_try) 2>&5
14805 ac_status=$?
14806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); }; } &&
14808 { ac_try='test -s conftest.$ac_objext'
14809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14810 (eval $ac_try) 2>&5
14811 ac_status=$?
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); }; }; then
14814 ac_cv_have_decl_snprintf=yes
14815else
14816 echo "$as_me: failed program was:" >&5
14817sed 's/^/| /' conftest.$ac_ext >&5
14818
b4e70030 14819ac_cv_have_decl_snprintf=no
4e8d927d 14820fi
4e8d927d
DJ
14821rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14822fi
b4e70030
JB
14823echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
14824echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
4e8d927d
DJ
14825if test $ac_cv_have_decl_snprintf = yes; then
14826
14827cat >>confdefs.h <<_ACEOF
14828#define HAVE_DECL_SNPRINTF 1
14829_ACEOF
14830
14831
14832else
14833 cat >>confdefs.h <<_ACEOF
14834#define HAVE_DECL_SNPRINTF 0
14835_ACEOF
14836
14837
14838fi
b4e70030
JB
14839echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
14840echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
4e8d927d
DJ
14841if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
14842 echo $ECHO_N "(cached) $ECHO_C" >&6
14843else
14844 cat >conftest.$ac_ext <<_ACEOF
14845/* confdefs.h. */
14846_ACEOF
14847cat confdefs.h >>conftest.$ac_ext
14848cat >>conftest.$ac_ext <<_ACEOF
14849/* end confdefs.h. */
14850$ac_includes_default
14851int
14852main ()
14853{
14854#ifndef vsnprintf
14855 char *p = (char *) vsnprintf;
4e8d927d
DJ
14856#endif
14857
14858 ;
14859 return 0;
14860}
14861_ACEOF
14862rm -f conftest.$ac_objext
14863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14864 (eval $ac_compile) 2>conftest.er1
14865 ac_status=$?
14866 grep -v '^ *+' conftest.er1 >conftest.err
14867 rm -f conftest.er1
14868 cat conftest.err >&5
14869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14870 (exit $ac_status); } &&
b4e70030
JB
14871 { ac_try='test -z "$ac_c_werror_flag"
14872 || test ! -s conftest.err'
4e8d927d
DJ
14873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14874 (eval $ac_try) 2>&5
14875 ac_status=$?
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); }; } &&
14878 { ac_try='test -s conftest.$ac_objext'
14879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14880 (eval $ac_try) 2>&5
14881 ac_status=$?
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); }; }; then
14884 ac_cv_have_decl_vsnprintf=yes
14885else
14886 echo "$as_me: failed program was:" >&5
14887sed 's/^/| /' conftest.$ac_ext >&5
14888
b4e70030 14889ac_cv_have_decl_vsnprintf=no
4e8d927d 14890fi
4e8d927d
DJ
14891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14892fi
b4e70030
JB
14893echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
14894echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
4e8d927d
DJ
14895if test $ac_cv_have_decl_vsnprintf = yes; then
14896
14897cat >>confdefs.h <<_ACEOF
14898#define HAVE_DECL_VSNPRINTF 1
14899_ACEOF
14900
14901
14902else
14903 cat >>confdefs.h <<_ACEOF
14904#define HAVE_DECL_VSNPRINTF 0
14905_ACEOF
14906
14907
14908fi
14909
14910
14911
14912# ----------------------- #
14913# Checks for structures. #
14914# ----------------------- #
14915
b4e70030
JB
14916echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14917echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
4e8d927d
DJ
14918if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14919 echo $ECHO_N "(cached) $ECHO_C" >&6
14920else
14921 cat >conftest.$ac_ext <<_ACEOF
14922/* confdefs.h. */
14923_ACEOF
14924cat confdefs.h >>conftest.$ac_ext
14925cat >>conftest.$ac_ext <<_ACEOF
14926/* end confdefs.h. */
14927$ac_includes_default
14928int
14929main ()
14930{
14931static struct stat ac_aggr;
14932if (ac_aggr.st_blocks)
14933return 0;
14934 ;
14935 return 0;
14936}
14937_ACEOF
14938rm -f conftest.$ac_objext
14939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14940 (eval $ac_compile) 2>conftest.er1
14941 ac_status=$?
14942 grep -v '^ *+' conftest.er1 >conftest.err
14943 rm -f conftest.er1
14944 cat conftest.err >&5
14945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946 (exit $ac_status); } &&
b4e70030
JB
14947 { ac_try='test -z "$ac_c_werror_flag"
14948 || test ! -s conftest.err'
4e8d927d
DJ
14949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14950 (eval $ac_try) 2>&5
14951 ac_status=$?
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); }; } &&
14954 { ac_try='test -s conftest.$ac_objext'
14955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14956 (eval $ac_try) 2>&5
14957 ac_status=$?
14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 (exit $ac_status); }; }; then
14960 ac_cv_member_struct_stat_st_blocks=yes
14961else
14962 echo "$as_me: failed program was:" >&5
14963sed 's/^/| /' conftest.$ac_ext >&5
14964
b4e70030 14965cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
14966/* confdefs.h. */
14967_ACEOF
14968cat confdefs.h >>conftest.$ac_ext
14969cat >>conftest.$ac_ext <<_ACEOF
14970/* end confdefs.h. */
14971$ac_includes_default
14972int
14973main ()
14974{
14975static struct stat ac_aggr;
14976if (sizeof ac_aggr.st_blocks)
14977return 0;
14978 ;
14979 return 0;
14980}
14981_ACEOF
14982rm -f conftest.$ac_objext
14983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14984 (eval $ac_compile) 2>conftest.er1
14985 ac_status=$?
14986 grep -v '^ *+' conftest.er1 >conftest.err
14987 rm -f conftest.er1
14988 cat conftest.err >&5
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); } &&
b4e70030
JB
14991 { ac_try='test -z "$ac_c_werror_flag"
14992 || test ! -s conftest.err'
4e8d927d
DJ
14993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14994 (eval $ac_try) 2>&5
14995 ac_status=$?
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); }; } &&
14998 { ac_try='test -s conftest.$ac_objext'
14999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15000 (eval $ac_try) 2>&5
15001 ac_status=$?
15002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003 (exit $ac_status); }; }; then
15004 ac_cv_member_struct_stat_st_blocks=yes
15005else
15006 echo "$as_me: failed program was:" >&5
15007sed 's/^/| /' conftest.$ac_ext >&5
15008
b4e70030 15009ac_cv_member_struct_stat_st_blocks=no
4e8d927d 15010fi
4e8d927d
DJ
15011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15012fi
4e8d927d
DJ
15013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15014fi
b4e70030
JB
15015echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
15016echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
4e8d927d
DJ
15017if test $ac_cv_member_struct_stat_st_blocks = yes; then
15018
15019cat >>confdefs.h <<_ACEOF
15020#define HAVE_STRUCT_STAT_ST_BLOCKS 1
15021_ACEOF
15022
15023
15024fi
15025
b4e70030
JB
15026echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
15027echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
4e8d927d
DJ
15028if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
15029 echo $ECHO_N "(cached) $ECHO_C" >&6
15030else
15031 cat >conftest.$ac_ext <<_ACEOF
15032/* confdefs.h. */
15033_ACEOF
15034cat confdefs.h >>conftest.$ac_ext
15035cat >>conftest.$ac_ext <<_ACEOF
15036/* end confdefs.h. */
15037$ac_includes_default
15038int
15039main ()
15040{
15041static struct stat ac_aggr;
15042if (ac_aggr.st_blksize)
15043return 0;
15044 ;
15045 return 0;
15046}
15047_ACEOF
15048rm -f conftest.$ac_objext
15049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15050 (eval $ac_compile) 2>conftest.er1
15051 ac_status=$?
15052 grep -v '^ *+' conftest.er1 >conftest.err
15053 rm -f conftest.er1
15054 cat conftest.err >&5
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); } &&
b4e70030
JB
15057 { ac_try='test -z "$ac_c_werror_flag"
15058 || test ! -s conftest.err'
4e8d927d
DJ
15059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15060 (eval $ac_try) 2>&5
15061 ac_status=$?
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); }; } &&
15064 { ac_try='test -s conftest.$ac_objext'
15065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15066 (eval $ac_try) 2>&5
15067 ac_status=$?
15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 (exit $ac_status); }; }; then
15070 ac_cv_member_struct_stat_st_blksize=yes
15071else
15072 echo "$as_me: failed program was:" >&5
15073sed 's/^/| /' conftest.$ac_ext >&5
15074
b4e70030 15075cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
15076/* confdefs.h. */
15077_ACEOF
15078cat confdefs.h >>conftest.$ac_ext
15079cat >>conftest.$ac_ext <<_ACEOF
15080/* end confdefs.h. */
15081$ac_includes_default
15082int
15083main ()
15084{
15085static struct stat ac_aggr;
15086if (sizeof ac_aggr.st_blksize)
15087return 0;
15088 ;
15089 return 0;
15090}
15091_ACEOF
15092rm -f conftest.$ac_objext
15093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15094 (eval $ac_compile) 2>conftest.er1
15095 ac_status=$?
15096 grep -v '^ *+' conftest.er1 >conftest.err
15097 rm -f conftest.er1
15098 cat conftest.err >&5
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); } &&
b4e70030
JB
15101 { ac_try='test -z "$ac_c_werror_flag"
15102 || test ! -s conftest.err'
4e8d927d
DJ
15103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15104 (eval $ac_try) 2>&5
15105 ac_status=$?
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); }; } &&
15108 { ac_try='test -s conftest.$ac_objext'
15109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15110 (eval $ac_try) 2>&5
15111 ac_status=$?
15112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15113 (exit $ac_status); }; }; then
15114 ac_cv_member_struct_stat_st_blksize=yes
15115else
15116 echo "$as_me: failed program was:" >&5
15117sed 's/^/| /' conftest.$ac_ext >&5
15118
b4e70030 15119ac_cv_member_struct_stat_st_blksize=no
4e8d927d 15120fi
4e8d927d
DJ
15121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15122fi
4e8d927d
DJ
15123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15124fi
b4e70030
JB
15125echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
15126echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
4e8d927d
DJ
15127if test $ac_cv_member_struct_stat_st_blksize = yes; then
15128
15129cat >>confdefs.h <<_ACEOF
15130#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
15131_ACEOF
15132
15133
15134fi
15135
15136
15137# ------------------ #
15138# Checks for types. #
15139# ------------------ #
15140
b4e70030
JB
15141echo "$as_me:$LINENO: checking return type of signal handlers" >&5
15142echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4e8d927d
DJ
15143if test "${ac_cv_type_signal+set}" = set; then
15144 echo $ECHO_N "(cached) $ECHO_C" >&6
15145else
15146 cat >conftest.$ac_ext <<_ACEOF
15147/* confdefs.h. */
15148_ACEOF
15149cat confdefs.h >>conftest.$ac_ext
15150cat >>conftest.$ac_ext <<_ACEOF
15151/* end confdefs.h. */
15152#include <sys/types.h>
15153#include <signal.h>
b4e70030
JB
15154#ifdef signal
15155# undef signal
15156#endif
15157#ifdef __cplusplus
15158extern "C" void (*signal (int, void (*)(int)))(int);
15159#else
15160void (*signal ()) ();
15161#endif
4e8d927d
DJ
15162
15163int
15164main ()
15165{
b4e70030 15166int i;
4e8d927d
DJ
15167 ;
15168 return 0;
15169}
15170_ACEOF
15171rm -f conftest.$ac_objext
15172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15173 (eval $ac_compile) 2>conftest.er1
15174 ac_status=$?
15175 grep -v '^ *+' conftest.er1 >conftest.err
15176 rm -f conftest.er1
15177 cat conftest.err >&5
15178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179 (exit $ac_status); } &&
b4e70030
JB
15180 { ac_try='test -z "$ac_c_werror_flag"
15181 || test ! -s conftest.err'
4e8d927d
DJ
15182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15183 (eval $ac_try) 2>&5
15184 ac_status=$?
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); }; } &&
15187 { ac_try='test -s conftest.$ac_objext'
15188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15189 (eval $ac_try) 2>&5
15190 ac_status=$?
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); }; }; then
b4e70030 15193 ac_cv_type_signal=void
4e8d927d
DJ
15194else
15195 echo "$as_me: failed program was:" >&5
15196sed 's/^/| /' conftest.$ac_ext >&5
15197
b4e70030 15198ac_cv_type_signal=int
4e8d927d 15199fi
4e8d927d
DJ
15200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15201fi
b4e70030
JB
15202echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
15203echo "${ECHO_T}$ac_cv_type_signal" >&6
4e8d927d
DJ
15204
15205cat >>confdefs.h <<_ACEOF
15206#define RETSIGTYPE $ac_cv_type_signal
15207_ACEOF
15208
15209
b4e70030
JB
15210echo "$as_me:$LINENO: checking for socklen_t" >&5
15211echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
4e8d927d
DJ
15212if test "${ac_cv_type_socklen_t+set}" = set; then
15213 echo $ECHO_N "(cached) $ECHO_C" >&6
15214else
15215 cat >conftest.$ac_ext <<_ACEOF
15216/* confdefs.h. */
15217_ACEOF
15218cat confdefs.h >>conftest.$ac_ext
15219cat >>conftest.$ac_ext <<_ACEOF
15220/* end confdefs.h. */
15221#include <sys/types.h>
15222#include <sys/socket.h>
15223
15224
4e8d927d
DJ
15225int
15226main ()
15227{
b4e70030 15228if ((socklen_t *) 0)
4e8d927d 15229 return 0;
b4e70030 15230if (sizeof (socklen_t))
4e8d927d
DJ
15231 return 0;
15232 ;
15233 return 0;
15234}
15235_ACEOF
15236rm -f conftest.$ac_objext
15237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15238 (eval $ac_compile) 2>conftest.er1
15239 ac_status=$?
15240 grep -v '^ *+' conftest.er1 >conftest.err
15241 rm -f conftest.er1
15242 cat conftest.err >&5
15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); } &&
b4e70030
JB
15245 { ac_try='test -z "$ac_c_werror_flag"
15246 || test ! -s conftest.err'
4e8d927d
DJ
15247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15248 (eval $ac_try) 2>&5
15249 ac_status=$?
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 (exit $ac_status); }; } &&
15252 { ac_try='test -s conftest.$ac_objext'
15253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15254 (eval $ac_try) 2>&5
15255 ac_status=$?
15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); }; }; then
15258 ac_cv_type_socklen_t=yes
15259else
15260 echo "$as_me: failed program was:" >&5
15261sed 's/^/| /' conftest.$ac_ext >&5
15262
b4e70030 15263ac_cv_type_socklen_t=no
4e8d927d 15264fi
4e8d927d
DJ
15265rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15266fi
b4e70030
JB
15267echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
15268echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
4e8d927d
DJ
15269if test $ac_cv_type_socklen_t = yes; then
15270
15271cat >>confdefs.h <<_ACEOF
15272#define HAVE_SOCKLEN_T 1
15273_ACEOF
15274
15275
15276fi
15277
b4e70030
JB
15278echo "$as_me:$LINENO: checking for uintptr_t" >&5
15279echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4e8d927d
DJ
15280if test "${ac_cv_type_uintptr_t+set}" = set; then
15281 echo $ECHO_N "(cached) $ECHO_C" >&6
15282else
15283 cat >conftest.$ac_ext <<_ACEOF
15284/* confdefs.h. */
15285_ACEOF
15286cat confdefs.h >>conftest.$ac_ext
15287cat >>conftest.$ac_ext <<_ACEOF
15288/* end confdefs.h. */
15289#include <stdint.h>
15290
4e8d927d
DJ
15291int
15292main ()
15293{
b4e70030 15294if ((uintptr_t *) 0)
4e8d927d 15295 return 0;
b4e70030 15296if (sizeof (uintptr_t))
4e8d927d
DJ
15297 return 0;
15298 ;
15299 return 0;
15300}
15301_ACEOF
15302rm -f conftest.$ac_objext
15303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15304 (eval $ac_compile) 2>conftest.er1
15305 ac_status=$?
15306 grep -v '^ *+' conftest.er1 >conftest.err
15307 rm -f conftest.er1
15308 cat conftest.err >&5
15309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); } &&
b4e70030
JB
15311 { ac_try='test -z "$ac_c_werror_flag"
15312 || test ! -s conftest.err'
4e8d927d
DJ
15313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15314 (eval $ac_try) 2>&5
15315 ac_status=$?
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); }; } &&
15318 { ac_try='test -s conftest.$ac_objext'
15319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15320 (eval $ac_try) 2>&5
15321 ac_status=$?
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); }; }; then
15324 ac_cv_type_uintptr_t=yes
15325else
15326 echo "$as_me: failed program was:" >&5
15327sed 's/^/| /' conftest.$ac_ext >&5
15328
b4e70030 15329ac_cv_type_uintptr_t=no
4e8d927d 15330fi
4e8d927d
DJ
15331rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15332fi
b4e70030
JB
15333echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
15334echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4e8d927d
DJ
15335if test $ac_cv_type_uintptr_t = yes; then
15336
15337cat >>confdefs.h <<_ACEOF
15338#define HAVE_UINTPTR_T 1
15339_ACEOF
15340
15341
15342fi
15343
15344
15345# ------------------------------------- #
15346# Checks for compiler characteristics. #
15347# ------------------------------------- #
15348
b4e70030
JB
15349echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15350echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4e8d927d
DJ
15351if test "${ac_cv_c_const+set}" = set; then
15352 echo $ECHO_N "(cached) $ECHO_C" >&6
15353else
15354 cat >conftest.$ac_ext <<_ACEOF
15355/* confdefs.h. */
15356_ACEOF
15357cat confdefs.h >>conftest.$ac_ext
15358cat >>conftest.$ac_ext <<_ACEOF
15359/* end confdefs.h. */
15360
15361int
15362main ()
15363{
15364/* FIXME: Include the comments suggested by Paul. */
15365#ifndef __cplusplus
15366 /* Ultrix mips cc rejects this. */
15367 typedef int charset[2];
15368 const charset x;
15369 /* SunOS 4.1.1 cc rejects this. */
15370 char const *const *ccp;
15371 char **p;
15372 /* NEC SVR4.0.2 mips cc rejects this. */
15373 struct point {int x, y;};
15374 static struct point const zero = {0,0};
15375 /* AIX XL C 1.02.0.0 rejects this.
15376 It does not let you subtract one const X* pointer from another in
15377 an arm of an if-expression whose if-part is not a constant
15378 expression */
15379 const char *g = "string";
15380 ccp = &g + (g ? g-g : 0);
15381 /* HPUX 7.0 cc rejects these. */
15382 ++ccp;
15383 p = (char**) ccp;
15384 ccp = (char const *const *) p;
15385 { /* SCO 3.2v4 cc rejects this. */
15386 char *t;
15387 char const *s = 0 ? (char *) 0 : (char const *) 0;
15388
15389 *t++ = 0;
4e8d927d
DJ
15390 }
15391 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15392 int x[] = {25, 17};
15393 const int *foo = &x[0];
15394 ++foo;
15395 }
15396 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15397 typedef const int *iptr;
15398 iptr p = 0;
15399 ++p;
15400 }
15401 { /* AIX XL C 1.02.0.0 rejects this saying
15402 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15403 struct s { int j; const int *ap[3]; };
15404 struct s *b; b->j = 5;
15405 }
15406 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15407 const int foo = 10;
4e8d927d 15408 }
4e8d927d
DJ
15409#endif
15410
15411 ;
15412 return 0;
15413}
15414_ACEOF
15415rm -f conftest.$ac_objext
15416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15417 (eval $ac_compile) 2>conftest.er1
15418 ac_status=$?
15419 grep -v '^ *+' conftest.er1 >conftest.err
15420 rm -f conftest.er1
15421 cat conftest.err >&5
15422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); } &&
b4e70030
JB
15424 { ac_try='test -z "$ac_c_werror_flag"
15425 || test ! -s conftest.err'
4e8d927d
DJ
15426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15427 (eval $ac_try) 2>&5
15428 ac_status=$?
15429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15430 (exit $ac_status); }; } &&
15431 { ac_try='test -s conftest.$ac_objext'
15432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15433 (eval $ac_try) 2>&5
15434 ac_status=$?
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); }; }; then
15437 ac_cv_c_const=yes
15438else
15439 echo "$as_me: failed program was:" >&5
15440sed 's/^/| /' conftest.$ac_ext >&5
15441
b4e70030 15442ac_cv_c_const=no
4e8d927d 15443fi
4e8d927d
DJ
15444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15445fi
b4e70030
JB
15446echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15447echo "${ECHO_T}$ac_cv_c_const" >&6
4e8d927d
DJ
15448if test $ac_cv_c_const = no; then
15449
15450cat >>confdefs.h <<\_ACEOF
15451#define const
15452_ACEOF
15453
15454fi
15455
b4e70030
JB
15456echo "$as_me:$LINENO: checking for inline" >&5
15457echo $ECHO_N "checking for inline... $ECHO_C" >&6
4e8d927d
DJ
15458if test "${ac_cv_c_inline+set}" = set; then
15459 echo $ECHO_N "(cached) $ECHO_C" >&6
15460else
15461 ac_cv_c_inline=no
15462for ac_kw in inline __inline__ __inline; do
15463 cat >conftest.$ac_ext <<_ACEOF
15464/* confdefs.h. */
15465_ACEOF
15466cat confdefs.h >>conftest.$ac_ext
15467cat >>conftest.$ac_ext <<_ACEOF
15468/* end confdefs.h. */
15469#ifndef __cplusplus
15470typedef int foo_t;
15471static $ac_kw foo_t static_foo () {return 0; }
15472$ac_kw foo_t foo () {return 0; }
15473#endif
15474
15475_ACEOF
15476rm -f conftest.$ac_objext
15477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15478 (eval $ac_compile) 2>conftest.er1
15479 ac_status=$?
15480 grep -v '^ *+' conftest.er1 >conftest.err
15481 rm -f conftest.er1
15482 cat conftest.err >&5
15483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484 (exit $ac_status); } &&
b4e70030
JB
15485 { ac_try='test -z "$ac_c_werror_flag"
15486 || test ! -s conftest.err'
4e8d927d
DJ
15487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15488 (eval $ac_try) 2>&5
15489 ac_status=$?
15490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491 (exit $ac_status); }; } &&
15492 { ac_try='test -s conftest.$ac_objext'
15493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15494 (eval $ac_try) 2>&5
15495 ac_status=$?
15496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497 (exit $ac_status); }; }; then
b4e70030 15498 ac_cv_c_inline=$ac_kw; break
4e8d927d
DJ
15499else
15500 echo "$as_me: failed program was:" >&5
15501sed 's/^/| /' conftest.$ac_ext >&5
15502
4e8d927d 15503fi
4e8d927d 15504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
15505done
15506
15507fi
b4e70030
JB
15508echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15509echo "${ECHO_T}$ac_cv_c_inline" >&6
bec39cab 15510
bec39cab 15511
a3828db0
MK
15512case $ac_cv_c_inline in
15513 inline | yes) ;;
15514 *)
15515 case $ac_cv_c_inline in
15516 no) ac_val=;;
15517 *) ac_val=$ac_cv_c_inline;;
15518 esac
15519 cat >>confdefs.h <<_ACEOF
15520#ifndef __cplusplus
15521#define inline $ac_val
15522#endif
15523_ACEOF
bec39cab
AC
15524 ;;
15525esac
bec39cab 15526
74c1b268 15527
a3828db0
MK
15528# ------------------------------ #
15529# Checks for library functions. #
15530# ------------------------------ #
bec39cab 15531
a3828db0
MK
15532# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15533# for constant arguments. Useless!
b4e70030
JB
15534echo "$as_me:$LINENO: checking for working alloca.h" >&5
15535echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
a3828db0 15536if test "${ac_cv_working_alloca_h+set}" = set; then
bec39cab
AC
15537 echo $ECHO_N "(cached) $ECHO_C" >&6
15538else
15539 cat >conftest.$ac_ext <<_ACEOF
15540/* confdefs.h. */
15541_ACEOF
15542cat confdefs.h >>conftest.$ac_ext
15543cat >>conftest.$ac_ext <<_ACEOF
15544/* end confdefs.h. */
a3828db0 15545#include <alloca.h>
bec39cab
AC
15546int
15547main ()
15548{
a3828db0 15549char *p = (char *) alloca (2 * sizeof (int));
bec39cab
AC
15550 ;
15551 return 0;
15552}
15553_ACEOF
15554rm -f conftest.$ac_objext conftest$ac_exeext
15555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15556 (eval $ac_link) 2>conftest.er1
15557 ac_status=$?
15558 grep -v '^ *+' conftest.er1 >conftest.err
15559 rm -f conftest.er1
15560 cat conftest.err >&5
15561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562 (exit $ac_status); } &&
b4e70030
JB
15563 { ac_try='test -z "$ac_c_werror_flag"
15564 || test ! -s conftest.err'
bec39cab
AC
15565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15566 (eval $ac_try) 2>&5
15567 ac_status=$?
15568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15569 (exit $ac_status); }; } &&
15570 { ac_try='test -s conftest$ac_exeext'
15571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15572 (eval $ac_try) 2>&5
15573 ac_status=$?
15574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15575 (exit $ac_status); }; }; then
a3828db0 15576 ac_cv_working_alloca_h=yes
bec39cab
AC
15577else
15578 echo "$as_me: failed program was:" >&5
15579sed 's/^/| /' conftest.$ac_ext >&5
15580
b4e70030 15581ac_cv_working_alloca_h=no
bec39cab
AC
15582fi
15583rm -f conftest.err conftest.$ac_objext \
15584 conftest$ac_exeext conftest.$ac_ext
15585fi
b4e70030
JB
15586echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15587echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
a3828db0
MK
15588if test $ac_cv_working_alloca_h = yes; then
15589
15590cat >>confdefs.h <<\_ACEOF
15591#define HAVE_ALLOCA_H 1
bec39cab 15592_ACEOF
74c1b268 15593
74c1b268
AC
15594fi
15595
b4e70030
JB
15596echo "$as_me:$LINENO: checking for alloca" >&5
15597echo $ECHO_N "checking for alloca... $ECHO_C" >&6
a3828db0 15598if test "${ac_cv_func_alloca_works+set}" = set; then
bec39cab 15599 echo $ECHO_N "(cached) $ECHO_C" >&6
74c1b268 15600else
bec39cab
AC
15601 cat >conftest.$ac_ext <<_ACEOF
15602/* confdefs.h. */
15603_ACEOF
15604cat confdefs.h >>conftest.$ac_ext
15605cat >>conftest.$ac_ext <<_ACEOF
15606/* end confdefs.h. */
a3828db0
MK
15607#ifdef __GNUC__
15608# define alloca __builtin_alloca
15609#else
15610# ifdef _MSC_VER
15611# include <malloc.h>
15612# define alloca _alloca
15613# else
15614# if HAVE_ALLOCA_H
15615# include <alloca.h>
15616# else
15617# ifdef _AIX
15618 #pragma alloca
15619# else
15620# ifndef alloca /* predefined by HP cc +Olibcalls */
15621char *alloca ();
15622# endif
15623# endif
15624# endif
97bf5e38 15625# endif
a3828db0 15626#endif
97bf5e38 15627
bec39cab
AC
15628int
15629main ()
15630{
a3828db0 15631char *p = (char *) alloca (1);
bec39cab
AC
15632 ;
15633 return 0;
15634}
15635_ACEOF
a3828db0
MK
15636rm -f conftest.$ac_objext conftest$ac_exeext
15637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15638 (eval $ac_link) 2>conftest.er1
bec39cab
AC
15639 ac_status=$?
15640 grep -v '^ *+' conftest.er1 >conftest.err
15641 rm -f conftest.er1
15642 cat conftest.err >&5
15643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644 (exit $ac_status); } &&
b4e70030
JB
15645 { ac_try='test -z "$ac_c_werror_flag"
15646 || test ! -s conftest.err'
bec39cab
AC
15647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15648 (eval $ac_try) 2>&5
15649 ac_status=$?
15650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15651 (exit $ac_status); }; } &&
a3828db0 15652 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
15653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15654 (eval $ac_try) 2>&5
15655 ac_status=$?
15656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657 (exit $ac_status); }; }; then
a3828db0 15658 ac_cv_func_alloca_works=yes
0200359f 15659else
bec39cab
AC
15660 echo "$as_me: failed program was:" >&5
15661sed 's/^/| /' conftest.$ac_ext >&5
0200359f 15662
b4e70030 15663ac_cv_func_alloca_works=no
0200359f 15664fi
a3828db0
MK
15665rm -f conftest.err conftest.$ac_objext \
15666 conftest$ac_exeext conftest.$ac_ext
72473524 15667fi
b4e70030
JB
15668echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15669echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
bec39cab 15670
a3828db0
MK
15671if test $ac_cv_func_alloca_works = yes; then
15672
15673cat >>confdefs.h <<\_ACEOF
15674#define HAVE_ALLOCA 1
bec39cab
AC
15675_ACEOF
15676
a3828db0
MK
15677else
15678 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15679# that cause trouble. Some versions do not even contain alloca or
15680# contain a buggy version. If you still want to use their alloca,
15681# use ar to extract alloca.o from them instead of compiling alloca.c.
72473524 15682
b4e70030 15683ALLOCA=alloca.$ac_objext
bec39cab 15684
a3828db0
MK
15685cat >>confdefs.h <<\_ACEOF
15686#define C_ALLOCA 1
15687_ACEOF
bec39cab 15688
a3828db0 15689
b4e70030
JB
15690echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15691echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
a3828db0 15692if test "${ac_cv_os_cray+set}" = set; then
bec39cab 15693 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 15694else
a3828db0 15695 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
15696/* confdefs.h. */
15697_ACEOF
15698cat confdefs.h >>conftest.$ac_ext
15699cat >>conftest.$ac_ext <<_ACEOF
15700/* end confdefs.h. */
b4e70030 15701#if defined(CRAY) && ! defined(CRAY2)
a3828db0
MK
15702webecray
15703#else
15704wenotbecray
15705#endif
15706
15707_ACEOF
15708if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15709 $EGREP "webecray" >/dev/null 2>&1; then
15710 ac_cv_os_cray=yes
15711else
15712 ac_cv_os_cray=no
15713fi
15714rm -f conftest*
15715
15716fi
b4e70030
JB
15717echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15718echo "${ECHO_T}$ac_cv_os_cray" >&6
a3828db0
MK
15719if test $ac_cv_os_cray = yes; then
15720 for ac_func in _getb67 GETB67 getb67; do
15721 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
15722echo "$as_me:$LINENO: checking for $ac_func" >&5
15723echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15724if eval "test \"\${$as_ac_var+set}\" = set"; then
a3828db0
MK
15725 echo $ECHO_N "(cached) $ECHO_C" >&6
15726else
15727 cat >conftest.$ac_ext <<_ACEOF
15728/* confdefs.h. */
15729_ACEOF
15730cat confdefs.h >>conftest.$ac_ext
15731cat >>conftest.$ac_ext <<_ACEOF
15732/* end confdefs.h. */
15733/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15735#define $ac_func innocuous_$ac_func
15736
15737/* System header to define __stub macros and hopefully few prototypes,
15738 which can conflict with char $ac_func (); below.
15739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15740 <limits.h> exists even on freestanding compilers. */
15741
15742#ifdef __STDC__
15743# include <limits.h>
15744#else
15745# include <assert.h>
15746#endif
15747
15748#undef $ac_func
15749
b4e70030 15750/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
15751#ifdef __cplusplus
15752extern "C"
b4e70030 15753{
a3828db0 15754#endif
b4e70030
JB
15755/* We use char because int might match the return type of a gcc2
15756 builtin and then its argument prototype would still apply. */
a3828db0
MK
15757char $ac_func ();
15758/* The GNU C library defines this for functions which it implements
15759 to always fail with ENOSYS. Some functions are actually named
15760 something starting with __ and the normal name is an alias. */
b4e70030 15761#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 15762choke me
b4e70030
JB
15763#else
15764char (*f) () = $ac_func;
15765#endif
15766#ifdef __cplusplus
15767}
a3828db0
MK
15768#endif
15769
15770int
15771main ()
15772{
b4e70030 15773return f != $ac_func;
a3828db0
MK
15774 ;
15775 return 0;
15776}
15777_ACEOF
15778rm -f conftest.$ac_objext conftest$ac_exeext
15779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15780 (eval $ac_link) 2>conftest.er1
15781 ac_status=$?
15782 grep -v '^ *+' conftest.er1 >conftest.err
15783 rm -f conftest.er1
15784 cat conftest.err >&5
15785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15786 (exit $ac_status); } &&
b4e70030
JB
15787 { ac_try='test -z "$ac_c_werror_flag"
15788 || test ! -s conftest.err'
a3828db0
MK
15789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15790 (eval $ac_try) 2>&5
15791 ac_status=$?
15792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15793 (exit $ac_status); }; } &&
15794 { ac_try='test -s conftest$ac_exeext'
15795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15796 (eval $ac_try) 2>&5
15797 ac_status=$?
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); }; }; then
15800 eval "$as_ac_var=yes"
15801else
15802 echo "$as_me: failed program was:" >&5
15803sed 's/^/| /' conftest.$ac_ext >&5
15804
b4e70030 15805eval "$as_ac_var=no"
a3828db0
MK
15806fi
15807rm -f conftest.err conftest.$ac_objext \
15808 conftest$ac_exeext conftest.$ac_ext
15809fi
b4e70030
JB
15810echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15811echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
15812if test `eval echo '${'$as_ac_var'}'` = yes; then
15813
15814cat >>confdefs.h <<_ACEOF
15815#define CRAY_STACKSEG_END $ac_func
15816_ACEOF
15817
15818 break
15819fi
15820
15821 done
15822fi
15823
b4e70030
JB
15824echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15825echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
a3828db0
MK
15826if test "${ac_cv_c_stack_direction+set}" = set; then
15827 echo $ECHO_N "(cached) $ECHO_C" >&6
15828else
15829 if test "$cross_compiling" = yes; then
15830 ac_cv_c_stack_direction=0
15831else
15832 cat >conftest.$ac_ext <<_ACEOF
15833/* confdefs.h. */
15834_ACEOF
15835cat confdefs.h >>conftest.$ac_ext
15836cat >>conftest.$ac_ext <<_ACEOF
15837/* end confdefs.h. */
15838int
15839find_stack_direction ()
15840{
15841 static char *addr = 0;
15842 auto char dummy;
15843 if (addr == 0)
15844 {
15845 addr = &dummy;
15846 return find_stack_direction ();
15847 }
15848 else
15849 return (&dummy > addr) ? 1 : -1;
15850}
15851
15852int
15853main ()
15854{
b4e70030 15855 exit (find_stack_direction () < 0);
a3828db0
MK
15856}
15857_ACEOF
15858rm -f conftest$ac_exeext
15859if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15860 (eval $ac_link) 2>&5
15861 ac_status=$?
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15865 (eval $ac_try) 2>&5
15866 ac_status=$?
15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); }; }; then
15869 ac_cv_c_stack_direction=1
15870else
15871 echo "$as_me: program exited with status $ac_status" >&5
15872echo "$as_me: failed program was:" >&5
15873sed 's/^/| /' conftest.$ac_ext >&5
15874
15875( exit $ac_status )
15876ac_cv_c_stack_direction=-1
15877fi
b4e70030 15878rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
15879fi
15880fi
b4e70030
JB
15881echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15882echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
a3828db0
MK
15883
15884cat >>confdefs.h <<_ACEOF
15885#define STACK_DIRECTION $ac_cv_c_stack_direction
15886_ACEOF
15887
15888
15889fi
15890
15891
15892
15893for ac_header in stdlib.h unistd.h
15894do
15895as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15896if eval "test \"\${$as_ac_Header+set}\" = set"; then
15897 echo "$as_me:$LINENO: checking for $ac_header" >&5
15898echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15899if eval "test \"\${$as_ac_Header+set}\" = set"; then
a3828db0
MK
15900 echo $ECHO_N "(cached) $ECHO_C" >&6
15901fi
b4e70030
JB
15902echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15903echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a3828db0
MK
15904else
15905 # Is the header compilable?
b4e70030
JB
15906echo "$as_me:$LINENO: checking $ac_header usability" >&5
15907echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a3828db0
MK
15908cat >conftest.$ac_ext <<_ACEOF
15909/* confdefs.h. */
15910_ACEOF
15911cat confdefs.h >>conftest.$ac_ext
15912cat >>conftest.$ac_ext <<_ACEOF
15913/* end confdefs.h. */
15914$ac_includes_default
15915#include <$ac_header>
15916_ACEOF
15917rm -f conftest.$ac_objext
15918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15919 (eval $ac_compile) 2>conftest.er1
15920 ac_status=$?
bec39cab
AC
15921 grep -v '^ *+' conftest.er1 >conftest.err
15922 rm -f conftest.er1
15923 cat conftest.err >&5
15924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925 (exit $ac_status); } &&
b4e70030
JB
15926 { ac_try='test -z "$ac_c_werror_flag"
15927 || test ! -s conftest.err'
bec39cab
AC
15928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15929 (eval $ac_try) 2>&5
15930 ac_status=$?
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); }; } &&
15933 { ac_try='test -s conftest.$ac_objext'
15934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15935 (eval $ac_try) 2>&5
15936 ac_status=$?
15937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938 (exit $ac_status); }; }; then
15939 ac_header_compiler=yes
15940else
15941 echo "$as_me: failed program was:" >&5
15942sed 's/^/| /' conftest.$ac_ext >&5
15943
b4e70030 15944ac_header_compiler=no
bec39cab
AC
15945fi
15946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15947echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15948echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15949
15950# Is the header present?
b4e70030
JB
15951echo "$as_me:$LINENO: checking $ac_header presence" >&5
15952echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15953cat >conftest.$ac_ext <<_ACEOF
15954/* confdefs.h. */
15955_ACEOF
15956cat confdefs.h >>conftest.$ac_ext
15957cat >>conftest.$ac_ext <<_ACEOF
15958/* end confdefs.h. */
15959#include <$ac_header>
15960_ACEOF
15961if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15962 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15963 ac_status=$?
15964 grep -v '^ *+' conftest.er1 >conftest.err
15965 rm -f conftest.er1
15966 cat conftest.err >&5
15967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968 (exit $ac_status); } >/dev/null; then
15969 if test -s conftest.err; then
15970 ac_cpp_err=$ac_c_preproc_warn_flag
15971 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15972 else
15973 ac_cpp_err=
15974 fi
15975else
15976 ac_cpp_err=yes
15977fi
15978if test -z "$ac_cpp_err"; then
15979 ac_header_preproc=yes
97bf5e38 15980else
bec39cab
AC
15981 echo "$as_me: failed program was:" >&5
15982sed 's/^/| /' conftest.$ac_ext >&5
15983
15984 ac_header_preproc=no
72473524 15985fi
bec39cab 15986rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15987echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15988echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 15989
bec39cab
AC
15990# So? What about this header?
15991case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15992 yes:no: )
15993 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15994echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15996echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15997 ac_header_preproc=yes
15998 ;;
15999 no:yes:* )
16000 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16001echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16002 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16003echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16004 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16005echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16006 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16007echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16009echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16010 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16011echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
16012 (
16013 cat <<\_ASBOX
16014## ------------------------------------------ ##
16015## Report this to the AC_PACKAGE_NAME lists. ##
16016## ------------------------------------------ ##
16017_ASBOX
16018 ) |
16019 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
16020 ;;
16021esac
b4e70030
JB
16022echo "$as_me:$LINENO: checking for $ac_header" >&5
16023echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16024if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 16025 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 16026else
bec39cab
AC
16027 eval "$as_ac_Header=\$ac_header_preproc"
16028fi
b4e70030
JB
16029echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16030echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
16031
16032fi
16033if test `eval echo '${'$as_ac_Header'}'` = yes; then
16034 cat >>confdefs.h <<_ACEOF
16035#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16036_ACEOF
16037
16038fi
16039
16040done
16041
16042
a3828db0 16043for ac_func in getpagesize
bec39cab
AC
16044do
16045as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
16046echo "$as_me:$LINENO: checking for $ac_func" >&5
16047echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16048if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
16049 echo $ECHO_N "(cached) $ECHO_C" >&6
16050else
16051 cat >conftest.$ac_ext <<_ACEOF
16052/* confdefs.h. */
16053_ACEOF
16054cat confdefs.h >>conftest.$ac_ext
16055cat >>conftest.$ac_ext <<_ACEOF
16056/* end confdefs.h. */
16057/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16059#define $ac_func innocuous_$ac_func
16060
97bf5e38 16061/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
16062 which can conflict with char $ac_func (); below.
16063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16064 <limits.h> exists even on freestanding compilers. */
2b2d558c 16065
bec39cab
AC
16066#ifdef __STDC__
16067# include <limits.h>
16068#else
16069# include <assert.h>
16070#endif
97bf5e38 16071
bec39cab
AC
16072#undef $ac_func
16073
b4e70030 16074/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
16075#ifdef __cplusplus
16076extern "C"
b4e70030 16077{
bec39cab 16078#endif
b4e70030
JB
16079/* We use char because int might match the return type of a gcc2
16080 builtin and then its argument prototype would still apply. */
bec39cab 16081char $ac_func ();
97bf5e38
MK
16082/* The GNU C library defines this for functions which it implements
16083 to always fail with ENOSYS. Some functions are actually named
16084 something starting with __ and the normal name is an alias. */
b4e70030 16085#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 16086choke me
b4e70030
JB
16087#else
16088char (*f) () = $ac_func;
16089#endif
16090#ifdef __cplusplus
16091}
97bf5e38
MK
16092#endif
16093
bec39cab
AC
16094int
16095main ()
16096{
b4e70030 16097return f != $ac_func;
bec39cab
AC
16098 ;
16099 return 0;
16100}
16101_ACEOF
16102rm -f conftest.$ac_objext conftest$ac_exeext
16103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16104 (eval $ac_link) 2>conftest.er1
16105 ac_status=$?
16106 grep -v '^ *+' conftest.er1 >conftest.err
16107 rm -f conftest.er1
16108 cat conftest.err >&5
16109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110 (exit $ac_status); } &&
b4e70030
JB
16111 { ac_try='test -z "$ac_c_werror_flag"
16112 || test ! -s conftest.err'
bec39cab
AC
16113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16114 (eval $ac_try) 2>&5
16115 ac_status=$?
16116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16117 (exit $ac_status); }; } &&
16118 { ac_try='test -s conftest$ac_exeext'
16119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16120 (eval $ac_try) 2>&5
16121 ac_status=$?
16122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123 (exit $ac_status); }; }; then
16124 eval "$as_ac_var=yes"
16125else
16126 echo "$as_me: failed program was:" >&5
16127sed 's/^/| /' conftest.$ac_ext >&5
16128
b4e70030 16129eval "$as_ac_var=no"
bec39cab
AC
16130fi
16131rm -f conftest.err conftest.$ac_objext \
16132 conftest$ac_exeext conftest.$ac_ext
16133fi
b4e70030
JB
16134echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16135echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
16136if test `eval echo '${'$as_ac_var'}'` = yes; then
16137 cat >>confdefs.h <<_ACEOF
16138#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16139_ACEOF
16140
2b2d558c 16141fi
bec39cab 16142done
2b2d558c 16143
b4e70030
JB
16144echo "$as_me:$LINENO: checking for working mmap" >&5
16145echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
a3828db0 16146if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
bec39cab 16147 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 16148else
bec39cab 16149 if test "$cross_compiling" = yes; then
a3828db0 16150 ac_cv_func_mmap_fixed_mapped=no
bec39cab
AC
16151else
16152 cat >conftest.$ac_ext <<_ACEOF
a3828db0 16153/* confdefs.h. */
bec39cab
AC
16154_ACEOF
16155cat confdefs.h >>conftest.$ac_ext
16156cat >>conftest.$ac_ext <<_ACEOF
16157/* end confdefs.h. */
a3828db0
MK
16158$ac_includes_default
16159/* malloc might have been renamed as rpl_malloc. */
16160#undef malloc
bec39cab 16161
a3828db0
MK
16162/* Thanks to Mike Haertel and Jim Avera for this test.
16163 Here is a matrix of mmap possibilities:
16164 mmap private not fixed
16165 mmap private fixed at somewhere currently unmapped
16166 mmap private fixed at somewhere already mapped
16167 mmap shared not fixed
16168 mmap shared fixed at somewhere currently unmapped
16169 mmap shared fixed at somewhere already mapped
16170 For private mappings, we should verify that changes cannot be read()
16171 back from the file, nor mmap's back from the file at a different
16172 address. (There have been systems where private was not correctly
16173 implemented like the infamous i386 svr4.0, and systems where the
16174 VM page cache was not coherent with the file system buffer cache
16175 like early versions of FreeBSD and possibly contemporary NetBSD.)
16176 For shared mappings, we should conversely verify that changes get
16177 propagated back to all the places they're supposed to be.
7dfa765c 16178
a3828db0
MK
16179 Grep wants private fixed already mapped.
16180 The main things grep needs to know about mmap are:
16181 * does it exist and is it safe to write into the mmap'd area
16182 * how to use it (BSD variants) */
7dfa765c 16183
a3828db0
MK
16184#include <fcntl.h>
16185#include <sys/mman.h>
7dfa765c 16186
a3828db0
MK
16187#if !STDC_HEADERS && !HAVE_STDLIB_H
16188char *malloc ();
16189#endif
7dfa765c 16190
a3828db0
MK
16191/* This mess was copied from the GNU getpagesize.h. */
16192#if !HAVE_GETPAGESIZE
16193/* Assume that all systems that can run configure have sys/param.h. */
16194# if !HAVE_SYS_PARAM_H
16195# define HAVE_SYS_PARAM_H 1
16196# endif
64bb1671 16197
a3828db0
MK
16198# ifdef _SC_PAGESIZE
16199# define getpagesize() sysconf(_SC_PAGESIZE)
16200# else /* no _SC_PAGESIZE */
16201# if HAVE_SYS_PARAM_H
16202# include <sys/param.h>
16203# ifdef EXEC_PAGESIZE
16204# define getpagesize() EXEC_PAGESIZE
16205# else /* no EXEC_PAGESIZE */
16206# ifdef NBPG
16207# define getpagesize() NBPG * CLSIZE
16208# ifndef CLSIZE
16209# define CLSIZE 1
16210# endif /* no CLSIZE */
16211# else /* no NBPG */
16212# ifdef NBPC
16213# define getpagesize() NBPC
16214# else /* no NBPC */
16215# ifdef PAGESIZE
16216# define getpagesize() PAGESIZE
16217# endif /* PAGESIZE */
16218# endif /* no NBPC */
16219# endif /* no NBPG */
16220# endif /* no EXEC_PAGESIZE */
16221# else /* no HAVE_SYS_PARAM_H */
16222# define getpagesize() 8192 /* punt totally */
16223# endif /* no HAVE_SYS_PARAM_H */
16224# endif /* no _SC_PAGESIZE */
64bb1671 16225
a3828db0 16226#endif /* no HAVE_GETPAGESIZE */
64bb1671 16227
a3828db0
MK
16228int
16229main ()
16230{
16231 char *data, *data2, *data3;
16232 int i, pagesize;
16233 int fd;
97bf5e38 16234
a3828db0
MK
16235 pagesize = getpagesize ();
16236
16237 /* First, make a file with some known garbage in it. */
16238 data = (char *) malloc (pagesize);
16239 if (!data)
b4e70030 16240 exit (1);
a3828db0
MK
16241 for (i = 0; i < pagesize; ++i)
16242 *(data + i) = rand ();
16243 umask (0);
16244 fd = creat ("conftest.mmap", 0600);
16245 if (fd < 0)
b4e70030 16246 exit (1);
a3828db0 16247 if (write (fd, data, pagesize) != pagesize)
b4e70030 16248 exit (1);
a3828db0
MK
16249 close (fd);
16250
16251 /* Next, try to mmap the file at a fixed address which already has
16252 something else allocated at it. If we can, also make sure that
16253 we see the same garbage. */
16254 fd = open ("conftest.mmap", O_RDWR);
16255 if (fd < 0)
b4e70030 16256 exit (1);
a3828db0
MK
16257 data2 = (char *) malloc (2 * pagesize);
16258 if (!data2)
b4e70030
JB
16259 exit (1);
16260 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
a3828db0
MK
16261 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16262 MAP_PRIVATE | MAP_FIXED, fd, 0L))
b4e70030 16263 exit (1);
a3828db0
MK
16264 for (i = 0; i < pagesize; ++i)
16265 if (*(data + i) != *(data2 + i))
b4e70030 16266 exit (1);
a3828db0
MK
16267
16268 /* Finally, make sure that changes to the mapped area do not
16269 percolate back to the file as seen by read(). (This is a bug on
16270 some variants of i386 svr4.0.) */
16271 for (i = 0; i < pagesize; ++i)
16272 *(data2 + i) = *(data2 + i) + 1;
16273 data3 = (char *) malloc (pagesize);
16274 if (!data3)
b4e70030 16275 exit (1);
a3828db0 16276 if (read (fd, data3, pagesize) != pagesize)
b4e70030 16277 exit (1);
a3828db0
MK
16278 for (i = 0; i < pagesize; ++i)
16279 if (*(data + i) != *(data3 + i))
b4e70030 16280 exit (1);
a3828db0 16281 close (fd);
b4e70030 16282 exit (0);
97bf5e38 16283}
bec39cab
AC
16284_ACEOF
16285rm -f conftest$ac_exeext
16286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16287 (eval $ac_link) 2>&5
16288 ac_status=$?
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16292 (eval $ac_try) 2>&5
16293 ac_status=$?
16294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); }; }; then
a3828db0 16296 ac_cv_func_mmap_fixed_mapped=yes
5c44784c 16297else
bec39cab
AC
16298 echo "$as_me: program exited with status $ac_status" >&5
16299echo "$as_me: failed program was:" >&5
16300sed 's/^/| /' conftest.$ac_ext >&5
16301
16302( exit $ac_status )
a3828db0 16303ac_cv_func_mmap_fixed_mapped=no
0afdd437 16304fi
b4e70030 16305rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bec39cab 16306fi
a3828db0 16307fi
b4e70030
JB
16308echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16309echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
a3828db0 16310if test $ac_cv_func_mmap_fixed_mapped = yes; then
bec39cab
AC
16311
16312cat >>confdefs.h <<\_ACEOF
a3828db0 16313#define HAVE_MMAP 1
bec39cab 16314_ACEOF
0afdd437
MK
16315
16316fi
a3828db0 16317rm -f conftest.mmap
0afdd437 16318
b4e70030
JB
16319echo "$as_me:$LINENO: checking for pid_t" >&5
16320echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
a3828db0 16321if test "${ac_cv_type_pid_t+set}" = set; then
bec39cab
AC
16322 echo $ECHO_N "(cached) $ECHO_C" >&6
16323else
16324 cat >conftest.$ac_ext <<_ACEOF
16325/* confdefs.h. */
16326_ACEOF
16327cat confdefs.h >>conftest.$ac_ext
16328cat >>conftest.$ac_ext <<_ACEOF
16329/* end confdefs.h. */
a3828db0 16330$ac_includes_default
bec39cab
AC
16331int
16332main ()
16333{
b4e70030 16334if ((pid_t *) 0)
a3828db0 16335 return 0;
b4e70030 16336if (sizeof (pid_t))
a3828db0 16337 return 0;
bec39cab
AC
16338 ;
16339 return 0;
16340}
16341_ACEOF
a3828db0
MK
16342rm -f conftest.$ac_objext
16343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16344 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
16345 ac_status=$?
16346 grep -v '^ *+' conftest.er1 >conftest.err
16347 rm -f conftest.er1
16348 cat conftest.err >&5
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); } &&
b4e70030
JB
16351 { ac_try='test -z "$ac_c_werror_flag"
16352 || test ! -s conftest.err'
bec39cab
AC
16353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16354 (eval $ac_try) 2>&5
16355 ac_status=$?
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); }; } &&
a3828db0 16358 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
16359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16360 (eval $ac_try) 2>&5
16361 ac_status=$?
16362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363 (exit $ac_status); }; }; then
a3828db0 16364 ac_cv_type_pid_t=yes
bec39cab
AC
16365else
16366 echo "$as_me: failed program was:" >&5
16367sed 's/^/| /' conftest.$ac_ext >&5
16368
b4e70030 16369ac_cv_type_pid_t=no
bec39cab 16370fi
a3828db0 16371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 16372fi
b4e70030
JB
16373echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16374echo "${ECHO_T}$ac_cv_type_pid_t" >&6
a3828db0
MK
16375if test $ac_cv_type_pid_t = yes; then
16376 :
16377else
16378
16379cat >>confdefs.h <<_ACEOF
16380#define pid_t int
bec39cab 16381_ACEOF
7e89e357 16382
7e89e357
JT
16383fi
16384
bec39cab 16385
b4e70030
JB
16386
16387for ac_header in unistd.h vfork.h
7be570e7 16388do
a3828db0 16389as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
16390if eval "test \"\${$as_ac_Header+set}\" = set"; then
16391 echo "$as_me:$LINENO: checking for $ac_header" >&5
16392echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16393if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 16394 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0 16395fi
b4e70030
JB
16396echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16397echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 16398else
a3828db0 16399 # Is the header compilable?
b4e70030
JB
16400echo "$as_me:$LINENO: checking $ac_header usability" >&5
16401echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a3828db0 16402cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
16403/* confdefs.h. */
16404_ACEOF
16405cat confdefs.h >>conftest.$ac_ext
16406cat >>conftest.$ac_ext <<_ACEOF
16407/* end confdefs.h. */
a3828db0
MK
16408$ac_includes_default
16409#include <$ac_header>
bec39cab 16410_ACEOF
a3828db0
MK
16411rm -f conftest.$ac_objext
16412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16413 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
16414 ac_status=$?
16415 grep -v '^ *+' conftest.er1 >conftest.err
16416 rm -f conftest.er1
16417 cat conftest.err >&5
16418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419 (exit $ac_status); } &&
b4e70030
JB
16420 { ac_try='test -z "$ac_c_werror_flag"
16421 || test ! -s conftest.err'
bec39cab
AC
16422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16423 (eval $ac_try) 2>&5
16424 ac_status=$?
16425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426 (exit $ac_status); }; } &&
a3828db0 16427 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
16428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16429 (eval $ac_try) 2>&5
16430 ac_status=$?
16431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432 (exit $ac_status); }; }; then
a3828db0 16433 ac_header_compiler=yes
bec39cab
AC
16434else
16435 echo "$as_me: failed program was:" >&5
16436sed 's/^/| /' conftest.$ac_ext >&5
16437
b4e70030 16438ac_header_compiler=no
bec39cab 16439fi
a3828db0 16440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
16441echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16442echo "${ECHO_T}$ac_header_compiler" >&6
a3828db0
MK
16443
16444# Is the header present?
b4e70030
JB
16445echo "$as_me:$LINENO: checking $ac_header presence" >&5
16446echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
a3828db0
MK
16447cat >conftest.$ac_ext <<_ACEOF
16448/* confdefs.h. */
16449_ACEOF
16450cat confdefs.h >>conftest.$ac_ext
16451cat >>conftest.$ac_ext <<_ACEOF
16452/* end confdefs.h. */
16453#include <$ac_header>
16454_ACEOF
16455if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16456 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16457 ac_status=$?
16458 grep -v '^ *+' conftest.er1 >conftest.err
16459 rm -f conftest.er1
16460 cat conftest.err >&5
16461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462 (exit $ac_status); } >/dev/null; then
16463 if test -s conftest.err; then
16464 ac_cpp_err=$ac_c_preproc_warn_flag
16465 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16466 else
16467 ac_cpp_err=
16468 fi
16469else
16470 ac_cpp_err=yes
16471fi
16472if test -z "$ac_cpp_err"; then
16473 ac_header_preproc=yes
16474else
16475 echo "$as_me: failed program was:" >&5
16476sed 's/^/| /' conftest.$ac_ext >&5
16477
16478 ac_header_preproc=no
16479fi
16480rm -f conftest.err conftest.$ac_ext
b4e70030
JB
16481echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16482echo "${ECHO_T}$ac_header_preproc" >&6
a3828db0
MK
16483
16484# So? What about this header?
16485case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16486 yes:no: )
16487 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16488echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16490echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16491 ac_header_preproc=yes
16492 ;;
16493 no:yes:* )
16494 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16495echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16496 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16497echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16498 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16499echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16500 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16501echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16503echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16504 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16505echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
16506 (
16507 cat <<\_ASBOX
16508## ------------------------------------------ ##
16509## Report this to the AC_PACKAGE_NAME lists. ##
16510## ------------------------------------------ ##
16511_ASBOX
16512 ) |
16513 sed "s/^/$as_me: WARNING: /" >&2
a3828db0
MK
16514 ;;
16515esac
b4e70030
JB
16516echo "$as_me:$LINENO: checking for $ac_header" >&5
16517echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16518if eval "test \"\${$as_ac_Header+set}\" = set"; then
a3828db0
MK
16519 echo $ECHO_N "(cached) $ECHO_C" >&6
16520else
16521 eval "$as_ac_Header=\$ac_header_preproc"
16522fi
b4e70030
JB
16523echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16524echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a3828db0 16525
bec39cab 16526fi
a3828db0 16527if test `eval echo '${'$as_ac_Header'}'` = yes; then
bec39cab 16528 cat >>confdefs.h <<_ACEOF
a3828db0 16529#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
bec39cab 16530_ACEOF
14abd0fb 16531
14abd0fb 16532fi
a3828db0 16533
14abd0fb
MK
16534done
16535
bec39cab 16536
a3828db0
MK
16537
16538for ac_func in fork vfork
14abd0fb 16539do
bec39cab 16540as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
16541echo "$as_me:$LINENO: checking for $ac_func" >&5
16542echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16543if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
16544 echo $ECHO_N "(cached) $ECHO_C" >&6
16545else
16546 cat >conftest.$ac_ext <<_ACEOF
16547/* confdefs.h. */
16548_ACEOF
16549cat confdefs.h >>conftest.$ac_ext
16550cat >>conftest.$ac_ext <<_ACEOF
16551/* end confdefs.h. */
16552/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16554#define $ac_func innocuous_$ac_func
16555
14abd0fb 16556/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
16557 which can conflict with char $ac_func (); below.
16558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16559 <limits.h> exists even on freestanding compilers. */
16560
16561#ifdef __STDC__
16562# include <limits.h>
16563#else
16564# include <assert.h>
16565#endif
14abd0fb 16566
bec39cab 16567#undef $ac_func
14abd0fb 16568
b4e70030 16569/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
16570#ifdef __cplusplus
16571extern "C"
b4e70030 16572{
bec39cab 16573#endif
b4e70030
JB
16574/* We use char because int might match the return type of a gcc2
16575 builtin and then its argument prototype would still apply. */
bec39cab 16576char $ac_func ();
14abd0fb
MK
16577/* The GNU C library defines this for functions which it implements
16578 to always fail with ENOSYS. Some functions are actually named
16579 something starting with __ and the normal name is an alias. */
b4e70030 16580#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14abd0fb 16581choke me
b4e70030
JB
16582#else
16583char (*f) () = $ac_func;
16584#endif
16585#ifdef __cplusplus
16586}
14abd0fb
MK
16587#endif
16588
bec39cab
AC
16589int
16590main ()
16591{
b4e70030 16592return f != $ac_func;
bec39cab
AC
16593 ;
16594 return 0;
16595}
16596_ACEOF
16597rm -f conftest.$ac_objext conftest$ac_exeext
16598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16599 (eval $ac_link) 2>conftest.er1
16600 ac_status=$?
16601 grep -v '^ *+' conftest.er1 >conftest.err
16602 rm -f conftest.er1
16603 cat conftest.err >&5
16604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605 (exit $ac_status); } &&
b4e70030
JB
16606 { ac_try='test -z "$ac_c_werror_flag"
16607 || test ! -s conftest.err'
bec39cab
AC
16608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16609 (eval $ac_try) 2>&5
16610 ac_status=$?
16611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612 (exit $ac_status); }; } &&
16613 { ac_try='test -s conftest$ac_exeext'
16614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16615 (eval $ac_try) 2>&5
16616 ac_status=$?
16617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618 (exit $ac_status); }; }; then
16619 eval "$as_ac_var=yes"
16620else
16621 echo "$as_me: failed program was:" >&5
16622sed 's/^/| /' conftest.$ac_ext >&5
16623
b4e70030 16624eval "$as_ac_var=no"
bec39cab
AC
16625fi
16626rm -f conftest.err conftest.$ac_objext \
16627 conftest$ac_exeext conftest.$ac_ext
16628fi
b4e70030
JB
16629echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16630echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
16631if test `eval echo '${'$as_ac_var'}'` = yes; then
16632 cat >>confdefs.h <<_ACEOF
16633#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16634_ACEOF
7be570e7 16635
7be570e7
JM
16636fi
16637done
16638
a3828db0 16639if test "x$ac_cv_func_fork" = xyes; then
b4e70030
JB
16640 echo "$as_me:$LINENO: checking for working fork" >&5
16641echo $ECHO_N "checking for working fork... $ECHO_C" >&6
a3828db0
MK
16642if test "${ac_cv_func_fork_works+set}" = set; then
16643 echo $ECHO_N "(cached) $ECHO_C" >&6
16644else
16645 if test "$cross_compiling" = yes; then
16646 ac_cv_func_fork_works=cross
16647else
16648 cat >conftest.$ac_ext <<_ACEOF
b4e70030
JB
16649/* By Ruediger Kuhlmann. */
16650 #include <sys/types.h>
16651 #if HAVE_UNISTD_H
16652 # include <unistd.h>
16653 #endif
16654 /* Some systems only have a dummy stub for fork() */
16655 int main ()
16656 {
16657 if (fork() < 0)
16658 exit (1);
16659 exit (0);
16660 }
a3828db0
MK
16661_ACEOF
16662rm -f conftest$ac_exeext
16663if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16664 (eval $ac_link) 2>&5
16665 ac_status=$?
16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16669 (eval $ac_try) 2>&5
16670 ac_status=$?
16671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); }; }; then
16673 ac_cv_func_fork_works=yes
16674else
16675 echo "$as_me: program exited with status $ac_status" >&5
16676echo "$as_me: failed program was:" >&5
16677sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 16678
a3828db0
MK
16679( exit $ac_status )
16680ac_cv_func_fork_works=no
16681fi
b4e70030 16682rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
16683fi
16684fi
b4e70030
JB
16685echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
16686echo "${ECHO_T}$ac_cv_func_fork_works" >&6
a3828db0
MK
16687
16688else
16689 ac_cv_func_fork_works=$ac_cv_func_fork
16690fi
16691if test "x$ac_cv_func_fork_works" = xcross; then
16692 case $host in
16693 *-*-amigaos* | *-*-msdosdjgpp*)
16694 # Override, as these systems have only a dummy fork() stub
16695 ac_cv_func_fork_works=no
16696 ;;
16697 *)
16698 ac_cv_func_fork_works=yes
16699 ;;
16700 esac
16701 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16702echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16703fi
16704ac_cv_func_vfork_works=$ac_cv_func_vfork
16705if test "x$ac_cv_func_vfork" = xyes; then
b4e70030
JB
16706 echo "$as_me:$LINENO: checking for working vfork" >&5
16707echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
a3828db0 16708if test "${ac_cv_func_vfork_works+set}" = set; then
bec39cab 16709 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
16710else
16711 if test "$cross_compiling" = yes; then
16712 ac_cv_func_vfork_works=cross
bec39cab
AC
16713else
16714 cat >conftest.$ac_ext <<_ACEOF
16715/* confdefs.h. */
16716_ACEOF
16717cat confdefs.h >>conftest.$ac_ext
16718cat >>conftest.$ac_ext <<_ACEOF
16719/* end confdefs.h. */
a3828db0 16720/* Thanks to Paul Eggert for this test. */
b4e70030
JB
16721#include <stdio.h>
16722#include <stdlib.h>
16723#include <sys/types.h>
16724#include <sys/stat.h>
a3828db0 16725#include <sys/wait.h>
b4e70030
JB
16726#if HAVE_UNISTD_H
16727# include <unistd.h>
16728#endif
a3828db0
MK
16729#if HAVE_VFORK_H
16730# include <vfork.h>
bec39cab 16731#endif
a3828db0
MK
16732/* On some sparc systems, changes by the child to local and incoming
16733 argument registers are propagated back to the parent. The compiler
16734 is told about this with #include <vfork.h>, but some compilers
16735 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16736 static variable whose address is put into a register that is
16737 clobbered by the vfork. */
16738static void
bec39cab 16739#ifdef __cplusplus
a3828db0
MK
16740sparc_address_test (int arg)
16741# else
16742sparc_address_test (arg) int arg;
c906108c 16743#endif
a3828db0
MK
16744{
16745 static pid_t child;
16746 if (!child) {
16747 child = vfork ();
16748 if (child < 0) {
16749 perror ("vfork");
16750 _exit(2);
16751 }
16752 if (!child) {
16753 arg = getpid();
16754 write(-1, "", 0);
16755 _exit (arg);
16756 }
16757 }
16758}
97bf5e38 16759
bec39cab
AC
16760int
16761main ()
16762{
a3828db0
MK
16763 pid_t parent = getpid ();
16764 pid_t child;
16765
16766 sparc_address_test (0);
16767
16768 child = vfork ();
16769
16770 if (child == 0) {
16771 /* Here is another test for sparc vfork register problems. This
16772 test uses lots of local variables, at least as many local
16773 variables as main has allocated so far including compiler
16774 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16775 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16776 reuse the register of parent for one of the local variables,
16777 since it will think that parent can't possibly be used any more
16778 in this routine. Assigning to the local variable will thus
16779 munge parent in the parent process. */
16780 pid_t
16781 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16782 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16783 /* Convince the compiler that p..p7 are live; otherwise, it might
16784 use the same hardware register for all 8 local variables. */
16785 if (p != p1 || p != p2 || p != p3 || p != p4
16786 || p != p5 || p != p6 || p != p7)
16787 _exit(1);
16788
16789 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16790 from child file descriptors. If the child closes a descriptor
16791 before it execs or exits, this munges the parent's descriptor
16792 as well. Test for this by closing stdout in the child. */
16793 _exit(close(fileno(stdout)) != 0);
16794 } else {
16795 int status;
16796 struct stat st;
16797
16798 while (wait(&status) != child)
16799 ;
b4e70030 16800 exit(
a3828db0
MK
16801 /* Was there some problem with vforking? */
16802 child < 0
16803
16804 /* Did the child fail? (This shouldn't happen.) */
16805 || status
16806
16807 /* Did the vfork/compiler bug occur? */
16808 || parent != getpid()
16809
16810 /* Did the file descriptor bug occur? */
16811 || fstat(fileno(stdout), &st) != 0
16812 );
16813 }
bec39cab
AC
16814}
16815_ACEOF
a3828db0 16816rm -f conftest$ac_exeext
bec39cab 16817if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 16818 (eval $ac_link) 2>&5
bec39cab
AC
16819 ac_status=$?
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 16821 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
16822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16823 (eval $ac_try) 2>&5
16824 ac_status=$?
16825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16826 (exit $ac_status); }; }; then
a3828db0
MK
16827 ac_cv_func_vfork_works=yes
16828else
16829 echo "$as_me: program exited with status $ac_status" >&5
16830echo "$as_me: failed program was:" >&5
16831sed 's/^/| /' conftest.$ac_ext >&5
16832
16833( exit $ac_status )
16834ac_cv_func_vfork_works=no
16835fi
b4e70030 16836rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
16837fi
16838fi
b4e70030
JB
16839echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
16840echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
a3828db0
MK
16841
16842fi;
16843if test "x$ac_cv_func_fork_works" = xcross; then
16844 ac_cv_func_vfork_works=$ac_cv_func_vfork
16845 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16846echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16847fi
16848
16849if test "x$ac_cv_func_vfork_works" = xyes; then
16850
16851cat >>confdefs.h <<\_ACEOF
16852#define HAVE_WORKING_VFORK 1
16853_ACEOF
16854
bec39cab 16855else
bec39cab 16856
a3828db0
MK
16857cat >>confdefs.h <<\_ACEOF
16858#define vfork fork
16859_ACEOF
16860
bec39cab 16861fi
a3828db0
MK
16862if test "x$ac_cv_func_fork_works" = xyes; then
16863
16864cat >>confdefs.h <<\_ACEOF
16865#define HAVE_WORKING_FORK 1
bec39cab 16866_ACEOF
c906108c 16867
c906108c
SS
16868fi
16869
bec39cab
AC
16870
16871
a3828db0 16872for ac_func in canonicalize_file_name realpath
97bf5e38 16873do
bec39cab 16874as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030 16875echo "$as_me:$LINENO: checking for $ac_func" >&5
7eb368b3
NR
16876echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16877if eval "test \"\${$as_ac_var+set}\" = set"; then
16878 echo $ECHO_N "(cached) $ECHO_C" >&6
16879else
16880 cat >conftest.$ac_ext <<_ACEOF
16881/* confdefs.h. */
16882_ACEOF
16883cat confdefs.h >>conftest.$ac_ext
16884cat >>conftest.$ac_ext <<_ACEOF
16885/* end confdefs.h. */
16886/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16888#define $ac_func innocuous_$ac_func
16889
16890/* System header to define __stub macros and hopefully few prototypes,
16891 which can conflict with char $ac_func (); below.
16892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16893 <limits.h> exists even on freestanding compilers. */
16894
16895#ifdef __STDC__
16896# include <limits.h>
16897#else
16898# include <assert.h>
16899#endif
16900
16901#undef $ac_func
16902
16903/* Override any gcc2 internal prototype to avoid an error. */
16904#ifdef __cplusplus
16905extern "C"
16906{
16907#endif
16908/* We use char because int might match the return type of a gcc2
16909 builtin and then its argument prototype would still apply. */
16910char $ac_func ();
16911/* The GNU C library defines this for functions which it implements
16912 to always fail with ENOSYS. Some functions are actually named
16913 something starting with __ and the normal name is an alias. */
16914#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16915choke me
16916#else
16917char (*f) () = $ac_func;
16918#endif
16919#ifdef __cplusplus
16920}
16921#endif
16922
16923int
16924main ()
16925{
16926return f != $ac_func;
16927 ;
16928 return 0;
16929}
16930_ACEOF
16931rm -f conftest.$ac_objext conftest$ac_exeext
16932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16933 (eval $ac_link) 2>conftest.er1
16934 ac_status=$?
16935 grep -v '^ *+' conftest.er1 >conftest.err
16936 rm -f conftest.er1
16937 cat conftest.err >&5
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); } &&
16940 { ac_try='test -z "$ac_c_werror_flag"
16941 || test ! -s conftest.err'
16942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16943 (eval $ac_try) 2>&5
16944 ac_status=$?
16945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946 (exit $ac_status); }; } &&
16947 { ac_try='test -s conftest$ac_exeext'
16948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16949 (eval $ac_try) 2>&5
16950 ac_status=$?
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); }; }; then
16953 eval "$as_ac_var=yes"
16954else
16955 echo "$as_me: failed program was:" >&5
16956sed 's/^/| /' conftest.$ac_ext >&5
16957
16958eval "$as_ac_var=no"
16959fi
16960rm -f conftest.err conftest.$ac_objext \
16961 conftest$ac_exeext conftest.$ac_ext
16962fi
16963echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16964echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16965if test `eval echo '${'$as_ac_var'}'` = yes; then
16966 cat >>confdefs.h <<_ACEOF
16967#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16968_ACEOF
16969
16970fi
16971done
16972
16973
16974for ac_func in getrusage
16975do
16976as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16977echo "$as_me:$LINENO: checking for $ac_func" >&5
b4e70030
JB
16978echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16979if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
16980 echo $ECHO_N "(cached) $ECHO_C" >&6
16981else
16982 cat >conftest.$ac_ext <<_ACEOF
16983/* confdefs.h. */
16984_ACEOF
16985cat confdefs.h >>conftest.$ac_ext
16986cat >>conftest.$ac_ext <<_ACEOF
16987/* end confdefs.h. */
16988/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16990#define $ac_func innocuous_$ac_func
16991
d3ea6809
MM
16992/* System header to define __stub macros and hopefully few prototypes,
16993 which can conflict with char $ac_func (); below.
16994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16995 <limits.h> exists even on freestanding compilers. */
16996
16997#ifdef __STDC__
16998# include <limits.h>
16999#else
17000# include <assert.h>
17001#endif
17002
17003#undef $ac_func
17004
b4e70030 17005/* Override any gcc2 internal prototype to avoid an error. */
d3ea6809
MM
17006#ifdef __cplusplus
17007extern "C"
b4e70030 17008{
d3ea6809 17009#endif
b4e70030
JB
17010/* We use char because int might match the return type of a gcc2
17011 builtin and then its argument prototype would still apply. */
d3ea6809
MM
17012char $ac_func ();
17013/* The GNU C library defines this for functions which it implements
17014 to always fail with ENOSYS. Some functions are actually named
17015 something starting with __ and the normal name is an alias. */
b4e70030 17016#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d3ea6809 17017choke me
b4e70030
JB
17018#else
17019char (*f) () = $ac_func;
17020#endif
17021#ifdef __cplusplus
17022}
d3ea6809
MM
17023#endif
17024
17025int
17026main ()
17027{
b4e70030 17028return f != $ac_func;
d3ea6809
MM
17029 ;
17030 return 0;
17031}
17032_ACEOF
17033rm -f conftest.$ac_objext conftest$ac_exeext
17034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17035 (eval $ac_link) 2>conftest.er1
17036 ac_status=$?
17037 grep -v '^ *+' conftest.er1 >conftest.err
17038 rm -f conftest.er1
17039 cat conftest.err >&5
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); } &&
b4e70030
JB
17042 { ac_try='test -z "$ac_c_werror_flag"
17043 || test ! -s conftest.err'
d3ea6809
MM
17044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17045 (eval $ac_try) 2>&5
17046 ac_status=$?
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); }; } &&
17049 { ac_try='test -s conftest$ac_exeext'
17050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17051 (eval $ac_try) 2>&5
17052 ac_status=$?
17053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17054 (exit $ac_status); }; }; then
17055 eval "$as_ac_var=yes"
17056else
17057 echo "$as_me: failed program was:" >&5
17058sed 's/^/| /' conftest.$ac_ext >&5
17059
b4e70030 17060eval "$as_ac_var=no"
d3ea6809
MM
17061fi
17062rm -f conftest.err conftest.$ac_objext \
17063 conftest$ac_exeext conftest.$ac_ext
17064fi
b4e70030
JB
17065echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17066echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
d3ea6809
MM
17067if test `eval echo '${'$as_ac_var'}'` = yes; then
17068 cat >>confdefs.h <<_ACEOF
17069#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17070_ACEOF
17071
17072fi
17073done
17074
17075
17076
17077for ac_func in getuid getgid
17078do
17079as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17080echo "$as_me:$LINENO: checking for $ac_func" >&5
17081echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17082if eval "test \"\${$as_ac_var+set}\" = set"; then
d3ea6809
MM
17083 echo $ECHO_N "(cached) $ECHO_C" >&6
17084else
17085 cat >conftest.$ac_ext <<_ACEOF
17086/* confdefs.h. */
17087_ACEOF
17088cat confdefs.h >>conftest.$ac_ext
17089cat >>conftest.$ac_ext <<_ACEOF
17090/* end confdefs.h. */
17091/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17092 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17093#define $ac_func innocuous_$ac_func
17094
97bf5e38 17095/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
17096 which can conflict with char $ac_func (); below.
17097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17098 <limits.h> exists even on freestanding compilers. */
c906108c 17099
bec39cab
AC
17100#ifdef __STDC__
17101# include <limits.h>
17102#else
17103# include <assert.h>
17104#endif
97bf5e38 17105
bec39cab
AC
17106#undef $ac_func
17107
b4e70030 17108/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
17109#ifdef __cplusplus
17110extern "C"
b4e70030 17111{
bec39cab 17112#endif
b4e70030
JB
17113/* We use char because int might match the return type of a gcc2
17114 builtin and then its argument prototype would still apply. */
bec39cab 17115char $ac_func ();
97bf5e38
MK
17116/* The GNU C library defines this for functions which it implements
17117 to always fail with ENOSYS. Some functions are actually named
17118 something starting with __ and the normal name is an alias. */
b4e70030 17119#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 17120choke me
b4e70030
JB
17121#else
17122char (*f) () = $ac_func;
17123#endif
17124#ifdef __cplusplus
17125}
c906108c 17126#endif
97bf5e38 17127
bec39cab
AC
17128int
17129main ()
17130{
b4e70030 17131return f != $ac_func;
bec39cab
AC
17132 ;
17133 return 0;
17134}
17135_ACEOF
17136rm -f conftest.$ac_objext conftest$ac_exeext
17137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17138 (eval $ac_link) 2>conftest.er1
17139 ac_status=$?
17140 grep -v '^ *+' conftest.er1 >conftest.err
17141 rm -f conftest.er1
17142 cat conftest.err >&5
17143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); } &&
b4e70030
JB
17145 { ac_try='test -z "$ac_c_werror_flag"
17146 || test ! -s conftest.err'
bec39cab
AC
17147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17148 (eval $ac_try) 2>&5
17149 ac_status=$?
17150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151 (exit $ac_status); }; } &&
17152 { ac_try='test -s conftest$ac_exeext'
17153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17154 (eval $ac_try) 2>&5
17155 ac_status=$?
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); }; }; then
17158 eval "$as_ac_var=yes"
17159else
17160 echo "$as_me: failed program was:" >&5
17161sed 's/^/| /' conftest.$ac_ext >&5
17162
b4e70030 17163eval "$as_ac_var=no"
bec39cab
AC
17164fi
17165rm -f conftest.err conftest.$ac_objext \
17166 conftest$ac_exeext conftest.$ac_ext
17167fi
b4e70030
JB
17168echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17169echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
17170if test `eval echo '${'$as_ac_var'}'` = yes; then
17171 cat >>confdefs.h <<_ACEOF
17172#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17173_ACEOF
c906108c 17174
c906108c 17175fi
97bf5e38 17176done
c906108c 17177
bec39cab 17178
a3828db0 17179for ac_func in poll
97bf5e38 17180do
bec39cab 17181as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17182echo "$as_me:$LINENO: checking for $ac_func" >&5
17183echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17184if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17185 echo $ECHO_N "(cached) $ECHO_C" >&6
17186else
17187 cat >conftest.$ac_ext <<_ACEOF
17188/* confdefs.h. */
17189_ACEOF
17190cat confdefs.h >>conftest.$ac_ext
17191cat >>conftest.$ac_ext <<_ACEOF
17192/* end confdefs.h. */
17193/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17195#define $ac_func innocuous_$ac_func
17196
97bf5e38 17197/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
17198 which can conflict with char $ac_func (); below.
17199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17200 <limits.h> exists even on freestanding compilers. */
17201
17202#ifdef __STDC__
17203# include <limits.h>
17204#else
17205# include <assert.h>
17206#endif
c906108c 17207
bec39cab 17208#undef $ac_func
97bf5e38 17209
b4e70030 17210/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
17211#ifdef __cplusplus
17212extern "C"
b4e70030 17213{
bec39cab 17214#endif
b4e70030
JB
17215/* We use char because int might match the return type of a gcc2
17216 builtin and then its argument prototype would still apply. */
bec39cab 17217char $ac_func ();
97bf5e38
MK
17218/* The GNU C library defines this for functions which it implements
17219 to always fail with ENOSYS. Some functions are actually named
17220 something starting with __ and the normal name is an alias. */
b4e70030 17221#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 17222choke me
b4e70030
JB
17223#else
17224char (*f) () = $ac_func;
17225#endif
17226#ifdef __cplusplus
17227}
c906108c 17228#endif
97bf5e38 17229
bec39cab
AC
17230int
17231main ()
17232{
b4e70030 17233return f != $ac_func;
bec39cab
AC
17234 ;
17235 return 0;
17236}
17237_ACEOF
17238rm -f conftest.$ac_objext conftest$ac_exeext
17239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17240 (eval $ac_link) 2>conftest.er1
17241 ac_status=$?
17242 grep -v '^ *+' conftest.er1 >conftest.err
17243 rm -f conftest.er1
17244 cat conftest.err >&5
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); } &&
b4e70030
JB
17247 { ac_try='test -z "$ac_c_werror_flag"
17248 || test ! -s conftest.err'
bec39cab
AC
17249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17250 (eval $ac_try) 2>&5
17251 ac_status=$?
17252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253 (exit $ac_status); }; } &&
17254 { ac_try='test -s conftest$ac_exeext'
17255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17256 (eval $ac_try) 2>&5
17257 ac_status=$?
17258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); }; }; then
17260 eval "$as_ac_var=yes"
17261else
17262 echo "$as_me: failed program was:" >&5
17263sed 's/^/| /' conftest.$ac_ext >&5
17264
b4e70030 17265eval "$as_ac_var=no"
bec39cab
AC
17266fi
17267rm -f conftest.err conftest.$ac_objext \
17268 conftest$ac_exeext conftest.$ac_ext
17269fi
b4e70030
JB
17270echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17271echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
17272if test `eval echo '${'$as_ac_var'}'` = yes; then
17273 cat >>confdefs.h <<_ACEOF
17274#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17275_ACEOF
c906108c 17276
c906108c 17277fi
97bf5e38 17278done
c906108c 17279
bec39cab 17280
a3828db0 17281for ac_func in pread64
97bf5e38 17282do
bec39cab 17283as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17284echo "$as_me:$LINENO: checking for $ac_func" >&5
17285echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17286if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17287 echo $ECHO_N "(cached) $ECHO_C" >&6
17288else
17289 cat >conftest.$ac_ext <<_ACEOF
17290/* confdefs.h. */
17291_ACEOF
17292cat confdefs.h >>conftest.$ac_ext
17293cat >>conftest.$ac_ext <<_ACEOF
17294/* end confdefs.h. */
17295/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17297#define $ac_func innocuous_$ac_func
17298
97bf5e38 17299/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
17300 which can conflict with char $ac_func (); below.
17301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17302 <limits.h> exists even on freestanding compilers. */
17303
17304#ifdef __STDC__
17305# include <limits.h>
17306#else
17307# include <assert.h>
17308#endif
c906108c 17309
bec39cab 17310#undef $ac_func
97bf5e38 17311
b4e70030 17312/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
17313#ifdef __cplusplus
17314extern "C"
b4e70030 17315{
bec39cab 17316#endif
b4e70030
JB
17317/* We use char because int might match the return type of a gcc2
17318 builtin and then its argument prototype would still apply. */
bec39cab 17319char $ac_func ();
97bf5e38
MK
17320/* The GNU C library defines this for functions which it implements
17321 to always fail with ENOSYS. Some functions are actually named
17322 something starting with __ and the normal name is an alias. */
b4e70030 17323#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 17324choke me
b4e70030
JB
17325#else
17326char (*f) () = $ac_func;
17327#endif
17328#ifdef __cplusplus
17329}
c906108c 17330#endif
97bf5e38 17331
bec39cab
AC
17332int
17333main ()
17334{
b4e70030 17335return f != $ac_func;
bec39cab
AC
17336 ;
17337 return 0;
17338}
17339_ACEOF
17340rm -f conftest.$ac_objext conftest$ac_exeext
17341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17342 (eval $ac_link) 2>conftest.er1
17343 ac_status=$?
17344 grep -v '^ *+' conftest.er1 >conftest.err
17345 rm -f conftest.er1
17346 cat conftest.err >&5
17347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17348 (exit $ac_status); } &&
b4e70030
JB
17349 { ac_try='test -z "$ac_c_werror_flag"
17350 || test ! -s conftest.err'
bec39cab
AC
17351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17352 (eval $ac_try) 2>&5
17353 ac_status=$?
17354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17355 (exit $ac_status); }; } &&
17356 { ac_try='test -s conftest$ac_exeext'
17357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17358 (eval $ac_try) 2>&5
17359 ac_status=$?
17360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361 (exit $ac_status); }; }; then
17362 eval "$as_ac_var=yes"
17363else
17364 echo "$as_me: failed program was:" >&5
17365sed 's/^/| /' conftest.$ac_ext >&5
17366
b4e70030 17367eval "$as_ac_var=no"
bec39cab
AC
17368fi
17369rm -f conftest.err conftest.$ac_objext \
17370 conftest$ac_exeext conftest.$ac_ext
17371fi
b4e70030
JB
17372echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17373echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
17374if test `eval echo '${'$as_ac_var'}'` = yes; then
17375 cat >>confdefs.h <<_ACEOF
17376#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17377_ACEOF
c906108c 17378
c906108c 17379fi
97bf5e38 17380done
c906108c 17381
bec39cab 17382
a3828db0 17383for ac_func in sbrk
b757528f 17384do
bec39cab 17385as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17386echo "$as_me:$LINENO: checking for $ac_func" >&5
17387echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17388if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17389 echo $ECHO_N "(cached) $ECHO_C" >&6
17390else
17391 cat >conftest.$ac_ext <<_ACEOF
17392/* confdefs.h. */
17393_ACEOF
17394cat confdefs.h >>conftest.$ac_ext
17395cat >>conftest.$ac_ext <<_ACEOF
17396/* end confdefs.h. */
17397/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17399#define $ac_func innocuous_$ac_func
17400
b757528f 17401/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
17402 which can conflict with char $ac_func (); below.
17403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17404 <limits.h> exists even on freestanding compilers. */
17405
17406#ifdef __STDC__
17407# include <limits.h>
17408#else
17409# include <assert.h>
17410#endif
b757528f 17411
bec39cab 17412#undef $ac_func
b757528f 17413
b4e70030 17414/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
17415#ifdef __cplusplus
17416extern "C"
b4e70030 17417{
bec39cab 17418#endif
b4e70030
JB
17419/* We use char because int might match the return type of a gcc2
17420 builtin and then its argument prototype would still apply. */
bec39cab 17421char $ac_func ();
b757528f
JJ
17422/* The GNU C library defines this for functions which it implements
17423 to always fail with ENOSYS. Some functions are actually named
17424 something starting with __ and the normal name is an alias. */
b4e70030 17425#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
b757528f 17426choke me
b4e70030
JB
17427#else
17428char (*f) () = $ac_func;
17429#endif
17430#ifdef __cplusplus
17431}
b757528f
JJ
17432#endif
17433
bec39cab
AC
17434int
17435main ()
17436{
b4e70030 17437return f != $ac_func;
bec39cab
AC
17438 ;
17439 return 0;
17440}
17441_ACEOF
17442rm -f conftest.$ac_objext conftest$ac_exeext
17443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17444 (eval $ac_link) 2>conftest.er1
17445 ac_status=$?
17446 grep -v '^ *+' conftest.er1 >conftest.err
17447 rm -f conftest.er1
17448 cat conftest.err >&5
17449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); } &&
b4e70030
JB
17451 { ac_try='test -z "$ac_c_werror_flag"
17452 || test ! -s conftest.err'
bec39cab
AC
17453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17454 (eval $ac_try) 2>&5
17455 ac_status=$?
17456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457 (exit $ac_status); }; } &&
17458 { ac_try='test -s conftest$ac_exeext'
17459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17460 (eval $ac_try) 2>&5
17461 ac_status=$?
17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); }; }; then
17464 eval "$as_ac_var=yes"
17465else
17466 echo "$as_me: failed program was:" >&5
17467sed 's/^/| /' conftest.$ac_ext >&5
17468
b4e70030 17469eval "$as_ac_var=no"
bec39cab
AC
17470fi
17471rm -f conftest.err conftest.$ac_objext \
17472 conftest$ac_exeext conftest.$ac_ext
17473fi
b4e70030
JB
17474echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17475echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
17476if test `eval echo '${'$as_ac_var'}'` = yes; then
17477 cat >>confdefs.h <<_ACEOF
17478#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17479_ACEOF
b757528f 17480
b757528f
JJ
17481fi
17482done
17483
bec39cab 17484
a3828db0
MK
17485
17486for ac_func in setpgid setpgrp
bcb3dc3d 17487do
bec39cab 17488as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17489echo "$as_me:$LINENO: checking for $ac_func" >&5
17490echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17491if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17492 echo $ECHO_N "(cached) $ECHO_C" >&6
17493else
17494 cat >conftest.$ac_ext <<_ACEOF
17495/* confdefs.h. */
17496_ACEOF
17497cat confdefs.h >>conftest.$ac_ext
17498cat >>conftest.$ac_ext <<_ACEOF
17499/* end confdefs.h. */
17500/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17502#define $ac_func innocuous_$ac_func
17503
bcb3dc3d 17504/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
17505 which can conflict with char $ac_func (); below.
17506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17507 <limits.h> exists even on freestanding compilers. */
17508
17509#ifdef __STDC__
17510# include <limits.h>
17511#else
17512# include <assert.h>
17513#endif
bcb3dc3d 17514
bec39cab 17515#undef $ac_func
bcb3dc3d 17516
b4e70030 17517/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
17518#ifdef __cplusplus
17519extern "C"
b4e70030 17520{
bec39cab 17521#endif
b4e70030
JB
17522/* We use char because int might match the return type of a gcc2
17523 builtin and then its argument prototype would still apply. */
bec39cab 17524char $ac_func ();
bcb3dc3d
MK
17525/* The GNU C library defines this for functions which it implements
17526 to always fail with ENOSYS. Some functions are actually named
17527 something starting with __ and the normal name is an alias. */
b4e70030 17528#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
bcb3dc3d 17529choke me
b4e70030
JB
17530#else
17531char (*f) () = $ac_func;
17532#endif
17533#ifdef __cplusplus
17534}
bcb3dc3d
MK
17535#endif
17536
bec39cab
AC
17537int
17538main ()
17539{
b4e70030 17540return f != $ac_func;
bec39cab
AC
17541 ;
17542 return 0;
17543}
17544_ACEOF
17545rm -f conftest.$ac_objext conftest$ac_exeext
17546if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17547 (eval $ac_link) 2>conftest.er1
17548 ac_status=$?
17549 grep -v '^ *+' conftest.er1 >conftest.err
17550 rm -f conftest.er1
17551 cat conftest.err >&5
17552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553 (exit $ac_status); } &&
b4e70030
JB
17554 { ac_try='test -z "$ac_c_werror_flag"
17555 || test ! -s conftest.err'
bec39cab
AC
17556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17557 (eval $ac_try) 2>&5
17558 ac_status=$?
17559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560 (exit $ac_status); }; } &&
17561 { ac_try='test -s conftest$ac_exeext'
17562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17563 (eval $ac_try) 2>&5
17564 ac_status=$?
17565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566 (exit $ac_status); }; }; then
17567 eval "$as_ac_var=yes"
17568else
17569 echo "$as_me: failed program was:" >&5
17570sed 's/^/| /' conftest.$ac_ext >&5
17571
b4e70030 17572eval "$as_ac_var=no"
bec39cab
AC
17573fi
17574rm -f conftest.err conftest.$ac_objext \
17575 conftest$ac_exeext conftest.$ac_ext
17576fi
b4e70030
JB
17577echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17578echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
17579if test `eval echo '${'$as_ac_var'}'` = yes; then
17580 cat >>confdefs.h <<_ACEOF
17581#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17582_ACEOF
bcb3dc3d 17583
bcb3dc3d
MK
17584fi
17585done
17586
bec39cab 17587
a3828db0
MK
17588
17589
17590for ac_func in sigaction sigprocmask sigsetmask
8b9cf735 17591do
bec39cab 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
bec39cab
AC
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
8b9cf735 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. */
17612
17613#ifdef __STDC__
17614# include <limits.h>
17615#else
17616# include <assert.h>
17617#endif
8b9cf735 17618
bec39cab 17619#undef $ac_func
8b9cf735 17620
b4e70030 17621/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
17622#ifdef __cplusplus
17623extern "C"
b4e70030 17624{
a3828db0 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. */
a3828db0
MK
17628char $ac_func ();
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)
a3828db0 17633choke me
b4e70030
JB
17634#else
17635char (*f) () = $ac_func;
17636#endif
17637#ifdef __cplusplus
17638}
a3828db0
MK
17639#endif
17640
bec39cab
AC
17641int
17642main ()
17643{
b4e70030 17644return f != $ac_func;
bec39cab
AC
17645 ;
17646 return 0;
17647}
17648_ACEOF
a3828db0
MK
17649rm -f conftest.$ac_objext conftest$ac_exeext
17650if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17651 (eval $ac_link) 2>conftest.er1
bec39cab
AC
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); }; } &&
a3828db0 17665 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
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
a3828db0 17671 eval "$as_ac_var=yes"
086ec9eb 17672else
bec39cab
AC
17673 echo "$as_me: failed program was:" >&5
17674sed 's/^/| /' conftest.$ac_ext >&5
17675
b4e70030 17676eval "$as_ac_var=no"
a3828db0
MK
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
a3828db0
MK
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
17687
086ec9eb 17688fi
a3828db0
MK
17689done
17690
17691
17692for ac_func in socketpair
17693do
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
a3828db0
MK
17698 echo $ECHO_N "(cached) $ECHO_C" >&6
17699else
17700 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
17701/* confdefs.h. */
17702_ACEOF
17703cat confdefs.h >>conftest.$ac_ext
17704cat >>conftest.$ac_ext <<_ACEOF
17705/* end confdefs.h. */
a3828db0
MK
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
17710/* System header to define __stub macros and hopefully few prototypes,
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
17720
17721#undef $ac_func
17722
b4e70030 17723/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
17724#ifdef __cplusplus
17725extern "C"
b4e70030 17726{
a3828db0 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. */
a3828db0
MK
17730char $ac_func ();
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)
a3828db0 17735choke me
b4e70030
JB
17736#else
17737char (*f) () = $ac_func;
17738#endif
17739#ifdef __cplusplus
17740}
a3828db0
MK
17741#endif
17742
bec39cab
AC
17743int
17744main ()
17745{
b4e70030 17746return f != $ac_func;
bec39cab
AC
17747 ;
17748 return 0;
17749}
17750_ACEOF
a3828db0
MK
17751rm -f conftest.$ac_objext conftest$ac_exeext
17752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17753 (eval $ac_link) 2>conftest.er1
bec39cab
AC
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); }; } &&
a3828db0 17767 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
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
a3828db0 17773 eval "$as_ac_var=yes"
086ec9eb 17774else
bec39cab
AC
17775 echo "$as_me: failed program was:" >&5
17776sed 's/^/| /' conftest.$ac_ext >&5
17777
b4e70030 17778eval "$as_ac_var=no"
086ec9eb 17779fi
a3828db0
MK
17780rm -f conftest.err conftest.$ac_objext \
17781 conftest$ac_exeext conftest.$ac_ext
086ec9eb 17782fi
b4e70030
JB
17783echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17784echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
17785if test `eval echo '${'$as_ac_var'}'` = yes; then
17786 cat >>confdefs.h <<_ACEOF
17787#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 17788_ACEOF
086ec9eb
MK
17789
17790fi
a3828db0 17791done
086ec9eb 17792
a3828db0
MK
17793
17794for ac_func in syscall
17795do
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 17800 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab
AC
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. */
a3828db0
MK
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
17812/* System header to define __stub macros and hopefully few prototypes,
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
17822
17823#undef $ac_func
17824
b4e70030 17825/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
17826#ifdef __cplusplus
17827extern "C"
b4e70030 17828{
a3828db0 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. */
a3828db0
MK
17832char $ac_func ();
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)
a3828db0 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 ()
97bf5e38 17847{
b4e70030 17848return f != $ac_func;
bec39cab
AC
17849 ;
17850 return 0;
97bf5e38 17851}
bec39cab 17852_ACEOF
a3828db0 17853rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab 17854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 17855 (eval $ac_link) 2>conftest.er1
bec39cab 17856 ac_status=$?
a3828db0
MK
17857 grep -v '^ *+' conftest.er1 >conftest.err
17858 rm -f conftest.er1
17859 cat conftest.err >&5
bec39cab 17860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 17861 (exit $ac_status); } &&
b4e70030
JB
17862 { ac_try='test -z "$ac_c_werror_flag"
17863 || test ! -s conftest.err'
a3828db0
MK
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'
bec39cab
AC
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
a3828db0 17875 eval "$as_ac_var=yes"
c906108c 17876else
a3828db0 17877 echo "$as_me: failed program was:" >&5
bec39cab
AC
17878sed 's/^/| /' conftest.$ac_ext >&5
17879
b4e70030 17880eval "$as_ac_var=no"
97bf5e38 17881fi
a3828db0
MK
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
a3828db0
MK
17887if test `eval echo '${'$as_ac_var'}'` = yes; then
17888 cat >>confdefs.h <<_ACEOF
17889#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 17890_ACEOF
c906108c
SS
17891
17892fi
a3828db0 17893done
c906108c 17894
a3828db0
MK
17895
17896for ac_func in ttrace
17897do
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 17902 echo $ECHO_N "(cached) $ECHO_C" >&6
b83266a0 17903else
bec39cab
AC
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. */
a3828db0
MK
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
b83266a0 17913
a3828db0
MK
17914/* System header to define __stub macros and hopefully few prototypes,
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
17924
17925#undef $ac_func
17926
b4e70030 17927/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
17928#ifdef __cplusplus
17929extern "C"
b4e70030 17930{
a3828db0 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. */
a3828db0
MK
17934char $ac_func ();
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)
a3828db0 17939choke me
b4e70030
JB
17940#else
17941char (*f) () = $ac_func;
17942#endif
17943#ifdef __cplusplus
17944}
a3828db0 17945#endif
97bf5e38 17946
bec39cab
AC
17947int
17948main ()
17949{
b4e70030 17950return f != $ac_func;
bec39cab
AC
17951 ;
17952 return 0;
17953}
17954_ACEOF
a3828db0
MK
17955rm -f conftest.$ac_objext conftest$ac_exeext
17956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17957 (eval $ac_link) 2>conftest.er1
bec39cab
AC
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); }; } &&
a3828db0 17971 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
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
a3828db0 17977 eval "$as_ac_var=yes"
b83266a0 17978else
bec39cab
AC
17979 echo "$as_me: failed program was:" >&5
17980sed 's/^/| /' conftest.$ac_ext >&5
17981
b4e70030 17982eval "$as_ac_var=no"
b83266a0 17983fi
a3828db0
MK
17984rm -f conftest.err conftest.$ac_objext \
17985 conftest$ac_exeext conftest.$ac_ext
b83266a0 17986fi
b4e70030
JB
17987echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17988echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
17989if test `eval echo '${'$as_ac_var'}'` = yes; then
17990 cat >>confdefs.h <<_ACEOF
17991#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 17992_ACEOF
b83266a0 17993
97bf5e38 17994fi
a3828db0 17995done
b83266a0 17996
a3828db0
MK
17997
17998for ac_func in wborder
17999do
18000as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
18001echo "$as_me:$LINENO: checking for $ac_func" >&5
18002echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18003if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
18004 echo $ECHO_N "(cached) $ECHO_C" >&6
18005else
18006 cat >conftest.$ac_ext <<_ACEOF
18007/* confdefs.h. */
18008_ACEOF
18009cat confdefs.h >>conftest.$ac_ext
18010cat >>conftest.$ac_ext <<_ACEOF
18011/* end confdefs.h. */
a3828db0
MK
18012/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18014#define $ac_func innocuous_$ac_func
a4db0f07 18015
a3828db0
MK
18016/* System header to define __stub macros and hopefully few prototypes,
18017 which can conflict with char $ac_func (); below.
18018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18019 <limits.h> exists even on freestanding compilers. */
18020
18021#ifdef __STDC__
18022# include <limits.h>
18023#else
18024# include <assert.h>
18025#endif
18026
18027#undef $ac_func
18028
b4e70030 18029/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
18030#ifdef __cplusplus
18031extern "C"
b4e70030 18032{
a3828db0 18033#endif
b4e70030
JB
18034/* We use char because int might match the return type of a gcc2
18035 builtin and then its argument prototype would still apply. */
a3828db0
MK
18036char $ac_func ();
18037/* The GNU C library defines this for functions which it implements
18038 to always fail with ENOSYS. Some functions are actually named
18039 something starting with __ and the normal name is an alias. */
b4e70030 18040#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 18041choke me
b4e70030
JB
18042#else
18043char (*f) () = $ac_func;
18044#endif
18045#ifdef __cplusplus
18046}
a3828db0 18047#endif
97bf5e38 18048
bec39cab
AC
18049int
18050main ()
18051{
b4e70030 18052return f != $ac_func;
bec39cab
AC
18053 ;
18054 return 0;
18055}
18056_ACEOF
a3828db0
MK
18057rm -f conftest.$ac_objext conftest$ac_exeext
18058if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18059 (eval $ac_link) 2>conftest.er1
bec39cab
AC
18060 ac_status=$?
18061 grep -v '^ *+' conftest.er1 >conftest.err
18062 rm -f conftest.er1
18063 cat conftest.err >&5
18064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065 (exit $ac_status); } &&
b4e70030
JB
18066 { ac_try='test -z "$ac_c_werror_flag"
18067 || test ! -s conftest.err'
bec39cab
AC
18068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18069 (eval $ac_try) 2>&5
18070 ac_status=$?
18071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072 (exit $ac_status); }; } &&
a3828db0 18073 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
18074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18075 (eval $ac_try) 2>&5
18076 ac_status=$?
18077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18078 (exit $ac_status); }; }; then
a3828db0 18079 eval "$as_ac_var=yes"
a4db0f07 18080else
bec39cab
AC
18081 echo "$as_me: failed program was:" >&5
18082sed 's/^/| /' conftest.$ac_ext >&5
18083
b4e70030 18084eval "$as_ac_var=no"
a4db0f07 18085fi
a3828db0
MK
18086rm -f conftest.err conftest.$ac_objext \
18087 conftest$ac_exeext conftest.$ac_ext
a4db0f07 18088fi
b4e70030
JB
18089echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18090echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
18091if test `eval echo '${'$as_ac_var'}'` = yes; then
18092 cat >>confdefs.h <<_ACEOF
18093#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 18094_ACEOF
a4db0f07
RH
18095
18096fi
a3828db0 18097done
c906108c 18098
06825bd1 18099
a3828db0
MK
18100# Check the return and argument types of ptrace. No canned test for
18101# this, so roll our own.
18102gdb_ptrace_headers='
18103#if HAVE_SYS_TYPES_H
18104# include <sys/types.h>
18105#endif
18106#if HAVE_SYS_PTRACE_H
18107# include <sys/ptrace.h>
18108#endif
18109#if HAVE_UNISTD_H
18110# include <unistd.h>
18111#endif
18112'
18113# There is no point in checking if we don't have a prototype.
b4e70030
JB
18114echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
18115echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
a3828db0 18116if test "${ac_cv_have_decl_ptrace+set}" = set; then
bec39cab
AC
18117 echo $ECHO_N "(cached) $ECHO_C" >&6
18118else
18119 cat >conftest.$ac_ext <<_ACEOF
18120/* confdefs.h. */
18121_ACEOF
18122cat confdefs.h >>conftest.$ac_ext
18123cat >>conftest.$ac_ext <<_ACEOF
18124/* end confdefs.h. */
a3828db0
MK
18125$gdb_ptrace_headers
18126
bec39cab
AC
18127int
18128main ()
18129{
a3828db0
MK
18130#ifndef ptrace
18131 char *p = (char *) ptrace;
06825bd1 18132#endif
a3828db0 18133
bec39cab
AC
18134 ;
18135 return 0;
18136}
18137_ACEOF
18138rm -f conftest.$ac_objext
18139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18140 (eval $ac_compile) 2>conftest.er1
18141 ac_status=$?
18142 grep -v '^ *+' conftest.er1 >conftest.err
18143 rm -f conftest.er1
18144 cat conftest.err >&5
18145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18146 (exit $ac_status); } &&
b4e70030
JB
18147 { ac_try='test -z "$ac_c_werror_flag"
18148 || test ! -s conftest.err'
bec39cab
AC
18149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18150 (eval $ac_try) 2>&5
18151 ac_status=$?
18152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18153 (exit $ac_status); }; } &&
18154 { ac_try='test -s conftest.$ac_objext'
18155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18156 (eval $ac_try) 2>&5
18157 ac_status=$?
18158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18159 (exit $ac_status); }; }; then
a3828db0 18160 ac_cv_have_decl_ptrace=yes
06825bd1 18161else
bec39cab
AC
18162 echo "$as_me: failed program was:" >&5
18163sed 's/^/| /' conftest.$ac_ext >&5
18164
b4e70030 18165ac_cv_have_decl_ptrace=no
06825bd1 18166fi
bec39cab 18167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
06825bd1 18168fi
b4e70030
JB
18169echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
18170echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
a3828db0 18171if test $ac_cv_have_decl_ptrace = yes; then
06825bd1 18172
a3828db0
MK
18173cat >>confdefs.h <<_ACEOF
18174#define HAVE_DECL_PTRACE 1
18175_ACEOF
bec39cab 18176
bec39cab 18177
a3828db0
MK
18178else
18179 cat >>confdefs.h <<_ACEOF
18180#define HAVE_DECL_PTRACE 0
bec39cab 18181_ACEOF
06825bd1 18182
a3828db0
MK
18183
18184 : ${gdb_cv_func_ptrace_ret='int'}
18185 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
18186
06825bd1
MK
18187fi
18188
a3828db0
MK
18189
18190# Check return type.
b4e70030
JB
18191echo "$as_me:$LINENO: checking return type of ptrace" >&5
18192echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
a3828db0 18193if test "${gdb_cv_func_ptrace_ret+set}" = set; then
bec39cab
AC
18194 echo $ECHO_N "(cached) $ECHO_C" >&6
18195else
18196 cat >conftest.$ac_ext <<_ACEOF
18197/* confdefs.h. */
18198_ACEOF
18199cat confdefs.h >>conftest.$ac_ext
18200cat >>conftest.$ac_ext <<_ACEOF
18201/* end confdefs.h. */
a3828db0 18202$gdb_ptrace_headers
bec39cab
AC
18203int
18204main ()
18205{
a3828db0 18206extern int ptrace ();
bec39cab
AC
18207 ;
18208 return 0;
18209}
18210_ACEOF
18211rm -f conftest.$ac_objext
18212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18213 (eval $ac_compile) 2>conftest.er1
18214 ac_status=$?
18215 grep -v '^ *+' conftest.er1 >conftest.err
18216 rm -f conftest.er1
18217 cat conftest.err >&5
18218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219 (exit $ac_status); } &&
b4e70030
JB
18220 { ac_try='test -z "$ac_c_werror_flag"
18221 || test ! -s conftest.err'
bec39cab
AC
18222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18223 (eval $ac_try) 2>&5
18224 ac_status=$?
18225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); }; } &&
18227 { ac_try='test -s conftest.$ac_objext'
18228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18229 (eval $ac_try) 2>&5
18230 ac_status=$?
18231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232 (exit $ac_status); }; }; then
a3828db0 18233 gdb_cv_func_ptrace_ret='int'
70f9f479 18234else
bec39cab
AC
18235 echo "$as_me: failed program was:" >&5
18236sed 's/^/| /' conftest.$ac_ext >&5
18237
b4e70030 18238gdb_cv_func_ptrace_ret='long'
70f9f479 18239fi
bec39cab 18240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70f9f479 18241fi
b4e70030
JB
18242echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
18243echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
bec39cab 18244
a3828db0
MK
18245cat >>confdefs.h <<_ACEOF
18246#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
bec39cab 18247_ACEOF
70f9f479 18248
a3828db0 18249# Check argument types.
b4e70030
JB
18250echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
18251echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
a3828db0 18252if test "${gdb_cv_func_ptrace_args+set}" = set; then
bec39cab
AC
18253 echo $ECHO_N "(cached) $ECHO_C" >&6
18254else
a3828db0
MK
18255
18256for gdb_arg1 in 'int' 'long'; do
18257 for gdb_arg2 in 'pid_t' 'int' 'long'; do
18258 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
18259 for gdb_arg4 in 'int' 'long'; do
18260 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
18261/* confdefs.h. */
18262_ACEOF
18263cat confdefs.h >>conftest.$ac_ext
18264cat >>conftest.$ac_ext <<_ACEOF
18265/* end confdefs.h. */
a3828db0 18266$gdb_ptrace_headers
bec39cab
AC
18267int
18268main ()
18269{
a3828db0
MK
18270
18271extern $gdb_cv_func_ptrace_ret
18272 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
18273
bec39cab
AC
18274 ;
18275 return 0;
18276}
18277_ACEOF
18278rm -f conftest.$ac_objext
18279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18280 (eval $ac_compile) 2>conftest.er1
18281 ac_status=$?
18282 grep -v '^ *+' conftest.er1 >conftest.err
18283 rm -f conftest.er1
18284 cat conftest.err >&5
18285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286 (exit $ac_status); } &&
b4e70030
JB
18287 { ac_try='test -z "$ac_c_werror_flag"
18288 || test ! -s conftest.err'
bec39cab
AC
18289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18290 (eval $ac_try) 2>&5
18291 ac_status=$?
18292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18293 (exit $ac_status); }; } &&
18294 { ac_try='test -s conftest.$ac_objext'
18295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18296 (eval $ac_try) 2>&5
18297 ac_status=$?
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); }; }; then
a3828db0
MK
18300 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
18301 break 4;
5c7f2947 18302else
bec39cab
AC
18303 echo "$as_me: failed program was:" >&5
18304sed 's/^/| /' conftest.$ac_ext >&5
18305
5c7f2947 18306fi
bec39cab 18307rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
18308 for gdb_arg5 in 'int *' 'int' 'long'; do
18309 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
18310/* confdefs.h. */
18311_ACEOF
18312cat confdefs.h >>conftest.$ac_ext
18313cat >>conftest.$ac_ext <<_ACEOF
18314/* end confdefs.h. */
a3828db0 18315$gdb_ptrace_headers
bec39cab
AC
18316int
18317main ()
18318{
a3828db0
MK
18319
18320extern $gdb_cv_func_ptrace_ret
18321 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
18322
bec39cab
AC
18323 ;
18324 return 0;
18325}
18326_ACEOF
18327rm -f conftest.$ac_objext
18328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18329 (eval $ac_compile) 2>conftest.er1
18330 ac_status=$?
18331 grep -v '^ *+' conftest.er1 >conftest.err
18332 rm -f conftest.er1
18333 cat conftest.err >&5
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); } &&
b4e70030
JB
18336 { ac_try='test -z "$ac_c_werror_flag"
18337 || test ! -s conftest.err'
bec39cab
AC
18338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18339 (eval $ac_try) 2>&5
18340 ac_status=$?
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); }; } &&
18343 { ac_try='test -s conftest.$ac_objext'
18344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18345 (eval $ac_try) 2>&5
18346 ac_status=$?
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); }; }; then
a3828db0
MK
18349
18350gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
18351 break 5;
78434e59 18352else
bec39cab
AC
18353 echo "$as_me: failed program was:" >&5
18354sed 's/^/| /' conftest.$ac_ext >&5
18355
78434e59 18356fi
bec39cab 18357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
18358 done
18359 done
18360 done
18361 done
18362done
18363# Provide a safe default value.
18364: ${gdb_cv_func_ptrace_args='int,int,long,long'}
18365
78434e59 18366fi
b4e70030
JB
18367echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
18368echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
a3828db0
MK
18369ac_save_IFS=$IFS; IFS=','
18370set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
18371IFS=$ac_save_IFS
18372shift
bec39cab 18373
a3828db0
MK
18374cat >>confdefs.h <<_ACEOF
18375#define PTRACE_TYPE_ARG3 $3
18376_ACEOF
18377
18378if test -n "$5"; then
18379
18380cat >>confdefs.h <<_ACEOF
18381#define PTRACE_TYPE_ARG5 $5
bec39cab 18382_ACEOF
78434e59
MK
18383
18384fi
18385
a3828db0 18386if test "$cross_compiling" = no; then
b4e70030
JB
18387 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
18388echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
a3828db0 18389if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 18390 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
18391else
18392 if test "$cross_compiling" = yes; then
18393 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
18394echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
18395 { (exit 1); exit 1; }; }
bec39cab
AC
18396else
18397 cat >conftest.$ac_ext <<_ACEOF
18398/* confdefs.h. */
18399_ACEOF
18400cat confdefs.h >>conftest.$ac_ext
18401cat >>conftest.$ac_ext <<_ACEOF
18402/* end confdefs.h. */
b4e70030
JB
18403#if HAVE_UNISTD_H
18404# include <unistd.h>
18405#endif
18406
bec39cab
AC
18407int
18408main ()
18409{
a3828db0
MK
18410/* If this system has a BSD-style setpgrp which takes arguments,
18411 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
18412 exit successfully. */
b4e70030 18413 exit (setpgrp (1,1) == -1 ? 0 : 1);
bec39cab
AC
18414 ;
18415 return 0;
18416}
18417_ACEOF
a3828db0
MK
18418rm -f conftest$ac_exeext
18419if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18420 (eval $ac_link) 2>&5
bec39cab
AC
18421 ac_status=$?
18422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 18423 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
18424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18425 (eval $ac_try) 2>&5
18426 ac_status=$?
18427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); }; }; then
a3828db0 18429 ac_cv_func_setpgrp_void=no
c906108c 18430else
a3828db0
MK
18431 echo "$as_me: program exited with status $ac_status" >&5
18432echo "$as_me: failed program was:" >&5
bec39cab
AC
18433sed 's/^/| /' conftest.$ac_ext >&5
18434
a3828db0
MK
18435( exit $ac_status )
18436ac_cv_func_setpgrp_void=yes
c906108c 18437fi
b4e70030 18438rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 18439fi
a3828db0 18440fi
b4e70030
JB
18441echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
18442echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
a3828db0
MK
18443if test $ac_cv_func_setpgrp_void = yes; then
18444
18445cat >>confdefs.h <<\_ACEOF
18446#define SETPGRP_VOID 1
bec39cab 18447_ACEOF
97bf5e38
MK
18448
18449fi
a3828db0
MK
18450
18451else
b4e70030
JB
18452 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
18453echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
a3828db0 18454if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 18455 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 18456else
bec39cab
AC
18457 cat >conftest.$ac_ext <<_ACEOF
18458/* confdefs.h. */
18459_ACEOF
18460cat confdefs.h >>conftest.$ac_ext
18461cat >>conftest.$ac_ext <<_ACEOF
18462/* end confdefs.h. */
a3828db0
MK
18463
18464#include <unistd.h>
18465
bec39cab
AC
18466int
18467main ()
18468{
a3828db0
MK
18469
18470 if (setpgrp(1,1) == -1)
18471 exit (0);
18472 else
18473 exit (1);
18474
bec39cab
AC
18475 ;
18476 return 0;
18477}
18478_ACEOF
18479rm -f conftest.$ac_objext
18480if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18481 (eval $ac_compile) 2>conftest.er1
18482 ac_status=$?
18483 grep -v '^ *+' conftest.er1 >conftest.err
18484 rm -f conftest.er1
18485 cat conftest.err >&5
18486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487 (exit $ac_status); } &&
b4e70030
JB
18488 { ac_try='test -z "$ac_c_werror_flag"
18489 || test ! -s conftest.err'
bec39cab
AC
18490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18491 (eval $ac_try) 2>&5
18492 ac_status=$?
18493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18494 (exit $ac_status); }; } &&
18495 { ac_try='test -s conftest.$ac_objext'
18496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18497 (eval $ac_try) 2>&5
18498 ac_status=$?
18499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18500 (exit $ac_status); }; }; then
a3828db0 18501 ac_cv_func_setpgrp_void=no
c906108c 18502else
bec39cab
AC
18503 echo "$as_me: failed program was:" >&5
18504sed 's/^/| /' conftest.$ac_ext >&5
18505
b4e70030 18506ac_cv_func_setpgrp_void=yes
c906108c 18507fi
bec39cab 18508rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18509fi
b4e70030
JB
18510echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
18511echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
a3828db0 18512if test $ac_cv_func_setpgrp_void = yes; then
bec39cab 18513 cat >>confdefs.h <<\_ACEOF
a3828db0 18514#define SETPGRP_VOID 1
bec39cab 18515_ACEOF
c3f6f71d 18516
a3828db0 18517fi
c906108c
SS
18518fi
18519
a3828db0
MK
18520# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
18521# since sigsetjmp might only be defined as a macro.
b4e70030
JB
18522echo "$as_me:$LINENO: checking for sigsetjmp" >&5
18523echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
a3828db0 18524if test "${gdb_cv_func_sigsetjmp+set}" = set; then
bec39cab
AC
18525 echo $ECHO_N "(cached) $ECHO_C" >&6
18526else
18527 cat >conftest.$ac_ext <<_ACEOF
18528/* confdefs.h. */
18529_ACEOF
18530cat confdefs.h >>conftest.$ac_ext
18531cat >>conftest.$ac_ext <<_ACEOF
18532/* end confdefs.h. */
a3828db0
MK
18533
18534#include <setjmp.h>
18535
bec39cab
AC
18536int
18537main ()
18538{
a3828db0 18539sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
bec39cab
AC
18540 ;
18541 return 0;
18542}
18543_ACEOF
18544rm -f conftest.$ac_objext
18545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18546 (eval $ac_compile) 2>conftest.er1
18547 ac_status=$?
18548 grep -v '^ *+' conftest.er1 >conftest.err
18549 rm -f conftest.er1
18550 cat conftest.err >&5
18551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 (exit $ac_status); } &&
b4e70030
JB
18553 { ac_try='test -z "$ac_c_werror_flag"
18554 || test ! -s conftest.err'
bec39cab
AC
18555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18556 (eval $ac_try) 2>&5
18557 ac_status=$?
18558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18559 (exit $ac_status); }; } &&
18560 { ac_try='test -s conftest.$ac_objext'
18561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18562 (eval $ac_try) 2>&5
18563 ac_status=$?
18564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565 (exit $ac_status); }; }; then
a3828db0 18566 gdb_cv_func_sigsetjmp=yes
c906108c 18567else
bec39cab
AC
18568 echo "$as_me: failed program was:" >&5
18569sed 's/^/| /' conftest.$ac_ext >&5
18570
b4e70030 18571gdb_cv_func_sigsetjmp=no
c906108c 18572fi
bec39cab 18573rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18574fi
b4e70030
JB
18575echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
18576echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
a3828db0 18577if test $gdb_cv_func_sigsetjmp = yes; then
c906108c 18578
a3828db0
MK
18579cat >>confdefs.h <<\_ACEOF
18580#define HAVE_SIGSETJMP 1
bec39cab 18581_ACEOF
c906108c 18582
97bf5e38 18583fi
c906108c 18584
a3828db0
MK
18585# Assume we'll default to using the included libiberty regex.
18586gdb_use_included_regex=yes
18587
18588# However, if the system regex is GNU regex, then default to *not*
18589# using the included regex.
b4e70030
JB
18590echo "$as_me:$LINENO: checking for GNU regex" >&5
18591echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
a3828db0 18592if test "${gdb_cv_have_gnu_regex+set}" = set; then
bec39cab
AC
18593 echo $ECHO_N "(cached) $ECHO_C" >&6
18594else
18595 cat >conftest.$ac_ext <<_ACEOF
18596/* confdefs.h. */
18597_ACEOF
18598cat confdefs.h >>conftest.$ac_ext
18599cat >>conftest.$ac_ext <<_ACEOF
18600/* end confdefs.h. */
a3828db0 18601#include <gnu-versions.h>
bec39cab
AC
18602int
18603main ()
18604{
a3828db0
MK
18605#define REGEX_INTERFACE_VERSION 1
18606#if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
18607# error "Version mismatch"
18608#endif
bec39cab
AC
18609 ;
18610 return 0;
18611}
18612_ACEOF
18613rm -f conftest.$ac_objext
18614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18615 (eval $ac_compile) 2>conftest.er1
18616 ac_status=$?
18617 grep -v '^ *+' conftest.er1 >conftest.err
18618 rm -f conftest.er1
18619 cat conftest.err >&5
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); } &&
b4e70030
JB
18622 { ac_try='test -z "$ac_c_werror_flag"
18623 || test ! -s conftest.err'
bec39cab
AC
18624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18625 (eval $ac_try) 2>&5
18626 ac_status=$?
18627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628 (exit $ac_status); }; } &&
18629 { ac_try='test -s conftest.$ac_objext'
18630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18631 (eval $ac_try) 2>&5
18632 ac_status=$?
18633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634 (exit $ac_status); }; }; then
a3828db0 18635 gdb_cv_have_gnu_regex=yes
c906108c 18636else
bec39cab
AC
18637 echo "$as_me: failed program was:" >&5
18638sed 's/^/| /' conftest.$ac_ext >&5
18639
b4e70030 18640gdb_cv_have_gnu_regex=no
c906108c 18641fi
bec39cab 18642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18643fi
b4e70030
JB
18644echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
18645echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
a3828db0
MK
18646if test $gdb_cv_have_gnu_regex = yes; then
18647 gdb_use_included_regex=no
18648fi
c906108c 18649
a3828db0 18650
b4e70030 18651# Check whether --with-included-regex or --without-included-regex was given.
a3828db0 18652if test "${with_included_regex+set}" = set; then
b4e70030
JB
18653 withval="$with_included_regex"
18654 gdb_with_regex=$withval
a3828db0
MK
18655else
18656 gdb_with_regex=$gdb_use_included_regex
b4e70030 18657fi;
a3828db0
MK
18658if test "$gdb_with_regex" = yes; then
18659
18660cat >>confdefs.h <<\_ACEOF
18661#define USE_INCLUDED_REGEX 1
bec39cab 18662_ACEOF
c906108c 18663
97bf5e38 18664fi
c906108c 18665
5c45e068 18666# Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
b4e70030
JB
18667echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
18668echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
5c45e068 18669if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
bec39cab
AC
18670 echo $ECHO_N "(cached) $ECHO_C" >&6
18671else
18672 cat >conftest.$ac_ext <<_ACEOF
18673/* confdefs.h. */
18674_ACEOF
18675cat confdefs.h >>conftest.$ac_ext
18676cat >>conftest.$ac_ext <<_ACEOF
18677/* end confdefs.h. */
a3828db0
MK
18678#include <sys/param.h>
18679#include <sys/proc.h>
5c45e068
MK
18680
18681
bec39cab
AC
18682int
18683main ()
18684{
5c45e068
MK
18685static struct thread ac_aggr;
18686if (ac_aggr.td_pcb)
18687return 0;
bec39cab
AC
18688 ;
18689 return 0;
18690}
18691_ACEOF
18692rm -f conftest.$ac_objext
18693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18694 (eval $ac_compile) 2>conftest.er1
18695 ac_status=$?
18696 grep -v '^ *+' conftest.er1 >conftest.err
18697 rm -f conftest.er1
18698 cat conftest.err >&5
18699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18700 (exit $ac_status); } &&
b4e70030
JB
18701 { ac_try='test -z "$ac_c_werror_flag"
18702 || test ! -s conftest.err'
bec39cab
AC
18703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18704 (eval $ac_try) 2>&5
18705 ac_status=$?
18706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18707 (exit $ac_status); }; } &&
18708 { ac_try='test -s conftest.$ac_objext'
18709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18710 (eval $ac_try) 2>&5
18711 ac_status=$?
18712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713 (exit $ac_status); }; }; then
5c45e068 18714 ac_cv_member_struct_thread_td_pcb=yes
c906108c 18715else
bec39cab
AC
18716 echo "$as_me: failed program was:" >&5
18717sed 's/^/| /' conftest.$ac_ext >&5
18718
b4e70030 18719cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
18720/* confdefs.h. */
18721_ACEOF
18722cat confdefs.h >>conftest.$ac_ext
18723cat >>conftest.$ac_ext <<_ACEOF
18724/* end confdefs.h. */
18725#include <sys/param.h>
18726#include <sys/proc.h>
18727
18728
18729int
18730main ()
18731{
18732static struct thread ac_aggr;
18733if (sizeof ac_aggr.td_pcb)
18734return 0;
18735 ;
18736 return 0;
18737}
18738_ACEOF
18739rm -f conftest.$ac_objext
18740if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18741 (eval $ac_compile) 2>conftest.er1
18742 ac_status=$?
18743 grep -v '^ *+' conftest.er1 >conftest.err
18744 rm -f conftest.er1
18745 cat conftest.err >&5
18746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747 (exit $ac_status); } &&
b4e70030
JB
18748 { ac_try='test -z "$ac_c_werror_flag"
18749 || test ! -s conftest.err'
5c45e068
MK
18750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18751 (eval $ac_try) 2>&5
18752 ac_status=$?
18753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18754 (exit $ac_status); }; } &&
18755 { ac_try='test -s conftest.$ac_objext'
18756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18757 (eval $ac_try) 2>&5
18758 ac_status=$?
18759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18760 (exit $ac_status); }; }; then
18761 ac_cv_member_struct_thread_td_pcb=yes
18762else
18763 echo "$as_me: failed program was:" >&5
18764sed 's/^/| /' conftest.$ac_ext >&5
18765
b4e70030 18766ac_cv_member_struct_thread_td_pcb=no
5c45e068
MK
18767fi
18768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18769fi
bec39cab 18770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18771fi
b4e70030
JB
18772echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
18773echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
5c45e068 18774if test $ac_cv_member_struct_thread_td_pcb = yes; then
c906108c 18775
5c45e068 18776cat >>confdefs.h <<_ACEOF
a3828db0 18777#define HAVE_STRUCT_THREAD_TD_PCB 1
bec39cab 18778_ACEOF
c906108c 18779
5c45e068 18780
97bf5e38 18781fi
c906108c 18782
5c45e068 18783
a3828db0 18784# See if <sys/lwp.h> defines `struct lwp`.
b4e70030
JB
18785echo "$as_me:$LINENO: checking for struct lwp" >&5
18786echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
a3828db0 18787if test "${gdb_cv_struct_lwp+set}" = set; then
bec39cab
AC
18788 echo $ECHO_N "(cached) $ECHO_C" >&6
18789else
18790 cat >conftest.$ac_ext <<_ACEOF
18791/* confdefs.h. */
18792_ACEOF
18793cat confdefs.h >>conftest.$ac_ext
18794cat >>conftest.$ac_ext <<_ACEOF
18795/* end confdefs.h. */
a3828db0
MK
18796#include <sys/param.h>
18797#include <sys/lwp.h>
bec39cab
AC
18798int
18799main ()
18800{
a3828db0 18801struct lwp l;
bec39cab
AC
18802 ;
18803 return 0;
18804}
18805_ACEOF
18806rm -f conftest.$ac_objext
18807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18808 (eval $ac_compile) 2>conftest.er1
18809 ac_status=$?
18810 grep -v '^ *+' conftest.er1 >conftest.err
18811 rm -f conftest.er1
18812 cat conftest.err >&5
18813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814 (exit $ac_status); } &&
b4e70030
JB
18815 { ac_try='test -z "$ac_c_werror_flag"
18816 || test ! -s conftest.err'
bec39cab
AC
18817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18818 (eval $ac_try) 2>&5
18819 ac_status=$?
18820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18821 (exit $ac_status); }; } &&
18822 { ac_try='test -s conftest.$ac_objext'
18823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18824 (eval $ac_try) 2>&5
18825 ac_status=$?
18826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18827 (exit $ac_status); }; }; then
a3828db0 18828 gdb_cv_struct_lwp=yes
c906108c 18829else
bec39cab
AC
18830 echo "$as_me: failed program was:" >&5
18831sed 's/^/| /' conftest.$ac_ext >&5
18832
b4e70030 18833gdb_cv_struct_lwp=no
c906108c 18834fi
bec39cab 18835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18836fi
b4e70030
JB
18837echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
18838echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
a3828db0 18839if test $gdb_cv_struct_lwp = yes; then
c906108c 18840
a3828db0
MK
18841cat >>confdefs.h <<\_ACEOF
18842#define HAVE_STRUCT_LWP 1
bec39cab 18843_ACEOF
c906108c 18844
97bf5e38 18845fi
c906108c 18846
a3828db0 18847# See if <machine/reg.h> degines `struct reg'.
b4e70030
JB
18848echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
18849echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
a3828db0 18850if test "${gdb_cv_struct_reg+set}" = set; then
bec39cab
AC
18851 echo $ECHO_N "(cached) $ECHO_C" >&6
18852else
18853 cat >conftest.$ac_ext <<_ACEOF
18854/* confdefs.h. */
18855_ACEOF
18856cat confdefs.h >>conftest.$ac_ext
18857cat >>conftest.$ac_ext <<_ACEOF
18858/* end confdefs.h. */
a3828db0
MK
18859#include <sys/types.h>
18860#include <machine/reg.h>
bec39cab
AC
18861int
18862main ()
18863{
a3828db0 18864struct reg r;
bec39cab
AC
18865 ;
18866 return 0;
18867}
18868_ACEOF
18869rm -f conftest.$ac_objext
18870if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18871 (eval $ac_compile) 2>conftest.er1
18872 ac_status=$?
18873 grep -v '^ *+' conftest.er1 >conftest.err
18874 rm -f conftest.er1
18875 cat conftest.err >&5
18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); } &&
b4e70030
JB
18878 { ac_try='test -z "$ac_c_werror_flag"
18879 || test ! -s conftest.err'
bec39cab
AC
18880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18881 (eval $ac_try) 2>&5
18882 ac_status=$?
18883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); }; } &&
18885 { ac_try='test -s conftest.$ac_objext'
18886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18887 (eval $ac_try) 2>&5
18888 ac_status=$?
18889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18890 (exit $ac_status); }; }; then
a3828db0 18891 gdb_cv_struct_reg=yes
27ca5dad 18892else
bec39cab
AC
18893 echo "$as_me: failed program was:" >&5
18894sed 's/^/| /' conftest.$ac_ext >&5
18895
b4e70030 18896gdb_cv_struct_reg=no
27ca5dad 18897fi
bec39cab 18898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27ca5dad 18899fi
b4e70030
JB
18900echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
18901echo "${ECHO_T}$gdb_cv_struct_reg" >&6
a3828db0 18902if test $gdb_cv_struct_reg = yes; then
bec39cab
AC
18903
18904cat >>confdefs.h <<\_ACEOF
a3828db0 18905#define HAVE_STRUCT_REG 1
bec39cab 18906_ACEOF
27ca5dad
MC
18907
18908fi
97bf5e38 18909
a3828db0
MK
18910# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
18911# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
b4e70030
JB
18912echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
18913echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
5c45e068 18914if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
bec39cab 18915 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 18916else
bec39cab
AC
18917 cat >conftest.$ac_ext <<_ACEOF
18918/* confdefs.h. */
18919_ACEOF
18920cat confdefs.h >>conftest.$ac_ext
18921cat >>conftest.$ac_ext <<_ACEOF
18922/* end confdefs.h. */
a3828db0 18923#include <machine/reg.h>
5c45e068
MK
18924
18925int
18926main ()
18927{
18928static struct reg ac_aggr;
18929if (ac_aggr.r_fs)
18930return 0;
18931 ;
18932 return 0;
18933}
18934_ACEOF
18935rm -f conftest.$ac_objext
18936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18937 (eval $ac_compile) 2>conftest.er1
18938 ac_status=$?
18939 grep -v '^ *+' conftest.er1 >conftest.err
18940 rm -f conftest.er1
18941 cat conftest.err >&5
18942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943 (exit $ac_status); } &&
b4e70030
JB
18944 { ac_try='test -z "$ac_c_werror_flag"
18945 || test ! -s conftest.err'
5c45e068
MK
18946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18947 (eval $ac_try) 2>&5
18948 ac_status=$?
18949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950 (exit $ac_status); }; } &&
18951 { ac_try='test -s conftest.$ac_objext'
18952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18953 (eval $ac_try) 2>&5
18954 ac_status=$?
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); }; }; then
18957 ac_cv_member_struct_reg_r_fs=yes
18958else
18959 echo "$as_me: failed program was:" >&5
18960sed 's/^/| /' conftest.$ac_ext >&5
18961
b4e70030 18962cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
18963/* confdefs.h. */
18964_ACEOF
18965cat confdefs.h >>conftest.$ac_ext
18966cat >>conftest.$ac_ext <<_ACEOF
18967/* end confdefs.h. */
18968#include <machine/reg.h>
18969
bec39cab
AC
18970int
18971main ()
18972{
5c45e068
MK
18973static struct reg ac_aggr;
18974if (sizeof ac_aggr.r_fs)
18975return 0;
bec39cab
AC
18976 ;
18977 return 0;
18978}
18979_ACEOF
18980rm -f conftest.$ac_objext
18981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18982 (eval $ac_compile) 2>conftest.er1
18983 ac_status=$?
18984 grep -v '^ *+' conftest.er1 >conftest.err
18985 rm -f conftest.er1
18986 cat conftest.err >&5
18987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988 (exit $ac_status); } &&
b4e70030
JB
18989 { ac_try='test -z "$ac_c_werror_flag"
18990 || test ! -s conftest.err'
bec39cab
AC
18991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18992 (eval $ac_try) 2>&5
18993 ac_status=$?
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); }; } &&
18996 { ac_try='test -s conftest.$ac_objext'
18997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18998 (eval $ac_try) 2>&5
18999 ac_status=$?
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); }; }; then
5c45e068 19002 ac_cv_member_struct_reg_r_fs=yes
3862412b 19003else
bec39cab
AC
19004 echo "$as_me: failed program was:" >&5
19005sed 's/^/| /' conftest.$ac_ext >&5
19006
b4e70030 19007ac_cv_member_struct_reg_r_fs=no
3862412b 19008fi
bec39cab 19009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 19010fi
5c45e068
MK
19011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19012fi
b4e70030
JB
19013echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
19014echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
5c45e068
MK
19015if test $ac_cv_member_struct_reg_r_fs = yes; then
19016
19017cat >>confdefs.h <<_ACEOF
a3828db0 19018#define HAVE_STRUCT_REG_R_FS 1
bec39cab 19019_ACEOF
3862412b 19020
5c45e068 19021
97bf5e38 19022fi
b4e70030
JB
19023echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
19024echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
5c45e068 19025if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
bec39cab 19026 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 19027else
bec39cab
AC
19028 cat >conftest.$ac_ext <<_ACEOF
19029/* confdefs.h. */
19030_ACEOF
19031cat confdefs.h >>conftest.$ac_ext
19032cat >>conftest.$ac_ext <<_ACEOF
19033/* end confdefs.h. */
a3828db0 19034#include <machine/reg.h>
5c45e068 19035
bec39cab
AC
19036int
19037main ()
19038{
5c45e068
MK
19039static struct reg ac_aggr;
19040if (ac_aggr.r_gs)
19041return 0;
bec39cab
AC
19042 ;
19043 return 0;
19044}
19045_ACEOF
19046rm -f conftest.$ac_objext
19047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19048 (eval $ac_compile) 2>conftest.er1
19049 ac_status=$?
19050 grep -v '^ *+' conftest.er1 >conftest.err
19051 rm -f conftest.er1
19052 cat conftest.err >&5
19053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054 (exit $ac_status); } &&
b4e70030
JB
19055 { ac_try='test -z "$ac_c_werror_flag"
19056 || test ! -s conftest.err'
bec39cab
AC
19057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19058 (eval $ac_try) 2>&5
19059 ac_status=$?
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); }; } &&
19062 { ac_try='test -s conftest.$ac_objext'
19063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19064 (eval $ac_try) 2>&5
19065 ac_status=$?
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); }; }; then
5c45e068 19068 ac_cv_member_struct_reg_r_gs=yes
3862412b 19069else
bec39cab
AC
19070 echo "$as_me: failed program was:" >&5
19071sed 's/^/| /' conftest.$ac_ext >&5
19072
b4e70030 19073cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
19074/* confdefs.h. */
19075_ACEOF
19076cat confdefs.h >>conftest.$ac_ext
19077cat >>conftest.$ac_ext <<_ACEOF
19078/* end confdefs.h. */
19079#include <machine/reg.h>
19080
19081int
19082main ()
19083{
19084static struct reg ac_aggr;
19085if (sizeof ac_aggr.r_gs)
19086return 0;
19087 ;
19088 return 0;
19089}
19090_ACEOF
19091rm -f conftest.$ac_objext
19092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19093 (eval $ac_compile) 2>conftest.er1
19094 ac_status=$?
19095 grep -v '^ *+' conftest.er1 >conftest.err
19096 rm -f conftest.er1
19097 cat conftest.err >&5
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); } &&
b4e70030
JB
19100 { ac_try='test -z "$ac_c_werror_flag"
19101 || test ! -s conftest.err'
5c45e068
MK
19102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19103 (eval $ac_try) 2>&5
19104 ac_status=$?
19105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106 (exit $ac_status); }; } &&
19107 { ac_try='test -s conftest.$ac_objext'
19108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19109 (eval $ac_try) 2>&5
19110 ac_status=$?
19111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112 (exit $ac_status); }; }; then
19113 ac_cv_member_struct_reg_r_gs=yes
19114else
19115 echo "$as_me: failed program was:" >&5
19116sed 's/^/| /' conftest.$ac_ext >&5
19117
b4e70030 19118ac_cv_member_struct_reg_r_gs=no
3862412b 19119fi
bec39cab 19120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 19121fi
5c45e068
MK
19122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19123fi
b4e70030
JB
19124echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
19125echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
5c45e068
MK
19126if test $ac_cv_member_struct_reg_r_gs = yes; then
19127
19128cat >>confdefs.h <<_ACEOF
a3828db0 19129#define HAVE_STRUCT_REG_R_GS 1
bec39cab 19130_ACEOF
3862412b 19131
5c45e068 19132
97bf5e38 19133fi
3862412b 19134
5c45e068 19135
a3828db0 19136# See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
b4e70030
JB
19137echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
19138echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
a3828db0 19139if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
bec39cab 19140 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 19141else
bec39cab
AC
19142 cat >conftest.$ac_ext <<_ACEOF
19143/* confdefs.h. */
19144_ACEOF
19145cat confdefs.h >>conftest.$ac_ext
19146cat >>conftest.$ac_ext <<_ACEOF
19147/* end confdefs.h. */
a3828db0 19148#include <sys/ptrace.h>
bec39cab
AC
19149int
19150main ()
19151{
a3828db0 19152PTRACE_GETREGS;
bec39cab
AC
19153 ;
19154 return 0;
19155}
19156_ACEOF
19157rm -f conftest.$ac_objext
19158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19159 (eval $ac_compile) 2>conftest.er1
19160 ac_status=$?
19161 grep -v '^ *+' conftest.er1 >conftest.err
19162 rm -f conftest.er1
19163 cat conftest.err >&5
19164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165 (exit $ac_status); } &&
b4e70030
JB
19166 { ac_try='test -z "$ac_c_werror_flag"
19167 || test ! -s conftest.err'
bec39cab
AC
19168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19169 (eval $ac_try) 2>&5
19170 ac_status=$?
19171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172 (exit $ac_status); }; } &&
19173 { ac_try='test -s conftest.$ac_objext'
19174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19175 (eval $ac_try) 2>&5
19176 ac_status=$?
19177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19178 (exit $ac_status); }; }; then
a3828db0 19179 gdb_cv_have_ptrace_getregs=yes
451928c5 19180else
bec39cab
AC
19181 echo "$as_me: failed program was:" >&5
19182sed 's/^/| /' conftest.$ac_ext >&5
19183
b4e70030 19184gdb_cv_have_ptrace_getregs=no
451928c5 19185fi
bec39cab 19186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
19187fi
19188
b4e70030
JB
19189echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
19190echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
a3828db0 19191if test $gdb_cv_have_ptrace_getregs = yes; then
60ca704f
SE
19192
19193cat >>confdefs.h <<\_ACEOF
a3828db0 19194#define HAVE_PTRACE_GETREGS 1
bec39cab 19195_ACEOF
451928c5 19196
97bf5e38 19197fi
451928c5 19198
a3828db0 19199# See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
b4e70030
JB
19200echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
19201echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
a3828db0 19202if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
bec39cab 19203 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 19204else
bec39cab
AC
19205 cat >conftest.$ac_ext <<_ACEOF
19206/* confdefs.h. */
19207_ACEOF
19208cat confdefs.h >>conftest.$ac_ext
19209cat >>conftest.$ac_ext <<_ACEOF
19210/* end confdefs.h. */
a3828db0 19211#include <sys/ptrace.h>
bec39cab
AC
19212int
19213main ()
19214{
a3828db0 19215PTRACE_GETFPXREGS;
bec39cab
AC
19216 ;
19217 return 0;
19218}
19219_ACEOF
19220rm -f conftest.$ac_objext
19221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19222 (eval $ac_compile) 2>conftest.er1
19223 ac_status=$?
19224 grep -v '^ *+' conftest.er1 >conftest.err
19225 rm -f conftest.er1
19226 cat conftest.err >&5
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); } &&
b4e70030
JB
19229 { ac_try='test -z "$ac_c_werror_flag"
19230 || test ! -s conftest.err'
bec39cab
AC
19231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19232 (eval $ac_try) 2>&5
19233 ac_status=$?
19234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); }; } &&
19236 { ac_try='test -s conftest.$ac_objext'
19237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19238 (eval $ac_try) 2>&5
19239 ac_status=$?
19240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19241 (exit $ac_status); }; }; then
a3828db0 19242 gdb_cv_have_ptrace_getfpxregs=yes
451928c5 19243else
bec39cab
AC
19244 echo "$as_me: failed program was:" >&5
19245sed 's/^/| /' conftest.$ac_ext >&5
19246
b4e70030 19247gdb_cv_have_ptrace_getfpxregs=no
451928c5 19248fi
bec39cab 19249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
19250fi
19251
b4e70030
JB
19252echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
19253echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
a3828db0 19254if test $gdb_cv_have_ptrace_getfpxregs = yes; then
60ca704f
SE
19255
19256cat >>confdefs.h <<\_ACEOF
a3828db0 19257#define HAVE_PTRACE_GETFPXREGS 1
bec39cab 19258_ACEOF
451928c5 19259
97bf5e38 19260fi
451928c5 19261
a3828db0 19262# See if <sys/ptrace.h> provides the PT_GETDBREGS request.
b4e70030
JB
19263echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
19264echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
a3828db0 19265if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
bec39cab 19266 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 19267else
bec39cab
AC
19268 cat >conftest.$ac_ext <<_ACEOF
19269/* confdefs.h. */
19270_ACEOF
19271cat confdefs.h >>conftest.$ac_ext
19272cat >>conftest.$ac_ext <<_ACEOF
19273/* end confdefs.h. */
a3828db0
MK
19274#include <sys/types.h>
19275#include <sys/ptrace.h>
bec39cab
AC
19276int
19277main ()
19278{
a3828db0 19279PT_GETDBREGS;
bec39cab
AC
19280 ;
19281 return 0;
19282}
19283_ACEOF
19284rm -f conftest.$ac_objext
19285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19286 (eval $ac_compile) 2>conftest.er1
19287 ac_status=$?
19288 grep -v '^ *+' conftest.er1 >conftest.err
19289 rm -f conftest.er1
19290 cat conftest.err >&5
19291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292 (exit $ac_status); } &&
b4e70030
JB
19293 { ac_try='test -z "$ac_c_werror_flag"
19294 || test ! -s conftest.err'
bec39cab
AC
19295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19296 (eval $ac_try) 2>&5
19297 ac_status=$?
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); }; } &&
19300 { ac_try='test -s conftest.$ac_objext'
19301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19302 (eval $ac_try) 2>&5
19303 ac_status=$?
19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305 (exit $ac_status); }; }; then
a3828db0 19306 gdb_cv_have_pt_getdbregs=yes
3862412b 19307else
bec39cab
AC
19308 echo "$as_me: failed program was:" >&5
19309sed 's/^/| /' conftest.$ac_ext >&5
19310
b4e70030 19311gdb_cv_have_pt_getdbregs=no
3862412b 19312fi
bec39cab 19313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
19314fi
19315
b4e70030
JB
19316echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
19317echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
a3828db0 19318if test $gdb_cv_have_pt_getdbregs = yes; then
60ca704f
SE
19319
19320cat >>confdefs.h <<\_ACEOF
a3828db0 19321#define HAVE_PT_GETDBREGS 1
bec39cab 19322_ACEOF
3862412b 19323
97bf5e38 19324fi
3862412b 19325
a3828db0 19326# See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
b4e70030
JB
19327echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
19328echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
a3828db0 19329if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
bec39cab 19330 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 19331else
bec39cab
AC
19332 cat >conftest.$ac_ext <<_ACEOF
19333/* confdefs.h. */
19334_ACEOF
19335cat confdefs.h >>conftest.$ac_ext
19336cat >>conftest.$ac_ext <<_ACEOF
19337/* end confdefs.h. */
a3828db0
MK
19338#include <sys/types.h>
19339#include <sys/ptrace.h>
bec39cab
AC
19340int
19341main ()
19342{
a3828db0 19343PT_GETXMMREGS;
bec39cab
AC
19344 ;
19345 return 0;
19346}
19347_ACEOF
19348rm -f conftest.$ac_objext
19349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19350 (eval $ac_compile) 2>conftest.er1
19351 ac_status=$?
19352 grep -v '^ *+' conftest.er1 >conftest.err
19353 rm -f conftest.er1
19354 cat conftest.err >&5
19355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19356 (exit $ac_status); } &&
b4e70030
JB
19357 { ac_try='test -z "$ac_c_werror_flag"
19358 || test ! -s conftest.err'
bec39cab
AC
19359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19360 (eval $ac_try) 2>&5
19361 ac_status=$?
19362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363 (exit $ac_status); }; } &&
19364 { ac_try='test -s conftest.$ac_objext'
19365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19366 (eval $ac_try) 2>&5
19367 ac_status=$?
19368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369 (exit $ac_status); }; }; then
a3828db0 19370 gdb_cv_have_pt_getxmmregs=yes
3862412b 19371else
bec39cab
AC
19372 echo "$as_me: failed program was:" >&5
19373sed 's/^/| /' conftest.$ac_ext >&5
19374
b4e70030 19375gdb_cv_have_pt_getxmmregs=no
3862412b 19376fi
bec39cab 19377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
19378fi
19379
b4e70030
JB
19380echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
19381echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
a3828db0 19382if test $gdb_cv_have_pt_getxmmregs = yes; then
60ca704f
SE
19383
19384cat >>confdefs.h <<\_ACEOF
a3828db0 19385#define HAVE_PT_GETXMMREGS 1
bec39cab 19386_ACEOF
3862412b 19387
97bf5e38 19388fi
3862412b 19389
eb368090 19390# Detect which type of /proc is in use, such as for Unixware or Solaris.
97bf5e38
MK
19391
19392if test "${target}" = "${host}"; then
19393 case "${host}" in
97bf5e38 19394 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
60ca704f
SE
19395
19396cat >>confdefs.h <<\_ACEOF
97bf5e38 19397#define NEW_PROC_API 1
bec39cab 19398_ACEOF
97bf5e38
MK
19399
19400 ;;
0bbc026e 19401 *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
60ca704f
SE
19402
19403cat >>confdefs.h <<\_ACEOF
97bf5e38 19404#define NEW_PROC_API 1
bec39cab 19405_ACEOF
c960c18f
AC
19406
19407 ;;
19408 mips-sgi-irix5*)
19409 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
60ca704f
SE
19410
19411cat >>confdefs.h <<\_ACEOF
c960c18f 19412#define _KMEMUSER 1
bec39cab 19413_ACEOF
97bf5e38
MK
19414
19415 ;;
19416 esac
19417fi
19418
19419if test "$ac_cv_header_sys_procfs_h" = yes; then
b4e70030
JB
19420 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
19421echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19422 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
19423 echo $ECHO_N "(cached) $ECHO_C" >&6
19424else
19425 cat >conftest.$ac_ext <<_ACEOF
19426/* confdefs.h. */
19427_ACEOF
19428cat confdefs.h >>conftest.$ac_ext
19429cat >>conftest.$ac_ext <<_ACEOF
19430/* end confdefs.h. */
596c9d4b
KB
19431
19432#define _SYSCALL32
19433#include <sys/procfs.h>
bec39cab
AC
19434int
19435main ()
19436{
97bf5e38 19437pstatus_t avar
bec39cab
AC
19438 ;
19439 return 0;
19440}
19441_ACEOF
19442rm -f conftest.$ac_objext
19443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19444 (eval $ac_compile) 2>conftest.er1
19445 ac_status=$?
19446 grep -v '^ *+' conftest.er1 >conftest.err
19447 rm -f conftest.er1
19448 cat conftest.err >&5
19449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450 (exit $ac_status); } &&
b4e70030
JB
19451 { ac_try='test -z "$ac_c_werror_flag"
19452 || test ! -s conftest.err'
bec39cab
AC
19453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19454 (eval $ac_try) 2>&5
19455 ac_status=$?
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); }; } &&
19458 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
97bf5e38 19464 bfd_cv_have_sys_procfs_type_pstatus_t=yes
596c9d4b 19465else
bec39cab
AC
19466 echo "$as_me: failed program was:" >&5
19467sed 's/^/| /' conftest.$ac_ext >&5
19468
b4e70030 19469bfd_cv_have_sys_procfs_type_pstatus_t=no
bec39cab 19470
596c9d4b 19471fi
bec39cab 19472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
19473fi
19474
97bf5e38 19475 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
bec39cab
AC
19476
19477cat >>confdefs.h <<\_ACEOF
97bf5e38 19478#define HAVE_PSTATUS_T 1
bec39cab 19479_ACEOF
596c9d4b
KB
19480
19481 fi
b4e70030
JB
19482 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
19483echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
596c9d4b 19484
b4e70030
JB
19485 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
19486echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19487 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
19488 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 19489else
bec39cab
AC
19490 cat >conftest.$ac_ext <<_ACEOF
19491/* confdefs.h. */
19492_ACEOF
19493cat confdefs.h >>conftest.$ac_ext
19494cat >>conftest.$ac_ext <<_ACEOF
19495/* end confdefs.h. */
596c9d4b
KB
19496
19497#define _SYSCALL32
19498#include <sys/procfs.h>
bec39cab
AC
19499int
19500main ()
19501{
97bf5e38 19502prrun_t avar
bec39cab
AC
19503 ;
19504 return 0;
19505}
19506_ACEOF
19507rm -f conftest.$ac_objext
19508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19509 (eval $ac_compile) 2>conftest.er1
19510 ac_status=$?
19511 grep -v '^ *+' conftest.er1 >conftest.err
19512 rm -f conftest.er1
19513 cat conftest.err >&5
19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); } &&
b4e70030
JB
19516 { ac_try='test -z "$ac_c_werror_flag"
19517 || test ! -s conftest.err'
bec39cab
AC
19518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19519 (eval $ac_try) 2>&5
19520 ac_status=$?
19521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); }; } &&
19523 { ac_try='test -s conftest.$ac_objext'
19524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19525 (eval $ac_try) 2>&5
19526 ac_status=$?
19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528 (exit $ac_status); }; }; then
97bf5e38 19529 bfd_cv_have_sys_procfs_type_prrun_t=yes
596c9d4b 19530else
bec39cab
AC
19531 echo "$as_me: failed program was:" >&5
19532sed 's/^/| /' conftest.$ac_ext >&5
19533
b4e70030 19534bfd_cv_have_sys_procfs_type_prrun_t=no
bec39cab 19535
596c9d4b 19536fi
bec39cab 19537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
19538fi
19539
97bf5e38 19540 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
bec39cab
AC
19541
19542cat >>confdefs.h <<\_ACEOF
97bf5e38 19543#define HAVE_PRRUN_T 1
bec39cab 19544_ACEOF
596c9d4b
KB
19545
19546 fi
b4e70030
JB
19547 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
19548echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
596c9d4b 19549
b4e70030
JB
19550 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
19551echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19552 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
19553 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 19554else
bec39cab
AC
19555 cat >conftest.$ac_ext <<_ACEOF
19556/* confdefs.h. */
19557_ACEOF
19558cat confdefs.h >>conftest.$ac_ext
19559cat >>conftest.$ac_ext <<_ACEOF
19560/* end confdefs.h. */
596c9d4b
KB
19561
19562#define _SYSCALL32
19563#include <sys/procfs.h>
bec39cab
AC
19564int
19565main ()
19566{
97bf5e38 19567gregset_t avar
bec39cab
AC
19568 ;
19569 return 0;
19570}
19571_ACEOF
19572rm -f conftest.$ac_objext
19573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19574 (eval $ac_compile) 2>conftest.er1
19575 ac_status=$?
19576 grep -v '^ *+' conftest.er1 >conftest.err
19577 rm -f conftest.er1
19578 cat conftest.err >&5
19579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580 (exit $ac_status); } &&
b4e70030
JB
19581 { ac_try='test -z "$ac_c_werror_flag"
19582 || test ! -s conftest.err'
bec39cab
AC
19583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19584 (eval $ac_try) 2>&5
19585 ac_status=$?
19586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587 (exit $ac_status); }; } &&
19588 { ac_try='test -s conftest.$ac_objext'
19589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19590 (eval $ac_try) 2>&5
19591 ac_status=$?
19592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19593 (exit $ac_status); }; }; then
97bf5e38 19594 bfd_cv_have_sys_procfs_type_gregset_t=yes
596c9d4b 19595else
bec39cab
AC
19596 echo "$as_me: failed program was:" >&5
19597sed 's/^/| /' conftest.$ac_ext >&5
19598
b4e70030 19599bfd_cv_have_sys_procfs_type_gregset_t=no
bec39cab 19600
596c9d4b 19601fi
bec39cab 19602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
19603fi
19604
97bf5e38 19605 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
bec39cab
AC
19606
19607cat >>confdefs.h <<\_ACEOF
97bf5e38 19608#define HAVE_GREGSET_T 1
bec39cab 19609_ACEOF
596c9d4b
KB
19610
19611 fi
b4e70030
JB
19612 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
19613echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
451928c5 19614
b4e70030
JB
19615 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
19616echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19617 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
19618 echo $ECHO_N "(cached) $ECHO_C" >&6
d84dd0c5 19619else
bec39cab
AC
19620 cat >conftest.$ac_ext <<_ACEOF
19621/* confdefs.h. */
19622_ACEOF
19623cat confdefs.h >>conftest.$ac_ext
19624cat >>conftest.$ac_ext <<_ACEOF
19625/* end confdefs.h. */
97bf5e38
MK
19626
19627#define _SYSCALL32
d84dd0c5 19628#include <sys/procfs.h>
bec39cab
AC
19629int
19630main ()
19631{
97bf5e38 19632fpregset_t avar
bec39cab
AC
19633 ;
19634 return 0;
19635}
19636_ACEOF
19637rm -f conftest.$ac_objext
19638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19639 (eval $ac_compile) 2>conftest.er1
19640 ac_status=$?
19641 grep -v '^ *+' conftest.er1 >conftest.err
19642 rm -f conftest.er1
19643 cat conftest.err >&5
19644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 (exit $ac_status); } &&
b4e70030
JB
19646 { ac_try='test -z "$ac_c_werror_flag"
19647 || test ! -s conftest.err'
bec39cab
AC
19648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19649 (eval $ac_try) 2>&5
19650 ac_status=$?
19651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652 (exit $ac_status); }; } &&
19653 { ac_try='test -s conftest.$ac_objext'
19654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19655 (eval $ac_try) 2>&5
19656 ac_status=$?
19657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658 (exit $ac_status); }; }; then
97bf5e38 19659 bfd_cv_have_sys_procfs_type_fpregset_t=yes
d84dd0c5 19660else
bec39cab
AC
19661 echo "$as_me: failed program was:" >&5
19662sed 's/^/| /' conftest.$ac_ext >&5
19663
b4e70030 19664bfd_cv_have_sys_procfs_type_fpregset_t=no
bec39cab 19665
d84dd0c5 19666fi
bec39cab 19667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d84dd0c5
MK
19668fi
19669
97bf5e38 19670 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
bec39cab
AC
19671
19672cat >>confdefs.h <<\_ACEOF
97bf5e38 19673#define HAVE_FPREGSET_T 1
bec39cab 19674_ACEOF
d84dd0c5 19675
97bf5e38 19676 fi
b4e70030
JB
19677 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
19678echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
d84dd0c5 19679
b4e70030
JB
19680 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
19681echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19682 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
19683 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19684else
bec39cab
AC
19685 cat >conftest.$ac_ext <<_ACEOF
19686/* confdefs.h. */
19687_ACEOF
19688cat confdefs.h >>conftest.$ac_ext
19689cat >>conftest.$ac_ext <<_ACEOF
19690/* end confdefs.h. */
c906108c 19691
97bf5e38
MK
19692#define _SYSCALL32
19693#include <sys/procfs.h>
bec39cab
AC
19694int
19695main ()
19696{
97bf5e38 19697prgregset_t avar
bec39cab
AC
19698 ;
19699 return 0;
19700}
19701_ACEOF
19702rm -f conftest.$ac_objext
19703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19704 (eval $ac_compile) 2>conftest.er1
19705 ac_status=$?
19706 grep -v '^ *+' conftest.er1 >conftest.err
19707 rm -f conftest.er1
19708 cat conftest.err >&5
19709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19710 (exit $ac_status); } &&
b4e70030
JB
19711 { ac_try='test -z "$ac_c_werror_flag"
19712 || test ! -s conftest.err'
bec39cab
AC
19713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19714 (eval $ac_try) 2>&5
19715 ac_status=$?
19716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717 (exit $ac_status); }; } &&
19718 { ac_try='test -s conftest.$ac_objext'
19719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19720 (eval $ac_try) 2>&5
19721 ac_status=$?
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); }; }; then
97bf5e38 19724 bfd_cv_have_sys_procfs_type_prgregset_t=yes
c906108c 19725else
bec39cab
AC
19726 echo "$as_me: failed program was:" >&5
19727sed 's/^/| /' conftest.$ac_ext >&5
19728
b4e70030 19729bfd_cv_have_sys_procfs_type_prgregset_t=no
bec39cab 19730
c906108c 19731fi
bec39cab 19732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
19733fi
19734
97bf5e38 19735 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
bec39cab
AC
19736
19737cat >>confdefs.h <<\_ACEOF
97bf5e38 19738#define HAVE_PRGREGSET_T 1
bec39cab 19739_ACEOF
c906108c 19740
97bf5e38 19741 fi
b4e70030
JB
19742 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
19743echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
c906108c 19744
b4e70030
JB
19745 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
19746echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19747 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
19748 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 19749else
bec39cab
AC
19750 cat >conftest.$ac_ext <<_ACEOF
19751/* confdefs.h. */
19752_ACEOF
19753cat confdefs.h >>conftest.$ac_ext
19754cat >>conftest.$ac_ext <<_ACEOF
19755/* end confdefs.h. */
97bf5e38
MK
19756
19757#define _SYSCALL32
19758#include <sys/procfs.h>
bec39cab
AC
19759int
19760main ()
19761{
97bf5e38 19762prfpregset_t avar
bec39cab
AC
19763 ;
19764 return 0;
19765}
19766_ACEOF
19767rm -f conftest.$ac_objext
19768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19769 (eval $ac_compile) 2>conftest.er1
19770 ac_status=$?
19771 grep -v '^ *+' conftest.er1 >conftest.err
19772 rm -f conftest.er1
19773 cat conftest.err >&5
19774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775 (exit $ac_status); } &&
b4e70030
JB
19776 { ac_try='test -z "$ac_c_werror_flag"
19777 || test ! -s conftest.err'
bec39cab
AC
19778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19779 (eval $ac_try) 2>&5
19780 ac_status=$?
19781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782 (exit $ac_status); }; } &&
19783 { ac_try='test -s conftest.$ac_objext'
19784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19785 (eval $ac_try) 2>&5
19786 ac_status=$?
19787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788 (exit $ac_status); }; }; then
97bf5e38 19789 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
d45fe813 19790else
bec39cab
AC
19791 echo "$as_me: failed program was:" >&5
19792sed 's/^/| /' conftest.$ac_ext >&5
19793
b4e70030 19794bfd_cv_have_sys_procfs_type_prfpregset_t=no
bec39cab 19795
d45fe813 19796fi
bec39cab 19797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
19798fi
19799
97bf5e38 19800 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
bec39cab
AC
19801
19802cat >>confdefs.h <<\_ACEOF
97bf5e38 19803#define HAVE_PRFPREGSET_T 1
bec39cab 19804_ACEOF
d45fe813 19805
97bf5e38 19806 fi
b4e70030
JB
19807 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
19808echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
d45fe813 19809
b4e70030
JB
19810 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
19811echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19812 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
19813 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 19814else
bec39cab
AC
19815 cat >conftest.$ac_ext <<_ACEOF
19816/* confdefs.h. */
19817_ACEOF
19818cat confdefs.h >>conftest.$ac_ext
19819cat >>conftest.$ac_ext <<_ACEOF
19820/* end confdefs.h. */
97bf5e38
MK
19821
19822#define _SYSCALL32
19823#include <sys/procfs.h>
bec39cab
AC
19824int
19825main ()
19826{
97bf5e38 19827prgregset32_t avar
bec39cab
AC
19828 ;
19829 return 0;
19830}
19831_ACEOF
19832rm -f conftest.$ac_objext
19833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19834 (eval $ac_compile) 2>conftest.er1
19835 ac_status=$?
19836 grep -v '^ *+' conftest.er1 >conftest.err
19837 rm -f conftest.er1
19838 cat conftest.err >&5
19839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19840 (exit $ac_status); } &&
b4e70030
JB
19841 { ac_try='test -z "$ac_c_werror_flag"
19842 || test ! -s conftest.err'
bec39cab
AC
19843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19844 (eval $ac_try) 2>&5
19845 ac_status=$?
19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); }; } &&
19848 { ac_try='test -s conftest.$ac_objext'
19849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19850 (eval $ac_try) 2>&5
19851 ac_status=$?
19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); }; }; then
97bf5e38 19854 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
d45fe813 19855else
bec39cab
AC
19856 echo "$as_me: failed program was:" >&5
19857sed 's/^/| /' conftest.$ac_ext >&5
19858
b4e70030 19859bfd_cv_have_sys_procfs_type_prgregset32_t=no
bec39cab 19860
d45fe813 19861fi
bec39cab 19862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
19863fi
19864
97bf5e38 19865 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
bec39cab
AC
19866
19867cat >>confdefs.h <<\_ACEOF
97bf5e38 19868#define HAVE_PRGREGSET32_T 1
bec39cab 19869_ACEOF
d45fe813 19870
97bf5e38 19871 fi
b4e70030
JB
19872 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
19873echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
d45fe813 19874
b4e70030
JB
19875 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
19876echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19877 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
19878 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 19879else
bec39cab
AC
19880 cat >conftest.$ac_ext <<_ACEOF
19881/* confdefs.h. */
19882_ACEOF
19883cat confdefs.h >>conftest.$ac_ext
19884cat >>conftest.$ac_ext <<_ACEOF
19885/* end confdefs.h. */
97bf5e38
MK
19886
19887#define _SYSCALL32
19888#include <sys/procfs.h>
bec39cab
AC
19889int
19890main ()
19891{
97bf5e38 19892prfpregset32_t avar
bec39cab
AC
19893 ;
19894 return 0;
19895}
19896_ACEOF
19897rm -f conftest.$ac_objext
19898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19899 (eval $ac_compile) 2>conftest.er1
19900 ac_status=$?
19901 grep -v '^ *+' conftest.er1 >conftest.err
19902 rm -f conftest.er1
19903 cat conftest.err >&5
19904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 (exit $ac_status); } &&
b4e70030
JB
19906 { ac_try='test -z "$ac_c_werror_flag"
19907 || test ! -s conftest.err'
bec39cab
AC
19908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19909 (eval $ac_try) 2>&5
19910 ac_status=$?
19911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912 (exit $ac_status); }; } &&
19913 { ac_try='test -s conftest.$ac_objext'
19914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19915 (eval $ac_try) 2>&5
19916 ac_status=$?
19917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19918 (exit $ac_status); }; }; then
97bf5e38 19919 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
d45fe813 19920else
bec39cab
AC
19921 echo "$as_me: failed program was:" >&5
19922sed 's/^/| /' conftest.$ac_ext >&5
19923
b4e70030 19924bfd_cv_have_sys_procfs_type_prfpregset32_t=no
bec39cab 19925
d45fe813 19926fi
bec39cab 19927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
19928fi
19929
97bf5e38 19930 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
bec39cab
AC
19931
19932cat >>confdefs.h <<\_ACEOF
97bf5e38 19933#define HAVE_PRFPREGSET32_T 1
bec39cab 19934_ACEOF
d45fe813 19935
97bf5e38 19936 fi
b4e70030
JB
19937 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
19938echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
d45fe813 19939
b4e70030
JB
19940 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
19941echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19942 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
19943 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 19944else
bec39cab
AC
19945 cat >conftest.$ac_ext <<_ACEOF
19946/* confdefs.h. */
19947_ACEOF
19948cat confdefs.h >>conftest.$ac_ext
19949cat >>conftest.$ac_ext <<_ACEOF
19950/* end confdefs.h. */
97bf5e38 19951
d45fe813 19952#define _SYSCALL32
97bf5e38 19953#include <sys/procfs.h>
bec39cab
AC
19954int
19955main ()
19956{
97bf5e38 19957lwpid_t avar
bec39cab
AC
19958 ;
19959 return 0;
19960}
19961_ACEOF
19962rm -f conftest.$ac_objext
19963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19964 (eval $ac_compile) 2>conftest.er1
19965 ac_status=$?
19966 grep -v '^ *+' conftest.er1 >conftest.err
19967 rm -f conftest.er1
19968 cat conftest.err >&5
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); } &&
b4e70030
JB
19971 { ac_try='test -z "$ac_c_werror_flag"
19972 || test ! -s conftest.err'
bec39cab
AC
19973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19974 (eval $ac_try) 2>&5
19975 ac_status=$?
19976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977 (exit $ac_status); }; } &&
19978 { ac_try='test -s conftest.$ac_objext'
19979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19980 (eval $ac_try) 2>&5
19981 ac_status=$?
19982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983 (exit $ac_status); }; }; then
97bf5e38 19984 bfd_cv_have_sys_procfs_type_lwpid_t=yes
d45fe813 19985else
bec39cab
AC
19986 echo "$as_me: failed program was:" >&5
19987sed 's/^/| /' conftest.$ac_ext >&5
19988
b4e70030 19989bfd_cv_have_sys_procfs_type_lwpid_t=no
bec39cab 19990
d45fe813 19991fi
bec39cab 19992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
19993fi
19994
97bf5e38 19995 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
bec39cab
AC
19996
19997cat >>confdefs.h <<\_ACEOF
97bf5e38 19998#define HAVE_LWPID_T 1
bec39cab 19999_ACEOF
d45fe813 20000
97bf5e38 20001 fi
b4e70030
JB
20002 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
20003echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
c906108c 20004
b4e70030
JB
20005 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
20006echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20007 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
20008 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20009else
bec39cab
AC
20010 cat >conftest.$ac_ext <<_ACEOF
20011/* confdefs.h. */
20012_ACEOF
20013cat confdefs.h >>conftest.$ac_ext
20014cat >>conftest.$ac_ext <<_ACEOF
20015/* end confdefs.h. */
c906108c 20016
97bf5e38
MK
20017#define _SYSCALL32
20018#include <sys/procfs.h>
bec39cab
AC
20019int
20020main ()
20021{
97bf5e38 20022psaddr_t avar
bec39cab
AC
20023 ;
20024 return 0;
20025}
20026_ACEOF
20027rm -f conftest.$ac_objext
20028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20029 (eval $ac_compile) 2>conftest.er1
20030 ac_status=$?
20031 grep -v '^ *+' conftest.er1 >conftest.err
20032 rm -f conftest.er1
20033 cat conftest.err >&5
20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); } &&
b4e70030
JB
20036 { ac_try='test -z "$ac_c_werror_flag"
20037 || test ! -s conftest.err'
bec39cab
AC
20038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20039 (eval $ac_try) 2>&5
20040 ac_status=$?
20041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042 (exit $ac_status); }; } &&
20043 { ac_try='test -s conftest.$ac_objext'
20044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20045 (eval $ac_try) 2>&5
20046 ac_status=$?
20047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048 (exit $ac_status); }; }; then
97bf5e38 20049 bfd_cv_have_sys_procfs_type_psaddr_t=yes
c906108c 20050else
bec39cab
AC
20051 echo "$as_me: failed program was:" >&5
20052sed 's/^/| /' conftest.$ac_ext >&5
20053
b4e70030 20054bfd_cv_have_sys_procfs_type_psaddr_t=no
bec39cab 20055
c906108c 20056fi
bec39cab 20057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
20058fi
20059
97bf5e38 20060 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
bec39cab
AC
20061
20062cat >>confdefs.h <<\_ACEOF
97bf5e38 20063#define HAVE_PSADDR_T 1
bec39cab 20064_ACEOF
c906108c 20065
97bf5e38 20066 fi
b4e70030
JB
20067 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
20068echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
c906108c 20069
b4e70030
JB
20070 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
20071echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20072 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
20073 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20074else
bec39cab
AC
20075 cat >conftest.$ac_ext <<_ACEOF
20076/* confdefs.h. */
20077_ACEOF
20078cat confdefs.h >>conftest.$ac_ext
20079cat >>conftest.$ac_ext <<_ACEOF
20080/* end confdefs.h. */
c906108c 20081
97bf5e38
MK
20082#define _SYSCALL32
20083#include <sys/procfs.h>
bec39cab
AC
20084int
20085main ()
20086{
97bf5e38 20087prsysent_t avar
bec39cab
AC
20088 ;
20089 return 0;
20090}
20091_ACEOF
20092rm -f conftest.$ac_objext
20093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20094 (eval $ac_compile) 2>conftest.er1
20095 ac_status=$?
20096 grep -v '^ *+' conftest.er1 >conftest.err
20097 rm -f conftest.er1
20098 cat conftest.err >&5
20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100 (exit $ac_status); } &&
b4e70030
JB
20101 { ac_try='test -z "$ac_c_werror_flag"
20102 || test ! -s conftest.err'
bec39cab
AC
20103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20104 (eval $ac_try) 2>&5
20105 ac_status=$?
20106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107 (exit $ac_status); }; } &&
20108 { ac_try='test -s conftest.$ac_objext'
20109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20110 (eval $ac_try) 2>&5
20111 ac_status=$?
20112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113 (exit $ac_status); }; }; then
97bf5e38 20114 bfd_cv_have_sys_procfs_type_prsysent_t=yes
c906108c 20115else
bec39cab
AC
20116 echo "$as_me: failed program was:" >&5
20117sed 's/^/| /' conftest.$ac_ext >&5
20118
b4e70030 20119bfd_cv_have_sys_procfs_type_prsysent_t=no
bec39cab 20120
c906108c 20121fi
bec39cab 20122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
20123fi
20124
97bf5e38 20125 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
bec39cab
AC
20126
20127cat >>confdefs.h <<\_ACEOF
97bf5e38 20128#define HAVE_PRSYSENT_T 1
bec39cab 20129_ACEOF
c906108c 20130
97bf5e38 20131 fi
b4e70030
JB
20132 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
20133echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
c906108c 20134
b4e70030
JB
20135 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
20136echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20137 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
20138 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20139else
bec39cab
AC
20140 cat >conftest.$ac_ext <<_ACEOF
20141/* confdefs.h. */
20142_ACEOF
20143cat confdefs.h >>conftest.$ac_ext
20144cat >>conftest.$ac_ext <<_ACEOF
20145/* end confdefs.h. */
c906108c 20146
97bf5e38
MK
20147#define _SYSCALL32
20148#include <sys/procfs.h>
bec39cab
AC
20149int
20150main ()
20151{
97bf5e38 20152pr_sigset_t avar
bec39cab
AC
20153 ;
20154 return 0;
20155}
20156_ACEOF
20157rm -f conftest.$ac_objext
20158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20159 (eval $ac_compile) 2>conftest.er1
20160 ac_status=$?
20161 grep -v '^ *+' conftest.er1 >conftest.err
20162 rm -f conftest.er1
20163 cat conftest.err >&5
20164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165 (exit $ac_status); } &&
b4e70030
JB
20166 { ac_try='test -z "$ac_c_werror_flag"
20167 || test ! -s conftest.err'
bec39cab
AC
20168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20169 (eval $ac_try) 2>&5
20170 ac_status=$?
20171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172 (exit $ac_status); }; } &&
20173 { ac_try='test -s conftest.$ac_objext'
20174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20175 (eval $ac_try) 2>&5
20176 ac_status=$?
20177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178 (exit $ac_status); }; }; then
97bf5e38 20179 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
c906108c 20180else
bec39cab
AC
20181 echo "$as_me: failed program was:" >&5
20182sed 's/^/| /' conftest.$ac_ext >&5
20183
b4e70030 20184bfd_cv_have_sys_procfs_type_pr_sigset_t=no
bec39cab 20185
c906108c 20186fi
bec39cab 20187rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
20188fi
20189
97bf5e38 20190 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
bec39cab
AC
20191
20192cat >>confdefs.h <<\_ACEOF
97bf5e38 20193#define HAVE_PR_SIGSET_T 1
bec39cab 20194_ACEOF
c906108c 20195
97bf5e38 20196 fi
b4e70030
JB
20197 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
20198echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
c906108c 20199
b4e70030
JB
20200 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
20201echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20202 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
20203 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20204else
bec39cab
AC
20205 cat >conftest.$ac_ext <<_ACEOF
20206/* confdefs.h. */
20207_ACEOF
20208cat confdefs.h >>conftest.$ac_ext
20209cat >>conftest.$ac_ext <<_ACEOF
20210/* end confdefs.h. */
c906108c 20211
97bf5e38
MK
20212#define _SYSCALL32
20213#include <sys/procfs.h>
bec39cab
AC
20214int
20215main ()
20216{
97bf5e38 20217pr_sigaction64_t avar
bec39cab
AC
20218 ;
20219 return 0;
20220}
20221_ACEOF
20222rm -f conftest.$ac_objext
20223if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20224 (eval $ac_compile) 2>conftest.er1
20225 ac_status=$?
20226 grep -v '^ *+' conftest.er1 >conftest.err
20227 rm -f conftest.er1
20228 cat conftest.err >&5
20229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230 (exit $ac_status); } &&
b4e70030
JB
20231 { ac_try='test -z "$ac_c_werror_flag"
20232 || test ! -s conftest.err'
bec39cab
AC
20233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20234 (eval $ac_try) 2>&5
20235 ac_status=$?
20236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237 (exit $ac_status); }; } &&
20238 { ac_try='test -s conftest.$ac_objext'
20239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20240 (eval $ac_try) 2>&5
20241 ac_status=$?
20242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243 (exit $ac_status); }; }; then
97bf5e38 20244 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
c906108c 20245else
bec39cab
AC
20246 echo "$as_me: failed program was:" >&5
20247sed 's/^/| /' conftest.$ac_ext >&5
20248
b4e70030 20249bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
bec39cab 20250
c906108c 20251fi
bec39cab 20252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
20253fi
20254
97bf5e38 20255 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
bec39cab
AC
20256
20257cat >>confdefs.h <<\_ACEOF
97bf5e38 20258#define HAVE_PR_SIGACTION64_T 1
bec39cab 20259_ACEOF
c906108c 20260
97bf5e38 20261 fi
b4e70030
JB
20262 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
20263echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
97bf5e38 20264
b4e70030
JB
20265 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
20266echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20267 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
20268 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 20269else
bec39cab
AC
20270 cat >conftest.$ac_ext <<_ACEOF
20271/* confdefs.h. */
20272_ACEOF
20273cat confdefs.h >>conftest.$ac_ext
20274cat >>conftest.$ac_ext <<_ACEOF
20275/* end confdefs.h. */
97bf5e38
MK
20276
20277#define _SYSCALL32
20278#include <sys/procfs.h>
bec39cab
AC
20279int
20280main ()
20281{
97bf5e38 20282pr_siginfo64_t avar
bec39cab
AC
20283 ;
20284 return 0;
20285}
20286_ACEOF
20287rm -f conftest.$ac_objext
20288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20289 (eval $ac_compile) 2>conftest.er1
20290 ac_status=$?
20291 grep -v '^ *+' conftest.er1 >conftest.err
20292 rm -f conftest.er1
20293 cat conftest.err >&5
20294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295 (exit $ac_status); } &&
b4e70030
JB
20296 { ac_try='test -z "$ac_c_werror_flag"
20297 || test ! -s conftest.err'
bec39cab
AC
20298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20299 (eval $ac_try) 2>&5
20300 ac_status=$?
20301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302 (exit $ac_status); }; } &&
20303 { ac_try='test -s conftest.$ac_objext'
20304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20305 (eval $ac_try) 2>&5
20306 ac_status=$?
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); }; }; then
97bf5e38
MK
20309 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
20310else
bec39cab
AC
20311 echo "$as_me: failed program was:" >&5
20312sed 's/^/| /' conftest.$ac_ext >&5
20313
b4e70030 20314bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
bec39cab 20315
97bf5e38 20316fi
bec39cab 20317rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20318fi
c906108c 20319
97bf5e38 20320 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
bec39cab
AC
20321
20322cat >>confdefs.h <<\_ACEOF
97bf5e38 20323#define HAVE_PR_SIGINFO64_T 1
bec39cab 20324_ACEOF
c906108c 20325
97bf5e38 20326 fi
b4e70030
JB
20327 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
20328echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
bec39cab
AC
20329
20330
97bf5e38
MK
20331
20332
20333
97bf5e38 20334 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
b4e70030
JB
20335 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
20336echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
bec39cab
AC
20337 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
20338 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
20339else
20340 if test "$cross_compiling" = yes; then
97bf5e38 20341 gdb_cv_prfpregset_t_broken=yes
c906108c 20342else
bec39cab
AC
20343 cat >conftest.$ac_ext <<_ACEOF
20344/* confdefs.h. */
20345_ACEOF
20346cat confdefs.h >>conftest.$ac_ext
20347cat >>conftest.$ac_ext <<_ACEOF
20348/* end confdefs.h. */
97bf5e38
MK
20349#include <sys/procfs.h>
20350 int main ()
20351 {
20352 if (sizeof (prfpregset_t) == sizeof (void *))
20353 return 1;
20354 return 0;
20355 }
bec39cab
AC
20356_ACEOF
20357rm -f conftest$ac_exeext
20358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20359 (eval $ac_link) 2>&5
20360 ac_status=$?
20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20364 (eval $ac_try) 2>&5
20365 ac_status=$?
20366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); }; }; then
97bf5e38 20368 gdb_cv_prfpregset_t_broken=no
c906108c 20369else
bec39cab
AC
20370 echo "$as_me: program exited with status $ac_status" >&5
20371echo "$as_me: failed program was:" >&5
20372sed 's/^/| /' conftest.$ac_ext >&5
20373
20374( exit $ac_status )
20375gdb_cv_prfpregset_t_broken=yes
c906108c 20376fi
b4e70030 20377rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 20378fi
c906108c
SS
20379fi
20380
b4e70030
JB
20381 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
20382echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
97bf5e38 20383 if test $gdb_cv_prfpregset_t_broken = yes; then
60ca704f
SE
20384
20385cat >>confdefs.h <<\_ACEOF
97bf5e38 20386#define PRFPREGSET_T_BROKEN 1
bec39cab 20387_ACEOF
c906108c 20388
97bf5e38
MK
20389 fi
20390 fi
c906108c 20391
bec39cab 20392
b4e70030
JB
20393 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
20394echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20395 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
20396 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20397else
bec39cab
AC
20398 cat >conftest.$ac_ext <<_ACEOF
20399/* confdefs.h. */
20400_ACEOF
20401cat confdefs.h >>conftest.$ac_ext
20402cat >>conftest.$ac_ext <<_ACEOF
20403/* end confdefs.h. */
97bf5e38
MK
20404#include <unistd.h>
20405#include <sys/types.h>
20406#include <sys/procfs.h>
20407
bec39cab
AC
20408int
20409main ()
20410{
97bf5e38
MK
20411
20412 int dummy;;
20413 dummy = ioctl(0, PIOCSET, &dummy);
bec39cab
AC
20414
20415 ;
20416 return 0;
20417}
20418_ACEOF
20419rm -f conftest.$ac_objext
20420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20421 (eval $ac_compile) 2>conftest.er1
20422 ac_status=$?
20423 grep -v '^ *+' conftest.er1 >conftest.err
20424 rm -f conftest.er1
20425 cat conftest.err >&5
20426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427 (exit $ac_status); } &&
b4e70030
JB
20428 { ac_try='test -z "$ac_c_werror_flag"
20429 || test ! -s conftest.err'
bec39cab
AC
20430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20431 (eval $ac_try) 2>&5
20432 ac_status=$?
20433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434 (exit $ac_status); }; } &&
20435 { ac_try='test -s conftest.$ac_objext'
20436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20437 (eval $ac_try) 2>&5
20438 ac_status=$?
20439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440 (exit $ac_status); }; }; then
97bf5e38 20441 gdb_cv_have_procfs_piocset=yes
c906108c 20442else
bec39cab
AC
20443 echo "$as_me: failed program was:" >&5
20444sed 's/^/| /' conftest.$ac_ext >&5
20445
b4e70030 20446gdb_cv_have_procfs_piocset=no
c906108c 20447fi
bec39cab 20448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20449fi
97bf5e38 20450
b4e70030
JB
20451 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
20452echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
97bf5e38 20453 if test $gdb_cv_have_procfs_piocset = yes; then
60ca704f
SE
20454
20455cat >>confdefs.h <<\_ACEOF
97bf5e38 20456#define HAVE_PROCFS_PIOCSET 1
bec39cab 20457_ACEOF
97bf5e38
MK
20458
20459 fi
c906108c 20460fi
c906108c 20461
97bf5e38 20462if test ${host} = ${target} ; then
bec39cab 20463
b4e70030
JB
20464 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
20465echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
bec39cab
AC
20466 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
20467 echo $ECHO_N "(cached) $ECHO_C" >&6
20468else
20469 cat >conftest.$ac_ext <<_ACEOF
20470/* confdefs.h. */
20471_ACEOF
20472cat confdefs.h >>conftest.$ac_ext
20473cat >>conftest.$ac_ext <<_ACEOF
20474/* end confdefs.h. */
97bf5e38 20475#include <link.h>
bec39cab
AC
20476int
20477main ()
20478{
97bf5e38 20479struct link_map lm; (void) lm.l_addr;
bec39cab
AC
20480 ;
20481 return 0;
20482}
20483_ACEOF
20484rm -f conftest.$ac_objext
20485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20486 (eval $ac_compile) 2>conftest.er1
20487 ac_status=$?
20488 grep -v '^ *+' conftest.er1 >conftest.err
20489 rm -f conftest.er1
20490 cat conftest.err >&5
20491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492 (exit $ac_status); } &&
b4e70030
JB
20493 { ac_try='test -z "$ac_c_werror_flag"
20494 || test ! -s conftest.err'
bec39cab
AC
20495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20496 (eval $ac_try) 2>&5
20497 ac_status=$?
20498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499 (exit $ac_status); }; } &&
20500 { ac_try='test -s conftest.$ac_objext'
20501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20502 (eval $ac_try) 2>&5
20503 ac_status=$?
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); }; }; then
97bf5e38 20506 gdb_cv_have_struct_link_map_with_l_members=yes
c906108c 20507else
bec39cab
AC
20508 echo "$as_me: failed program was:" >&5
20509sed 's/^/| /' conftest.$ac_ext >&5
20510
b4e70030 20511gdb_cv_have_struct_link_map_with_l_members=no
c906108c 20512fi
bec39cab 20513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
20514fi
20515
b4e70030
JB
20516 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
20517echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
97bf5e38 20518 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
60ca704f
SE
20519
20520cat >>confdefs.h <<\_ACEOF
97bf5e38 20521#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
bec39cab 20522_ACEOF
97bf5e38
MK
20523
20524 fi
20525
bec39cab 20526
b4e70030
JB
20527 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
20528echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
bec39cab
AC
20529 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
20530 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20531else
bec39cab
AC
20532 cat >conftest.$ac_ext <<_ACEOF
20533/* confdefs.h. */
20534_ACEOF
20535cat confdefs.h >>conftest.$ac_ext
20536cat >>conftest.$ac_ext <<_ACEOF
20537/* end confdefs.h. */
97bf5e38
MK
20538#include <sys/types.h>
20539#include <link.h>
bec39cab
AC
20540int
20541main ()
20542{
97bf5e38 20543struct link_map lm; (void) lm.lm_addr;
bec39cab
AC
20544 ;
20545 return 0;
20546}
20547_ACEOF
20548rm -f conftest.$ac_objext
20549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20550 (eval $ac_compile) 2>conftest.er1
20551 ac_status=$?
20552 grep -v '^ *+' conftest.er1 >conftest.err
20553 rm -f conftest.er1
20554 cat conftest.err >&5
20555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556 (exit $ac_status); } &&
b4e70030
JB
20557 { ac_try='test -z "$ac_c_werror_flag"
20558 || test ! -s conftest.err'
bec39cab
AC
20559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20560 (eval $ac_try) 2>&5
20561 ac_status=$?
20562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563 (exit $ac_status); }; } &&
20564 { ac_try='test -s conftest.$ac_objext'
20565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20566 (eval $ac_try) 2>&5
20567 ac_status=$?
20568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569 (exit $ac_status); }; }; then
97bf5e38
MK
20570 gdb_cv_have_struct_link_map_with_lm_members=yes
20571else
bec39cab
AC
20572 echo "$as_me: failed program was:" >&5
20573sed 's/^/| /' conftest.$ac_ext >&5
20574
b4e70030 20575gdb_cv_have_struct_link_map_with_lm_members=no
97bf5e38 20576fi
bec39cab 20577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20578fi
c906108c 20579
b4e70030
JB
20580 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
20581echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
97bf5e38 20582 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
60ca704f
SE
20583
20584cat >>confdefs.h <<\_ACEOF
97bf5e38 20585#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
bec39cab 20586_ACEOF
97bf5e38
MK
20587
20588 fi
20589
bec39cab 20590
b4e70030
JB
20591 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
20592echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
bec39cab
AC
20593 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
20594 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20595else
bec39cab
AC
20596 cat >conftest.$ac_ext <<_ACEOF
20597/* confdefs.h. */
20598_ACEOF
20599cat confdefs.h >>conftest.$ac_ext
20600cat >>conftest.$ac_ext <<_ACEOF
20601/* end confdefs.h. */
97bf5e38
MK
20602#include <sys/types.h>
20603#ifdef HAVE_NLIST_H
20604#include <nlist.h>
20605#endif
20606#include <link.h>
bec39cab
AC
20607int
20608main ()
20609{
97bf5e38 20610struct so_map lm; (void) lm.som_addr;
bec39cab
AC
20611 ;
20612 return 0;
20613}
20614_ACEOF
20615rm -f conftest.$ac_objext
20616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20617 (eval $ac_compile) 2>conftest.er1
20618 ac_status=$?
20619 grep -v '^ *+' conftest.er1 >conftest.err
20620 rm -f conftest.er1
20621 cat conftest.err >&5
20622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623 (exit $ac_status); } &&
b4e70030
JB
20624 { ac_try='test -z "$ac_c_werror_flag"
20625 || test ! -s conftest.err'
bec39cab
AC
20626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20627 (eval $ac_try) 2>&5
20628 ac_status=$?
20629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630 (exit $ac_status); }; } &&
20631 { ac_try='test -s conftest.$ac_objext'
20632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20633 (eval $ac_try) 2>&5
20634 ac_status=$?
20635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636 (exit $ac_status); }; }; then
97bf5e38
MK
20637 gdb_cv_have_struct_so_map_with_som_members=yes
20638else
bec39cab
AC
20639 echo "$as_me: failed program was:" >&5
20640sed 's/^/| /' conftest.$ac_ext >&5
20641
b4e70030 20642gdb_cv_have_struct_so_map_with_som_members=no
97bf5e38 20643fi
bec39cab 20644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 20645fi
c906108c 20646
b4e70030
JB
20647 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
20648echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
97bf5e38 20649 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
60ca704f
SE
20650
20651cat >>confdefs.h <<\_ACEOF
97bf5e38 20652#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
bec39cab 20653_ACEOF
c906108c 20654
97bf5e38 20655 fi
c906108c 20656
bec39cab 20657
b4e70030
JB
20658 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
20659echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
bec39cab
AC
20660 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
20661 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 20662else
bec39cab
AC
20663 cat >conftest.$ac_ext <<_ACEOF
20664/* confdefs.h. */
20665_ACEOF
20666cat confdefs.h >>conftest.$ac_ext
20667cat >>conftest.$ac_ext <<_ACEOF
20668/* end confdefs.h. */
97bf5e38
MK
20669#define _SYSCALL32
20670#include <sys/link.h>
bec39cab
AC
20671int
20672main ()
20673{
97bf5e38 20674struct link_map32 l;
bec39cab
AC
20675 ;
20676 return 0;
20677}
20678_ACEOF
20679rm -f conftest.$ac_objext
20680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20681 (eval $ac_compile) 2>conftest.er1
20682 ac_status=$?
20683 grep -v '^ *+' conftest.er1 >conftest.err
20684 rm -f conftest.er1
20685 cat conftest.err >&5
20686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20687 (exit $ac_status); } &&
b4e70030
JB
20688 { ac_try='test -z "$ac_c_werror_flag"
20689 || test ! -s conftest.err'
bec39cab
AC
20690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20691 (eval $ac_try) 2>&5
20692 ac_status=$?
20693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694 (exit $ac_status); }; } &&
20695 { ac_try='test -s conftest.$ac_objext'
20696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20697 (eval $ac_try) 2>&5
20698 ac_status=$?
20699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700 (exit $ac_status); }; }; then
97bf5e38
MK
20701 gdb_cv_have_struct_link_map32=yes
20702else
bec39cab
AC
20703 echo "$as_me: failed program was:" >&5
20704sed 's/^/| /' conftest.$ac_ext >&5
20705
b4e70030 20706gdb_cv_have_struct_link_map32=no
97bf5e38 20707fi
bec39cab 20708rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 20709fi
c906108c 20710
b4e70030
JB
20711 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
20712echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
97bf5e38 20713 if test $gdb_cv_have_struct_link_map32 = yes; then
60ca704f
SE
20714
20715cat >>confdefs.h <<\_ACEOF
97bf5e38 20716#define HAVE_STRUCT_LINK_MAP32 1
bec39cab 20717_ACEOF
c906108c 20718
60ca704f
SE
20719
20720cat >>confdefs.h <<\_ACEOF
97bf5e38 20721#define _SYSCALL32 1
bec39cab 20722_ACEOF
c906108c 20723
97bf5e38
MK
20724 fi
20725fi
c906108c 20726
bc8bcb4b 20727# Check if the compiler supports the `long long' type.
c906108c 20728
b4e70030
JB
20729echo "$as_me:$LINENO: checking for long long support in compiler" >&5
20730echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
bec39cab
AC
20731if test "${gdb_cv_c_long_long+set}" = set; then
20732 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 20733else
bec39cab
AC
20734 cat >conftest.$ac_ext <<_ACEOF
20735/* confdefs.h. */
20736_ACEOF
20737cat confdefs.h >>conftest.$ac_ext
20738cat >>conftest.$ac_ext <<_ACEOF
20739/* end confdefs.h. */
bc8bcb4b 20740extern long long foo;
bec39cab
AC
20741int
20742main ()
20743{
bc8bcb4b 20744switch (foo & 2) { case 0: return 1; }
bec39cab
AC
20745 ;
20746 return 0;
20747}
20748_ACEOF
20749rm -f conftest.$ac_objext
20750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20751 (eval $ac_compile) 2>conftest.er1
20752 ac_status=$?
20753 grep -v '^ *+' conftest.er1 >conftest.err
20754 rm -f conftest.er1
20755 cat conftest.err >&5
20756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20757 (exit $ac_status); } &&
b4e70030
JB
20758 { ac_try='test -z "$ac_c_werror_flag"
20759 || test ! -s conftest.err'
bec39cab
AC
20760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20761 (eval $ac_try) 2>&5
20762 ac_status=$?
20763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764 (exit $ac_status); }; } &&
20765 { ac_try='test -s conftest.$ac_objext'
20766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20767 (eval $ac_try) 2>&5
20768 ac_status=$?
20769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770 (exit $ac_status); }; }; then
97bf5e38
MK
20771 gdb_cv_c_long_long=yes
20772else
bec39cab
AC
20773 echo "$as_me: failed program was:" >&5
20774sed 's/^/| /' conftest.$ac_ext >&5
20775
b4e70030 20776gdb_cv_c_long_long=no
97bf5e38 20777fi
bec39cab 20778rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 20779fi
b4e70030
JB
20780echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
20781echo "${ECHO_T}$gdb_cv_c_long_long" >&6
97bf5e38 20782if test $gdb_cv_c_long_long = yes; then
bc8bcb4b
MK
20783
20784cat >>confdefs.h <<\_ACEOF
97bf5e38 20785#define CC_HAS_LONG_LONG 1
bec39cab 20786_ACEOF
97bf5e38
MK
20787
20788fi
20789
bc8bcb4b 20790# Check if the compiler and runtime support printing long longs.
97bf5e38 20791
b4e70030
JB
20792echo "$as_me:$LINENO: checking for long long support in printf" >&5
20793echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
bec39cab
AC
20794if test "${gdb_cv_printf_has_long_long+set}" = set; then
20795 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
20796else
20797 if test "$cross_compiling" = yes; then
20798 gdb_cv_printf_has_long_long=no
20799else
bec39cab
AC
20800 cat >conftest.$ac_ext <<_ACEOF
20801/* confdefs.h. */
20802_ACEOF
20803cat confdefs.h >>conftest.$ac_ext
20804cat >>conftest.$ac_ext <<_ACEOF
20805/* end confdefs.h. */
bc8bcb4b
MK
20806$ac_includes_default
20807int
20808main ()
20809{
20810char buf[32];
97bf5e38
MK
20811 long long l = 0;
20812 l = (l << 16) + 0x0123;
20813 l = (l << 16) + 0x4567;
20814 l = (l << 16) + 0x89ab;
20815 l = (l << 16) + 0xcdef;
20816 sprintf (buf, "0x%016llx", l);
20817 return (strcmp ("0x0123456789abcdef", buf));
bc8bcb4b
MK
20818 ;
20819 return 0;
c906108c 20820}
bec39cab
AC
20821_ACEOF
20822rm -f conftest$ac_exeext
20823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20824 (eval $ac_link) 2>&5
20825 ac_status=$?
20826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20829 (eval $ac_try) 2>&5
20830 ac_status=$?
20831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20832 (exit $ac_status); }; }; then
97bf5e38
MK
20833 gdb_cv_printf_has_long_long=yes
20834else
bec39cab
AC
20835 echo "$as_me: program exited with status $ac_status" >&5
20836echo "$as_me: failed program was:" >&5
20837sed 's/^/| /' conftest.$ac_ext >&5
20838
20839( exit $ac_status )
20840gdb_cv_printf_has_long_long=no
97bf5e38 20841fi
b4e70030 20842rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 20843fi
97bf5e38 20844fi
b4e70030
JB
20845echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
20846echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
97bf5e38 20847if test $gdb_cv_printf_has_long_long = yes; then
bc8bcb4b
MK
20848
20849cat >>confdefs.h <<\_ACEOF
97bf5e38 20850#define PRINTF_HAS_LONG_LONG 1
bec39cab 20851_ACEOF
97bf5e38
MK
20852
20853fi
97bf5e38 20854
bc8bcb4b
MK
20855# Check if the compiler supports the `long double' type. We can't use
20856# AC_C_LONG_DOUBLE because that one does additional checks on the
20857# constants defined in <float.h> that fail on some systems,
20858# e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
97bf5e38 20859
b4e70030
JB
20860echo "$as_me:$LINENO: checking for long double support in compiler" >&5
20861echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
bc8bcb4b 20862if test "${gdb_cv_c_long_double+set}" = set; then
bec39cab 20863 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 20864else
bec39cab
AC
20865 cat >conftest.$ac_ext <<_ACEOF
20866/* confdefs.h. */
20867_ACEOF
20868cat confdefs.h >>conftest.$ac_ext
20869cat >>conftest.$ac_ext <<_ACEOF
20870/* end confdefs.h. */
97bf5e38 20871long double foo;
bec39cab
AC
20872_ACEOF
20873rm -f conftest.$ac_objext
20874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20875 (eval $ac_compile) 2>conftest.er1
20876 ac_status=$?
20877 grep -v '^ *+' conftest.er1 >conftest.err
20878 rm -f conftest.er1
20879 cat conftest.err >&5
20880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881 (exit $ac_status); } &&
b4e70030
JB
20882 { ac_try='test -z "$ac_c_werror_flag"
20883 || test ! -s conftest.err'
bec39cab
AC
20884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20885 (eval $ac_try) 2>&5
20886 ac_status=$?
20887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888 (exit $ac_status); }; } &&
20889 { ac_try='test -s conftest.$ac_objext'
20890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20891 (eval $ac_try) 2>&5
20892 ac_status=$?
20893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894 (exit $ac_status); }; }; then
bc8bcb4b 20895 gdb_cv_c_long_double=yes
97bf5e38 20896else
bec39cab
AC
20897 echo "$as_me: failed program was:" >&5
20898sed 's/^/| /' conftest.$ac_ext >&5
20899
b4e70030 20900gdb_cv_c_long_double=no
97bf5e38 20901fi
bec39cab 20902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 20903fi
b4e70030
JB
20904echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
20905echo "${ECHO_T}$gdb_cv_c_long_double" >&6
bc8bcb4b 20906if test $gdb_cv_c_long_double = yes; then
c906108c 20907
bc8bcb4b 20908cat >>confdefs.h <<\_ACEOF
97bf5e38 20909#define HAVE_LONG_DOUBLE 1
bec39cab 20910_ACEOF
97bf5e38
MK
20911
20912fi
20913
bc8bcb4b 20914# Check if the compiler and runtime support printing long doubles.
97bf5e38 20915
b4e70030
JB
20916echo "$as_me:$LINENO: checking for long double support in printf" >&5
20917echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
bec39cab
AC
20918if test "${gdb_cv_printf_has_long_double+set}" = set; then
20919 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
20920else
20921 if test "$cross_compiling" = yes; then
20922 gdb_cv_printf_has_long_double=no
20923else
bec39cab
AC
20924 cat >conftest.$ac_ext <<_ACEOF
20925/* confdefs.h. */
20926_ACEOF
20927cat confdefs.h >>conftest.$ac_ext
20928cat >>conftest.$ac_ext <<_ACEOF
20929/* end confdefs.h. */
bc8bcb4b
MK
20930$ac_includes_default
20931int
20932main ()
20933{
20934char buf[16];
97bf5e38
MK
20935 long double f = 3.141592653;
20936 sprintf (buf, "%Lg", f);
20937 return (strncmp ("3.14159", buf, 7));
bc8bcb4b
MK
20938 ;
20939 return 0;
97bf5e38 20940}
bec39cab
AC
20941_ACEOF
20942rm -f conftest$ac_exeext
20943if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20944 (eval $ac_link) 2>&5
20945 ac_status=$?
20946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20949 (eval $ac_try) 2>&5
20950 ac_status=$?
20951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952 (exit $ac_status); }; }; then
97bf5e38 20953 gdb_cv_printf_has_long_double=yes
c906108c 20954else
bec39cab
AC
20955 echo "$as_me: program exited with status $ac_status" >&5
20956echo "$as_me: failed program was:" >&5
20957sed 's/^/| /' conftest.$ac_ext >&5
20958
20959( exit $ac_status )
20960gdb_cv_printf_has_long_double=no
c906108c 20961fi
b4e70030 20962rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 20963fi
c906108c 20964fi
b4e70030
JB
20965echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
20966echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
97bf5e38 20967if test $gdb_cv_printf_has_long_double = yes; then
bc8bcb4b
MK
20968
20969cat >>confdefs.h <<\_ACEOF
97bf5e38 20970#define PRINTF_HAS_LONG_DOUBLE 1
bec39cab 20971_ACEOF
97bf5e38
MK
20972
20973fi
97bf5e38 20974
bc8bcb4b 20975# Check if the compiler and runtime support scanning long doubles.
97bf5e38 20976
b4e70030
JB
20977echo "$as_me:$LINENO: checking for long double support in scanf" >&5
20978echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
bec39cab
AC
20979if test "${gdb_cv_scanf_has_long_double+set}" = set; then
20980 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
20981else
20982 if test "$cross_compiling" = yes; then
20983 gdb_cv_scanf_has_long_double=no
20984else
bec39cab
AC
20985 cat >conftest.$ac_ext <<_ACEOF
20986/* confdefs.h. */
20987_ACEOF
20988cat confdefs.h >>conftest.$ac_ext
20989cat >>conftest.$ac_ext <<_ACEOF
20990/* end confdefs.h. */
bc8bcb4b
MK
20991#include <stdio.h>
20992int
20993main ()
20994{
20995char *buf = "3.141592653";
97bf5e38
MK
20996 long double f = 0;
20997 sscanf (buf, "%Lg", &f);
20998 return !(f > 3.14159 && f < 3.14160);
bc8bcb4b
MK
20999 ;
21000 return 0;
97bf5e38 21001}
bec39cab
AC
21002_ACEOF
21003rm -f conftest$ac_exeext
21004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21005 (eval $ac_link) 2>&5
21006 ac_status=$?
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21010 (eval $ac_try) 2>&5
21011 ac_status=$?
21012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013 (exit $ac_status); }; }; then
97bf5e38
MK
21014 gdb_cv_scanf_has_long_double=yes
21015else
bec39cab
AC
21016 echo "$as_me: program exited with status $ac_status" >&5
21017echo "$as_me: failed program was:" >&5
21018sed 's/^/| /' conftest.$ac_ext >&5
21019
21020( exit $ac_status )
21021gdb_cv_scanf_has_long_double=no
97bf5e38 21022fi
b4e70030 21023rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 21024fi
c906108c 21025fi
b4e70030
JB
21026echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
21027echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
97bf5e38 21028if test $gdb_cv_scanf_has_long_double = yes; then
bc8bcb4b
MK
21029
21030cat >>confdefs.h <<\_ACEOF
97bf5e38 21031#define SCANF_HAS_LONG_DOUBLE 1
bec39cab 21032_ACEOF
97bf5e38
MK
21033
21034fi
c906108c 21035
438013df
AO
21036case ${host_os} in
21037aix*)
b4e70030
JB
21038 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
21039echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
bec39cab
AC
21040if test "${gdb_cv_bigtoc+set}" = set; then
21041 echo $ECHO_N "(cached) $ECHO_C" >&6
438013df 21042else
bec39cab 21043
438013df
AO
21044 SAVE_LDFLAGS=$LDFLAGS
21045
21046 case $GCC in
21047 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
21048 *) gdb_cv_bigtoc=-bbigtoc ;;
21049 esac
21050
21051 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
bec39cab
AC
21052 cat >conftest.$ac_ext <<_ACEOF
21053/* confdefs.h. */
21054_ACEOF
21055cat confdefs.h >>conftest.$ac_ext
21056cat >>conftest.$ac_ext <<_ACEOF
21057/* end confdefs.h. */
438013df 21058
bec39cab
AC
21059int
21060main ()
21061{
438013df 21062int i;
bec39cab
AC
21063 ;
21064 return 0;
21065}
21066_ACEOF
21067rm -f conftest.$ac_objext conftest$ac_exeext
21068if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21069 (eval $ac_link) 2>conftest.er1
21070 ac_status=$?
21071 grep -v '^ *+' conftest.er1 >conftest.err
21072 rm -f conftest.er1
21073 cat conftest.err >&5
21074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075 (exit $ac_status); } &&
b4e70030
JB
21076 { ac_try='test -z "$ac_c_werror_flag"
21077 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
21083 { ac_try='test -s conftest$ac_exeext'
21084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21085 (eval $ac_try) 2>&5
21086 ac_status=$?
21087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088 (exit $ac_status); }; }; then
438013df
AO
21089 :
21090else
bec39cab
AC
21091 echo "$as_me: failed program was:" >&5
21092sed 's/^/| /' conftest.$ac_ext >&5
21093
b4e70030 21094gdb_cv_bigtoc=
438013df 21095fi
bec39cab
AC
21096rm -f conftest.err conftest.$ac_objext \
21097 conftest$ac_exeext conftest.$ac_ext
ec76baa5 21098 LDFLAGS="${SAVE_LDFLAGS}"
438013df 21099
bec39cab 21100fi
b4e70030
JB
21101echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
21102echo "${ECHO_T}$gdb_cv_bigtoc" >&6
438013df
AO
21103 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
21104 ;;
21105esac
21106
c906108c
SS
21107
21108
21109if test ${build} = ${host} -a ${host} = ${target} ; then
21110 case ${host_os} in
21111 hpux*)
b4e70030
JB
21112 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
21113echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
c906108c
SS
21114 if test -f /usr/include/dce/cma_config.h ; then
21115 if test "$GCC" = "yes" ; then
b4e70030
JB
21116 echo "$as_me:$LINENO: result: yes" >&5
21117echo "${ECHO_T}yes" >&6
60ca704f
SE
21118
21119cat >>confdefs.h <<\_ACEOF
c906108c 21120#define HAVE_HPUX_THREAD_SUPPORT 1
bec39cab 21121_ACEOF
c906108c 21122
3483b318 21123 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
c906108c
SS
21124 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
21125 else
b4e70030
JB
21126 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
21127echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
c906108c
SS
21128 fi
21129 else
b4e70030
JB
21130 echo "$as_me:$LINENO: result: no" >&5
21131echo "${ECHO_T}no" >&6
c906108c
SS
21132 fi
21133 ;;
21134 solaris*)
d92419e5
JB
21135 # See if thread_db library is around for Solaris thread debugging.
21136 # Note that we must explicitly test for version 1 of the library
21137 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
21138 # the same API.
b4e70030
JB
21139 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
21140echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
c906108c 21141 if test -f /usr/lib/libthread_db.so.1 ; then
b4e70030
JB
21142 echo "$as_me:$LINENO: result: yes" >&5
21143echo "${ECHO_T}yes" >&6
60ca704f
SE
21144
21145cat >>confdefs.h <<\_ACEOF
c906108c 21146#define HAVE_THREAD_DB_LIB 1
bec39cab 21147_ACEOF
c906108c 21148
3483b318 21149 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
c906108c 21150 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
bec39cab 21151
b4e70030
JB
21152echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21153echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
bec39cab
AC
21154if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21155 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 21156else
bec39cab 21157 ac_check_lib_save_LIBS=$LIBS
c906108c 21158LIBS="-ldl $LIBS"
bec39cab
AC
21159cat >conftest.$ac_ext <<_ACEOF
21160/* confdefs.h. */
21161_ACEOF
21162cat confdefs.h >>conftest.$ac_ext
21163cat >>conftest.$ac_ext <<_ACEOF
21164/* end confdefs.h. */
21165
b4e70030 21166/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
21167#ifdef __cplusplus
21168extern "C"
21169#endif
b4e70030
JB
21170/* We use char because int might match the return type of a gcc2
21171 builtin and then its argument prototype would still apply. */
bec39cab
AC
21172char dlopen ();
21173int
21174main ()
21175{
b4e70030 21176dlopen ();
bec39cab
AC
21177 ;
21178 return 0;
21179}
21180_ACEOF
21181rm -f conftest.$ac_objext conftest$ac_exeext
21182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21183 (eval $ac_link) 2>conftest.er1
21184 ac_status=$?
21185 grep -v '^ *+' conftest.er1 >conftest.err
21186 rm -f conftest.er1
21187 cat conftest.err >&5
21188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189 (exit $ac_status); } &&
b4e70030
JB
21190 { ac_try='test -z "$ac_c_werror_flag"
21191 || test ! -s conftest.err'
bec39cab
AC
21192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21193 (eval $ac_try) 2>&5
21194 ac_status=$?
21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); }; } &&
21197 { ac_try='test -s conftest$ac_exeext'
21198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21199 (eval $ac_try) 2>&5
21200 ac_status=$?
21201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21202 (exit $ac_status); }; }; then
21203 ac_cv_lib_dl_dlopen=yes
21204else
21205 echo "$as_me: failed program was:" >&5
21206sed 's/^/| /' conftest.$ac_ext >&5
21207
b4e70030 21208ac_cv_lib_dl_dlopen=no
bec39cab
AC
21209fi
21210rm -f conftest.err conftest.$ac_objext \
21211 conftest$ac_exeext conftest.$ac_ext
21212LIBS=$ac_check_lib_save_LIBS
21213fi
b4e70030
JB
21214echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21215echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
bec39cab
AC
21216if test $ac_cv_lib_dl_dlopen = yes; then
21217 cat >>confdefs.h <<_ACEOF
21218#define HAVE_LIBDL 1
21219_ACEOF
c906108c
SS
21220
21221 LIBS="-ldl $LIBS"
21222
c906108c
SS
21223fi
21224
21225 if test "$GCC" = "yes" ; then
21226 # The GNU linker requires the -export-dynamic option to make
21227 # all symbols visible in the dynamic symbol table.
21228 hold_ldflags=$LDFLAGS
b4e70030
JB
21229 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
21230echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
c906108c 21231 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
bec39cab
AC
21232 cat >conftest.$ac_ext <<_ACEOF
21233/* confdefs.h. */
21234_ACEOF
21235cat confdefs.h >>conftest.$ac_ext
21236cat >>conftest.$ac_ext <<_ACEOF
21237/* end confdefs.h. */
c906108c 21238
bec39cab
AC
21239int
21240main ()
21241{
c906108c 21242int i;
bec39cab
AC
21243 ;
21244 return 0;
21245}
21246_ACEOF
21247rm -f conftest.$ac_objext conftest$ac_exeext
21248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21249 (eval $ac_link) 2>conftest.er1
21250 ac_status=$?
21251 grep -v '^ *+' conftest.er1 >conftest.err
21252 rm -f conftest.er1
21253 cat conftest.err >&5
21254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21255 (exit $ac_status); } &&
b4e70030
JB
21256 { ac_try='test -z "$ac_c_werror_flag"
21257 || test ! -s conftest.err'
bec39cab
AC
21258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21259 (eval $ac_try) 2>&5
21260 ac_status=$?
21261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21262 (exit $ac_status); }; } &&
21263 { ac_try='test -s conftest$ac_exeext'
21264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21265 (eval $ac_try) 2>&5
21266 ac_status=$?
21267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21268 (exit $ac_status); }; }; then
c906108c
SS
21269 found=yes
21270else
bec39cab
AC
21271 echo "$as_me: failed program was:" >&5
21272sed 's/^/| /' conftest.$ac_ext >&5
21273
b4e70030 21274found=no
c906108c 21275fi
bec39cab
AC
21276rm -f conftest.err conftest.$ac_objext \
21277 conftest$ac_exeext conftest.$ac_ext
c906108c 21278 LDFLAGS=$hold_ldflags
b4e70030
JB
21279 echo "$as_me:$LINENO: result: $found" >&5
21280echo "${ECHO_T}$found" >&6
c906108c
SS
21281 if test $found = yes; then
21282 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
21283 fi
21284 fi
21285 # Sun randomly tweaked the prototypes in <proc_service.h>
21286 # at one point.
b4e70030
JB
21287 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
21288echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
bec39cab
AC
21289 if test "${gdb_cv_proc_service_is_old+set}" = set; then
21290 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 21291else
bec39cab
AC
21292
21293 cat >conftest.$ac_ext <<_ACEOF
21294/* confdefs.h. */
21295_ACEOF
21296cat confdefs.h >>conftest.$ac_ext
21297cat >>conftest.$ac_ext <<_ACEOF
21298/* end confdefs.h. */
c906108c
SS
21299
21300 #include <proc_service.h>
21301 ps_err_e ps_pdwrite
21302 (struct ps_prochandle*, psaddr_t, const void*, size_t);
c906108c 21303
bec39cab
AC
21304int
21305main ()
21306{
21307
21308 ;
21309 return 0;
21310}
21311_ACEOF
21312rm -f conftest.$ac_objext
21313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21314 (eval $ac_compile) 2>conftest.er1
21315 ac_status=$?
21316 grep -v '^ *+' conftest.er1 >conftest.err
21317 rm -f conftest.er1
21318 cat conftest.err >&5
21319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21320 (exit $ac_status); } &&
b4e70030
JB
21321 { ac_try='test -z "$ac_c_werror_flag"
21322 || test ! -s conftest.err'
bec39cab
AC
21323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21324 (eval $ac_try) 2>&5
21325 ac_status=$?
21326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21327 (exit $ac_status); }; } &&
21328 { ac_try='test -s conftest.$ac_objext'
21329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21330 (eval $ac_try) 2>&5
21331 ac_status=$?
21332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333 (exit $ac_status); }; }; then
c906108c
SS
21334 gdb_cv_proc_service_is_old=no
21335else
bec39cab
AC
21336 echo "$as_me: failed program was:" >&5
21337sed 's/^/| /' conftest.$ac_ext >&5
21338
b4e70030 21339gdb_cv_proc_service_is_old=yes
c906108c 21340fi
bec39cab
AC
21341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21342
c906108c
SS
21343fi
21344
b4e70030
JB
21345 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
21346echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
c906108c 21347 if test $gdb_cv_proc_service_is_old = yes; then
60ca704f
SE
21348
21349cat >>confdefs.h <<\_ACEOF
c906108c 21350#define PROC_SERVICE_IS_OLD 1
bec39cab 21351_ACEOF
c906108c
SS
21352
21353 fi
21354 else
b4e70030
JB
21355 echo "$as_me:$LINENO: result: no" >&5
21356echo "${ECHO_T}no" >&6
c906108c
SS
21357 fi
21358 ;;
d92419e5 21359 aix*)
b4e70030
JB
21360 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
21361echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
bec39cab
AC
21362 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
21363 echo $ECHO_N "(cached) $ECHO_C" >&6
21364else
21365 cat >conftest.$ac_ext <<_ACEOF
21366/* confdefs.h. */
21367_ACEOF
21368cat confdefs.h >>conftest.$ac_ext
21369cat >>conftest.$ac_ext <<_ACEOF
21370/* end confdefs.h. */
d92419e5 21371#include <sys/pthdebug.h>
bec39cab
AC
21372int
21373main ()
21374{
d92419e5
JB
21375#ifndef PTHDB_VERSION_3
21376 #error
21377 #endif
bec39cab
AC
21378 ;
21379 return 0;
21380}
21381_ACEOF
21382rm -f conftest.$ac_objext
21383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21384 (eval $ac_compile) 2>conftest.er1
21385 ac_status=$?
21386 grep -v '^ *+' conftest.er1 >conftest.err
21387 rm -f conftest.er1
21388 cat conftest.err >&5
21389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21390 (exit $ac_status); } &&
b4e70030
JB
21391 { ac_try='test -z "$ac_c_werror_flag"
21392 || test ! -s conftest.err'
bec39cab
AC
21393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21394 (eval $ac_try) 2>&5
21395 ac_status=$?
21396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21397 (exit $ac_status); }; } &&
21398 { ac_try='test -s conftest.$ac_objext'
21399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21400 (eval $ac_try) 2>&5
21401 ac_status=$?
21402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21403 (exit $ac_status); }; }; then
d92419e5
JB
21404 gdb_cv_have_aix_thread_debug=yes
21405else
bec39cab
AC
21406 echo "$as_me: failed program was:" >&5
21407sed 's/^/| /' conftest.$ac_ext >&5
21408
b4e70030 21409gdb_cv_have_aix_thread_debug=no
d92419e5 21410fi
bec39cab 21411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d92419e5
JB
21412fi
21413
b4e70030
JB
21414 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
21415echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
d92419e5
JB
21416 if test $gdb_cv_have_aix_thread_debug = yes; then
21417 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
3483b318 21418 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
d92419e5
JB
21419 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
21420 fi
21421 ;;
c906108c 21422 esac
bec39cab 21423
c906108c
SS
21424fi
21425
3f47be5c 21426if test "x$ac_cv_header_thread_db_h" = "xyes"; then
b4e70030
JB
21427 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
21428echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
bec39cab
AC
21429if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
21430 echo $ECHO_N "(cached) $ECHO_C" >&6
21431else
21432 cat >conftest.$ac_ext <<_ACEOF
21433/* confdefs.h. */
21434_ACEOF
21435cat confdefs.h >>conftest.$ac_ext
21436cat >>conftest.$ac_ext <<_ACEOF
21437/* end confdefs.h. */
3f47be5c 21438#include <thread_db.h>
bec39cab
AC
21439int
21440main ()
21441{
3f47be5c 21442int i = TD_NOTALLOC;
bec39cab
AC
21443 ;
21444 return 0;
21445}
21446_ACEOF
21447rm -f conftest.$ac_objext
21448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21449 (eval $ac_compile) 2>conftest.er1
21450 ac_status=$?
21451 grep -v '^ *+' conftest.er1 >conftest.err
21452 rm -f conftest.er1
21453 cat conftest.err >&5
21454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455 (exit $ac_status); } &&
b4e70030
JB
21456 { ac_try='test -z "$ac_c_werror_flag"
21457 || test ! -s conftest.err'
bec39cab
AC
21458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21459 (eval $ac_try) 2>&5
21460 ac_status=$?
21461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462 (exit $ac_status); }; } &&
21463 { ac_try='test -s conftest.$ac_objext'
21464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21465 (eval $ac_try) 2>&5
21466 ac_status=$?
21467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468 (exit $ac_status); }; }; then
3f47be5c
EZ
21469 gdb_cv_thread_db_h_has_td_notalloc=yes
21470else
bec39cab
AC
21471 echo "$as_me: failed program was:" >&5
21472sed 's/^/| /' conftest.$ac_ext >&5
21473
b4e70030 21474gdb_cv_thread_db_h_has_td_notalloc=no
bec39cab 21475
3f47be5c 21476fi
bec39cab 21477rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3f47be5c 21478
bec39cab 21479fi
b4e70030
JB
21480echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
21481echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
59f80f10
DJ
21482 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
21483echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
21484if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
21485 echo $ECHO_N "(cached) $ECHO_C" >&6
21486else
21487 cat >conftest.$ac_ext <<_ACEOF
21488/* confdefs.h. */
21489_ACEOF
21490cat confdefs.h >>conftest.$ac_ext
21491cat >>conftest.$ac_ext <<_ACEOF
21492/* end confdefs.h. */
21493#include <thread_db.h>
21494int
21495main ()
21496{
21497int i = TD_VERSION;
21498 ;
21499 return 0;
21500}
21501_ACEOF
21502rm -f conftest.$ac_objext
21503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21504 (eval $ac_compile) 2>conftest.er1
21505 ac_status=$?
21506 grep -v '^ *+' conftest.er1 >conftest.err
21507 rm -f conftest.er1
21508 cat conftest.err >&5
21509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510 (exit $ac_status); } &&
21511 { ac_try='test -z "$ac_c_werror_flag"
21512 || test ! -s conftest.err'
21513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21514 (eval $ac_try) 2>&5
21515 ac_status=$?
21516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517 (exit $ac_status); }; } &&
21518 { ac_try='test -s conftest.$ac_objext'
21519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21520 (eval $ac_try) 2>&5
21521 ac_status=$?
21522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21523 (exit $ac_status); }; }; then
21524 gdb_cv_thread_db_h_has_td_version=yes
21525else
21526 echo "$as_me: failed program was:" >&5
21527sed 's/^/| /' conftest.$ac_ext >&5
21528
21529gdb_cv_thread_db_h_has_td_version=no
21530
21531fi
21532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21533
21534fi
21535echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
21536echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
21537 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
21538echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
21539if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
21540 echo $ECHO_N "(cached) $ECHO_C" >&6
21541else
21542 cat >conftest.$ac_ext <<_ACEOF
21543/* confdefs.h. */
21544_ACEOF
21545cat confdefs.h >>conftest.$ac_ext
21546cat >>conftest.$ac_ext <<_ACEOF
21547/* end confdefs.h. */
21548#include <thread_db.h>
21549int
21550main ()
21551{
21552int i = TD_NOTLS;
21553 ;
21554 return 0;
21555}
21556_ACEOF
21557rm -f conftest.$ac_objext
21558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21559 (eval $ac_compile) 2>conftest.er1
21560 ac_status=$?
21561 grep -v '^ *+' conftest.er1 >conftest.err
21562 rm -f conftest.er1
21563 cat conftest.err >&5
21564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565 (exit $ac_status); } &&
21566 { ac_try='test -z "$ac_c_werror_flag"
21567 || test ! -s conftest.err'
21568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21569 (eval $ac_try) 2>&5
21570 ac_status=$?
21571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572 (exit $ac_status); }; } &&
21573 { ac_try='test -s conftest.$ac_objext'
21574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21575 (eval $ac_try) 2>&5
21576 ac_status=$?
21577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578 (exit $ac_status); }; }; then
21579 gdb_cv_thread_db_h_has_td_notls=yes
21580else
21581 echo "$as_me: failed program was:" >&5
21582sed 's/^/| /' conftest.$ac_ext >&5
21583
21584gdb_cv_thread_db_h_has_td_notls=no
21585
21586fi
21587rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21588
21589fi
21590echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
21591echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
3f47be5c
EZ
21592fi
21593if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
bec39cab
AC
21594
21595cat >>confdefs.h <<\_ACEOF
3f47be5c 21596#define THREAD_DB_HAS_TD_NOTALLOC 1
bec39cab 21597_ACEOF
3f47be5c 21598
59f80f10
DJ
21599fi
21600if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
21601
21602cat >>confdefs.h <<\_ACEOF
21603#define THREAD_DB_HAS_TD_VERSION 1
21604_ACEOF
21605
21606fi
21607if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
21608
21609cat >>confdefs.h <<\_ACEOF
21610#define THREAD_DB_HAS_TD_NOTLS 1
21611_ACEOF
21612
3f47be5c
EZ
21613fi
21614
b757528f 21615if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
b4e70030
JB
21616 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
21617echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
bec39cab
AC
21618if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
21619 echo $ECHO_N "(cached) $ECHO_C" >&6
21620else
21621 cat >conftest.$ac_ext <<_ACEOF
21622/* confdefs.h. */
21623_ACEOF
21624cat confdefs.h >>conftest.$ac_ext
21625cat >>conftest.$ac_ext <<_ACEOF
21626/* end confdefs.h. */
b757528f 21627#include <sys/syscall.h>
bec39cab
AC
21628int
21629main ()
21630{
b757528f 21631int i = __NR_tkill;
bec39cab
AC
21632 ;
21633 return 0;
21634}
21635_ACEOF
21636rm -f conftest.$ac_objext
21637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21638 (eval $ac_compile) 2>conftest.er1
21639 ac_status=$?
21640 grep -v '^ *+' conftest.er1 >conftest.err
21641 rm -f conftest.er1
21642 cat conftest.err >&5
21643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644 (exit $ac_status); } &&
b4e70030
JB
21645 { ac_try='test -z "$ac_c_werror_flag"
21646 || test ! -s conftest.err'
bec39cab
AC
21647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21648 (eval $ac_try) 2>&5
21649 ac_status=$?
21650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651 (exit $ac_status); }; } &&
21652 { ac_try='test -s conftest.$ac_objext'
21653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21654 (eval $ac_try) 2>&5
21655 ac_status=$?
21656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657 (exit $ac_status); }; }; then
b757528f
JJ
21658 gdb_cv_sys_syscall_h_has_tkill=yes
21659else
bec39cab
AC
21660 echo "$as_me: failed program was:" >&5
21661sed 's/^/| /' conftest.$ac_ext >&5
21662
b4e70030 21663gdb_cv_sys_syscall_h_has_tkill=no
bec39cab 21664
b757528f 21665fi
bec39cab 21666rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b757528f 21667
bec39cab 21668fi
b4e70030
JB
21669echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
21670echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
b757528f
JJ
21671fi
21672if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
bec39cab
AC
21673
21674cat >>confdefs.h <<\_ACEOF
b757528f 21675#define HAVE_TKILL_SYSCALL 1
bec39cab 21676_ACEOF
b757528f
JJ
21677
21678fi
21679
fb40c209 21680
bec39cab 21681
b4e70030 21682# Check whether --with-sysroot or --without-sysroot was given.
030292b7 21683if test "${with_sysroot+set}" = set; then
b4e70030
JB
21684 withval="$with_sysroot"
21685
030292b7 21686 case ${with_sysroot} in
715d1656 21687 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
030292b7
DJ
21688 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
21689 esac
21690
21691 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
21692
07abfebf
RS
21693 if test "x$prefix" = xNONE; then
21694 test_prefix=/usr/local
21695 else
21696 test_prefix=$prefix
21697 fi
aa28a74e 21698 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
07abfebf 21699 test_exec_prefix=$test_prefix
030292b7 21700 else
07abfebf 21701 test_exec_prefix=$exec_prefix
030292b7
DJ
21702 fi
21703 case ${TARGET_SYSTEM_ROOT} in
715d1656 21704 "${test_prefix}"|"${test_prefix}/"*|\
07abfebf
RS
21705 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
21706 '${prefix}'|'${prefix}/'*|\
715d1656 21707 '${exec_prefix}'|'${exec_prefix}/'*)
030292b7
DJ
21708 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
21709 TARGET_SYSTEM_ROOT_DEFINE="$t"
21710 ;;
21711 esac
21712
21713else
bec39cab 21714
030292b7
DJ
21715 TARGET_SYSTEM_ROOT=
21716 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
21717
b4e70030 21718fi;
030292b7
DJ
21719
21720
21721
b4e70030 21722# Check whether --enable-werror or --disable-werror was given.
094a342e 21723if test "${enable_werror+set}" = set; then
b4e70030
JB
21724 enableval="$enable_werror"
21725 case "${enableval}" in
094a342e
MK
21726 yes | y) ERROR_ON_WARNING="yes" ;;
21727 no | n) ERROR_ON_WARNING="no" ;;
21728 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
21729echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
21730 { (exit 1); exit 1; }; } ;;
21731 esac
b4e70030 21732fi;
094a342e
MK
21733
21734# Enable -Werror by default when using gcc
21735if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
21736 ERROR_ON_WARNING=yes
21737fi
21738
21739WERROR_CFLAGS=""
21740if test "${ERROR_ON_WARNING}" = yes ; then
21741 WERROR_CFLAGS="-Werror"
21742fi
21743
aa79a185
DJ
21744# The entries after -Wno-pointer-sign are disabled warnings which may
21745# be enabled in the future, which can not currently be used to build
21746# GDB.
21747# NOTE: If you change this list, remember to update
3b851bce 21748# gdb/doc/gdbint.texinfo.
aa79a185
DJ
21749build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
21750-Wformat-nonliteral -Wno-pointer-sign \
58b38ee2 21751-Wno-unused -Wno-switch -Wno-char-subscripts"
a3b362c4 21752
b4e70030 21753# Check whether --enable-build-warnings or --disable-build-warnings was given.
c906108c 21754if test "${enable_build_warnings+set}" = set; then
b4e70030
JB
21755 enableval="$enable_build_warnings"
21756 case "${enableval}" in
c906108c
SS
21757 yes) ;;
21758 no) build_warnings="-w";;
21759 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21760 build_warnings="${build_warnings} ${t}";;
21761 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21762 build_warnings="${t} ${build_warnings}";;
21763 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
21764esac
d4f3574e 21765if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
746a987d 21766 echo "Setting compiler warning flags = $build_warnings" 6>&1
c906108c 21767fi
b4e70030 21768fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
3b851bce 21769if test "${enable_gdb_build_warnings+set}" = set; then
b4e70030
JB
21770 enableval="$enable_gdb_build_warnings"
21771 case "${enableval}" in
3b851bce
AC
21772 yes) ;;
21773 no) build_warnings="-w";;
21774 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21775 build_warnings="${build_warnings} ${t}";;
21776 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21777 build_warnings="${t} ${build_warnings}";;
21778 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
21779esac
21780if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
21781 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
21782fi
b4e70030 21783fi; WARN_CFLAGS=""
c906108c
SS
21784if test "x${build_warnings}" != x -a "x$GCC" = xyes
21785then
b4e70030
JB
21786 echo "$as_me:$LINENO: checking compiler warning flags" >&5
21787echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
746a987d
AC
21788 # Separate out the -Werror flag as some files just cannot be
21789 # compiled with it enabled.
21790 for w in ${build_warnings}; do
21791 case $w in
21792 -Werr*) WERROR_CFLAGS=-Werror ;;
21793 *) # Check that GCC accepts it
4536bbc6
AC
21794 saved_CFLAGS="$CFLAGS"
21795 CFLAGS="$CFLAGS $w"
bec39cab
AC
21796 cat >conftest.$ac_ext <<_ACEOF
21797/* confdefs.h. */
21798_ACEOF
21799cat confdefs.h >>conftest.$ac_ext
21800cat >>conftest.$ac_ext <<_ACEOF
21801/* end confdefs.h. */
4536bbc6 21802
bec39cab
AC
21803int
21804main ()
21805{
4536bbc6 21806
bec39cab
AC
21807 ;
21808 return 0;
21809}
21810_ACEOF
21811rm -f conftest.$ac_objext
21812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21813 (eval $ac_compile) 2>conftest.er1
21814 ac_status=$?
21815 grep -v '^ *+' conftest.er1 >conftest.err
21816 rm -f conftest.er1
21817 cat conftest.err >&5
21818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819 (exit $ac_status); } &&
b4e70030
JB
21820 { ac_try='test -z "$ac_c_werror_flag"
21821 || test ! -s conftest.err'
bec39cab
AC
21822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21823 (eval $ac_try) 2>&5
21824 ac_status=$?
21825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826 (exit $ac_status); }; } &&
21827 { ac_try='test -s conftest.$ac_objext'
21828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21829 (eval $ac_try) 2>&5
21830 ac_status=$?
21831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832 (exit $ac_status); }; }; then
4536bbc6
AC
21833 WARN_CFLAGS="${WARN_CFLAGS} $w"
21834else
bec39cab
AC
21835 echo "$as_me: failed program was:" >&5
21836sed 's/^/| /' conftest.$ac_ext >&5
21837
4536bbc6 21838fi
bec39cab 21839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4536bbc6 21840 CFLAGS="$saved_CFLAGS"
746a987d
AC
21841 esac
21842 done
aa79a185
DJ
21843 echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
21844echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
c906108c
SS
21845fi
21846
21847
104c1213 21848
7a292a7a 21849# In the Cygwin environment, we need some additional flags.
b4e70030
JB
21850echo "$as_me:$LINENO: checking for cygwin" >&5
21851echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
bec39cab
AC
21852if test "${gdb_cv_os_cygwin+set}" = set; then
21853 echo $ECHO_N "(cached) $ECHO_C" >&6
21854else
21855 cat >conftest.$ac_ext <<_ACEOF
21856/* confdefs.h. */
21857_ACEOF
21858cat confdefs.h >>conftest.$ac_ext
21859cat >>conftest.$ac_ext <<_ACEOF
21860/* end confdefs.h. */
7a292a7a
SS
21861
21862#if defined (__CYGWIN__) || defined (__CYGWIN32__)
21863lose
21864#endif
bec39cab 21865_ACEOF
7a292a7a 21866if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 21867 $EGREP "lose" >/dev/null 2>&1; then
7a292a7a
SS
21868 gdb_cv_os_cygwin=yes
21869else
7a292a7a
SS
21870 gdb_cv_os_cygwin=no
21871fi
21872rm -f conftest*
21873
21874fi
b4e70030
JB
21875echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
21876echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
7a292a7a 21877
aff38e61 21878
3eb25fda 21879SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
aff38e61 21880case ${host} in
95cbc983
AC
21881 *go32* ) SER_HARDWIRE=ser-go32.o ;;
21882 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
0ea3f30e 21883 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
aff38e61
AC
21884esac
21885
21886
cd0fc7c3
SS
21887# libreadline needs libuser32.a in a cygwin environment
21888WIN32LIBS=
21889if test x$gdb_cv_os_cygwin = xyes; then
c5394b80
JM
21890 WIN32LIBS="-luser32"
21891 case "${target}" in
21892 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
21893 ;;
21894 esac
cd0fc7c3 21895fi
c906108c 21896
b4505029
MM
21897# The ser-tcp.c module requires sockets.
21898case ${host} in
21899 *mingw32*)
21900
21901cat >>confdefs.h <<\_ACEOF
21902#define USE_WIN32API 1
21903_ACEOF
21904
21905 WIN32LIBS="$WIN32LIBS -lws2_32"
21906 ;;
21907esac
21908
7a292a7a 21909
31d99776
DJ
21910# Add ELF support to GDB, but only if BFD includes ELF support.
21911OLD_CFLAGS=$CFLAGS
21912OLD_LDFLAGS=$LDFLAGS
21913OLD_LIBS=$LIBS
cab58a69 21914CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
31d99776 21915LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
7b3200f9
DJ
21916intl=`echo $LIBINTL | sed 's,${top_builddir}/,,g'`
21917LIBS="$LIBS -lbfd -liberty $intl"
31d99776
DJ
21918echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
21919echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
21920if test "${gdb_cv_var_elf+set}" = set; then
21921 echo $ECHO_N "(cached) $ECHO_C" >&6
21922else
21923 cat >conftest.$ac_ext <<_ACEOF
21924/* confdefs.h. */
21925_ACEOF
21926cat confdefs.h >>conftest.$ac_ext
21927cat >>conftest.$ac_ext <<_ACEOF
21928/* end confdefs.h. */
21929#include <stdlib.h>
21930#include "bfd.h"
21931#include "elf-bfd.h"
21932
21933int
21934main ()
21935{
21936bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
21937 ;
21938 return 0;
21939}
21940_ACEOF
21941rm -f conftest.$ac_objext conftest$ac_exeext
21942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21943 (eval $ac_link) 2>conftest.er1
21944 ac_status=$?
21945 grep -v '^ *+' conftest.er1 >conftest.err
21946 rm -f conftest.er1
21947 cat conftest.err >&5
21948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21949 (exit $ac_status); } &&
21950 { ac_try='test -z "$ac_c_werror_flag"
21951 || test ! -s conftest.err'
21952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21953 (eval $ac_try) 2>&5
21954 ac_status=$?
21955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21956 (exit $ac_status); }; } &&
21957 { ac_try='test -s conftest$ac_exeext'
21958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21959 (eval $ac_try) 2>&5
21960 ac_status=$?
21961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21962 (exit $ac_status); }; }; then
21963 gdb_cv_var_elf=yes
21964else
21965 echo "$as_me: failed program was:" >&5
21966sed 's/^/| /' conftest.$ac_ext >&5
21967
21968gdb_cv_var_elf=no
21969fi
21970rm -f conftest.err conftest.$ac_objext \
21971 conftest$ac_exeext conftest.$ac_ext
21972fi
21973echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
21974echo "${ECHO_T}$gdb_cv_var_elf" >&6
21975if test $gdb_cv_var_elf = yes; then
21976 CONFIG_OBS="$CONFIG_OBS elfread.o"
21977
21978cat >>confdefs.h <<\_ACEOF
21979#define HAVE_ELF 1
21980_ACEOF
21981
21982fi
21983CFLAGS=$OLD_CFLAGS
21984LDFLAGS=$OLD_LDFLAGS
21985LIBS=$OLD_LIBS
21986
121ce6e5
DJ
21987# Add any host-specific objects to GDB.
21988CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
21989
3fc11d3e
JM
21990LIBGUI="../libgui/src/libgui.a"
21991GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
21992
21993
7a292a7a 21994
3fc11d3e
JM
21995WIN32LDAPP=
21996
21997
21998
d91670b9
CV
21999case "${host}" in
22000*-*-cygwin*)
22001 configdir="win"
22002 ;;
22003*)
22004 configdir="unix"
22005 ;;
22006esac
3fc11d3e
JM
22007
22008GDBTKLIBS=
22009if test "${enable_gdbtk}" = "yes"; then
22010
d1c3b63a
KS
22011 # Gdbtk must have an absolute path to srcdir in order to run
22012 # properly when not installed.
22013 here=`pwd`
22014 cd ${srcdir}
22015 GDBTK_SRC_DIR=`pwd`
22016 cd $here
22017
bec39cab 22018
3fc11d3e
JM
22019#
22020# Ok, lets find the tcl configuration
bec39cab 22021# First, look for one uninstalled.
3fc11d3e
JM
22022# the alternative search directory is invoked by --with-tclconfig
22023#
22024
22025if test x"${no_tcl}" = x ; then
22026 # we reset no_tcl in case something fails here
22027 no_tcl=true
bec39cab 22028
b4e70030 22029# Check whether --with-tclconfig or --without-tclconfig was given.
3fc11d3e 22030if test "${with_tclconfig+set}" = set; then
b4e70030
JB
22031 withval="$with_tclconfig"
22032 with_tclconfig=${withval}
22033fi;
22034 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
22035echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
bec39cab
AC
22036 if test "${ac_cv_c_tclconfig+set}" = set; then
22037 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 22038else
bec39cab 22039
3fc11d3e
JM
22040
22041 # First check to see if --with-tclconfig was specified.
22042 if test x"${with_tclconfig}" != x ; then
22043 if test -f "${with_tclconfig}/tclConfig.sh" ; then
22044 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
22045 else
bec39cab
AC
22046 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
22047echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
22048 { (exit 1); exit 1; }; }
3fc11d3e
JM
22049 fi
22050 fi
22051
22052 # then check for a private Tcl installation
22053 if test x"${ac_cv_c_tclconfig}" = x ; then
22054 for i in \
22055 ../tcl \
22056 `ls -dr ../tcl[7-9]* 2>/dev/null` \
22057 ../../tcl \
22058 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
22059 ../../../tcl \
22060 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
22061 if test -f "$i/${configdir}/tclConfig.sh" ; then
22062 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
22063 break
22064 fi
22065 done
22066 fi
22067 # check in a few common install locations
22068 if test x"${ac_cv_c_tclconfig}" = x ; then
22069 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22070 if test -f "$i/tclConfig.sh" ; then
22071 ac_cv_c_tclconfig=`(cd $i; pwd)`
22072 break
22073 fi
22074 done
22075 fi
22076 # check in a few other private locations
22077 if test x"${ac_cv_c_tclconfig}" = x ; then
22078 for i in \
22079 ${srcdir}/../tcl \
22080 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
22081 if test -f "$i/${configdir}/tclConfig.sh" ; then
22082 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
22083 break
22084 fi
22085 done
22086 fi
bec39cab 22087
3fc11d3e
JM
22088fi
22089
22090 if test x"${ac_cv_c_tclconfig}" = x ; then
22091 TCLCONFIG="# no Tcl configs found"
bec39cab
AC
22092 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
22093echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
3fc11d3e
JM
22094 else
22095 no_tcl=
22096 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
b4e70030
JB
22097 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
22098echo "${ECHO_T}found $TCLCONFIG" >&6
3fc11d3e
JM
22099 fi
22100fi
22101
22102 if test -z "${no_tcl}"; then
bec39cab 22103
3fc11d3e
JM
22104 . $TCLCONFIG
22105
3fc11d3e
JM
22106
22107
22108
22109
3fc11d3e
JM
22110
22111
22112
bec39cab
AC
22113
22114
22115
22116
22117
22118
22119
22120
22121
22122
22123
22124
22125
22126
22127
22128
22129
22130
22131
3fc11d3e
JM
22132#
22133# Ok, lets find the tk configuration
bec39cab 22134# First, look for one uninstalled.
3fc11d3e
JM
22135# the alternative search directory is invoked by --with-tkconfig
22136#
22137
22138if test x"${no_tk}" = x ; then
22139 # we reset no_tk in case something fails here
22140 no_tk=true
bec39cab 22141
b4e70030 22142# Check whether --with-tkconfig or --without-tkconfig was given.
3fc11d3e 22143if test "${with_tkconfig+set}" = set; then
b4e70030
JB
22144 withval="$with_tkconfig"
22145 with_tkconfig=${withval}
22146fi;
22147 echo "$as_me:$LINENO: checking for Tk configuration" >&5
22148echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
bec39cab
AC
22149 if test "${ac_cv_c_tkconfig+set}" = set; then
22150 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 22151else
bec39cab 22152
3fc11d3e
JM
22153
22154 # First check to see if --with-tkconfig was specified.
22155 if test x"${with_tkconfig}" != x ; then
22156 if test -f "${with_tkconfig}/tkConfig.sh" ; then
22157 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
22158 else
bec39cab
AC
22159 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
22160echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
22161 { (exit 1); exit 1; }; }
3fc11d3e
JM
22162 fi
22163 fi
22164
22165 # then check for a private Tk library
22166 if test x"${ac_cv_c_tkconfig}" = x ; then
22167 for i in \
22168 ../tk \
22169 `ls -dr ../tk[4-9]* 2>/dev/null` \
22170 ../../tk \
22171 `ls -dr ../../tk[4-9]* 2>/dev/null` \
22172 ../../../tk \
22173 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
22174 if test -f "$i/${configdir}/tkConfig.sh" ; then
22175 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
22176 break
22177 fi
22178 done
22179 fi
22180 # check in a few common install locations
22181 if test x"${ac_cv_c_tkconfig}" = x ; then
22182 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22183 if test -f "$i/tkConfig.sh" ; then
22184 ac_cv_c_tkconfig=`(cd $i; pwd)`
22185 break
22186 fi
22187 done
22188 fi
22189 # check in a few other private locations
22190 if test x"${ac_cv_c_tkconfig}" = x ; then
22191 for i in \
22192 ${srcdir}/../tk \
22193 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
22194 if test -f "$i/${configdir}/tkConfig.sh" ; then
22195 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
22196 break
22197 fi
22198 done
22199 fi
bec39cab 22200
3fc11d3e
JM
22201fi
22202
22203 if test x"${ac_cv_c_tkconfig}" = x ; then
22204 TKCONFIG="# no Tk configs found"
bec39cab
AC
22205 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
22206echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
3fc11d3e
JM
22207 else
22208 no_tk=
22209 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
b4e70030
JB
22210 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
22211echo "${ECHO_T}found $TKCONFIG" >&6
3fc11d3e
JM
22212 fi
22213fi
22214
22215
22216
dd2504ab
JM
22217 # now look for Tcl library stuff
22218
d91670b9 22219 tcldir="../tcl/${configdir}/"
dd2504ab
JM
22220
22221 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
22222
3fc11d3e
JM
22223 # If $no_tk is nonempty, then we can't do Tk, and there is no
22224 # point to doing Tcl.
22225 if test -z "${no_tk}"; then
bec39cab 22226
3fc11d3e
JM
22227 if test -f "$TKCONFIG" ; then
22228 . $TKCONFIG
22229 fi
22230
3fc11d3e 22231
3fc11d3e
JM
22232
22233
3fc11d3e 22234
bec39cab
AC
22235
22236
22237
22238
22239
22240
22241
22242
22243
3fc11d3e
JM
22244#
22245# Ok, lets find the tcl source trees so we can use the headers
22246# Warning: transition of version 9 to 10 will break this algorithm
22247# because 10 sorts before 9. We also look for just tcl. We have to
22248# be careful that we don't match stuff like tclX by accident.
22249# the alternative search directory is involked by --with-tclinclude
22250#
22251
22252no_tcl=true
b4e70030
JB
22253echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
22254echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
bec39cab 22255
b4e70030 22256# Check whether --with-tclinclude or --without-tclinclude was given.
3fc11d3e 22257if test "${with_tclinclude+set}" = set; then
b4e70030
JB
22258 withval="$with_tclinclude"
22259 with_tclinclude=${withval}
22260fi;
bec39cab
AC
22261if test "${ac_cv_c_tclh+set}" = set; then
22262 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 22263else
bec39cab 22264
3fc11d3e
JM
22265# first check to see if --with-tclinclude was specified
22266if test x"${with_tclinclude}" != x ; then
22267 if test -f ${with_tclinclude}/tclInt.h ; then
22268 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
22269 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
22270 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
22271 else
bec39cab
AC
22272 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
22273echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
22274 { (exit 1); exit 1; }; }
3fc11d3e
JM
22275 fi
22276fi
22277
22278# next check if it came with Tcl configuration file
22279if test x"${ac_cv_c_tclconfig}" = x ; then
22280 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
22281 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
22282 fi
22283fi
22284
22285# next check in private source directory
22286#
22287# since ls returns lowest version numbers first, reverse its output
22288if test x"${ac_cv_c_tclh}" = x ; then
22289 for i in \
22290 ${srcdir}/../tcl \
22291 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
22292 ${srcdir}/../../tcl \
22293 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
22294 ${srcdir}/../../../tcl \
22295 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
22296 if test -f $i/generic/tclInt.h ; then
22297 ac_cv_c_tclh=`(cd $i/generic; pwd)`
22298 break
22299 fi
22300 done
22301fi
22302# finally check in a few common install locations
22303#
22304# since ls returns lowest version numbers first, reverse its output
22305if test x"${ac_cv_c_tclh}" = x ; then
22306 for i in \
22307 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
22308 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
22309 /usr/local/src/tcl \
22310 /usr/local/lib/tcl \
22311 ${prefix}/include ; do
22312 if test -f $i/generic/tclInt.h ; then
22313 ac_cv_c_tclh=`(cd $i/generic; pwd)`
22314 break
22315 fi
22316 done
22317fi
22318# see if one is installed
22319if test x"${ac_cv_c_tclh}" = x ; then
bec39cab 22320 if test "${ac_cv_header_tclInt_h+set}" = set; then
b4e70030
JB
22321 echo "$as_me:$LINENO: checking for tclInt.h" >&5
22322echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
bec39cab
AC
22323if test "${ac_cv_header_tclInt_h+set}" = set; then
22324 echo $ECHO_N "(cached) $ECHO_C" >&6
22325fi
b4e70030
JB
22326echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
22327echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
bec39cab
AC
22328else
22329 # Is the header compilable?
b4e70030
JB
22330echo "$as_me:$LINENO: checking tclInt.h usability" >&5
22331echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
bec39cab
AC
22332cat >conftest.$ac_ext <<_ACEOF
22333/* confdefs.h. */
22334_ACEOF
22335cat confdefs.h >>conftest.$ac_ext
22336cat >>conftest.$ac_ext <<_ACEOF
22337/* end confdefs.h. */
22338$ac_includes_default
22339#include <tclInt.h>
22340_ACEOF
22341rm -f conftest.$ac_objext
22342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22343 (eval $ac_compile) 2>conftest.er1
22344 ac_status=$?
22345 grep -v '^ *+' conftest.er1 >conftest.err
22346 rm -f conftest.er1
22347 cat conftest.err >&5
22348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349 (exit $ac_status); } &&
b4e70030
JB
22350 { ac_try='test -z "$ac_c_werror_flag"
22351 || test ! -s conftest.err'
bec39cab
AC
22352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22353 (eval $ac_try) 2>&5
22354 ac_status=$?
22355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22356 (exit $ac_status); }; } &&
22357 { ac_try='test -s conftest.$ac_objext'
22358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22359 (eval $ac_try) 2>&5
22360 ac_status=$?
22361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22362 (exit $ac_status); }; }; then
22363 ac_header_compiler=yes
22364else
22365 echo "$as_me: failed program was:" >&5
22366sed 's/^/| /' conftest.$ac_ext >&5
22367
b4e70030 22368ac_header_compiler=no
bec39cab
AC
22369fi
22370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
22371echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22372echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
22373
22374# Is the header present?
b4e70030
JB
22375echo "$as_me:$LINENO: checking tclInt.h presence" >&5
22376echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
bec39cab
AC
22377cat >conftest.$ac_ext <<_ACEOF
22378/* confdefs.h. */
22379_ACEOF
22380cat confdefs.h >>conftest.$ac_ext
22381cat >>conftest.$ac_ext <<_ACEOF
22382/* end confdefs.h. */
3fc11d3e 22383#include <tclInt.h>
bec39cab
AC
22384_ACEOF
22385if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22386 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22387 ac_status=$?
22388 grep -v '^ *+' conftest.er1 >conftest.err
22389 rm -f conftest.er1
22390 cat conftest.err >&5
22391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22392 (exit $ac_status); } >/dev/null; then
22393 if test -s conftest.err; then
22394 ac_cpp_err=$ac_c_preproc_warn_flag
22395 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22396 else
22397 ac_cpp_err=
22398 fi
22399else
22400 ac_cpp_err=yes
3fc11d3e 22401fi
bec39cab
AC
22402if test -z "$ac_cpp_err"; then
22403 ac_header_preproc=yes
22404else
22405 echo "$as_me: failed program was:" >&5
22406sed 's/^/| /' conftest.$ac_ext >&5
22407
22408 ac_header_preproc=no
3fc11d3e 22409fi
bec39cab 22410rm -f conftest.err conftest.$ac_ext
b4e70030
JB
22411echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22412echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
22413
22414# So? What about this header?
22415case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22416 yes:no: )
22417 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
22418echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22419 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
22420echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
22421 ac_header_preproc=yes
22422 ;;
22423 no:yes:* )
22424 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
22425echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
22426 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
22427echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
22428 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
22429echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
22430 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
22431echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
22432 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
22433echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
22434 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
22435echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
22436 (
22437 cat <<\_ASBOX
22438## ------------------------------------------ ##
22439## Report this to the AC_PACKAGE_NAME lists. ##
22440## ------------------------------------------ ##
22441_ASBOX
22442 ) |
22443 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
22444 ;;
22445esac
b4e70030
JB
22446echo "$as_me:$LINENO: checking for tclInt.h" >&5
22447echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
bec39cab
AC
22448if test "${ac_cv_header_tclInt_h+set}" = set; then
22449 echo $ECHO_N "(cached) $ECHO_C" >&6
22450else
22451 ac_cv_header_tclInt_h=$ac_header_preproc
22452fi
b4e70030
JB
22453echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
22454echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
bec39cab
AC
22455
22456fi
22457if test $ac_cv_header_tclInt_h = yes; then
3fc11d3e
JM
22458 ac_cv_c_tclh=installed
22459else
bec39cab 22460 ac_cv_c_tclh=""
3fc11d3e
JM
22461fi
22462
bec39cab 22463
3fc11d3e
JM
22464fi
22465
22466fi
22467
22468if test x"${ac_cv_c_tclh}" = x ; then
22469 TCLHDIR="# no Tcl private headers found"
bec39cab
AC
22470 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
22471echo "$as_me: error: Can't find Tcl private headers" >&2;}
22472 { (exit 1); exit 1; }; }
3fc11d3e
JM
22473fi
22474if test x"${ac_cv_c_tclh}" != x ; then
22475 no_tcl=""
22476 if test x"${ac_cv_c_tclh}" = x"installed" ; then
b4e70030
JB
22477 echo "$as_me:$LINENO: result: is installed" >&5
22478echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
22479 TCLHDIR=""
22480 else
b4e70030
JB
22481 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
22482echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
3fc11d3e
JM
22483 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
22484 TCLHDIR="-I${ac_cv_c_tclh}"
22485 fi
22486fi
22487
22488
22489
bec39cab 22490
3fc11d3e
JM
22491#
22492# Ok, lets find the tk source trees so we can use the headers
22493# If the directory (presumably symlink) named "tk" exists, use that one
22494# in preference to any others. Same logic is used when choosing library
22495# and again with Tcl. The search order is the best place to look first, then in
22496# decreasing significance. The loop breaks if the trigger file is found.
22497# Note the gross little conversion here of srcdir by cd'ing to the found
22498# directory. This converts the path from a relative to an absolute, so
22499# recursive cache variables for the path will work right. We check all
22500# the possible paths in one loop rather than many seperate loops to speed
22501# things up.
22502# the alternative search directory is involked by --with-tkinclude
22503#
22504no_tk=true
b4e70030
JB
22505echo "$as_me:$LINENO: checking for Tk private headers" >&5
22506echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
bec39cab 22507
b4e70030 22508# Check whether --with-tkinclude or --without-tkinclude was given.
3fc11d3e 22509if test "${with_tkinclude+set}" = set; then
b4e70030
JB
22510 withval="$with_tkinclude"
22511 with_tkinclude=${withval}
22512fi;
bec39cab
AC
22513if test "${ac_cv_c_tkh+set}" = set; then
22514 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 22515else
bec39cab 22516
3fc11d3e
JM
22517# first check to see if --with-tkinclude was specified
22518if test x"${with_tkinclude}" != x ; then
22519 if test -f ${with_tkinclude}/tk.h ; then
22520 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
22521 elif test -f ${with_tkinclude}/generic/tk.h ; then
22522 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
22523 else
bec39cab
AC
22524 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
22525echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
22526 { (exit 1); exit 1; }; }
3fc11d3e
JM
22527 fi
22528fi
22529
22530# next check if it came with Tk configuration file
22531if test x"${ac_cv_c_tkconfig}" = x ; then
22532 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
22533 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
22534 fi
22535fi
22536
22537# next check in private source directory
22538#
22539# since ls returns lowest version numbers first, reverse its output
22540if test x"${ac_cv_c_tkh}" = x ; then
22541 for i in \
22542 ${srcdir}/../tk \
22543 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
22544 ${srcdir}/../../tk \
22545 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
22546 ${srcdir}/../../../tk \
22547 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
22548 if test -f $i/generic/tk.h ; then
22549 ac_cv_c_tkh=`(cd $i/generic; pwd)`
22550 break
22551 fi
22552 done
22553fi
22554# finally check in a few common install locations
22555#
22556# since ls returns lowest version numbers first, reverse its output
22557if test x"${ac_cv_c_tkh}" = x ; then
22558 for i in \
22559 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
22560 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
22561 /usr/local/src/tk \
22562 /usr/local/lib/tk \
22563 ${prefix}/include ; do
22564 if test -f $i/generic/tk.h ; then
22565 ac_cv_c_tkh=`(cd $i/generic; pwd)`
22566 break
22567 fi
22568 done
22569fi
22570# see if one is installed
22571if test x"${ac_cv_c_tkh}" = x ; then
bec39cab 22572 if test "${ac_cv_header_tk_h+set}" = set; then
b4e70030
JB
22573 echo "$as_me:$LINENO: checking for tk.h" >&5
22574echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
bec39cab
AC
22575if test "${ac_cv_header_tk_h+set}" = set; then
22576 echo $ECHO_N "(cached) $ECHO_C" >&6
22577fi
b4e70030
JB
22578echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
22579echo "${ECHO_T}$ac_cv_header_tk_h" >&6
bec39cab
AC
22580else
22581 # Is the header compilable?
b4e70030
JB
22582echo "$as_me:$LINENO: checking tk.h usability" >&5
22583echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
bec39cab
AC
22584cat >conftest.$ac_ext <<_ACEOF
22585/* confdefs.h. */
22586_ACEOF
22587cat confdefs.h >>conftest.$ac_ext
22588cat >>conftest.$ac_ext <<_ACEOF
22589/* end confdefs.h. */
22590$ac_includes_default
3fc11d3e 22591#include <tk.h>
bec39cab
AC
22592_ACEOF
22593rm -f conftest.$ac_objext
22594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22595 (eval $ac_compile) 2>conftest.er1
22596 ac_status=$?
22597 grep -v '^ *+' conftest.er1 >conftest.err
22598 rm -f conftest.er1
22599 cat conftest.err >&5
22600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22601 (exit $ac_status); } &&
b4e70030
JB
22602 { ac_try='test -z "$ac_c_werror_flag"
22603 || test ! -s conftest.err'
bec39cab
AC
22604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22605 (eval $ac_try) 2>&5
22606 ac_status=$?
22607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22608 (exit $ac_status); }; } &&
22609 { ac_try='test -s conftest.$ac_objext'
22610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22611 (eval $ac_try) 2>&5
22612 ac_status=$?
22613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22614 (exit $ac_status); }; }; then
22615 ac_header_compiler=yes
22616else
22617 echo "$as_me: failed program was:" >&5
22618sed 's/^/| /' conftest.$ac_ext >&5
22619
b4e70030 22620ac_header_compiler=no
bec39cab
AC
22621fi
22622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
22623echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22624echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
22625
22626# Is the header present?
b4e70030
JB
22627echo "$as_me:$LINENO: checking tk.h presence" >&5
22628echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
bec39cab
AC
22629cat >conftest.$ac_ext <<_ACEOF
22630/* confdefs.h. */
22631_ACEOF
22632cat confdefs.h >>conftest.$ac_ext
22633cat >>conftest.$ac_ext <<_ACEOF
22634/* end confdefs.h. */
22635#include <tk.h>
22636_ACEOF
22637if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22638 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22639 ac_status=$?
22640 grep -v '^ *+' conftest.er1 >conftest.err
22641 rm -f conftest.er1
22642 cat conftest.err >&5
22643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22644 (exit $ac_status); } >/dev/null; then
22645 if test -s conftest.err; then
22646 ac_cpp_err=$ac_c_preproc_warn_flag
22647 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22648 else
22649 ac_cpp_err=
22650 fi
22651else
22652 ac_cpp_err=yes
3fc11d3e 22653fi
bec39cab
AC
22654if test -z "$ac_cpp_err"; then
22655 ac_header_preproc=yes
22656else
22657 echo "$as_me: failed program was:" >&5
22658sed 's/^/| /' conftest.$ac_ext >&5
22659
22660 ac_header_preproc=no
22661fi
22662rm -f conftest.err conftest.$ac_ext
b4e70030
JB
22663echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22664echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
22665
22666# So? What about this header?
22667case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22668 yes:no: )
22669 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
22670echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22671 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
22672echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
22673 ac_header_preproc=yes
22674 ;;
22675 no:yes:* )
22676 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
22677echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
22678 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
22679echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
22680 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
22681echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
22682 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
22683echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
22684 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
22685echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
22686 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
22687echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
22688 (
22689 cat <<\_ASBOX
22690## ------------------------------------------ ##
22691## Report this to the AC_PACKAGE_NAME lists. ##
22692## ------------------------------------------ ##
22693_ASBOX
22694 ) |
22695 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
22696 ;;
22697esac
b4e70030
JB
22698echo "$as_me:$LINENO: checking for tk.h" >&5
22699echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
bec39cab
AC
22700if test "${ac_cv_header_tk_h+set}" = set; then
22701 echo $ECHO_N "(cached) $ECHO_C" >&6
22702else
22703 ac_cv_header_tk_h=$ac_header_preproc
22704fi
b4e70030
JB
22705echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
22706echo "${ECHO_T}$ac_cv_header_tk_h" >&6
bec39cab 22707
3fc11d3e 22708fi
bec39cab 22709if test $ac_cv_header_tk_h = yes; then
3fc11d3e
JM
22710 ac_cv_c_tkh=installed
22711else
bec39cab 22712 ac_cv_c_tkh=""
3fc11d3e
JM
22713fi
22714
bec39cab 22715
3fc11d3e
JM
22716fi
22717
22718fi
22719
22720if test x"${ac_cv_c_tkh}" != x ; then
22721 no_tk=""
22722 if test x"${ac_cv_c_tkh}" = x"installed" ; then
b4e70030
JB
22723 echo "$as_me:$LINENO: result: is installed" >&5
22724echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
22725 TKHDIR=""
22726 else
b4e70030
JB
22727 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
22728echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
3fc11d3e
JM
22729 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
22730 TKHDIR="-I${ac_cv_c_tkh}"
22731 fi
22732else
22733 TKHDIR="# no Tk directory found"
bec39cab
AC
22734 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
22735echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
3fc11d3e
JM
22736 no_tk=true
22737fi
22738
22739
22740
bec39cab 22741
b4e70030
JB
22742echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
22743echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
22744if test x"${ac_cv_c_itclh}" = x ; then
22745 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
22746 if test -f $i/generic/itcl.h ; then
22747 ac_cv_c_itclh=`(cd $i/generic; pwd)`
22748 break
22749 fi
22750 done
22751fi
22752if test x"${ac_cv_c_itclh}" = x ; then
22753 ITCLHDIR="# no Itcl private headers found"
bec39cab
AC
22754 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
22755echo "$as_me: error: Can't find Itcl private headers" >&2;}
22756 { (exit 1); exit 1; }; }
3fc11d3e
JM
22757fi
22758if test x"${ac_cv_c_itclh}" != x ; then
22759 ITCLHDIR="-I${ac_cv_c_itclh}"
22760fi
22761# should always be here
22762# ITCLLIB="../itcl/itcl/unix/libitcl.a"
22763
22764#AC_SUBST(ITCLLIB)
22765
bec39cab 22766
b4e70030
JB
22767echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
22768echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
22769if test x"${ac_cv_c_itkh}" = x ; then
22770 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
22771 if test -f $i/generic/itk.h ; then
22772 ac_cv_c_itkh=`(cd $i/generic; pwd)`
22773 break
22774 fi
22775 done
22776fi
22777if test x"${ac_cv_c_itkh}" = x ; then
22778 ITKHDIR="# no Itk private headers found"
bec39cab
AC
22779 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
22780echo "$as_me: error: Can't find Itk private headers" >&2;}
22781 { (exit 1); exit 1; }; }
3fc11d3e
JM
22782fi
22783if test x"${ac_cv_c_itkh}" != x ; then
22784 ITKHDIR="-I${ac_cv_c_itkh}"
22785fi
22786# should always be here
22787# ITKLIB="../itcl/itk/unix/libitk.a"
22788
22789#AC_SUBST(ITKLIB)
22790
3fc11d3e 22791
dd2504ab
JM
22792
22793 # now look for Tk library stuff
22794
d91670b9 22795 tkdir="../tk/${configdir}/"
dd2504ab
JM
22796
22797 TK_DEPS="${tkdir}${TK_LIB_FILE}"
22798
3fc11d3e
JM
22799 # now look for Itcl library stuff
22800
bec39cab 22801
3fc11d3e
JM
22802#
22803# Ok, lets find the itcl configuration
bec39cab 22804# First, look for one uninstalled.
3fc11d3e
JM
22805# the alternative search directory is invoked by --with-itclconfig
22806#
22807
22808if test x"${no_itcl}" = x ; then
22809 # we reset no_itcl in case something fails here
22810 no_itcl=true
bec39cab 22811
b4e70030 22812# Check whether --with-itclconfig or --without-itclconfig was given.
3fc11d3e 22813if test "${with_itclconfig+set}" = set; then
b4e70030
JB
22814 withval="$with_itclconfig"
22815 with_itclconfig=${withval}
22816fi;
22817 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
22818echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
bec39cab
AC
22819 if test "${ac_cv_c_itclconfig+set}" = set; then
22820 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 22821else
bec39cab 22822
3fc11d3e
JM
22823
22824 # First check to see if --with-itclconfig was specified.
22825 if test x"${with_itclconfig}" != x ; then
22826 if test -f "${with_itclconfig}/itclConfig.sh" ; then
22827 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
22828 else
bec39cab
AC
22829 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
22830echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
22831 { (exit 1); exit 1; }; }
3fc11d3e
JM
22832 fi
22833 fi
22834
22835 # then check for a private Itcl library
22836 if test x"${ac_cv_c_itclconfig}" = x ; then
22837 for i in \
22838 ../itcl/itcl \
22839 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
22840 ../../itcl \
22841 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
22842 ../../../itcl \
22843 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
22844 if test -f "$i/itclConfig.sh" ; then
22845 ac_cv_c_itclconfig=`(cd $i; pwd)`
22846 break
22847 fi
22848 done
22849 fi
22850 # check in a few common install locations
22851 if test x"${ac_cv_c_itclconfig}" = x ; then
22852 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22853 if test -f "$i/itclConfig.sh" ; then
22854 ac_cv_c_itclconfig=`(cd $i; pwd)`
22855 break
22856 fi
22857 done
22858 fi
22859 # check in a few other private locations
22860 if test x"${ac_cv_c_itclconfig}" = x ; then
22861 for i in \
22862 ${srcdir}/../itcl/itcl \
22863 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
22864 if test -f "$i/itclConfig.sh" ; then
22865 ac_cv_c_itclconfig=`(cd $i; pwd)`
22866 break
22867 fi
22868 done
22869 fi
bec39cab 22870
3fc11d3e
JM
22871fi
22872
22873 if test x"${ac_cv_c_itclconfig}" = x ; then
22874 ITCLCONFIG="# no Itcl configs found"
bec39cab
AC
22875 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
22876echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
3fc11d3e
JM
22877 else
22878 no_itcl=
22879 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
b4e70030
JB
22880 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
22881echo "${ECHO_T}found $ITCLCONFIG" >&6
3fc11d3e
JM
22882 fi
22883fi
22884
22885 if test -z "${no_itcl}"; then
bec39cab 22886
3fc11d3e
JM
22887 if test -f "$ITCLCONFIG" ; then
22888 . $ITCLCONFIG
22889 fi
22890
3fc11d3e 22891
3fc11d3e
JM
22892
22893
bec39cab
AC
22894
22895
22896
22897
22898
22899
22900
3fc11d3e
JM
22901
22902 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
b381d62d 22903 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
3fc11d3e
JM
22904 fi
22905
bec39cab 22906
3fc11d3e 22907 # now look for Itk library stuff
bec39cab 22908
3fc11d3e
JM
22909#
22910# Ok, lets find the itk configuration
bec39cab 22911# First, look for one uninstalled.
3fc11d3e
JM
22912# the alternative search directory is invoked by --with-itkconfig
22913#
22914
22915if test x"${no_itk}" = x ; then
22916 # we reset no_itk in case something fails here
22917 no_itk=true
bec39cab 22918
b4e70030 22919# Check whether --with-itkconfig or --without-itkconfig was given.
3fc11d3e 22920if test "${with_itkconfig+set}" = set; then
b4e70030
JB
22921 withval="$with_itkconfig"
22922 with_itkconfig=${withval}
22923fi;
22924 echo "$as_me:$LINENO: checking for Itk configuration" >&5
22925echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
bec39cab
AC
22926 if test "${ac_cv_c_itkconfig+set}" = set; then
22927 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 22928else
bec39cab 22929
3fc11d3e
JM
22930
22931 # First check to see if --with-itkconfig was specified.
22932 if test x"${with_itkconfig}" != x ; then
22933 if test -f "${with_itkconfig}/itkConfig.sh" ; then
22934 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
22935 else
bec39cab
AC
22936 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
22937echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
22938 { (exit 1); exit 1; }; }
3fc11d3e
JM
22939 fi
22940 fi
22941
22942 # then check for a private Itk library
22943 if test x"${ac_cv_c_itkconfig}" = x ; then
22944 for i in \
22945 ../itcl/itk \
22946 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
22947 ../../itk \
22948 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
22949 ../../../itk \
22950 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
22951 if test -f "$i/itkConfig.sh" ; then
22952 ac_cv_c_itkconfig=`(cd $i; pwd)`
22953 break
22954 fi
22955 done
22956 fi
22957 # check in a few common install locations
22958 if test x"${ac_cv_c_itkconfig}" = x ; then
22959 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22960 if test -f "$i/itkConfig.sh" ; then
22961 ac_cv_c_itkconfig=`(cd $i; pwd)`
22962 break
22963 fi
22964 done
22965 fi
22966 # check in a few other private locations
22967 if test x"${ac_cv_c_itkconfig}" = x ; then
22968 for i in \
22969 ${srcdir}/../itcl/itk \
22970 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
22971 if test -f "$i/itkConfig.sh" ; then
22972 ac_cv_c_itkconfig=`(cd $i; pwd)`
22973 break
22974 fi
22975 done
22976 fi
bec39cab 22977
3fc11d3e
JM
22978fi
22979
22980 if test x"${ac_cv_c_itkconfig}" = x ; then
22981 ITKCONFIG="# no Itk configs found"
bec39cab
AC
22982 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
22983echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
3fc11d3e
JM
22984 else
22985 no_itk=
22986 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
b4e70030
JB
22987 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
22988echo "${ECHO_T}found $ITKCONFIG" >&6
3fc11d3e
JM
22989 fi
22990fi
22991
22992
bec39cab
AC
22993 if test -z "${no_itcl}"; then
22994
22995 if test -f "$ITKCONFIG" ; then
22996 . $ITKCONFIG
22997 fi
22998
22999
23000
23001
23002
23003
3fc11d3e 23004
3fc11d3e 23005
3fc11d3e
JM
23006
23007
3fc11d3e
JM
23008
23009
3fc11d3e 23010 ITKLIB="${ITK_BUILD_LIB_SPEC}"
b381d62d 23011 ITK_DEPS="${ITK_LIB_FULL_PATH}"
3fc11d3e
JM
23012 fi
23013
4226a5a5 23014 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
3fc11d3e
JM
23015
23016 # Include some libraries that Tcl and Tk want.
b2a1bd4f 23017 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
3fc11d3e
JM
23018 # Yes, the ordering seems wrong here. But it isn't.
23019 # TK_LIBS is the list of libraries that need to be linked
23020 # after Tcl/Tk. Note that this isn't put into LIBS. If it
23021 # were in LIBS then any link tests after this point would
23022 # try to include things like `$(LIBGUI)', which wouldn't work.
23023 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
4226a5a5
FN
23024
23025 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
23026 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
23027 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
33f8ca73
AC
23028 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
23029 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
23030 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
23031 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
3fc11d3e
JM
23032
23033 if test x$gdb_cv_os_cygwin = xyes; then
23034 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
23035 WIN32LDAPP="-Wl,--subsystem,console"
23036 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
23037 fi
23038 fi
23039 fi
ffc6a242 23040
b4e70030
JB
23041
23042
23043subdirs="$subdirs gdbtk"
3ace7edb 23044
3fc11d3e
JM
23045fi
23046
23047
23048
23049
23050
23051
23052
23053
23054
23055
23056
23057
23058
dd2504ab 23059
b4e70030
JB
23060echo "$as_me:$LINENO: checking for X" >&5
23061echo $ECHO_N "checking for X... $ECHO_C" >&6
bec39cab 23062
c906108c 23063
b4e70030 23064# Check whether --with-x or --without-x was given.
c906108c 23065if test "${with_x+set}" = set; then
b4e70030 23066 withval="$with_x"
c906108c 23067
b4e70030 23068fi;
c906108c
SS
23069# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23070if test "x$with_x" = xno; then
23071 # The user explicitly disabled X.
23072 have_x=disabled
23073else
23074 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
23075 # Both variables are already set.
23076 have_x=yes
23077 else
bec39cab
AC
23078 if test "${ac_cv_have_x+set}" = set; then
23079 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
23080else
23081 # One or both of the vars are not set, and there is no cached value.
bec39cab 23082ac_x_includes=no ac_x_libraries=no
b4e70030 23083rm -fr conftest.dir
bec39cab
AC
23084if mkdir conftest.dir; then
23085 cd conftest.dir
c906108c 23086 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
bec39cab 23087 cat >Imakefile <<'_ACEOF'
c906108c
SS
23088acfindx:
23089 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
bec39cab 23090_ACEOF
b4e70030 23091 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
c906108c
SS
23092 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23093 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
23094 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23095 for ac_extension in a so sl; do
23096 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
bec39cab
AC
23097 test -f $ac_im_libdir/libX11.$ac_extension; then
23098 ac_im_usrlibdir=$ac_im_libdir; break
c906108c
SS
23099 fi
23100 done
23101 # Screen out bogus values from the imake configuration. They are
23102 # bogus both because they are the default anyway, and because
23103 # using them would break gcc on systems where it needs fixed includes.
bec39cab 23104 case $ac_im_incroot in
b4e70030 23105 /usr/include) ;;
bec39cab 23106 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
c906108c 23107 esac
bec39cab 23108 case $ac_im_usrlibdir in
c906108c 23109 /usr/lib | /lib) ;;
bec39cab 23110 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
c906108c
SS
23111 esac
23112 fi
23113 cd ..
b4e70030 23114 rm -fr conftest.dir
c906108c
SS
23115fi
23116
bec39cab
AC
23117# Standard set of common directories for X headers.
23118# Check X11 before X11Rn because it is often a symlink to the current release.
23119ac_x_header_dirs='
23120/usr/X11/include
23121/usr/X11R6/include
23122/usr/X11R5/include
23123/usr/X11R4/include
23124
23125/usr/include/X11
23126/usr/include/X11R6
23127/usr/include/X11R5
23128/usr/include/X11R4
23129
23130/usr/local/X11/include
23131/usr/local/X11R6/include
23132/usr/local/X11R5/include
23133/usr/local/X11R4/include
23134
23135/usr/local/include/X11
23136/usr/local/include/X11R6
23137/usr/local/include/X11R5
23138/usr/local/include/X11R4
23139
23140/usr/X386/include
23141/usr/x386/include
23142/usr/XFree86/include/X11
23143
23144/usr/include
23145/usr/local/include
23146/usr/unsupported/include
23147/usr/athena/include
23148/usr/local/x11r5/include
23149/usr/lpp/Xamples/include
23150
23151/usr/openwin/include
23152/usr/openwin/share/include'
23153
23154if test "$ac_x_includes" = no; then
59f80f10 23155 # Guess where to find include files, by looking for Intrinsic.h.
c906108c 23156 # First, try using that file with no special directory specified.
bec39cab
AC
23157 cat >conftest.$ac_ext <<_ACEOF
23158/* confdefs.h. */
23159_ACEOF
23160cat confdefs.h >>conftest.$ac_ext
23161cat >>conftest.$ac_ext <<_ACEOF
23162/* end confdefs.h. */
59f80f10 23163#include <X11/Intrinsic.h>
bec39cab
AC
23164_ACEOF
23165if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23166 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23167 ac_status=$?
23168 grep -v '^ *+' conftest.er1 >conftest.err
23169 rm -f conftest.er1
23170 cat conftest.err >&5
23171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23172 (exit $ac_status); } >/dev/null; then
23173 if test -s conftest.err; then
23174 ac_cpp_err=$ac_c_preproc_warn_flag
23175 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23176 else
23177 ac_cpp_err=
23178 fi
23179else
23180 ac_cpp_err=yes
23181fi
23182if test -z "$ac_cpp_err"; then
c906108c
SS
23183 # We can compile using X headers with no special include directory.
23184ac_x_includes=
23185else
bec39cab
AC
23186 echo "$as_me: failed program was:" >&5
23187sed 's/^/| /' conftest.$ac_ext >&5
23188
23189 for ac_dir in $ac_x_header_dirs; do
59f80f10 23190 if test -r "$ac_dir/X11/Intrinsic.h"; then
bec39cab
AC
23191 ac_x_includes=$ac_dir
23192 break
23193 fi
23194done
c906108c 23195fi
bec39cab
AC
23196rm -f conftest.err conftest.$ac_ext
23197fi # $ac_x_includes = no
c906108c 23198
bec39cab 23199if test "$ac_x_libraries" = no; then
c906108c 23200 # Check for the libraries.
c906108c
SS
23201 # See if we find them without any special options.
23202 # Don't add to $LIBS permanently.
bec39cab 23203 ac_save_LIBS=$LIBS
4e8d927d 23204 LIBS="-lXt $LIBS"
bec39cab
AC
23205 cat >conftest.$ac_ext <<_ACEOF
23206/* confdefs.h. */
23207_ACEOF
23208cat confdefs.h >>conftest.$ac_ext
23209cat >>conftest.$ac_ext <<_ACEOF
23210/* end confdefs.h. */
59f80f10 23211#include <X11/Intrinsic.h>
bec39cab
AC
23212int
23213main ()
23214{
59f80f10 23215XtMalloc (0)
bec39cab
AC
23216 ;
23217 return 0;
23218}
23219_ACEOF
23220rm -f conftest.$ac_objext conftest$ac_exeext
23221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23222 (eval $ac_link) 2>conftest.er1
23223 ac_status=$?
23224 grep -v '^ *+' conftest.er1 >conftest.err
23225 rm -f conftest.er1
23226 cat conftest.err >&5
23227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23228 (exit $ac_status); } &&
b4e70030
JB
23229 { ac_try='test -z "$ac_c_werror_flag"
23230 || test ! -s conftest.err'
bec39cab
AC
23231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23232 (eval $ac_try) 2>&5
23233 ac_status=$?
23234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23235 (exit $ac_status); }; } &&
23236 { ac_try='test -s conftest$ac_exeext'
23237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23238 (eval $ac_try) 2>&5
23239 ac_status=$?
23240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241 (exit $ac_status); }; }; then
23242 LIBS=$ac_save_LIBS
c906108c
SS
23243# We can link X programs with no special library path.
23244ac_x_libraries=
23245else
bec39cab
AC
23246 echo "$as_me: failed program was:" >&5
23247sed 's/^/| /' conftest.$ac_ext >&5
23248
b4e70030 23249LIBS=$ac_save_LIBS
bec39cab 23250for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
c906108c 23251do
bec39cab 23252 # Don't even attempt the hair of trying to link an X program!
c906108c 23253 for ac_extension in a so sl; do
b4e70030 23254 if test -r $ac_dir/libXt.$ac_extension; then
c906108c
SS
23255 ac_x_libraries=$ac_dir
23256 break 2
23257 fi
23258 done
23259done
23260fi
bec39cab
AC
23261rm -f conftest.err conftest.$ac_objext \
23262 conftest$ac_exeext conftest.$ac_ext
23263fi # $ac_x_libraries = no
c906108c 23264
bec39cab 23265if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
c906108c
SS
23266 # Didn't find X anywhere. Cache the known absence of X.
23267 ac_cv_have_x="have_x=no"
23268else
23269 # Record where we found X for the cache.
23270 ac_cv_have_x="have_x=yes \
bec39cab 23271 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
c906108c
SS
23272fi
23273fi
bec39cab 23274
c906108c
SS
23275 fi
23276 eval "$ac_cv_have_x"
23277fi # $with_x != no
23278
23279if test "$have_x" != yes; then
b4e70030
JB
23280 echo "$as_me:$LINENO: result: $have_x" >&5
23281echo "${ECHO_T}$have_x" >&6
c906108c
SS
23282 no_x=yes
23283else
23284 # If each of the values was on the command line, it overrides each guess.
23285 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23286 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23287 # Update the cache value to reflect the command line values.
23288 ac_cv_have_x="have_x=yes \
23289 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
b4e70030
JB
23290 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
23291echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
c906108c
SS
23292fi
23293
23294
9cc52bde
MK
23295# Check whether we should enable the TUI, but only do so if we really
23296# can.
23297if test x"$enable_tui" = xyes; then
23298 if test -d $srcdir/tui; then
23299 if test "$ac_cv_search_waddstr" != no; then
23300 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
23301 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
23302 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
23303 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
23304 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
23305 CONFIG_ALL="${CONFIG_ALL} all-tui"
23306 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
23307 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
23308 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
23309 else
bec39cab
AC
23310 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
23311echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9cc52bde
MK
23312 fi
23313 fi
23314fi
23315
bec39cab
AC
23316# Unlike the sim directory, whether a simulator is linked is controlled by
23317# presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
7a292a7a
SS
23318# This code just checks for a few cases where we'd like to ignore those
23319# definitions, even when they're present in the '.mt' file. These cases
23320# are when --disable-sim is specified, or if the simulator directory is
6c5cfe5b 23321# not part of the source tree.
7a292a7a 23322#
b4e70030 23323# Check whether --enable-sim or --disable-sim was given.
7a292a7a 23324if test "${enable_sim+set}" = set; then
b4e70030
JB
23325 enableval="$enable_sim"
23326 echo "enable_sim = $enable_sim";
7a292a7a
SS
23327 echo "enableval = ${enableval}";
23328 case "${enableval}" in
23329 yes) ignore_sim=false ;;
23330 no) ignore_sim=true ;;
23331 *) ignore_sim=false ;;
23332 esac
23333else
23334 ignore_sim=false
b4e70030 23335fi;
7a292a7a
SS
23336
23337if test ! -d "${srcdir}/../sim"; then
23338 ignore_sim=true
23339fi
23340
23341if test "${ignore_sim}" = "true"; then
23342 IGNORE_SIM="SIM="
23343 IGNORE_SIM_OBS="SIM_OBS="
23344else
23345 IGNORE_SIM=""
23346 IGNORE_SIM_OBS=""
60ca704f
SE
23347
23348cat >>confdefs.h <<\_ACEOF
7a292a7a 23349#define WITH_SIM 1
bec39cab 23350_ACEOF
7a292a7a
SS
23351
23352fi
23353
23354
23355
c906108c
SS
23356
23357
23358
23359
23360
23361
dfcd3bfb 23362
e56ac5c3
AC
23363
23364
b3a90332
AC
23365
23366
c35f4ffc 23367# List of host floatformats.
bec39cab
AC
23368
23369cat >>confdefs.h <<_ACEOF
c35f4ffc 23370#define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
bec39cab 23371_ACEOF
c35f4ffc 23372
bec39cab
AC
23373
23374cat >>confdefs.h <<_ACEOF
c35f4ffc 23375#define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
bec39cab
AC
23376_ACEOF
23377
c35f4ffc 23378
bec39cab 23379cat >>confdefs.h <<_ACEOF
c35f4ffc 23380#define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
bec39cab 23381_ACEOF
c35f4ffc
AC
23382
23383
c906108c
SS
23384# target_subdir is used by the testsuite to find the target libraries.
23385target_subdir=
23386if test "${host}" != "${target}"; then
23387 target_subdir="${target_alias}/"
23388fi
23389
23390
23391frags=
771b4502 23392if test "${gdb_native}" = "yes"; then
0dad8a66
MK
23393 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
23394 if test ! -f ${host_makefile_frag}; then
bec39cab
AC
23395 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
23396echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
23397 { (exit 1); exit 1; }; }
0dad8a66
MK
23398 fi
23399 frags="$frags $host_makefile_frag"
23400else
23401 host_makefile_frag=/dev/null
c906108c 23402fi
c906108c
SS
23403
23404target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
23405if test ! -f ${target_makefile_frag}; then
bec39cab
AC
23406 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
23407echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
23408 { (exit 1); exit 1; }; }
c906108c
SS
23409fi
23410frags="$frags $target_makefile_frag"
23411
23412
23413
23414
23415
23416hostfile=`sed -n '
23417s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
23418' ${host_makefile_frag}`
23419
23420targetfile=`sed -n '
b523a1fd 23421s/^[ ]*DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
c906108c
SS
23422' ${target_makefile_frag}`
23423
771b4502 23424if test "${gdb_native}" = "yes"; then
a85f51e7
DJ
23425# We pick this up from the host configuration file (.mh) because we
23426# do not have a native configuration Makefile fragment.
c906108c
SS
23427nativefile=`sed -n '
23428s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
23429' ${host_makefile_frag}`
c906108c
SS
23430fi
23431
23432
b00a8037 23433if test x"${gdb_osabi}" != x ; then
bec39cab
AC
23434
23435cat >>confdefs.h <<_ACEOF
b00a8037 23436#define GDB_OSABI_DEFAULT $gdb_osabi
bec39cab 23437_ACEOF
b00a8037
DJ
23438
23439fi
23440
8dcde887 23441# Enable multi-ice-gdb-server.
b4e70030 23442# Check whether --enable-multi-ice or --disable-multi-ice was given.
8dcde887 23443if test "${enable_multi_ice+set}" = set; then
b4e70030
JB
23444 enableval="$enable_multi_ice"
23445 case $enableval in
8dcde887
MK
23446 yes | no)
23447 ;;
bec39cab
AC
23448 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
23449echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
23450 { (exit 1); exit 1; }; } ;;
8dcde887 23451 esac
b4e70030 23452fi;
4e8d927d 23453if test "x$enable_multi_ice" = xyes; then
b4e70030
JB
23454
23455
23456subdirs="$subdirs multi-ice"
3ace7edb 23457
a85f51e7
DJ
23458fi
23459
a13e2c95
UW
23460# We only build gdbserver automatically in a native configuration.
23461if test "$gdb_native" = "yes"; then
b4e70030
JB
23462 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
23463echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
8dcde887 23464 if test "x$build_gdbserver" = xyes; then
b4e70030
JB
23465 echo "$as_me:$LINENO: result: yes" >&5
23466echo "${ECHO_T}yes" >&6
23467
23468
23469subdirs="$subdirs gdbserver"
3ace7edb 23470
8dcde887 23471 else
b4e70030
JB
23472 echo "$as_me:$LINENO: result: no" >&5
23473echo "${ECHO_T}no" >&6
8dcde887
MK
23474 fi
23475fi
23476
2c0fc042
AC
23477# If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
23478# nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
23479# to an empty version.
c906108c
SS
23480
23481files=
23482links=
5a2402b8 23483
c906108c 23484rm -f xm.h
5a2402b8 23485xm_h=""
c906108c 23486if test "${hostfile}" != ""; then
5a2402b8 23487 xm_h=xm.h
0f475e27
AC
23488 case "${hostfile}" in
23489 xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;;
23490 * ) GDB_XM_FILE="${hostfile}"
23491 esac
5a2402b8
AC
23492 files="${files} ${GDB_XM_FILE}"
23493 links="${links} xm.h"
60ca704f
SE
23494
23495cat >>confdefs.h <<_ACEOF
b78960be 23496#define GDB_XM_FILE "${GDB_XM_FILE}"
bec39cab 23497_ACEOF
5a2402b8 23498
c906108c 23499fi
5a2402b8
AC
23500
23501
c906108c 23502rm -f tm.h
5a2402b8 23503tm_h=""
c906108c 23504if test "${targetfile}" != ""; then
5a2402b8 23505 tm_h=tm.h
0f475e27 23506 case "${targetfile}" in
b8c4aece 23507 tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;;
0f475e27
AC
23508 * ) GDB_TM_FILE="${targetfile}"
23509 esac
5a2402b8
AC
23510 files="${files} ${GDB_TM_FILE}"
23511 links="${links} tm.h"
60ca704f
SE
23512
23513cat >>confdefs.h <<_ACEOF
b78960be 23514#define GDB_TM_FILE "${GDB_TM_FILE}"
bec39cab 23515_ACEOF
5a2402b8 23516
c906108c 23517fi
5a2402b8
AC
23518
23519
c906108c 23520rm -f nm.h
5a2402b8 23521nm_h=""
c906108c 23522if test "${nativefile}" != ""; then
5a2402b8 23523 nm_h=nm.h
0f475e27
AC
23524 case "${nativefile}" in
23525 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
23526 * ) GDB_NM_FILE="${nativefile}"
23527 esac
5a2402b8
AC
23528 files="${files} ${GDB_NM_FILE}"
23529 links="${links} nm.h"
60ca704f
SE
23530
23531cat >>confdefs.h <<_ACEOF
b78960be 23532#define GDB_NM_FILE "${GDB_NM_FILE}"
bec39cab 23533_ACEOF
5a2402b8 23534
c906108c 23535fi
5a2402b8
AC
23536
23537
bec39cab
AC
23538ac_sources="$files"
23539ac_dests="$links"
23540while test -n "$ac_sources"; do
23541 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
23542 set $ac_sources; ac_source=$1; shift; ac_sources=$*
23543 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
23544done
b4e70030 23545 ac_config_links="$ac_config_links $ac_config_links_1"
c906108c
SS
23546
23547
c906108c
SS
23548
23549
c906108c 23550
c906108c 23551
bec39cab
AC
23552cat >>confdefs.h <<\_ACEOF
23553#define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
23554_ACEOF
c906108c 23555
234b45d4 23556
234b45d4
KB
23557
23558
23559
b4e70030 23560# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
234b45d4 23561if test "${with_libiconv_prefix+set}" = set; then
b4e70030
JB
23562 withval="$with_libiconv_prefix"
23563
234b45d4
KB
23564 for dir in `echo "$withval" | tr : ' '`; do
23565 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
23566 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
23567 done
234b45d4 23568
b4e70030 23569fi;
234b45d4 23570
b4e70030
JB
23571 echo "$as_me:$LINENO: checking for iconv" >&5
23572echo $ECHO_N "checking for iconv... $ECHO_C" >&6
bec39cab
AC
23573if test "${am_cv_func_iconv+set}" = set; then
23574 echo $ECHO_N "(cached) $ECHO_C" >&6
234b45d4 23575else
bec39cab 23576
234b45d4
KB
23577 am_cv_func_iconv="no, consider installing GNU libiconv"
23578 am_cv_lib_iconv=no
bec39cab
AC
23579 cat >conftest.$ac_ext <<_ACEOF
23580/* confdefs.h. */
23581_ACEOF
23582cat confdefs.h >>conftest.$ac_ext
23583cat >>conftest.$ac_ext <<_ACEOF
23584/* end confdefs.h. */
234b45d4
KB
23585#include <stdlib.h>
23586#include <iconv.h>
bec39cab
AC
23587int
23588main ()
23589{
234b45d4
KB
23590iconv_t cd = iconv_open("","");
23591 iconv(cd,NULL,NULL,NULL,NULL);
23592 iconv_close(cd);
bec39cab
AC
23593 ;
23594 return 0;
23595}
23596_ACEOF
23597rm -f conftest.$ac_objext conftest$ac_exeext
23598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23599 (eval $ac_link) 2>conftest.er1
23600 ac_status=$?
23601 grep -v '^ *+' conftest.er1 >conftest.err
23602 rm -f conftest.er1
23603 cat conftest.err >&5
23604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23605 (exit $ac_status); } &&
b4e70030
JB
23606 { ac_try='test -z "$ac_c_werror_flag"
23607 || test ! -s conftest.err'
bec39cab
AC
23608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23609 (eval $ac_try) 2>&5
23610 ac_status=$?
23611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23612 (exit $ac_status); }; } &&
23613 { ac_try='test -s conftest$ac_exeext'
23614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23615 (eval $ac_try) 2>&5
23616 ac_status=$?
23617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23618 (exit $ac_status); }; }; then
234b45d4
KB
23619 am_cv_func_iconv=yes
23620else
bec39cab
AC
23621 echo "$as_me: failed program was:" >&5
23622sed 's/^/| /' conftest.$ac_ext >&5
23623
234b45d4 23624fi
bec39cab
AC
23625rm -f conftest.err conftest.$ac_objext \
23626 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
23627 if test "$am_cv_func_iconv" != yes; then
23628 am_save_LIBS="$LIBS"
23629 LIBS="$LIBS -liconv"
bec39cab
AC
23630 cat >conftest.$ac_ext <<_ACEOF
23631/* confdefs.h. */
23632_ACEOF
23633cat confdefs.h >>conftest.$ac_ext
23634cat >>conftest.$ac_ext <<_ACEOF
23635/* end confdefs.h. */
234b45d4
KB
23636#include <stdlib.h>
23637#include <iconv.h>
bec39cab
AC
23638int
23639main ()
23640{
234b45d4
KB
23641iconv_t cd = iconv_open("","");
23642 iconv(cd,NULL,NULL,NULL,NULL);
23643 iconv_close(cd);
bec39cab
AC
23644 ;
23645 return 0;
23646}
23647_ACEOF
23648rm -f conftest.$ac_objext conftest$ac_exeext
23649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23650 (eval $ac_link) 2>conftest.er1
23651 ac_status=$?
23652 grep -v '^ *+' conftest.er1 >conftest.err
23653 rm -f conftest.er1
23654 cat conftest.err >&5
23655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656 (exit $ac_status); } &&
b4e70030
JB
23657 { ac_try='test -z "$ac_c_werror_flag"
23658 || test ! -s conftest.err'
bec39cab
AC
23659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23660 (eval $ac_try) 2>&5
23661 ac_status=$?
23662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23663 (exit $ac_status); }; } &&
23664 { ac_try='test -s conftest$ac_exeext'
23665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23666 (eval $ac_try) 2>&5
23667 ac_status=$?
23668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23669 (exit $ac_status); }; }; then
234b45d4
KB
23670 am_cv_lib_iconv=yes
23671 am_cv_func_iconv=yes
23672else
bec39cab
AC
23673 echo "$as_me: failed program was:" >&5
23674sed 's/^/| /' conftest.$ac_ext >&5
23675
234b45d4 23676fi
bec39cab
AC
23677rm -f conftest.err conftest.$ac_objext \
23678 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
23679 LIBS="$am_save_LIBS"
23680 fi
bec39cab
AC
23681
23682fi
b4e70030
JB
23683echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
23684echo "${ECHO_T}$am_cv_func_iconv" >&6
bec39cab
AC
23685 if test "$am_cv_func_iconv" = yes; then
23686
23687cat >>confdefs.h <<\_ACEOF
23688#define HAVE_ICONV 1
23689_ACEOF
23690
b4e70030
JB
23691 echo "$as_me:$LINENO: checking for iconv declaration" >&5
23692echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
bec39cab
AC
23693 if test "${am_cv_proto_iconv+set}" = set; then
23694 echo $ECHO_N "(cached) $ECHO_C" >&6
23695else
23696
23697 cat >conftest.$ac_ext <<_ACEOF
23698/* confdefs.h. */
23699_ACEOF
23700cat confdefs.h >>conftest.$ac_ext
23701cat >>conftest.$ac_ext <<_ACEOF
23702/* end confdefs.h. */
23703
23704#include <stdlib.h>
23705#include <iconv.h>
23706extern
23707#ifdef __cplusplus
23708"C"
23709#endif
23710#if defined(__STDC__) || defined(__cplusplus)
23711size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
23712#else
23713size_t iconv();
23714#endif
23715
23716int
23717main ()
23718{
23719
23720 ;
23721 return 0;
23722}
23723_ACEOF
23724rm -f conftest.$ac_objext
23725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23726 (eval $ac_compile) 2>conftest.er1
23727 ac_status=$?
23728 grep -v '^ *+' conftest.er1 >conftest.err
23729 rm -f conftest.er1
23730 cat conftest.err >&5
23731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23732 (exit $ac_status); } &&
b4e70030
JB
23733 { ac_try='test -z "$ac_c_werror_flag"
23734 || test ! -s conftest.err'
bec39cab
AC
23735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23736 (eval $ac_try) 2>&5
23737 ac_status=$?
23738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739 (exit $ac_status); }; } &&
23740 { ac_try='test -s conftest.$ac_objext'
23741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23742 (eval $ac_try) 2>&5
23743 ac_status=$?
23744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23745 (exit $ac_status); }; }; then
23746 am_cv_proto_iconv_arg1=""
23747else
23748 echo "$as_me: failed program was:" >&5
23749sed 's/^/| /' conftest.$ac_ext >&5
23750
b4e70030 23751am_cv_proto_iconv_arg1="const"
bec39cab
AC
23752fi
23753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23754 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);"
23755fi
23756
23757 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
b4e70030 23758 echo "$as_me:$LINENO: result: ${ac_t:-
bec39cab
AC
23759 }$am_cv_proto_iconv" >&5
23760echo "${ECHO_T}${ac_t:-
b4e70030 23761 }$am_cv_proto_iconv" >&6
bec39cab
AC
23762
23763cat >>confdefs.h <<_ACEOF
23764#define ICONV_CONST $am_cv_proto_iconv_arg1
23765_ACEOF
23766
23767 fi
23768 LIBICONV=
23769 if test "$am_cv_lib_iconv" = yes; then
23770 LIBICONV="-liconv"
23771 fi
23772
23773
23774
b4e70030
JB
23775 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
23776 ac_config_commands="$ac_config_commands default"
bec39cab
AC
23777cat >confcache <<\_ACEOF
23778# This file is a shell script that caches the results of configure
23779# tests run on this system so they can be shared between configure
23780# scripts and configure runs, see configure's option --config-cache.
23781# It is not useful on other systems. If it contains results you don't
23782# want to keep, you may remove or edit it.
23783#
23784# config.status only pays attention to the cache file if you give it
23785# the --recheck option to rerun configure.
23786#
23787# `ac_cv_env_foo' variables (set or unset) will be overridden when
23788# loading this file, other *unset* `ac_cv_foo' will be assigned the
23789# following values.
23790
23791_ACEOF
23792
23793# The following way of writing the cache mishandles newlines in values,
23794# but we know of no workaround that is simple, portable, and efficient.
b4e70030 23795# So, don't put newlines in cache variables' values.
bec39cab
AC
23796# Ultrix sh set writes to stderr and can't be redirected directly,
23797# and sets the high bit in the cache file unless we assign to the vars.
b4e70030 23798{
bec39cab 23799 (set) 2>&1 |
b4e70030
JB
23800 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23801 *ac_space=\ *)
bec39cab
AC
23802 # `set' does not quote correctly, so add quotes (double-quote
23803 # substitution turns \\\\ into \\, and sed turns \\ into \).
23804 sed -n \
23805 "s/'/'\\\\''/g;
23806 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
b4e70030 23807 ;;
bec39cab
AC
23808 *)
23809 # `set' quotes correctly as required by POSIX, so do not add quotes.
b4e70030
JB
23810 sed -n \
23811 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
bec39cab 23812 ;;
b4e70030
JB
23813 esac;
23814} |
bec39cab
AC
23815 sed '
23816 t clear
b4e70030 23817 : clear
bec39cab
AC
23818 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23819 t end
b4e70030
JB
23820 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23821 : end' >>confcache
bec39cab
AC
23822if diff $cache_file confcache >/dev/null 2>&1; then :; else
23823 if test -w $cache_file; then
b4e70030 23824 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
bec39cab
AC
23825 cat confcache >$cache_file
23826 else
b4e70030 23827 echo "not updating unwritable cache $cache_file"
bec39cab
AC
23828 fi
23829fi
23830rm -f confcache
23831
23832test "x$prefix" = xNONE && prefix=$ac_default_prefix
23833# Let make expand exec_prefix.
23834test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23835
b4e70030
JB
23836# VPATH may cause trouble with some makes, so we remove $(srcdir),
23837# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23838# trailing colons and then remove the whole line if VPATH becomes empty
23839# (actually we leave an empty line to preserve line numbers).
23840if test "x$srcdir" = x.; then
23841 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23842s/:*\$(srcdir):*/:/;
23843s/:*\${srcdir}:*/:/;
23844s/:*@srcdir@:*/:/;
23845s/^\([^=]*=[ ]*\):*/\1/;
23846s/:*$//;
23847s/^[^=]*=[ ]*$//;
23848}'
23849fi
23850
bec39cab
AC
23851DEFS=-DHAVE_CONFIG_H
23852
23853ac_libobjs=
23854ac_ltlibobjs=
23855for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23856 # 1. Remove the extension, and $U if already installed.
b4e70030
JB
23857 ac_i=`echo "$ac_i" |
23858 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23859 # 2. Add them.
23860 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23861 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
bec39cab
AC
23862done
23863LIBOBJS=$ac_libobjs
23864
23865LTLIBOBJS=$ac_ltlibobjs
23866
23867
85981d60
AC
23868if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23869 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23870Usually this means the macro was only invoked conditionally." >&5
23871echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23872Usually this means the macro was only invoked conditionally." >&2;}
23873 { (exit 1); exit 1; }; }
23874fi
bec39cab
AC
23875
23876: ${CONFIG_STATUS=./config.status}
23877ac_clean_files_save=$ac_clean_files
23878ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23879{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23880echo "$as_me: creating $CONFIG_STATUS" >&6;}
23881cat >$CONFIG_STATUS <<_ACEOF
23882#! $SHELL
23883# Generated by $as_me.
23884# Run this file to recreate the current configuration.
23885# Compiler output produced by configure, useful for debugging
23886# configure, is in config.log if it exists.
23887
23888debug=false
23889ac_cs_recheck=false
23890ac_cs_silent=false
23891SHELL=\${CONFIG_SHELL-$SHELL}
23892_ACEOF
23893
23894cat >>$CONFIG_STATUS <<\_ACEOF
23895## --------------------- ##
23896## M4sh Initialization. ##
23897## --------------------- ##
23898
23899# Be Bourne compatible
23900if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23901 emulate sh
23902 NULLCMD=:
23903 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23904 # is contrary to our usage. Disable this feature.
23905 alias -g '${1+"$@"}'='"$@"'
b4e70030
JB
23906elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23907 set -o posix
bec39cab
AC
23908fi
23909DUALCASE=1; export DUALCASE # for MKS sh
23910
23911# Support unset when possible.
23912if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23913 as_unset=unset
23914else
23915 as_unset=false
23916fi
23917
23918
23919# Work around bugs in pre-3.0 UWIN ksh.
b4e70030 23920$as_unset ENV MAIL MAILPATH
bec39cab
AC
23921PS1='$ '
23922PS2='> '
23923PS4='+ '
23924
23925# NLS nuisances.
23926for as_var in \
23927 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23928 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23929 LC_TELEPHONE LC_TIME
23930do
23931 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23932 eval $as_var=C; export $as_var
23933 else
b4e70030 23934 $as_unset $as_var
bec39cab
AC
23935 fi
23936done
23937
23938# Required to use basename.
b4e70030 23939if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
23940 as_expr=expr
23941else
23942 as_expr=false
23943fi
23944
b4e70030 23945if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
bec39cab
AC
23946 as_basename=basename
23947else
23948 as_basename=false
23949fi
23950
23951
23952# Name of the executable.
b4e70030 23953as_me=`$as_basename "$0" ||
bec39cab
AC
23954$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23955 X"$0" : 'X\(//\)$' \| \
b4e70030
JB
23956 X"$0" : 'X\(/\)$' \| \
23957 . : '\(.\)' 2>/dev/null ||
bec39cab 23958echo X/"$0" |
b4e70030
JB
23959 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23960 /^X\/\(\/\/\)$/{ s//\1/; q; }
23961 /^X\/\(\/\).*/{ s//\1/; q; }
23962 s/.*/./; q'`
bec39cab 23963
b4e70030
JB
23964
23965# PATH needs CR, and LINENO needs CR and PATH.
23966# Avoid depending upon Character Ranges.
23967as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23968as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23969as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23970as_cr_digits='0123456789'
23971as_cr_alnum=$as_cr_Letters$as_cr_digits
23972
23973# The user is always right.
23974if test "${PATH_SEPARATOR+set}" != set; then
23975 echo "#! /bin/sh" >conf$$.sh
23976 echo "exit 0" >>conf$$.sh
23977 chmod +x conf$$.sh
23978 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23979 PATH_SEPARATOR=';'
23980 else
23981 PATH_SEPARATOR=:
23982 fi
23983 rm -f conf$$.sh
23984fi
bec39cab
AC
23985
23986
b4e70030
JB
23987 as_lineno_1=$LINENO
23988 as_lineno_2=$LINENO
23989 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23990 test "x$as_lineno_1" != "x$as_lineno_2" &&
23991 test "x$as_lineno_3" = "x$as_lineno_2" || {
23992 # Find who we are. Look in the path if we contain no path at all
23993 # relative or not.
23994 case $0 in
23995 *[\\/]* ) as_myself=$0 ;;
23996 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23997for as_dir in $PATH
23998do
23999 IFS=$as_save_IFS
24000 test -z "$as_dir" && as_dir=.
24001 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24002done
bec39cab 24003
b4e70030
JB
24004 ;;
24005 esac
24006 # We did not find ourselves, most probably we were run as `sh COMMAND'
24007 # in which case we are not to be found in the path.
24008 if test "x$as_myself" = x; then
24009 as_myself=$0
24010 fi
24011 if test ! -f "$as_myself"; then
24012 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24013echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24014 { (exit 1); exit 1; }; }
24015 fi
24016 case $CONFIG_SHELL in
24017 '')
24018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24019for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24020do
24021 IFS=$as_save_IFS
24022 test -z "$as_dir" && as_dir=.
24023 for as_base in sh bash ksh sh5; do
24024 case $as_dir in
24025 /*)
24026 if ("$as_dir/$as_base" -c '
bec39cab
AC
24027 as_lineno_1=$LINENO
24028 as_lineno_2=$LINENO
b4e70030 24029 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
bec39cab 24030 test "x$as_lineno_1" != "x$as_lineno_2" &&
b4e70030
JB
24031 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24032 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24033 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24034 CONFIG_SHELL=$as_dir/$as_base
24035 export CONFIG_SHELL
24036 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24037 fi;;
24038 esac
24039 done
24040done
24041;;
24042 esac
bec39cab
AC
24043
24044 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24045 # uniformly replaced by the line number. The first 'sed' inserts a
b4e70030
JB
24046 # line-number line before each line; the second 'sed' does the real
24047 # work. The second script uses 'N' to pair each line-number line
24048 # with the numbered line, and appends trailing '-' during
24049 # substitution so that $LINENO is not a special case at line end.
bec39cab 24050 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
b4e70030
JB
24051 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24052 sed '=' <$as_myself |
bec39cab
AC
24053 sed '
24054 N
b4e70030
JB
24055 s,$,-,
24056 : loop
24057 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
bec39cab 24058 t loop
b4e70030
JB
24059 s,-$,,
24060 s,^['$as_cr_digits']*\n,,
bec39cab 24061 ' >$as_me.lineno &&
b4e70030
JB
24062 chmod +x $as_me.lineno ||
24063 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24064echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
bec39cab
AC
24065 { (exit 1); exit 1; }; }
24066
24067 # Don't try to exec as it changes $[0], causing all sort of problems
24068 # (the dirname of $[0] is not the place where we might find the
b4e70030
JB
24069 # original and so on. Autoconf is especially sensible to this).
24070 . ./$as_me.lineno
bec39cab
AC
24071 # Exit status is that of the last command.
24072 exit
24073}
24074
24075
b4e70030
JB
24076case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24077 *c*,-n*) ECHO_N= ECHO_C='
24078' ECHO_T=' ' ;;
24079 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24080 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
bec39cab
AC
24081esac
24082
b4e70030 24083if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
24084 as_expr=expr
24085else
24086 as_expr=false
24087fi
24088
24089rm -f conf$$ conf$$.exe conf$$.file
24090echo >conf$$.file
24091if ln -s conf$$.file conf$$ 2>/dev/null; then
b4e70030
JB
24092 # We could just check for DJGPP; but this test a) works b) is more generic
24093 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24094 if test -f conf$$.exe; then
24095 # Don't use ln at all; we don't have any links
bec39cab 24096 as_ln_s='cp -p'
b4e70030
JB
24097 else
24098 as_ln_s='ln -s'
24099 fi
bec39cab
AC
24100elif ln conf$$.file conf$$ 2>/dev/null; then
24101 as_ln_s=ln
24102else
24103 as_ln_s='cp -p'
24104fi
b4e70030 24105rm -f conf$$ conf$$.exe conf$$.file
bec39cab
AC
24106
24107if mkdir -p . 2>/dev/null; then
24108 as_mkdir_p=:
24109else
24110 test -d ./-p && rmdir ./-p
24111 as_mkdir_p=false
24112fi
24113
b4e70030 24114as_executable_p="test -f"
bec39cab
AC
24115
24116# Sed expression to map a string onto a valid CPP name.
24117as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24118
24119# Sed expression to map a string onto a valid variable name.
24120as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24121
24122
b4e70030
JB
24123# IFS
24124# We need space, tab and new line, in precisely that order.
24125as_nl='
24126'
24127IFS=" $as_nl"
24128
24129# CDPATH.
24130$as_unset CDPATH
24131
bec39cab
AC
24132exec 6>&1
24133
b4e70030 24134# Open the log real soon, to keep \$[0] and so on meaningful, and to
bec39cab 24135# report actual input values of CONFIG_FILES etc. instead of their
b4e70030
JB
24136# values after options handling. Logging --version etc. is OK.
24137exec 5>>config.log
24138{
24139 echo
24140 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24141## Running $as_me. ##
24142_ASBOX
24143} >&5
24144cat >&5 <<_CSEOF
24145
bec39cab 24146This file was extended by $as_me, which was
b4e70030 24147generated by GNU Autoconf 2.59. Invocation command line was
bec39cab
AC
24148
24149 CONFIG_FILES = $CONFIG_FILES
24150 CONFIG_HEADERS = $CONFIG_HEADERS
24151 CONFIG_LINKS = $CONFIG_LINKS
24152 CONFIG_COMMANDS = $CONFIG_COMMANDS
24153 $ $0 $@
24154
b4e70030
JB
24155_CSEOF
24156echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24157echo >&5
bec39cab
AC
24158_ACEOF
24159
24160# Files that config.status was made for.
b4e70030
JB
24161if test -n "$ac_config_files"; then
24162 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24163fi
234b45d4 24164
b4e70030
JB
24165if test -n "$ac_config_headers"; then
24166 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24167fi
24168
24169if test -n "$ac_config_links"; then
24170 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24171fi
24172
24173if test -n "$ac_config_commands"; then
24174 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24175fi
234b45d4 24176
bec39cab 24177cat >>$CONFIG_STATUS <<\_ACEOF
b4e70030 24178
bec39cab
AC
24179ac_cs_usage="\
24180\`$as_me' instantiates files from templates according to the
24181current configuration.
234b45d4 24182
bec39cab 24183Usage: $0 [OPTIONS] [FILE]...
234b45d4 24184
bec39cab
AC
24185 -h, --help print this help, then exit
24186 -V, --version print version number, then exit
24187 -q, --quiet do not print progress messages
24188 -d, --debug don't remove temporary files
24189 --recheck update $as_me by reconfiguring in the same conditions
24190 --file=FILE[:TEMPLATE]
24191 instantiate the configuration file FILE
24192 --header=FILE[:TEMPLATE]
24193 instantiate the configuration header FILE
234b45d4 24194
bec39cab
AC
24195Configuration files:
24196$config_files
234b45d4 24197
bec39cab
AC
24198Configuration headers:
24199$config_headers
234b45d4 24200
bec39cab
AC
24201Configuration links:
24202$config_links
234b45d4 24203
bec39cab
AC
24204Configuration commands:
24205$config_commands
24206
24207Report bugs to <bug-autoconf@gnu.org>."
4e8d927d 24208_ACEOF
b4e70030 24209
bec39cab
AC
24210cat >>$CONFIG_STATUS <<_ACEOF
24211ac_cs_version="\\
24212config.status
b4e70030 24213configured by $0, generated by GNU Autoconf 2.59,
bec39cab
AC
24214 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24215
b4e70030 24216Copyright (C) 2003 Free Software Foundation, Inc.
bec39cab
AC
24217This config.status script is free software; the Free Software Foundation
24218gives unlimited permission to copy, distribute and modify it."
b4e70030
JB
24219srcdir=$srcdir
24220INSTALL="$INSTALL"
bec39cab
AC
24221_ACEOF
24222
24223cat >>$CONFIG_STATUS <<\_ACEOF
24224# If no file are specified by the user, then we need to provide default
24225# value. By we need to know if files were specified by the user.
24226ac_need_defaults=:
24227while test $# != 0
24228do
24229 case $1 in
24230 --*=*)
b4e70030
JB
24231 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24232 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
bec39cab 24233 ac_shift=:
c906108c 24234 ;;
b4e70030 24235 -*)
bec39cab
AC
24236 ac_option=$1
24237 ac_optarg=$2
24238 ac_shift=shift
c906108c 24239 ;;
b4e70030
JB
24240 *) # This is not an option, so the user has probably given explicit
24241 # arguments.
24242 ac_option=$1
24243 ac_need_defaults=false;;
bec39cab 24244 esac
c906108c 24245
bec39cab
AC
24246 case $ac_option in
24247 # Handling of the options.
b4e70030
JB
24248_ACEOF
24249cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
24250 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24251 ac_cs_recheck=: ;;
b4e70030
JB
24252 --version | --vers* | -V )
24253 echo "$ac_cs_version"; exit 0 ;;
24254 --he | --h)
24255 # Conflict between --help and --header
24256 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24257Try \`$0 --help' for more information." >&5
24258echo "$as_me: error: ambiguous option: $1
24259Try \`$0 --help' for more information." >&2;}
24260 { (exit 1); exit 1; }; };;
24261 --help | --hel | -h )
24262 echo "$ac_cs_usage"; exit 0 ;;
24263 --debug | --d* | -d )
bec39cab
AC
24264 debug=: ;;
24265 --file | --fil | --fi | --f )
24266 $ac_shift
24267 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24268 ac_need_defaults=false;;
24269 --header | --heade | --head | --hea )
24270 $ac_shift
24271 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24272 ac_need_defaults=false;;
24273 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24274 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24275 ac_cs_silent=: ;;
c906108c 24276
bec39cab 24277 # This is an error.
b4e70030
JB
24278 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24279Try \`$0 --help' for more information." >&5
24280echo "$as_me: error: unrecognized option: $1
24281Try \`$0 --help' for more information." >&2;}
bec39cab 24282 { (exit 1); exit 1; }; } ;;
c906108c 24283
b4e70030 24284 *) ac_config_targets="$ac_config_targets $1" ;;
c906108c 24285
bec39cab
AC
24286 esac
24287 shift
24288done
c906108c 24289
bec39cab 24290ac_configure_extra_args=
c906108c 24291
bec39cab
AC
24292if $ac_cs_silent; then
24293 exec 6>/dev/null
24294 ac_configure_extra_args="$ac_configure_extra_args --silent"
24295fi
c906108c 24296
bec39cab
AC
24297_ACEOF
24298cat >>$CONFIG_STATUS <<_ACEOF
24299if \$ac_cs_recheck; then
b4e70030
JB
24300 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24301 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
bec39cab
AC
24302fi
24303
24304_ACEOF
24305
24306cat >>$CONFIG_STATUS <<_ACEOF
c906108c 24307#
b4e70030 24308# INIT-COMMANDS section.
c906108c 24309#
c906108c 24310
b4e70030 24311
4e8d927d
DJ
24312GCC="$GCC"
24313CC="$CC"
24314acx_cv_header_stdint="$acx_cv_header_stdint"
24315acx_cv_type_int8_t="$acx_cv_type_int8_t"
24316acx_cv_type_int16_t="$acx_cv_type_int16_t"
24317acx_cv_type_int32_t="$acx_cv_type_int32_t"
24318acx_cv_type_int64_t="$acx_cv_type_int64_t"
24319acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
24320ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
24321ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
24322ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
24323ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
24324ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
24325ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
24326ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
24327ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
24328
bec39cab
AC
24329
24330gdb_host_cpu=$gdb_host_cpu
24331gdb_target_cpu=$gdb_target_cpu
24332nativefile=$nativefile
24333
24334
24335_ACEOF
24336
4e8d927d 24337
b4e70030
JB
24338
24339cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab 24340for ac_config_target in $ac_config_targets
c906108c 24341do
b4e70030
JB
24342 case "$ac_config_target" in
24343 # Handling of arguments.
24344 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24345 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
24346 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
24347 "gdb_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;;
24348 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24349 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
bec39cab
AC
24350 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24351echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24352 { (exit 1); exit 1; }; };;
c906108c
SS
24353 esac
24354done
24355
bec39cab
AC
24356# If the user did not use the arguments to specify the items to instantiate,
24357# then the envvar interface is used. Set only those that are not.
24358# We use the long form for the default assignment because of an extremely
24359# bizarre bug on SunOS 4.1.3.
24360if $ac_need_defaults; then
24361 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24362 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24363 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
24364 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24365fi
24366
b4e70030
JB
24367# Have a temporary directory for convenience. Make it in the build tree
24368# simply because there is no reason to put it here, and in addition,
24369# creating and moving files from /tmp can sometimes cause problems.
24370# Create a temporary directory, and hook for its removal unless debugging.
24371$debug ||
24372{
24373 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24374 trap '{ (exit 1); exit 1; }' 1 2 13 15
24375}
4e8d927d 24376
b4e70030 24377# Create a (secure) tmp directory for tmp files.
4e8d927d 24378
b4e70030
JB
24379{
24380 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24381 test -n "$tmp" && test -d "$tmp"
24382} ||
24383{
24384 tmp=./confstat$$-$RANDOM
24385 (umask 077 && mkdir $tmp)
24386} ||
24387{
24388 echo "$me: cannot create a temporary directory in ." >&2
24389 { (exit 1); exit 1; }
24390}
4e8d927d 24391
b4e70030 24392_ACEOF
4e8d927d 24393
b4e70030 24394cat >>$CONFIG_STATUS <<_ACEOF
4e8d927d 24395
b4e70030
JB
24396#
24397# CONFIG_FILES section.
24398#
4e8d927d 24399
b4e70030
JB
24400# No need to generate the scripts if there are no CONFIG_FILES.
24401# This happens for instance when ./config.status config.h
24402if test -n "\$CONFIG_FILES"; then
24403 # Protect against being on the right side of a sed subst in config.status.
24404 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24405 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24406s,@SHELL@,$SHELL,;t t
24407s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24408s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24409s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24410s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24411s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24412s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24413s,@exec_prefix@,$exec_prefix,;t t
24414s,@prefix@,$prefix,;t t
24415s,@program_transform_name@,$program_transform_name,;t t
24416s,@bindir@,$bindir,;t t
24417s,@sbindir@,$sbindir,;t t
24418s,@libexecdir@,$libexecdir,;t t
24419s,@datadir@,$datadir,;t t
24420s,@sysconfdir@,$sysconfdir,;t t
24421s,@sharedstatedir@,$sharedstatedir,;t t
24422s,@localstatedir@,$localstatedir,;t t
24423s,@libdir@,$libdir,;t t
24424s,@includedir@,$includedir,;t t
24425s,@oldincludedir@,$oldincludedir,;t t
24426s,@infodir@,$infodir,;t t
24427s,@mandir@,$mandir,;t t
24428s,@build_alias@,$build_alias,;t t
24429s,@host_alias@,$host_alias,;t t
24430s,@target_alias@,$target_alias,;t t
24431s,@DEFS@,$DEFS,;t t
24432s,@ECHO_C@,$ECHO_C,;t t
24433s,@ECHO_N@,$ECHO_N,;t t
24434s,@ECHO_T@,$ECHO_T,;t t
24435s,@LIBS@,$LIBS,;t t
24436s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
24437s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
24438s,@MAINT@,$MAINT,;t t
24439s,@CC@,$CC,;t t
24440s,@CFLAGS@,$CFLAGS,;t t
24441s,@LDFLAGS@,$LDFLAGS,;t t
24442s,@CPPFLAGS@,$CPPFLAGS,;t t
24443s,@ac_ct_CC@,$ac_ct_CC,;t t
24444s,@EXEEXT@,$EXEEXT,;t t
24445s,@OBJEXT@,$OBJEXT,;t t
24446s,@CPP@,$CPP,;t t
24447s,@EGREP@,$EGREP,;t t
24448s,@build@,$build,;t t
24449s,@build_cpu@,$build_cpu,;t t
24450s,@build_vendor@,$build_vendor,;t t
24451s,@build_os@,$build_os,;t t
24452s,@host@,$host,;t t
24453s,@host_cpu@,$host_cpu,;t t
24454s,@host_vendor@,$host_vendor,;t t
24455s,@host_os@,$host_os,;t t
24456s,@target@,$target,;t t
24457s,@target_cpu@,$target_cpu,;t t
24458s,@target_vendor@,$target_vendor,;t t
24459s,@target_os@,$target_os,;t t
b4e70030 24460s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
24461s,@LIBINTL@,$LIBINTL,;t t
24462s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
24463s,@INCINTL@,$INCINTL,;t t
b4e70030 24464s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
24465s,@GMSGFMT@,$GMSGFMT,;t t
24466s,@POSUB@,$POSUB,;t t
b4e70030 24467s,@CATALOGS@,$CATALOGS,;t t
b4e70030 24468s,@DATADIRNAME@,$DATADIRNAME,;t t
b4e70030 24469s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
24470s,@GENCAT@,$GENCAT,;t t
24471s,@CATOBJEXT@,$CATOBJEXT,;t t
b4e70030
JB
24472s,@localedir@,$localedir,;t t
24473s,@PACKAGE@,$PACKAGE,;t t
24474s,@subdirs@,$subdirs,;t t
24475s,@AWK@,$AWK,;t t
24476s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24477s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24478s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24479s,@LN_S@,$LN_S,;t t
20e95c23
DJ
24480s,@RANLIB@,$RANLIB,;t t
24481s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
b4e70030
JB
24482s,@YACC@,$YACC,;t t
24483s,@AR@,$AR,;t t
24484s,@ac_ct_AR@,$ac_ct_AR,;t t
24485s,@DLLTOOL@,$DLLTOOL,;t t
24486s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
24487s,@WINDRES@,$WINDRES,;t t
24488s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
24489s,@MIG@,$MIG,;t t
24490s,@ac_ct_MIG@,$ac_ct_MIG,;t t
6a30b0a5
AS
24491s,@READLINE@,$READLINE,;t t
24492s,@READLINE_DEPS@,$READLINE_DEPS,;t t
24493s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
3841debe
DJ
24494s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
24495s,@LIBEXPAT@,$LIBEXPAT,;t t
24496s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
20e95c23 24497s,@ALLOCA@,$ALLOCA,;t t
b4e70030
JB
24498s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
24499s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
24500s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
24501s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
24502s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
24503s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
24504s,@WIN32LIBS@,$WIN32LIBS,;t t
24505s,@LIBGUI@,$LIBGUI,;t t
24506s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
24507s,@WIN32LDAPP@,$WIN32LDAPP,;t t
24508s,@TCL_VERSION@,$TCL_VERSION,;t t
24509s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
24510s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
24511s,@TCL_CC@,$TCL_CC,;t t
24512s,@TCL_DEFS@,$TCL_DEFS,;t t
24513s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
24514s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
24515s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
24516s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
24517s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
24518s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
24519s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
24520s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
24521s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
24522s,@TCL_RANLIB@,$TCL_RANLIB,;t t
24523s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
24524s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
24525s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
24526s,@TK_VERSION@,$TK_VERSION,;t t
24527s,@TK_DEFS@,$TK_DEFS,;t t
24528s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
24529s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
24530s,@TK_XLIBSW@,$TK_XLIBSW,;t t
24531s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
24532s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
24533s,@TCLHDIR@,$TCLHDIR,;t t
24534s,@TKHDIR@,$TKHDIR,;t t
24535s,@ITCLHDIR@,$ITCLHDIR,;t t
24536s,@ITKHDIR@,$ITKHDIR,;t t
24537s,@ITCL_VERSION@,$ITCL_VERSION,;t t
24538s,@ITCL_DEFS@,$ITCL_DEFS,;t t
24539s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
24540s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
24541s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
24542s,@ITK_VERSION@,$ITK_VERSION,;t t
24543s,@ITK_DEFS@,$ITK_DEFS,;t t
24544s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
24545s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
24546s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
24547s,@X_CFLAGS@,$X_CFLAGS,;t t
24548s,@X_LDFLAGS@,$X_LDFLAGS,;t t
24549s,@X_LIBS@,$X_LIBS,;t t
24550s,@TCL_DEPS@,$TCL_DEPS,;t t
24551s,@TK_DEPS@,$TK_DEPS,;t t
24552s,@ITCLLIB@,$ITCLLIB,;t t
24553s,@ITCL_DEPS@,$ITCL_DEPS,;t t
24554s,@ITKLIB@,$ITKLIB,;t t
24555s,@ITK_DEPS@,$ITK_DEPS,;t t
24556s,@GDBTKLIBS@,$GDBTKLIBS,;t t
24557s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
24558s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
24559s,@IGNORE_SIM@,$IGNORE_SIM,;t t
24560s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t
24561s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
24562s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
24563s,@CONFIG_OBS@,$CONFIG_OBS,;t t
24564s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
24565s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
24566s,@CONFIG_ALL@,$CONFIG_ALL,;t t
24567s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
24568s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
24569s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
24570s,@target_subdir@,$target_subdir,;t t
24571s,@frags@,$frags,;t t
24572s,@xm_h@,$xm_h,;t t
24573s,@tm_h@,$tm_h,;t t
24574s,@nm_h@,$nm_h,;t t
24575s,@LIBICONV@,$LIBICONV,;t t
24576s,@LIBOBJS@,$LIBOBJS,;t t
24577s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24578/@host_makefile_frag@/r $host_makefile_frag
24579s,@host_makefile_frag@,,;t t
24580/@target_makefile_frag@/r $target_makefile_frag
24581s,@target_makefile_frag@,,;t t
24582CEOF
24583
24584_ACEOF
24585
24586 cat >>$CONFIG_STATUS <<\_ACEOF
24587 # Split the substitutions into bite-sized pieces for seds with
24588 # small command number limits, like on Digital OSF/1 and HP-UX.
24589 ac_max_sed_lines=48
24590 ac_sed_frag=1 # Number of current file.
24591 ac_beg=1 # First line for current file.
24592 ac_end=$ac_max_sed_lines # Line after last line for current file.
24593 ac_more_lines=:
24594 ac_sed_cmds=
24595 while $ac_more_lines; do
24596 if test $ac_beg -gt 1; then
24597 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24598 else
24599 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4e8d927d 24600 fi
b4e70030
JB
24601 if test ! -s $tmp/subs.frag; then
24602 ac_more_lines=false
24603 else
24604 # The purpose of the label and of the branching condition is to
24605 # speed up the sed processing (if there are no `@' at all, there
24606 # is no need to browse any of the substitutions).
24607 # These are the two extra sed commands mentioned above.
24608 (echo ':t
24609 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24610 if test -z "$ac_sed_cmds"; then
24611 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24612 else
24613 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24614 fi
24615 ac_sed_frag=`expr $ac_sed_frag + 1`
24616 ac_beg=$ac_end
24617 ac_end=`expr $ac_end + $ac_max_sed_lines`
24618 fi
24619 done
24620 if test -z "$ac_sed_cmds"; then
24621 ac_sed_cmds=cat
24622 fi
24623fi # test -n "$CONFIG_FILES"
4e8d927d 24624
b4e70030
JB
24625_ACEOF
24626cat >>$CONFIG_STATUS <<\_ACEOF
24627for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24628 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24629 case $ac_file in
24630 - | *:- | *:-:* ) # input from stdin
24631 cat >$tmp/stdin
24632 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24633 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24634 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24635 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24636 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
24637 esac
24638
b4e70030
JB
24639 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24640 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
bec39cab
AC
24641$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24642 X"$ac_file" : 'X\(//\)[^/]' \| \
24643 X"$ac_file" : 'X\(//\)$' \| \
b4e70030
JB
24644 X"$ac_file" : 'X\(/\)' \| \
24645 . : '\(.\)' 2>/dev/null ||
bec39cab 24646echo X"$ac_file" |
b4e70030
JB
24647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24648 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24649 /^X\(\/\/\)$/{ s//\1/; q; }
24650 /^X\(\/\).*/{ s//\1/; q; }
24651 s/.*/./; q'`
24652 { if $as_mkdir_p; then
24653 mkdir -p "$ac_dir"
24654 else
24655 as_dir="$ac_dir"
bec39cab 24656 as_dirs=
b4e70030
JB
24657 while test ! -d "$as_dir"; do
24658 as_dirs="$as_dir $as_dirs"
24659 as_dir=`(dirname "$as_dir") 2>/dev/null ||
bec39cab
AC
24660$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24661 X"$as_dir" : 'X\(//\)[^/]' \| \
24662 X"$as_dir" : 'X\(//\)$' \| \
b4e70030
JB
24663 X"$as_dir" : 'X\(/\)' \| \
24664 . : '\(.\)' 2>/dev/null ||
bec39cab 24665echo X"$as_dir" |
b4e70030
JB
24666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24667 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24668 /^X\(\/\/\)$/{ s//\1/; q; }
24669 /^X\(\/\).*/{ s//\1/; q; }
24670 s/.*/./; q'`
bec39cab 24671 done
b4e70030
JB
24672 test ! -n "$as_dirs" || mkdir $as_dirs
24673 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24674echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
bec39cab 24675 { (exit 1); exit 1; }; }; }
b4e70030 24676
bec39cab
AC
24677 ac_builddir=.
24678
b4e70030 24679if test "$ac_dir" != .; then
bec39cab 24680 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
24681 # A "../" for each directory in $ac_dir_suffix.
24682 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24683else
24684 ac_dir_suffix= ac_top_builddir=
24685fi
bec39cab
AC
24686
24687case $srcdir in
b4e70030 24688 .) # No --srcdir option. We are building in place.
bec39cab 24689 ac_srcdir=.
b4e70030
JB
24690 if test -z "$ac_top_builddir"; then
24691 ac_top_srcdir=.
24692 else
24693 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24694 fi ;;
24695 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 24696 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
24697 ac_top_srcdir=$srcdir ;;
24698 *) # Relative path.
24699 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24700 ac_top_srcdir=$ac_top_builddir$srcdir ;;
bec39cab
AC
24701esac
24702
b4e70030
JB
24703# Do not use `cd foo && pwd` to compute absolute paths, because
24704# the directories may not exist.
24705case `pwd` in
24706.) ac_abs_builddir="$ac_dir";;
24707*)
24708 case "$ac_dir" in
24709 .) ac_abs_builddir=`pwd`;;
24710 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24711 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24712 esac;;
24713esac
24714case $ac_abs_builddir in
24715.) ac_abs_top_builddir=${ac_top_builddir}.;;
24716*)
24717 case ${ac_top_builddir}. in
24718 .) ac_abs_top_builddir=$ac_abs_builddir;;
24719 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24720 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24721 esac;;
24722esac
24723case $ac_abs_builddir in
24724.) ac_abs_srcdir=$ac_srcdir;;
24725*)
24726 case $ac_srcdir in
24727 .) ac_abs_srcdir=$ac_abs_builddir;;
24728 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24729 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24730 esac;;
24731esac
24732case $ac_abs_builddir in
24733.) ac_abs_top_srcdir=$ac_top_srcdir;;
24734*)
24735 case $ac_top_srcdir in
24736 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24737 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24738 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24739 esac;;
24740esac
c906108c 24741
c906108c 24742
bec39cab
AC
24743 case $INSTALL in
24744 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
b4e70030 24745 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c906108c 24746 esac
121ce6e5 24747
b4e70030
JB
24748 if test x"$ac_file" != x-; then
24749 { echo "$as_me:$LINENO: creating $ac_file" >&5
24750echo "$as_me: creating $ac_file" >&6;}
24751 rm -f "$ac_file"
24752 fi
24753 # Let's still pretend it is `configure' which instantiates (i.e., don't
24754 # use $as_me), people would be surprised to read:
24755 # /* config.h. Generated by config.status. */
24756 if test x"$ac_file" = x-; then
24757 configure_input=
24758 else
24759 configure_input="$ac_file. "
24760 fi
24761 configure_input=$configure_input"Generated from `echo $ac_file_in |
24762 sed 's,.*/,,'` by configure."
24763
24764 # First look for the input files in the build tree, otherwise in the
24765 # src tree.
24766 ac_file_inputs=`IFS=:
24767 for f in $ac_file_in; do
24768 case $f in
24769 -) echo $tmp/stdin ;;
24770 [\\/$]*)
24771 # Absolute (can't be DOS-style, as IFS=:)
24772 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24773echo "$as_me: error: cannot find input file: $f" >&2;}
24774 { (exit 1); exit 1; }; }
24775 echo "$f";;
24776 *) # Relative
24777 if test -f "$f"; then
24778 # Build tree
24779 echo "$f"
24780 elif test -f "$srcdir/$f"; then
24781 # Source tree
24782 echo "$srcdir/$f"
24783 else
24784 # /dev/null tree
24785 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24786echo "$as_me: error: cannot find input file: $f" >&2;}
24787 { (exit 1); exit 1; }; }
24788 fi;;
24789 esac
24790 done` || { (exit 1); exit 1; }
4e8d927d 24791_ACEOF
bec39cab
AC
24792cat >>$CONFIG_STATUS <<_ACEOF
24793 sed "$ac_vpsub
24794$extrasub
24795_ACEOF
24796cat >>$CONFIG_STATUS <<\_ACEOF
24797:t
24798/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
b4e70030
JB
24799s,@configure_input@,$configure_input,;t t
24800s,@srcdir@,$ac_srcdir,;t t
24801s,@abs_srcdir@,$ac_abs_srcdir,;t t
24802s,@top_srcdir@,$ac_top_srcdir,;t t
24803s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24804s,@builddir@,$ac_builddir,;t t
24805s,@abs_builddir@,$ac_abs_builddir,;t t
24806s,@top_builddir@,$ac_top_builddir,;t t
24807s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24808s,@INSTALL@,$ac_INSTALL,;t t
24809" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24810 rm -f $tmp/stdin
24811 if test x"$ac_file" != x-; then
24812 mv $tmp/out $ac_file
24813 else
24814 cat $tmp/out
24815 rm -f $tmp/out
24816 fi
24817
24818done
24819_ACEOF
24820cat >>$CONFIG_STATUS <<\_ACEOF
24821
24822#
24823# CONFIG_HEADER section.
24824#
24825
24826# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24827# NAME is the cpp macro being defined and VALUE is the value it is being given.
24828#
24829# ac_d sets the value in "#define NAME VALUE" lines.
24830ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24831ac_dB='[ ].*$,\1#\2'
24832ac_dC=' '
24833ac_dD=',;t'
24834# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24835ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24836ac_uB='$,\1#\2define\3'
24837ac_uC=' '
24838ac_uD=',;t'
24839
24840for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24841 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
bec39cab 24842 case $ac_file in
b4e70030
JB
24843 - | *:- | *:-:* ) # input from stdin
24844 cat >$tmp/stdin
24845 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24846 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24847 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24848 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24849 * ) ac_file_in=$ac_file.in ;;
c906108c 24850 esac
b4e70030
JB
24851
24852 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24853echo "$as_me: creating $ac_file" >&6;}
24854
24855 # First look for the input files in the build tree, otherwise in the
24856 # src tree.
24857 ac_file_inputs=`IFS=:
24858 for f in $ac_file_in; do
24859 case $f in
24860 -) echo $tmp/stdin ;;
24861 [\\/$]*)
24862 # Absolute (can't be DOS-style, as IFS=:)
24863 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24864echo "$as_me: error: cannot find input file: $f" >&2;}
24865 { (exit 1); exit 1; }; }
24866 # Do quote $f, to prevent DOS paths from being IFS'd.
24867 echo "$f";;
24868 *) # Relative
24869 if test -f "$f"; then
24870 # Build tree
24871 echo "$f"
24872 elif test -f "$srcdir/$f"; then
24873 # Source tree
24874 echo "$srcdir/$f"
24875 else
24876 # /dev/null tree
24877 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24878echo "$as_me: error: cannot find input file: $f" >&2;}
24879 { (exit 1); exit 1; }; }
24880 fi;;
24881 esac
24882 done` || { (exit 1); exit 1; }
24883 # Remove the trailing spaces.
24884 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24885
24886_ACEOF
24887
24888# Transform confdefs.h into two sed scripts, `conftest.defines' and
24889# `conftest.undefs', that substitutes the proper values into
24890# config.h.in to produce config.h. The first handles `#define'
24891# templates, and the second `#undef' templates.
24892# And first: Protect against being on the right side of a sed subst in
24893# config.status. Protect against being in an unquoted here document
24894# in config.status.
24895rm -f conftest.defines conftest.undefs
24896# Using a here document instead of a string reduces the quoting nightmare.
24897# Putting comments in sed scripts is not portable.
24898#
24899# `end' is used to avoid that the second main sed command (meant for
24900# 0-ary CPP macros) applies to n-ary macro definitions.
24901# See the Autoconf documentation for `clear'.
24902cat >confdef2sed.sed <<\_ACEOF
24903s/[\\&,]/\\&/g
24904s,[\\$`],\\&,g
24905t clear
24906: clear
24907s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24908t end
24909s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24910: end
24911_ACEOF
24912# If some macros were called several times there might be several times
24913# the same #defines, which is useless. Nevertheless, we may not want to
24914# sort them, since we want the *last* AC-DEFINE to be honored.
24915uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24916sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24917rm -f confdef2sed.sed
24918
24919# This sed command replaces #undef with comments. This is necessary, for
c906108c
SS
24920# example, in the case of _POSIX_SOURCE, which is predefined and required
24921# on some systems where configure will not decide to define it.
b4e70030
JB
24922cat >>conftest.undefs <<\_ACEOF
24923s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24924_ACEOF
24925
24926# Break up conftest.defines because some shells have a limit on the size
24927# of here documents, and old seds have small limits too (100 cmds).
24928echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24929echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24930echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24931echo ' :' >>$CONFIG_STATUS
24932rm -f conftest.tail
24933while grep . conftest.defines >/dev/null
bec39cab 24934do
b4e70030
JB
24935 # Write a limited-size here document to $tmp/defines.sed.
24936 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24937 # Speed up: don't consider the non `#define' lines.
24938 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24939 # Work around the forget-to-reset-the-flag bug.
24940 echo 't clr' >>$CONFIG_STATUS
24941 echo ': clr' >>$CONFIG_STATUS
24942 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
bec39cab 24943 echo 'CEOF
b4e70030
JB
24944 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24945 rm -f $tmp/in
24946 mv $tmp/out $tmp/in
24947' >>$CONFIG_STATUS
24948 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
bec39cab
AC
24949 rm -f conftest.defines
24950 mv conftest.tail conftest.defines
24951done
b4e70030
JB
24952rm -f conftest.defines
24953echo ' fi # grep' >>$CONFIG_STATUS
24954echo >>$CONFIG_STATUS
24955
24956# Break up conftest.undefs because some shells have a limit on the size
24957# of here documents, and old seds have small limits too (100 cmds).
24958echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24959rm -f conftest.tail
24960while grep . conftest.undefs >/dev/null
24961do
24962 # Write a limited-size here document to $tmp/undefs.sed.
24963 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24964 # Speed up: don't consider the non `#undef'
24965 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24966 # Work around the forget-to-reset-the-flag bug.
24967 echo 't clr' >>$CONFIG_STATUS
24968 echo ': clr' >>$CONFIG_STATUS
24969 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24970 echo 'CEOF
24971 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24972 rm -f $tmp/in
24973 mv $tmp/out $tmp/in
24974' >>$CONFIG_STATUS
24975 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24976 rm -f conftest.undefs
24977 mv conftest.tail conftest.undefs
24978done
24979rm -f conftest.undefs
bec39cab
AC
24980
24981cat >>$CONFIG_STATUS <<\_ACEOF
b4e70030
JB
24982 # Let's still pretend it is `configure' which instantiates (i.e., don't
24983 # use $as_me), people would be surprised to read:
24984 # /* config.h. Generated by config.status. */
24985 if test x"$ac_file" = x-; then
24986 echo "/* Generated by configure. */" >$tmp/config.h
24987 else
24988 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24989 fi
24990 cat $tmp/in >>$tmp/config.h
24991 rm -f $tmp/in
bec39cab 24992 if test x"$ac_file" != x-; then
b4e70030 24993 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
bec39cab
AC
24994 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24995echo "$as_me: $ac_file is unchanged" >&6;}
24996 else
b4e70030
JB
24997 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24998$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24999 X"$ac_file" : 'X\(//\)[^/]' \| \
25000 X"$ac_file" : 'X\(//\)$' \| \
25001 X"$ac_file" : 'X\(/\)' \| \
25002 . : '\(.\)' 2>/dev/null ||
25003echo X"$ac_file" |
25004 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25005 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25006 /^X\(\/\/\)$/{ s//\1/; q; }
25007 /^X\(\/\).*/{ s//\1/; q; }
25008 s/.*/./; q'`
25009 { if $as_mkdir_p; then
25010 mkdir -p "$ac_dir"
25011 else
25012 as_dir="$ac_dir"
25013 as_dirs=
25014 while test ! -d "$as_dir"; do
25015 as_dirs="$as_dir $as_dirs"
25016 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25017$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25018 X"$as_dir" : 'X\(//\)[^/]' \| \
25019 X"$as_dir" : 'X\(//\)$' \| \
25020 X"$as_dir" : 'X\(/\)' \| \
25021 . : '\(.\)' 2>/dev/null ||
25022echo X"$as_dir" |
25023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25024 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25025 /^X\(\/\/\)$/{ s//\1/; q; }
25026 /^X\(\/\).*/{ s//\1/; q; }
25027 s/.*/./; q'`
25028 done
25029 test ! -n "$as_dirs" || mkdir $as_dirs
25030 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25031echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25032 { (exit 1); exit 1; }; }; }
25033
bec39cab 25034 rm -f $ac_file
b4e70030 25035 mv $tmp/config.h $ac_file
bec39cab
AC
25036 fi
25037 else
b4e70030
JB
25038 cat $tmp/config.h
25039 rm -f $tmp/config.h
bec39cab 25040 fi
b4e70030
JB
25041done
25042_ACEOF
25043cat >>$CONFIG_STATUS <<\_ACEOF
25044
25045#
25046# CONFIG_LINKS section.
25047#
25048
25049for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
25050 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25051 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
c906108c 25052
b4e70030
JB
25053 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
25054echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
c906108c
SS
25055
25056 if test ! -r $srcdir/$ac_source; then
bec39cab
AC
25057 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
25058echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
25059 { (exit 1); exit 1; }; }
c906108c 25060 fi
b4e70030
JB
25061 rm -f $ac_dest
25062
25063 # Make relative symlinks.
25064 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25065$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25066 X"$ac_dest" : 'X\(//\)[^/]' \| \
25067 X"$ac_dest" : 'X\(//\)$' \| \
25068 X"$ac_dest" : 'X\(/\)' \| \
25069 . : '\(.\)' 2>/dev/null ||
25070echo X"$ac_dest" |
25071 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25072 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25073 /^X\(\/\/\)$/{ s//\1/; q; }
25074 /^X\(\/\).*/{ s//\1/; q; }
25075 s/.*/./; q'`
25076 { if $as_mkdir_p; then
25077 mkdir -p "$ac_dest_dir"
25078 else
25079 as_dir="$ac_dest_dir"
25080 as_dirs=
25081 while test ! -d "$as_dir"; do
25082 as_dirs="$as_dir $as_dirs"
25083 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25084$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25085 X"$as_dir" : 'X\(//\)[^/]' \| \
25086 X"$as_dir" : 'X\(//\)$' \| \
25087 X"$as_dir" : 'X\(/\)' \| \
25088 . : '\(.\)' 2>/dev/null ||
25089echo X"$as_dir" |
25090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25091 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25092 /^X\(\/\/\)$/{ s//\1/; q; }
25093 /^X\(\/\).*/{ s//\1/; q; }
25094 s/.*/./; q'`
25095 done
25096 test ! -n "$as_dirs" || mkdir $as_dirs
25097 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25098echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25099 { (exit 1); exit 1; }; }; }
25100
25101 ac_builddir=.
25102
25103if test "$ac_dest_dir" != .; then
25104 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25105 # A "../" for each directory in $ac_dir_suffix.
25106 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25107else
25108 ac_dir_suffix= ac_top_builddir=
25109fi
25110
25111case $srcdir in
25112 .) # No --srcdir option. We are building in place.
25113 ac_srcdir=.
25114 if test -z "$ac_top_builddir"; then
25115 ac_top_srcdir=.
25116 else
25117 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25118 fi ;;
25119 [\\/]* | ?:[\\/]* ) # Absolute path.
25120 ac_srcdir=$srcdir$ac_dir_suffix;
25121 ac_top_srcdir=$srcdir ;;
25122 *) # Relative path.
25123 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25124 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25125esac
25126
25127# Do not use `cd foo && pwd` to compute absolute paths, because
25128# the directories may not exist.
25129case `pwd` in
25130.) ac_abs_builddir="$ac_dest_dir";;
25131*)
25132 case "$ac_dest_dir" in
25133 .) ac_abs_builddir=`pwd`;;
25134 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25135 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25136 esac;;
25137esac
25138case $ac_abs_builddir in
25139.) ac_abs_top_builddir=${ac_top_builddir}.;;
25140*)
25141 case ${ac_top_builddir}. in
25142 .) ac_abs_top_builddir=$ac_abs_builddir;;
25143 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25144 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25145 esac;;
25146esac
25147case $ac_abs_builddir in
25148.) ac_abs_srcdir=$ac_srcdir;;
25149*)
25150 case $ac_srcdir in
25151 .) ac_abs_srcdir=$ac_abs_builddir;;
25152 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25153 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25154 esac;;
25155esac
25156case $ac_abs_builddir in
25157.) ac_abs_top_srcdir=$ac_top_srcdir;;
25158*)
25159 case $ac_top_srcdir in
25160 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25161 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25162 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25163 esac;;
25164esac
25165
bec39cab
AC
25166
25167 case $srcdir in
25168 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
b4e70030 25169 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
c906108c 25170 esac
b4e70030
JB
25171
25172 # Try a symlink, then a hard link, then a copy.
25173 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
25174 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
25175 cp -p $srcdir/$ac_source $ac_dest ||
25176 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
25177echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
bec39cab 25178 { (exit 1); exit 1; }; }
b4e70030
JB
25179done
25180_ACEOF
25181cat >>$CONFIG_STATUS <<\_ACEOF
25182
25183#
25184# CONFIG_COMMANDS section.
25185#
25186for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25187 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25188 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25189 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25190$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25191 X"$ac_dest" : 'X\(//\)[^/]' \| \
25192 X"$ac_dest" : 'X\(//\)$' \| \
25193 X"$ac_dest" : 'X\(/\)' \| \
25194 . : '\(.\)' 2>/dev/null ||
25195echo X"$ac_dest" |
25196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25197 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25198 /^X\(\/\/\)$/{ s//\1/; q; }
25199 /^X\(\/\).*/{ s//\1/; q; }
25200 s/.*/./; q'`
25201 { if $as_mkdir_p; then
25202 mkdir -p "$ac_dir"
25203 else
25204 as_dir="$ac_dir"
25205 as_dirs=
25206 while test ! -d "$as_dir"; do
25207 as_dirs="$as_dir $as_dirs"
25208 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25209$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25210 X"$as_dir" : 'X\(//\)[^/]' \| \
25211 X"$as_dir" : 'X\(//\)$' \| \
25212 X"$as_dir" : 'X\(/\)' \| \
25213 . : '\(.\)' 2>/dev/null ||
25214echo X"$as_dir" |
25215 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25216 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25217 /^X\(\/\/\)$/{ s//\1/; q; }
25218 /^X\(\/\).*/{ s//\1/; q; }
25219 s/.*/./; q'`
25220 done
25221 test ! -n "$as_dirs" || mkdir $as_dirs
25222 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25223echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25224 { (exit 1); exit 1; }; }; }
25225
25226 ac_builddir=.
25227
25228if test "$ac_dir" != .; then
25229 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25230 # A "../" for each directory in $ac_dir_suffix.
25231 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25232else
25233 ac_dir_suffix= ac_top_builddir=
25234fi
25235
25236case $srcdir in
25237 .) # No --srcdir option. We are building in place.
25238 ac_srcdir=.
25239 if test -z "$ac_top_builddir"; then
25240 ac_top_srcdir=.
25241 else
25242 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25243 fi ;;
25244 [\\/]* | ?:[\\/]* ) # Absolute path.
25245 ac_srcdir=$srcdir$ac_dir_suffix;
25246 ac_top_srcdir=$srcdir ;;
25247 *) # Relative path.
25248 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25249 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25250esac
25251
25252# Do not use `cd foo && pwd` to compute absolute paths, because
25253# the directories may not exist.
25254case `pwd` in
25255.) ac_abs_builddir="$ac_dir";;
25256*)
25257 case "$ac_dir" in
25258 .) ac_abs_builddir=`pwd`;;
25259 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25260 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25261 esac;;
25262esac
25263case $ac_abs_builddir in
25264.) ac_abs_top_builddir=${ac_top_builddir}.;;
25265*)
25266 case ${ac_top_builddir}. in
25267 .) ac_abs_top_builddir=$ac_abs_builddir;;
25268 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25269 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25270 esac;;
25271esac
25272case $ac_abs_builddir in
25273.) ac_abs_srcdir=$ac_srcdir;;
25274*)
25275 case $ac_srcdir in
25276 .) ac_abs_srcdir=$ac_abs_builddir;;
25277 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25278 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25279 esac;;
25280esac
25281case $ac_abs_builddir in
25282.) ac_abs_top_srcdir=$ac_top_srcdir;;
25283*)
25284 case $ac_top_srcdir in
25285 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25286 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25287 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25288 esac;;
25289esac
bec39cab 25290
bec39cab 25291
b4e70030
JB
25292 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25293echo "$as_me: executing $ac_dest commands" >&6;}
25294 case $ac_dest in
25295 gdb_stdint.h )
4e8d927d
DJ
25296if test "$GCC" = yes; then
25297 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
25298else
25299 echo "/* generated for $CC */" > tmp-stdint.h
25300fi
25301
25302sed 's/^ *//' >> tmp-stdint.h <<EOF
25303
25304 #ifndef GCC_GENERATED_STDINT_H
25305 #define GCC_GENERATED_STDINT_H 1
25306
25307 #include <sys/types.h>
25308EOF
25309
25310if test "$acx_cv_header_stdint" != stdint.h; then
25311 echo "#include <stddef.h>" >> tmp-stdint.h
25312fi
25313if test "$acx_cv_header_stdint" != stddef.h; then
25314 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
25315fi
25316
25317sed 's/^ *//' >> tmp-stdint.h <<EOF
25318 /* glibc uses these symbols as guards to prevent redefinitions. */
25319 #ifdef __int8_t_defined
25320 #define _INT8_T
25321 #define _INT16_T
25322 #define _INT32_T
25323 #endif
25324 #ifdef __uint32_t_defined
25325 #define _UINT32_T
25326 #endif
25327
25328EOF
25329
25330# ----------------- done header, emit basic int types -------------
25331if test "$acx_cv_header_stdint" = stddef.h; then
25332 sed 's/^ *//' >> tmp-stdint.h <<EOF
25333
25334 #ifndef _UINT8_T
25335 #define _UINT8_T
07abfebf
RS
25336 #ifndef __uint8_t_defined
25337 #define __uint8_t_defined
4e8d927d
DJ
25338 typedef unsigned $acx_cv_type_int8_t uint8_t;
25339 #endif
07abfebf 25340 #endif
4e8d927d
DJ
25341
25342 #ifndef _UINT16_T
25343 #define _UINT16_T
07abfebf
RS
25344 #ifndef __uint16_t_defined
25345 #define __uint16_t_defined
4e8d927d
DJ
25346 typedef unsigned $acx_cv_type_int16_t uint16_t;
25347 #endif
07abfebf 25348 #endif
4e8d927d
DJ
25349
25350 #ifndef _UINT32_T
25351 #define _UINT32_T
07abfebf
RS
25352 #ifndef __uint32_t_defined
25353 #define __uint32_t_defined
4e8d927d
DJ
25354 typedef unsigned $acx_cv_type_int32_t uint32_t;
25355 #endif
07abfebf 25356 #endif
4e8d927d
DJ
25357
25358 #ifndef _INT8_T
25359 #define _INT8_T
07abfebf
RS
25360 #ifndef __int8_t_defined
25361 #define __int8_t_defined
4e8d927d
DJ
25362 typedef $acx_cv_type_int8_t int8_t;
25363 #endif
07abfebf 25364 #endif
4e8d927d
DJ
25365
25366 #ifndef _INT16_T
25367 #define _INT16_T
07abfebf
RS
25368 #ifndef __int16_t_defined
25369 #define __int16_t_defined
4e8d927d
DJ
25370 typedef $acx_cv_type_int16_t int16_t;
25371 #endif
07abfebf 25372 #endif
4e8d927d
DJ
25373
25374 #ifndef _INT32_T
25375 #define _INT32_T
07abfebf
RS
25376 #ifndef __int32_t_defined
25377 #define __int32_t_defined
4e8d927d
DJ
25378 typedef $acx_cv_type_int32_t int32_t;
25379 #endif
07abfebf 25380 #endif
4e8d927d
DJ
25381EOF
25382elif test "$ac_cv_type_u_int32_t" = yes; then
25383 sed 's/^ *//' >> tmp-stdint.h <<EOF
25384
25385 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
25386 #ifndef _INT8_T
25387 #define _INT8_T
25388 #endif
25389 #ifndef _INT16_T
25390 #define _INT16_T
25391 #endif
25392 #ifndef _INT32_T
25393 #define _INT32_T
25394 #endif
25395
25396 #ifndef _UINT8_T
25397 #define _UINT8_T
07abfebf
RS
25398 #ifndef __uint8_t_defined
25399 #define __uint8_t_defined
4e8d927d
DJ
25400 typedef u_int8_t uint8_t;
25401 #endif
07abfebf 25402 #endif
4e8d927d
DJ
25403
25404 #ifndef _UINT16_T
25405 #define _UINT16_T
07abfebf
RS
25406 #ifndef __uint16_t_defined
25407 #define __uint16_t_defined
4e8d927d
DJ
25408 typedef u_int16_t uint16_t;
25409 #endif
07abfebf 25410 #endif
4e8d927d
DJ
25411
25412 #ifndef _UINT32_T
25413 #define _UINT32_T
07abfebf
RS
25414 #ifndef __uint32_t_defined
25415 #define __uint32_t_defined
4e8d927d
DJ
25416 typedef u_int32_t uint32_t;
25417 #endif
07abfebf 25418 #endif
4e8d927d
DJ
25419EOF
25420else
25421 sed 's/^ *//' >> tmp-stdint.h <<EOF
25422
25423 /* Some systems have guard macros to prevent redefinitions, define them. */
25424 #ifndef _INT8_T
25425 #define _INT8_T
25426 #endif
25427 #ifndef _INT16_T
25428 #define _INT16_T
25429 #endif
25430 #ifndef _INT32_T
25431 #define _INT32_T
25432 #endif
25433 #ifndef _UINT8_T
25434 #define _UINT8_T
25435 #endif
25436 #ifndef _UINT16_T
25437 #define _UINT16_T
25438 #endif
25439 #ifndef _UINT32_T
25440 #define _UINT32_T
25441 #endif
25442EOF
25443fi
25444
25445# ------------- done basic int types, emit int64_t types ------------
25446if test "$ac_cv_type_uint64_t" = yes; then
25447 sed 's/^ *//' >> tmp-stdint.h <<EOF
25448
25449 /* system headers have good uint64_t and int64_t */
25450 #ifndef _INT64_T
25451 #define _INT64_T
25452 #endif
25453 #ifndef _UINT64_T
25454 #define _UINT64_T
25455 #endif
25456EOF
25457elif test "$ac_cv_type_u_int64_t" = yes; then
25458 sed 's/^ *//' >> tmp-stdint.h <<EOF
25459
25460 /* system headers have an u_int64_t (and int64_t) */
25461 #ifndef _INT64_T
25462 #define _INT64_T
25463 #endif
25464 #ifndef _UINT64_T
25465 #define _UINT64_T
07abfebf
RS
25466 #ifndef __uint64_t_defined
25467 #define __uint64_t_defined
4e8d927d
DJ
25468 typedef u_int64_t uint64_t;
25469 #endif
07abfebf 25470 #endif
4e8d927d
DJ
25471EOF
25472elif test -n "$acx_cv_type_int64_t"; then
25473 sed 's/^ *//' >> tmp-stdint.h <<EOF
25474
25475 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
25476 #ifndef _INT64_T
25477 #define _INT64_T
25478 typedef $acx_cv_type_int64_t int64_t;
25479 #endif
25480 #ifndef _UINT64_T
25481 #define _UINT64_T
07abfebf
RS
25482 #ifndef __uint64_t_defined
25483 #define __uint64_t_defined
4e8d927d
DJ
25484 typedef unsigned $acx_cv_type_int64_t uint64_t;
25485 #endif
07abfebf 25486 #endif
4e8d927d
DJ
25487EOF
25488else
25489 sed 's/^ *//' >> tmp-stdint.h <<EOF
25490
25491 /* some common heuristics for int64_t, using compiler-specific tests */
25492 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
25493 #ifndef _INT64_T
25494 #define _INT64_T
07abfebf 25495 #ifndef __int64_t_defined
4e8d927d
DJ
25496 typedef long long int64_t;
25497 #endif
07abfebf 25498 #endif
4e8d927d
DJ
25499 #ifndef _UINT64_T
25500 #define _UINT64_T
25501 typedef unsigned long long uint64_t;
25502 #endif
25503
25504 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
25505 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
25506 does not implement __extension__. But that compiler doesn't define
25507 __GNUC_MINOR__. */
25508 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
25509 # define __extension__
25510 # endif
25511
25512 # ifndef _INT64_T
25513 # define _INT64_T
25514 __extension__ typedef long long int64_t;
25515 # endif
25516 # ifndef _UINT64_T
25517 # define _UINT64_T
25518 __extension__ typedef unsigned long long uint64_t;
25519 # endif
25520
25521 #elif !defined __STRICT_ANSI__
25522 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
25523
25524 # ifndef _INT64_T
25525 # define _INT64_T
25526 typedef __int64 int64_t;
25527 # endif
25528 # ifndef _UINT64_T
25529 # define _UINT64_T
25530 typedef unsigned __int64 uint64_t;
25531 # endif
25532 # endif /* compiler */
25533
25534 #endif /* ANSI version */
25535EOF
25536fi
25537
25538# ------------- done int64_t types, emit intptr types ------------
25539if test "$ac_cv_type_uintptr_t" != yes; then
25540 sed 's/^ *//' >> tmp-stdint.h <<EOF
25541
25542 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
07abfebf 25543 #ifndef __uintptr_t_defined
4e8d927d 25544 typedef u$acx_cv_type_intptr_t uintptr_t;
07abfebf
RS
25545 #endif
25546 #ifndef __intptr_t_defined
4e8d927d 25547 typedef $acx_cv_type_intptr_t intptr_t;
07abfebf 25548 #endif
4e8d927d
DJ
25549EOF
25550fi
25551
25552# ------------- done intptr types, emit int_least types ------------
25553if test "$ac_cv_type_int_least32_t" != yes; then
25554 sed 's/^ *//' >> tmp-stdint.h <<EOF
25555
25556 /* Define int_least types */
25557 typedef int8_t int_least8_t;
25558 typedef int16_t int_least16_t;
25559 typedef int32_t int_least32_t;
25560 #ifdef _INT64_T
25561 typedef int64_t int_least64_t;
25562 #endif
25563
25564 typedef uint8_t uint_least8_t;
25565 typedef uint16_t uint_least16_t;
25566 typedef uint32_t uint_least32_t;
25567 #ifdef _UINT64_T
25568 typedef uint64_t uint_least64_t;
25569 #endif
25570EOF
25571fi
25572
25573# ------------- done intptr types, emit int_fast types ------------
25574if test "$ac_cv_type_int_fast32_t" != yes; then
25575 sed 's/^ *//' >> tmp-stdint.h <<EOF
25576
25577 /* Define int_fast types. short is often slow */
25578 typedef int8_t int_fast8_t;
25579 typedef int int_fast16_t;
25580 typedef int32_t int_fast32_t;
25581 #ifdef _INT64_T
25582 typedef int64_t int_fast64_t;
25583 #endif
25584
25585 typedef uint8_t uint_fast8_t;
25586 typedef unsigned int uint_fast16_t;
25587 typedef uint32_t uint_fast32_t;
25588 #ifdef _UINT64_T
25589 typedef uint64_t uint_fast64_t;
25590 #endif
25591EOF
25592fi
25593
25594if test "$ac_cv_type_uintmax_t" != yes; then
25595 sed 's/^ *//' >> tmp-stdint.h <<EOF
25596
25597 /* Define intmax based on what we found */
25598 #ifdef _INT64_T
25599 typedef int64_t intmax_t;
25600 #else
25601 typedef long intmax_t;
25602 #endif
25603 #ifdef _UINT64_T
25604 typedef uint64_t uintmax_t;
25605 #else
25606 typedef unsigned long uintmax_t;
25607 #endif
25608EOF
25609fi
25610
25611sed 's/^ *//' >> tmp-stdint.h <<EOF
25612
25613 #endif /* GCC_GENERATED_STDINT_H */
25614EOF
25615
25616if test -r gdb_stdint.h && cmp -s tmp-stdint.h gdb_stdint.h; then
25617 rm -f tmp-stdint.h
25618else
25619 mv -f tmp-stdint.h gdb_stdint.h
bec39cab
AC
25620fi
25621
4e8d927d 25622 ;;
b4e70030 25623 default )
c906108c 25624
2c0fc042 25625sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
c906108c
SS
25626/^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
25627/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
25628mv -f Makefile.tmp Makefile
25629
2acceee2 25630
c906108c
SS
25631case x$CONFIG_HEADERS in
25632xconfig.h:config.in)
25633echo > stamp-h ;;
25634esac
bec39cab
AC
25635 ;;
25636 esac
b4e70030
JB
25637done
25638_ACEOF
c906108c 25639
b4e70030 25640cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
25641
25642{ (exit 0); exit 0; }
25643_ACEOF
c906108c 25644chmod +x $CONFIG_STATUS
bec39cab
AC
25645ac_clean_files=$ac_clean_files_save
25646
25647
25648# configure is writing to config.log, and then calls config.status.
25649# config.status does its own redirection, appending to config.log.
25650# Unfortunately, on DOS this fails, as config.log is still kept open
25651# by configure, so config.status won't be able to write to it; its
25652# output is simply discarded. So we exec the FD to /dev/null,
25653# effectively closing config.log, so it can be properly (re)opened and
25654# appended to by config.status. When coming back to configure, we
25655# need to make the FD available again.
25656if test "$no_create" != yes; then
25657 ac_cs_success=:
25658 ac_config_status_args=
25659 test "$silent" = yes &&
25660 ac_config_status_args="$ac_config_status_args --quiet"
25661 exec 5>/dev/null
25662 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25663 exec 5>>config.log
25664 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25665 # would make configure fail if this is the last instruction.
25666 $ac_cs_success || { (exit 1); exit 1; }
25667fi
c906108c 25668
bec39cab
AC
25669#
25670# CONFIG_SUBDIRS section.
25671#
c906108c
SS
25672if test "$no_recursion" != yes; then
25673
25674 # Remove --cache-file and --srcdir arguments so they do not pile up.
25675 ac_sub_configure_args=
25676 ac_prev=
b4e70030 25677 for ac_arg in $ac_configure_args; do
c906108c
SS
25678 if test -n "$ac_prev"; then
25679 ac_prev=
25680 continue
25681 fi
bec39cab 25682 case $ac_arg in
c906108c
SS
25683 -cache-file | --cache-file | --cache-fil | --cache-fi \
25684 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25685 ac_prev=cache_file ;;
25686 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
bec39cab
AC
25687 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25688 | --c=*)
25689 ;;
25690 --config-cache | -C)
c906108c
SS
25691 ;;
25692 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25693 ac_prev=srcdir ;;
25694 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25695 ;;
bec39cab
AC
25696 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25697 ac_prev=prefix ;;
25698 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25699 ;;
b4e70030 25700 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
c906108c
SS
25701 esac
25702 done
25703
bec39cab
AC
25704 # Always prepend --prefix to ensure using the same prefix
25705 # in subdir configurations.
25706 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25707
b4e70030 25708 ac_popdir=`pwd`
bec39cab 25709 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
c906108c
SS
25710
25711 # Do not complain, so a configure script can configure whichever
25712 # parts of a large source tree are present.
bec39cab 25713 test -d $srcdir/$ac_dir || continue
c906108c 25714
b4e70030
JB
25715 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25716echo "$as_me: configuring in $ac_dir" >&6;}
25717 { if $as_mkdir_p; then
25718 mkdir -p "$ac_dir"
25719 else
25720 as_dir="$ac_dir"
bec39cab 25721 as_dirs=
b4e70030
JB
25722 while test ! -d "$as_dir"; do
25723 as_dirs="$as_dir $as_dirs"
25724 as_dir=`(dirname "$as_dir") 2>/dev/null ||
bec39cab
AC
25725$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25726 X"$as_dir" : 'X\(//\)[^/]' \| \
25727 X"$as_dir" : 'X\(//\)$' \| \
b4e70030
JB
25728 X"$as_dir" : 'X\(/\)' \| \
25729 . : '\(.\)' 2>/dev/null ||
bec39cab 25730echo X"$as_dir" |
b4e70030
JB
25731 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25732 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25733 /^X\(\/\/\)$/{ s//\1/; q; }
25734 /^X\(\/\).*/{ s//\1/; q; }
25735 s/.*/./; q'`
bec39cab 25736 done
b4e70030
JB
25737 test ! -n "$as_dirs" || mkdir $as_dirs
25738 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25739echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
bec39cab 25740 { (exit 1); exit 1; }; }; }
b4e70030 25741
bec39cab
AC
25742 ac_builddir=.
25743
b4e70030 25744if test "$ac_dir" != .; then
bec39cab 25745 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
25746 # A "../" for each directory in $ac_dir_suffix.
25747 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25748else
25749 ac_dir_suffix= ac_top_builddir=
25750fi
bec39cab
AC
25751
25752case $srcdir in
b4e70030 25753 .) # No --srcdir option. We are building in place.
bec39cab 25754 ac_srcdir=.
b4e70030
JB
25755 if test -z "$ac_top_builddir"; then
25756 ac_top_srcdir=.
25757 else
25758 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25759 fi ;;
25760 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 25761 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
25762 ac_top_srcdir=$srcdir ;;
25763 *) # Relative path.
25764 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25765 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25766esac
25767
25768# Do not use `cd foo && pwd` to compute absolute paths, because
25769# the directories may not exist.
25770case `pwd` in
25771.) ac_abs_builddir="$ac_dir";;
25772*)
25773 case "$ac_dir" in
25774 .) ac_abs_builddir=`pwd`;;
25775 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25776 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25777 esac;;
25778esac
25779case $ac_abs_builddir in
25780.) ac_abs_top_builddir=${ac_top_builddir}.;;
25781*)
25782 case ${ac_top_builddir}. in
25783 .) ac_abs_top_builddir=$ac_abs_builddir;;
25784 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25785 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25786 esac;;
25787esac
25788case $ac_abs_builddir in
25789.) ac_abs_srcdir=$ac_srcdir;;
25790*)
25791 case $ac_srcdir in
25792 .) ac_abs_srcdir=$ac_abs_builddir;;
25793 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25794 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25795 esac;;
25796esac
25797case $ac_abs_builddir in
25798.) ac_abs_top_srcdir=$ac_top_srcdir;;
25799*)
25800 case $ac_top_srcdir in
25801 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25802 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25803 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25804 esac;;
bec39cab 25805esac
c906108c 25806
c906108c 25807
b4e70030 25808 cd $ac_dir
c906108c
SS
25809
25810 # Check for guested configure; otherwise get Cygnus style configure.
bec39cab
AC
25811 if test -f $ac_srcdir/configure.gnu; then
25812 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25813 elif test -f $ac_srcdir/configure; then
25814 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25815 elif test -f $ac_srcdir/configure.in; then
c906108c
SS
25816 ac_sub_configure=$ac_configure
25817 else
bec39cab
AC
25818 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25819echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
c906108c
SS
25820 ac_sub_configure=
25821 fi
25822
25823 # The recursion is here.
25824 if test -n "$ac_sub_configure"; then
c906108c 25825 # Make the cache file name correct relative to the subdirectory.
bec39cab
AC
25826 case $cache_file in
25827 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
b4e70030
JB
25828 *) # Relative path.
25829 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
c906108c 25830 esac
c906108c 25831
bec39cab
AC
25832 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25833echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
c906108c 25834 # The eval makes quoting arguments work.
b4e70030
JB
25835 eval $ac_sub_configure $ac_sub_configure_args \
25836 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
bec39cab
AC
25837 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25838echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25839 { (exit 1); exit 1; }; }
c906108c
SS
25840 fi
25841
b4e70030 25842 cd $ac_popdir
c906108c
SS
25843 done
25844fi
25845
25846
25847exit 0