* win32-low.c (create_process): New.
[deliverable/binutils-gdb.git] / gdb / configure
CommitLineData
c906108c 1#! /bin/sh
c906108c 2# Guess values for system-dependent variables and create Makefiles.
b4e70030 3# Generated by GNU Autoconf 2.59.
c906108c 4#
b4e70030 5# Copyright (C) 2003 Free Software Foundation, Inc.
c906108c
SS
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
bec39cab
AC
8## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
b4e70030
JB
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
bec39cab
AC
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
b4e70030 33$as_unset ENV MAIL MAILPATH
bec39cab
AC
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
b4e70030 47 $as_unset $as_var
bec39cab
AC
48 fi
49done
50
51# Required to use basename.
b4e70030 52if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
53 as_expr=expr
54else
55 as_expr=false
56fi
57
b4e70030 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
bec39cab
AC
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
b4e70030 66as_me=`$as_basename "$0" ||
bec39cab
AC
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
b4e70030
JB
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
bec39cab 71echo X/"$0" |
b4e70030
JB
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
bec39cab 76
4e8d927d 77
b4e70030
JB
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
4e8d927d 85
b4e70030
JB
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
4e8d927d
DJ
97fi
98
4e8d927d 99
b4e70030
JB
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
4e8d927d 116
b4e70030
JB
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
bec39cab 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
b4e70030 131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
bec39cab
AC
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
b4e70030
JB
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
bec39cab 137 /*)
b4e70030 138 if ("$as_dir/$as_base" -c '
4e8d927d
DJ
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
b4e70030 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4e8d927d 142 test "x$as_lineno_1" != "x$as_lineno_2" &&
b4e70030
JB
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
bec39cab
AC
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
b4e70030
JB
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
bec39cab 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
b4e70030
JB
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
bec39cab
AC
165 sed '
166 N
b4e70030
JB
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
bec39cab 170 t loop
b4e70030
JB
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
bec39cab 173 ' >$as_me.lineno &&
b4e70030 174 chmod +x $as_me.lineno ||
bec39cab
AC
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
b4e70030
JB
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
bec39cab
AC
182 # Exit status is that of the last command.
183 exit
184}
185
186
b4e70030
JB
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
bec39cab
AC
192esac
193
b4e70030 194if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
b4e70030
JB
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
bec39cab 207 as_ln_s='cp -p'
b4e70030
JB
208 else
209 as_ln_s='ln -s'
210 fi
bec39cab
AC
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
b4e70030 216rm -f conf$$ conf$$.exe conf$$.file
bec39cab
AC
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
b4e70030 225as_executable_p="test -f"
bec39cab
AC
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
b4e70030
JB
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
bec39cab 242
c906108c 243
bec39cab
AC
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
b4e70030
JB
249exec 6>&1
250
bec39cab
AC
251#
252# Initializations.
253#
c906108c 254ac_default_prefix=/usr/local
bec39cab
AC
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
b4e70030
JB
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
bec39cab
AC
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="main.c"
20e95c23 275ac_subdirs_all="$ac_subdirs_all doc testsuite"
bec39cab
AC
276# Factoring default headers for most tests.
277ac_includes_default="\
278#include <stdio.h>
279#if HAVE_SYS_TYPES_H
280# include <sys/types.h>
281#endif
282#if HAVE_SYS_STAT_H
283# include <sys/stat.h>
284#endif
285#if STDC_HEADERS
286# include <stdlib.h>
287# include <stddef.h>
288#else
289# if HAVE_STDLIB_H
290# include <stdlib.h>
291# endif
292#endif
293#if HAVE_STRING_H
294# if !STDC_HEADERS && HAVE_MEMORY_H
295# include <memory.h>
296# endif
297# include <string.h>
298#endif
299#if HAVE_STRINGS_H
300# include <strings.h>
301#endif
302#if HAVE_INTTYPES_H
303# include <inttypes.h>
b4e70030
JB
304#else
305# if HAVE_STDINT_H
306# include <stdint.h>
307# endif
bec39cab
AC
308#endif
309#if HAVE_UNISTD_H
310# include <unistd.h>
311#endif"
312
b4e70030
JB
313ac_subdirs_all="$ac_subdirs_all gdbtk"
314ac_subdirs_all="$ac_subdirs_all multi-ice"
315ac_subdirs_all="$ac_subdirs_all gdbserver"
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
4280fi
4281if test "$enable_profiling" = yes ; then
4282 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
4283 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
4284echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
4285 { (exit 1); exit 1; }; }
4286 fi
4287 PROFILE_CFLAGS=-pg
4288 OLD_CFLAGS="$CFLAGS"
4289 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
4290
b4e70030
JB
4291 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
4292echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
bec39cab
AC
4293if test "${ac_cv_cc_supports_pg+set}" = set; then
4294 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4295else
bec39cab
AC
4296 cat >conftest.$ac_ext <<_ACEOF
4297/* confdefs.h. */
4298_ACEOF
4299cat confdefs.h >>conftest.$ac_ext
4300cat >>conftest.$ac_ext <<_ACEOF
4301/* end confdefs.h. */
4302
4303int
4304main ()
4305{
4306int x;
4307 ;
4308 return 0;
4309}
4310_ACEOF
4311rm -f conftest.$ac_objext
4312if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4313 (eval $ac_compile) 2>conftest.er1
4314 ac_status=$?
4315 grep -v '^ *+' conftest.er1 >conftest.err
4316 rm -f conftest.er1
4317 cat conftest.err >&5
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); } &&
b4e70030
JB
4320 { ac_try='test -z "$ac_c_werror_flag"
4321 || test ! -s conftest.err'
bec39cab
AC
4322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4323 (eval $ac_try) 2>&5
4324 ac_status=$?
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); }; } &&
4327 { ac_try='test -s conftest.$ac_objext'
4328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4329 (eval $ac_try) 2>&5
4330 ac_status=$?
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); }; }; then
4333 ac_cv_cc_supports_pg=yes
4334else
4335 echo "$as_me: failed program was:" >&5
4336sed 's/^/| /' conftest.$ac_ext >&5
4337
b4e70030 4338ac_cv_cc_supports_pg=no
bec39cab
AC
4339fi
4340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4341fi
b4e70030
JB
4342echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
4343echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
bec39cab
AC
4344
4345 if test $ac_cv_cc_supports_pg = no; then
4346 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
4347echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
4348 { (exit 1); exit 1; }; }
4349 fi
4350
4351 CFLAGS="$OLD_CFLAGS"
4352fi
4353
4354# --------------------- #
4355# Checks for programs. #
4356# --------------------- #
4357
4358for ac_prog in gawk mawk nawk awk
4359do
4360 # Extract the first word of "$ac_prog", so it can be a program name with args.
4361set dummy $ac_prog; ac_word=$2
b4e70030
JB
4362echo "$as_me:$LINENO: checking for $ac_word" >&5
4363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4364if test "${ac_cv_prog_AWK+set}" = set; then
4365 echo $ECHO_N "(cached) $ECHO_C" >&6
4366else
4367 if test -n "$AWK"; then
4368 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4369else
4370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371for as_dir in $PATH
4372do
4373 IFS=$as_save_IFS
4374 test -z "$as_dir" && as_dir=.
4375 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4376 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4377 ac_cv_prog_AWK="$ac_prog"
4378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4379 break 2
4380 fi
4381done
4382done
4383
4384fi
4385fi
4386AWK=$ac_cv_prog_AWK
4387if test -n "$AWK"; then
b4e70030
JB
4388 echo "$as_me:$LINENO: result: $AWK" >&5
4389echo "${ECHO_T}$AWK" >&6
bec39cab 4390else
b4e70030
JB
4391 echo "$as_me:$LINENO: result: no" >&5
4392echo "${ECHO_T}no" >&6
bec39cab
AC
4393fi
4394
4395 test -n "$AWK" && break
4396done
4397
4398# Find a good install program. We prefer a C program (faster),
4399# so one script is as good as another. But avoid the broken or
4400# incompatible versions:
4401# SysV /etc/install, /usr/sbin/install
4402# SunOS /usr/etc/install
4403# IRIX /sbin/install
4404# AIX /bin/install
4405# AmigaOS /C/install, which installs bootblocks on floppy discs
4406# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4407# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4408# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4409# OS/2's system install, which has a completely different semantic
4410# ./install, which can be erroneously created by make from ./install.sh.
b4e70030
JB
4411echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4412echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
bec39cab
AC
4413if test -z "$INSTALL"; then
4414if test "${ac_cv_path_install+set}" = set; then
4415 echo $ECHO_N "(cached) $ECHO_C" >&6
4416else
4417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418for as_dir in $PATH
4419do
4420 IFS=$as_save_IFS
4421 test -z "$as_dir" && as_dir=.
4422 # Account for people who put trailing slashes in PATH elements.
4423case $as_dir/ in
4424 ./ | .// | /cC/* | \
4425 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4426 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4427 /usr/ucb/* ) ;;
c906108c 4428 *)
bec39cab
AC
4429 # OSF1 and SCO ODT 3.0 have their own names for install.
4430 # Don't use installbsd from OSF since it installs stuff as root
4431 # by default.
4432 for ac_prog in ginstall scoinst install; do
4433 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4434 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
bec39cab
AC
4435 if test $ac_prog = install &&
4436 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4437 # AIX install. It has an incompatible calling convention.
4438 :
4439 elif test $ac_prog = install &&
4440 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4441 # program-specific install script used by HP pwplus--don't use.
4442 :
4443 else
4444 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4445 break 3
4446 fi
4447 fi
4448 done
4449 done
4450 ;;
c906108c 4451esac
bec39cab
AC
4452done
4453
4454
4455fi
4456 if test "${ac_cv_path_install+set}" = set; then
4457 INSTALL=$ac_cv_path_install
4458 else
b4e70030
JB
4459 # As a last resort, use the slow shell script. We don't cache a
4460 # path for INSTALL within a source directory, because that will
bec39cab 4461 # break other packages using the cache if that directory is
b4e70030 4462 # removed, or if the path is relative.
bec39cab
AC
4463 INSTALL=$ac_install_sh
4464 fi
4465fi
b4e70030
JB
4466echo "$as_me:$LINENO: result: $INSTALL" >&5
4467echo "${ECHO_T}$INSTALL" >&6
bec39cab
AC
4468
4469# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4470# It thinks the first close brace ends the variable substitution.
4471test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4472
4473test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4474
4475test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4476
b4e70030
JB
4477echo "$as_me:$LINENO: checking whether ln -s works" >&5
4478echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
bec39cab
AC
4479LN_S=$as_ln_s
4480if test "$LN_S" = "ln -s"; then
b4e70030
JB
4481 echo "$as_me:$LINENO: result: yes" >&5
4482echo "${ECHO_T}yes" >&6
bec39cab 4483else
b4e70030
JB
4484 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4485echo "${ECHO_T}no, using $LN_S" >&6
bec39cab
AC
4486fi
4487
4488if test -n "$ac_tool_prefix"; then
4489 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4490set dummy ${ac_tool_prefix}ranlib; ac_word=$2
b4e70030
JB
4491echo "$as_me:$LINENO: checking for $ac_word" >&5
4492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4493if test "${ac_cv_prog_RANLIB+set}" = set; then
4494 echo $ECHO_N "(cached) $ECHO_C" >&6
4495else
4496 if test -n "$RANLIB"; then
4497 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4498else
4499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4500for as_dir in $PATH
4501do
4502 IFS=$as_save_IFS
4503 test -z "$as_dir" && as_dir=.
4504 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4505 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4506 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4508 break 2
4509 fi
4510done
4511done
4512
4513fi
4514fi
4515RANLIB=$ac_cv_prog_RANLIB
4516if test -n "$RANLIB"; then
b4e70030
JB
4517 echo "$as_me:$LINENO: result: $RANLIB" >&5
4518echo "${ECHO_T}$RANLIB" >&6
bec39cab 4519else
b4e70030
JB
4520 echo "$as_me:$LINENO: result: no" >&5
4521echo "${ECHO_T}no" >&6
bec39cab
AC
4522fi
4523
4524fi
4525if test -z "$ac_cv_prog_RANLIB"; then
4526 ac_ct_RANLIB=$RANLIB
4527 # Extract the first word of "ranlib", so it can be a program name with args.
4528set dummy ranlib; ac_word=$2
b4e70030
JB
4529echo "$as_me:$LINENO: checking for $ac_word" >&5
4530echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4531if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4532 echo $ECHO_N "(cached) $ECHO_C" >&6
4533else
4534 if test -n "$ac_ct_RANLIB"; then
4535 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4536else
4537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538for as_dir in $PATH
4539do
4540 IFS=$as_save_IFS
4541 test -z "$as_dir" && as_dir=.
4542 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4544 ac_cv_prog_ac_ct_RANLIB="ranlib"
4545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4546 break 2
4547 fi
4548done
4549done
4550
b4e70030 4551 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
bec39cab
AC
4552fi
4553fi
4554ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4555if test -n "$ac_ct_RANLIB"; then
b4e70030
JB
4556 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4557echo "${ECHO_T}$ac_ct_RANLIB" >&6
bec39cab 4558else
b4e70030
JB
4559 echo "$as_me:$LINENO: result: no" >&5
4560echo "${ECHO_T}no" >&6
bec39cab
AC
4561fi
4562
b4e70030 4563 RANLIB=$ac_ct_RANLIB
bec39cab
AC
4564else
4565 RANLIB="$ac_cv_prog_RANLIB"
4566fi
4567
4568for ac_prog in 'bison -y' byacc
4569do
4570 # Extract the first word of "$ac_prog", so it can be a program name with args.
4571set dummy $ac_prog; ac_word=$2
b4e70030
JB
4572echo "$as_me:$LINENO: checking for $ac_word" >&5
4573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4574if test "${ac_cv_prog_YACC+set}" = set; then
4575 echo $ECHO_N "(cached) $ECHO_C" >&6
4576else
4577 if test -n "$YACC"; then
4578 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4579else
4580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581for as_dir in $PATH
4582do
4583 IFS=$as_save_IFS
4584 test -z "$as_dir" && as_dir=.
4585 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4587 ac_cv_prog_YACC="$ac_prog"
4588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 break 2
4590 fi
4591done
4592done
4593
4594fi
4595fi
4596YACC=$ac_cv_prog_YACC
4597if test -n "$YACC"; then
b4e70030
JB
4598 echo "$as_me:$LINENO: result: $YACC" >&5
4599echo "${ECHO_T}$YACC" >&6
bec39cab 4600else
b4e70030
JB
4601 echo "$as_me:$LINENO: result: no" >&5
4602echo "${ECHO_T}no" >&6
bec39cab
AC
4603fi
4604
4605 test -n "$YACC" && break
4606done
4607test -n "$YACC" || YACC="yacc"
4608
4609
4610if test -n "$ac_tool_prefix"; then
4611 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4612set dummy ${ac_tool_prefix}ar; ac_word=$2
b4e70030
JB
4613echo "$as_me:$LINENO: checking for $ac_word" >&5
4614echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4615if test "${ac_cv_prog_AR+set}" = set; then
4616 echo $ECHO_N "(cached) $ECHO_C" >&6
4617else
4618 if test -n "$AR"; then
4619 ac_cv_prog_AR="$AR" # Let the user override the test.
4620else
4621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622for as_dir in $PATH
4623do
4624 IFS=$as_save_IFS
4625 test -z "$as_dir" && as_dir=.
4626 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4628 ac_cv_prog_AR="${ac_tool_prefix}ar"
4629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4630 break 2
4631 fi
4632done
4633done
4634
4635fi
4636fi
4637AR=$ac_cv_prog_AR
4638if test -n "$AR"; then
b4e70030
JB
4639 echo "$as_me:$LINENO: result: $AR" >&5
4640echo "${ECHO_T}$AR" >&6
bec39cab 4641else
b4e70030
JB
4642 echo "$as_me:$LINENO: result: no" >&5
4643echo "${ECHO_T}no" >&6
bec39cab
AC
4644fi
4645
4646fi
4647if test -z "$ac_cv_prog_AR"; then
4648 ac_ct_AR=$AR
4649 # Extract the first word of "ar", so it can be a program name with args.
4650set dummy ar; ac_word=$2
b4e70030
JB
4651echo "$as_me:$LINENO: checking for $ac_word" >&5
4652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4653if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4655else
4656 if test -n "$ac_ct_AR"; then
4657 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4658else
4659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660for as_dir in $PATH
4661do
4662 IFS=$as_save_IFS
4663 test -z "$as_dir" && as_dir=.
4664 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4666 ac_cv_prog_ac_ct_AR="ar"
4667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4668 break 2
4669 fi
4670done
4671done
4672
4673fi
4674fi
4675ac_ct_AR=$ac_cv_prog_ac_ct_AR
4676if test -n "$ac_ct_AR"; then
b4e70030
JB
4677 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4678echo "${ECHO_T}$ac_ct_AR" >&6
bec39cab 4679else
b4e70030
JB
4680 echo "$as_me:$LINENO: result: no" >&5
4681echo "${ECHO_T}no" >&6
bec39cab
AC
4682fi
4683
b4e70030 4684 AR=$ac_ct_AR
bec39cab
AC
4685else
4686 AR="$ac_cv_prog_AR"
4687fi
4688
4689if test -n "$ac_tool_prefix"; then
4690 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4691set dummy ${ac_tool_prefix}dlltool; ac_word=$2
b4e70030
JB
4692echo "$as_me:$LINENO: checking for $ac_word" >&5
4693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4694if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4695 echo $ECHO_N "(cached) $ECHO_C" >&6
4696else
4697 if test -n "$DLLTOOL"; then
4698 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4699else
4700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701for as_dir in $PATH
4702do
4703 IFS=$as_save_IFS
4704 test -z "$as_dir" && as_dir=.
4705 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4707 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4709 break 2
4710 fi
4711done
4712done
4713
4714fi
4715fi
4716DLLTOOL=$ac_cv_prog_DLLTOOL
4717if test -n "$DLLTOOL"; then
b4e70030
JB
4718 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4719echo "${ECHO_T}$DLLTOOL" >&6
bec39cab 4720else
b4e70030
JB
4721 echo "$as_me:$LINENO: result: no" >&5
4722echo "${ECHO_T}no" >&6
bec39cab
AC
4723fi
4724
4725fi
4726if test -z "$ac_cv_prog_DLLTOOL"; then
4727 ac_ct_DLLTOOL=$DLLTOOL
4728 # Extract the first word of "dlltool", so it can be a program name with args.
4729set dummy dlltool; ac_word=$2
b4e70030
JB
4730echo "$as_me:$LINENO: checking for $ac_word" >&5
4731echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4732if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4733 echo $ECHO_N "(cached) $ECHO_C" >&6
4734else
4735 if test -n "$ac_ct_DLLTOOL"; then
4736 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4737else
4738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739for as_dir in $PATH
4740do
4741 IFS=$as_save_IFS
4742 test -z "$as_dir" && as_dir=.
4743 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4745 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4747 break 2
4748 fi
4749done
4750done
4751
4752fi
4753fi
4754ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4755if test -n "$ac_ct_DLLTOOL"; then
b4e70030
JB
4756 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4757echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
bec39cab 4758else
b4e70030
JB
4759 echo "$as_me:$LINENO: result: no" >&5
4760echo "${ECHO_T}no" >&6
bec39cab
AC
4761fi
4762
b4e70030 4763 DLLTOOL=$ac_ct_DLLTOOL
bec39cab
AC
4764else
4765 DLLTOOL="$ac_cv_prog_DLLTOOL"
4766fi
4767
4768if test -n "$ac_tool_prefix"; then
4769 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4770set dummy ${ac_tool_prefix}windres; ac_word=$2
b4e70030
JB
4771echo "$as_me:$LINENO: checking for $ac_word" >&5
4772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4773if test "${ac_cv_prog_WINDRES+set}" = set; then
4774 echo $ECHO_N "(cached) $ECHO_C" >&6
4775else
4776 if test -n "$WINDRES"; then
4777 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4778else
4779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780for as_dir in $PATH
4781do
4782 IFS=$as_save_IFS
4783 test -z "$as_dir" && as_dir=.
4784 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4786 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4788 break 2
4789 fi
4790done
4791done
4792
4793fi
4794fi
4795WINDRES=$ac_cv_prog_WINDRES
4796if test -n "$WINDRES"; then
b4e70030
JB
4797 echo "$as_me:$LINENO: result: $WINDRES" >&5
4798echo "${ECHO_T}$WINDRES" >&6
bec39cab 4799else
b4e70030
JB
4800 echo "$as_me:$LINENO: result: no" >&5
4801echo "${ECHO_T}no" >&6
bec39cab
AC
4802fi
4803
4804fi
4805if test -z "$ac_cv_prog_WINDRES"; then
4806 ac_ct_WINDRES=$WINDRES
4807 # Extract the first word of "windres", so it can be a program name with args.
4808set dummy windres; ac_word=$2
b4e70030
JB
4809echo "$as_me:$LINENO: checking for $ac_word" >&5
4810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4811if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4812 echo $ECHO_N "(cached) $ECHO_C" >&6
4813else
4814 if test -n "$ac_ct_WINDRES"; then
4815 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4816else
4817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818for as_dir in $PATH
4819do
4820 IFS=$as_save_IFS
4821 test -z "$as_dir" && as_dir=.
4822 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4824 ac_cv_prog_ac_ct_WINDRES="windres"
4825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4826 break 2
4827 fi
4828done
4829done
4830
4831fi
4832fi
4833ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4834if test -n "$ac_ct_WINDRES"; then
b4e70030
JB
4835 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4836echo "${ECHO_T}$ac_ct_WINDRES" >&6
bec39cab 4837else
b4e70030
JB
4838 echo "$as_me:$LINENO: result: no" >&5
4839echo "${ECHO_T}no" >&6
c906108c 4840fi
bec39cab 4841
b4e70030 4842 WINDRES=$ac_ct_WINDRES
c906108c 4843else
bec39cab 4844 WINDRES="$ac_cv_prog_WINDRES"
c906108c
SS
4845fi
4846
bec39cab
AC
4847
4848# Needed for GNU/Hurd.
4849if test -n "$ac_tool_prefix"; then
4850 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
4851set dummy ${ac_tool_prefix}mig; ac_word=$2
b4e70030
JB
4852echo "$as_me:$LINENO: checking for $ac_word" >&5
4853echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4854if test "${ac_cv_prog_MIG+set}" = set; then
4855 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4856else
bec39cab
AC
4857 if test -n "$MIG"; then
4858 ac_cv_prog_MIG="$MIG" # Let the user override the test.
4859else
4860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861for as_dir in $PATH
4862do
4863 IFS=$as_save_IFS
4864 test -z "$as_dir" && as_dir=.
4865 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4867 ac_cv_prog_MIG="${ac_tool_prefix}mig"
4868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4869 break 2
4870 fi
4871done
4872done
4873
c906108c 4874fi
bec39cab
AC
4875fi
4876MIG=$ac_cv_prog_MIG
4877if test -n "$MIG"; then
b4e70030
JB
4878 echo "$as_me:$LINENO: result: $MIG" >&5
4879echo "${ECHO_T}$MIG" >&6
c906108c 4880else
b4e70030
JB
4881 echo "$as_me:$LINENO: result: no" >&5
4882echo "${ECHO_T}no" >&6
c906108c
SS
4883fi
4884
bec39cab
AC
4885fi
4886if test -z "$ac_cv_prog_MIG"; then
4887 ac_ct_MIG=$MIG
4888 # Extract the first word of "mig", so it can be a program name with args.
4889set dummy mig; ac_word=$2
b4e70030
JB
4890echo "$as_me:$LINENO: checking for $ac_word" >&5
4891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4892if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
4893 echo $ECHO_N "(cached) $ECHO_C" >&6
4894else
4895 if test -n "$ac_ct_MIG"; then
4896 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
4897else
4898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899for as_dir in $PATH
4900do
4901 IFS=$as_save_IFS
4902 test -z "$as_dir" && as_dir=.
4903 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4905 ac_cv_prog_ac_ct_MIG="mig"
4906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4907 break 2
4908 fi
4909done
4910done
c906108c 4911
bec39cab
AC
4912fi
4913fi
4914ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
4915if test -n "$ac_ct_MIG"; then
b4e70030
JB
4916 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
4917echo "${ECHO_T}$ac_ct_MIG" >&6
bec39cab 4918else
b4e70030
JB
4919 echo "$as_me:$LINENO: result: no" >&5
4920echo "${ECHO_T}no" >&6
bec39cab 4921fi
c906108c 4922
b4e70030 4923 MIG=$ac_ct_MIG
bec39cab
AC
4924else
4925 MIG="$ac_cv_prog_MIG"
4926fi
c906108c 4927
c906108c 4928
bec39cab
AC
4929# ---------------------- #
4930# Checks for libraries. #
4931# ---------------------- #
c906108c 4932
bec39cab 4933# We might need to link with -lm; most simulators need it.
c906108c 4934
b4e70030
JB
4935echo "$as_me:$LINENO: checking for main in -lm" >&5
4936echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
bec39cab
AC
4937if test "${ac_cv_lib_m_main+set}" = set; then
4938 echo $ECHO_N "(cached) $ECHO_C" >&6
4939else
4940 ac_check_lib_save_LIBS=$LIBS
4941LIBS="-lm $LIBS"
4942cat >conftest.$ac_ext <<_ACEOF
4943/* confdefs.h. */
4944_ACEOF
4945cat confdefs.h >>conftest.$ac_ext
4946cat >>conftest.$ac_ext <<_ACEOF
4947/* end confdefs.h. */
c906108c 4948
c906108c 4949
bec39cab
AC
4950int
4951main ()
4952{
b4e70030 4953main ();
bec39cab
AC
4954 ;
4955 return 0;
4956}
4957_ACEOF
4958rm -f conftest.$ac_objext conftest$ac_exeext
4959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4960 (eval $ac_link) 2>conftest.er1
4961 ac_status=$?
4962 grep -v '^ *+' conftest.er1 >conftest.err
4963 rm -f conftest.er1
4964 cat conftest.err >&5
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); } &&
b4e70030
JB
4967 { ac_try='test -z "$ac_c_werror_flag"
4968 || test ! -s conftest.err'
bec39cab
AC
4969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4970 (eval $ac_try) 2>&5
4971 ac_status=$?
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); }; } &&
4974 { ac_try='test -s conftest$ac_exeext'
4975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4976 (eval $ac_try) 2>&5
4977 ac_status=$?
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); }; }; then
4980 ac_cv_lib_m_main=yes
4981else
4982 echo "$as_me: failed program was:" >&5
4983sed 's/^/| /' conftest.$ac_ext >&5
4984
b4e70030 4985ac_cv_lib_m_main=no
bec39cab
AC
4986fi
4987rm -f conftest.err conftest.$ac_objext \
4988 conftest$ac_exeext conftest.$ac_ext
4989LIBS=$ac_check_lib_save_LIBS
4990fi
b4e70030
JB
4991echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4992echo "${ECHO_T}$ac_cv_lib_m_main" >&6
bec39cab
AC
4993if test $ac_cv_lib_m_main = yes; then
4994 cat >>confdefs.h <<_ACEOF
4995#define HAVE_LIBM 1
4996_ACEOF
4997
4998 LIBS="-lm $LIBS"
c906108c 4999
c906108c 5000fi
bec39cab
AC
5001
5002
5003# We need to link with -lw to get `wctype' on Solaris before Solaris
5004# 2.6. Solaris 2.6 and beyond have this function in libc, and have a
5005# libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
5006# is known to have this problem). Therefore we avoid libw if we can.
b4e70030
JB
5007echo "$as_me:$LINENO: checking for wctype" >&5
5008echo $ECHO_N "checking for wctype... $ECHO_C" >&6
bec39cab
AC
5009if test "${ac_cv_func_wctype+set}" = set; then
5010 echo $ECHO_N "(cached) $ECHO_C" >&6
5011else
5012 cat >conftest.$ac_ext <<_ACEOF
5013/* confdefs.h. */
5014_ACEOF
5015cat confdefs.h >>conftest.$ac_ext
5016cat >>conftest.$ac_ext <<_ACEOF
5017/* end confdefs.h. */
5018/* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
5019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5020#define wctype innocuous_wctype
5021
5022/* System header to define __stub macros and hopefully few prototypes,
5023 which can conflict with char wctype (); below.
5024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5025 <limits.h> exists even on freestanding compilers. */
5026
5027#ifdef __STDC__
5028# include <limits.h>
5029#else
5030# include <assert.h>
5031#endif
5032
5033#undef wctype
5034
b4e70030 5035/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5036#ifdef __cplusplus
5037extern "C"
b4e70030 5038{
bec39cab 5039#endif
b4e70030
JB
5040/* We use char because int might match the return type of a gcc2
5041 builtin and then its argument prototype would still apply. */
bec39cab
AC
5042char wctype ();
5043/* The GNU C library defines this for functions which it implements
5044 to always fail with ENOSYS. Some functions are actually named
5045 something starting with __ and the normal name is an alias. */
b4e70030 5046#if defined (__stub_wctype) || defined (__stub___wctype)
bec39cab 5047choke me
b4e70030
JB
5048#else
5049char (*f) () = wctype;
5050#endif
5051#ifdef __cplusplus
5052}
bec39cab
AC
5053#endif
5054
5055int
5056main ()
5057{
b4e70030 5058return f != wctype;
bec39cab
AC
5059 ;
5060 return 0;
5061}
5062_ACEOF
5063rm -f conftest.$ac_objext conftest$ac_exeext
5064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5065 (eval $ac_link) 2>conftest.er1
5066 ac_status=$?
5067 grep -v '^ *+' conftest.er1 >conftest.err
5068 rm -f conftest.er1
5069 cat conftest.err >&5
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); } &&
b4e70030
JB
5072 { ac_try='test -z "$ac_c_werror_flag"
5073 || test ! -s conftest.err'
bec39cab
AC
5074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5075 (eval $ac_try) 2>&5
5076 ac_status=$?
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); }; } &&
5079 { ac_try='test -s conftest$ac_exeext'
5080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5081 (eval $ac_try) 2>&5
5082 ac_status=$?
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); }; }; then
5085 ac_cv_func_wctype=yes
5086else
5087 echo "$as_me: failed program was:" >&5
5088sed 's/^/| /' conftest.$ac_ext >&5
5089
b4e70030 5090ac_cv_func_wctype=no
bec39cab
AC
5091fi
5092rm -f conftest.err conftest.$ac_objext \
5093 conftest$ac_exeext conftest.$ac_ext
5094fi
b4e70030
JB
5095echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
5096echo "${ECHO_T}$ac_cv_func_wctype" >&6
bec39cab
AC
5097if test $ac_cv_func_wctype = yes; then
5098 :
c906108c 5099else
c906108c 5100
b4e70030
JB
5101echo "$as_me:$LINENO: checking for wctype in -lw" >&5
5102echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
bec39cab
AC
5103if test "${ac_cv_lib_w_wctype+set}" = set; then
5104 echo $ECHO_N "(cached) $ECHO_C" >&6
5105else
5106 ac_check_lib_save_LIBS=$LIBS
5107LIBS="-lw $LIBS"
5108cat >conftest.$ac_ext <<_ACEOF
5109/* confdefs.h. */
5110_ACEOF
5111cat confdefs.h >>conftest.$ac_ext
5112cat >>conftest.$ac_ext <<_ACEOF
5113/* end confdefs.h. */
c906108c 5114
b4e70030 5115/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5116#ifdef __cplusplus
5117extern "C"
5118#endif
b4e70030
JB
5119/* We use char because int might match the return type of a gcc2
5120 builtin and then its argument prototype would still apply. */
bec39cab
AC
5121char wctype ();
5122int
5123main ()
5124{
b4e70030 5125wctype ();
bec39cab
AC
5126 ;
5127 return 0;
5128}
5129_ACEOF
5130rm -f conftest.$ac_objext conftest$ac_exeext
5131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5132 (eval $ac_link) 2>conftest.er1
5133 ac_status=$?
5134 grep -v '^ *+' conftest.er1 >conftest.err
5135 rm -f conftest.er1
5136 cat conftest.err >&5
5137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138 (exit $ac_status); } &&
b4e70030
JB
5139 { ac_try='test -z "$ac_c_werror_flag"
5140 || test ! -s conftest.err'
bec39cab
AC
5141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5142 (eval $ac_try) 2>&5
5143 ac_status=$?
5144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145 (exit $ac_status); }; } &&
5146 { ac_try='test -s conftest$ac_exeext'
5147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5148 (eval $ac_try) 2>&5
5149 ac_status=$?
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); }; }; then
5152 ac_cv_lib_w_wctype=yes
5153else
5154 echo "$as_me: failed program was:" >&5
5155sed 's/^/| /' conftest.$ac_ext >&5
5156
b4e70030 5157ac_cv_lib_w_wctype=no
bec39cab
AC
5158fi
5159rm -f conftest.err conftest.$ac_objext \
5160 conftest$ac_exeext conftest.$ac_ext
5161LIBS=$ac_check_lib_save_LIBS
5162fi
b4e70030
JB
5163echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
5164echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
bec39cab
AC
5165if test $ac_cv_lib_w_wctype = yes; then
5166 cat >>confdefs.h <<_ACEOF
5167#define HAVE_LIBW 1
5168_ACEOF
c906108c 5169
bec39cab 5170 LIBS="-lw $LIBS"
c906108c 5171
bec39cab 5172fi
c906108c 5173
bec39cab 5174fi
c906108c 5175
ddc9cd0f 5176
bec39cab 5177# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
b4e70030
JB
5178echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
5179echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
bec39cab
AC
5180if test "${ac_cv_search_gethostbyname+set}" = set; then
5181 echo $ECHO_N "(cached) $ECHO_C" >&6
5182else
5183 ac_func_search_save_LIBS=$LIBS
b4e70030 5184ac_cv_search_gethostbyname=no
bec39cab
AC
5185cat >conftest.$ac_ext <<_ACEOF
5186/* confdefs.h. */
5187_ACEOF
5188cat confdefs.h >>conftest.$ac_ext
5189cat >>conftest.$ac_ext <<_ACEOF
5190/* end confdefs.h. */
ddc9cd0f 5191
b4e70030 5192/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5193#ifdef __cplusplus
5194extern "C"
5195#endif
b4e70030
JB
5196/* We use char because int might match the return type of a gcc2
5197 builtin and then its argument prototype would still apply. */
bec39cab
AC
5198char gethostbyname ();
5199int
5200main ()
5201{
b4e70030 5202gethostbyname ();
bec39cab
AC
5203 ;
5204 return 0;
5205}
5206_ACEOF
b4e70030 5207rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
5208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5209 (eval $ac_link) 2>conftest.er1
5210 ac_status=$?
5211 grep -v '^ *+' conftest.er1 >conftest.err
5212 rm -f conftest.er1
5213 cat conftest.err >&5
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); } &&
b4e70030
JB
5216 { ac_try='test -z "$ac_c_werror_flag"
5217 || test ! -s conftest.err'
bec39cab
AC
5218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5219 (eval $ac_try) 2>&5
5220 ac_status=$?
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); }; } &&
5223 { ac_try='test -s conftest$ac_exeext'
5224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5225 (eval $ac_try) 2>&5
5226 ac_status=$?
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); }; }; then
b4e70030 5229 ac_cv_search_gethostbyname="none required"
bec39cab
AC
5230else
5231 echo "$as_me: failed program was:" >&5
5232sed 's/^/| /' conftest.$ac_ext >&5
ddc9cd0f 5233
bec39cab
AC
5234fi
5235rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
5236 conftest$ac_exeext conftest.$ac_ext
5237if test "$ac_cv_search_gethostbyname" = no; then
5238 for ac_lib in nsl; do
5239 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5240 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
5241/* confdefs.h. */
5242_ACEOF
5243cat confdefs.h >>conftest.$ac_ext
5244cat >>conftest.$ac_ext <<_ACEOF
5245/* end confdefs.h. */
ddc9cd0f 5246
b4e70030 5247/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5248#ifdef __cplusplus
5249extern "C"
5250#endif
b4e70030
JB
5251/* We use char because int might match the return type of a gcc2
5252 builtin and then its argument prototype would still apply. */
5253char gethostbyname ();
bec39cab
AC
5254int
5255main ()
5256{
b4e70030 5257gethostbyname ();
bec39cab
AC
5258 ;
5259 return 0;
5260}
5261_ACEOF
b4e70030 5262rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
5263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5264 (eval $ac_link) 2>conftest.er1
5265 ac_status=$?
5266 grep -v '^ *+' conftest.er1 >conftest.err
5267 rm -f conftest.er1
5268 cat conftest.err >&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); } &&
b4e70030
JB
5271 { ac_try='test -z "$ac_c_werror_flag"
5272 || test ! -s conftest.err'
bec39cab
AC
5273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5274 (eval $ac_try) 2>&5
5275 ac_status=$?
5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); }; } &&
5278 { ac_try='test -s conftest$ac_exeext'
5279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5280 (eval $ac_try) 2>&5
5281 ac_status=$?
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); }; }; then
b4e70030
JB
5284 ac_cv_search_gethostbyname="-l$ac_lib"
5285break
bec39cab
AC
5286else
5287 echo "$as_me: failed program was:" >&5
5288sed 's/^/| /' conftest.$ac_ext >&5
5289
5290fi
5291rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
5292 conftest$ac_exeext conftest.$ac_ext
5293 done
bec39cab
AC
5294fi
5295LIBS=$ac_func_search_save_LIBS
5296fi
b4e70030
JB
5297echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
5298echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
5299if test "$ac_cv_search_gethostbyname" != no; then
5300 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
96baa820 5301
bec39cab 5302fi
96baa820 5303
c906108c 5304
b4e70030
JB
5305# Some systems (e.g. Solaris) have `socketpair' in libsocket.
5306echo "$as_me:$LINENO: checking for library containing socketpair" >&5
5307echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
5308if test "${ac_cv_search_socketpair+set}" = set; then
5309 echo $ECHO_N "(cached) $ECHO_C" >&6
5310else
5311 ac_func_search_save_LIBS=$LIBS
5312ac_cv_search_socketpair=no
5313cat >conftest.$ac_ext <<_ACEOF
5314/* confdefs.h. */
5315_ACEOF
5316cat confdefs.h >>conftest.$ac_ext
5317cat >>conftest.$ac_ext <<_ACEOF
5318/* end confdefs.h. */
5319
5320/* Override any gcc2 internal prototype to avoid an error. */
5321#ifdef __cplusplus
5322extern "C"
5323#endif
5324/* We use char because int might match the return type of a gcc2
5325 builtin and then its argument prototype would still apply. */
5326char socketpair ();
5327int
5328main ()
5329{
5330socketpair ();
5331 ;
5332 return 0;
5333}
5334_ACEOF
5335rm -f conftest.$ac_objext conftest$ac_exeext
5336if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5337 (eval $ac_link) 2>conftest.er1
5338 ac_status=$?
5339 grep -v '^ *+' conftest.er1 >conftest.err
5340 rm -f conftest.er1
5341 cat conftest.err >&5
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); } &&
5344 { ac_try='test -z "$ac_c_werror_flag"
5345 || test ! -s conftest.err'
5346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5347 (eval $ac_try) 2>&5
5348 ac_status=$?
5349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); }; } &&
5351 { ac_try='test -s conftest$ac_exeext'
5352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5353 (eval $ac_try) 2>&5
5354 ac_status=$?
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); }; }; then
5357 ac_cv_search_socketpair="none required"
5358else
5359 echo "$as_me: failed program was:" >&5
5360sed 's/^/| /' conftest.$ac_ext >&5
5361
5362fi
5363rm -f conftest.err conftest.$ac_objext \
5364 conftest$ac_exeext conftest.$ac_ext
5365if test "$ac_cv_search_socketpair" = no; then
5366 for ac_lib in socket; do
5367 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5368 cat >conftest.$ac_ext <<_ACEOF
5369/* confdefs.h. */
5370_ACEOF
5371cat confdefs.h >>conftest.$ac_ext
5372cat >>conftest.$ac_ext <<_ACEOF
5373/* end confdefs.h. */
5374
5375/* Override any gcc2 internal prototype to avoid an error. */
5376#ifdef __cplusplus
5377extern "C"
5378#endif
5379/* We use char because int might match the return type of a gcc2
5380 builtin and then its argument prototype would still apply. */
5381char socketpair ();
5382int
5383main ()
5384{
5385socketpair ();
5386 ;
5387 return 0;
5388}
5389_ACEOF
5390rm -f conftest.$ac_objext conftest$ac_exeext
5391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5392 (eval $ac_link) 2>conftest.er1
5393 ac_status=$?
5394 grep -v '^ *+' conftest.er1 >conftest.err
5395 rm -f conftest.er1
5396 cat conftest.err >&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); } &&
5399 { ac_try='test -z "$ac_c_werror_flag"
5400 || test ! -s conftest.err'
5401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5402 (eval $ac_try) 2>&5
5403 ac_status=$?
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); }; } &&
5406 { ac_try='test -s conftest$ac_exeext'
5407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5408 (eval $ac_try) 2>&5
5409 ac_status=$?
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); }; }; then
5412 ac_cv_search_socketpair="-l$ac_lib"
5413break
5414else
5415 echo "$as_me: failed program was:" >&5
5416sed 's/^/| /' conftest.$ac_ext >&5
5417
5418fi
5419rm -f conftest.err conftest.$ac_objext \
5420 conftest$ac_exeext conftest.$ac_ext
5421 done
5422fi
5423LIBS=$ac_func_search_save_LIBS
5424fi
5425echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
5426echo "${ECHO_T}$ac_cv_search_socketpair" >&6
5427if test "$ac_cv_search_socketpair" != no; then
5428 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
5429
5430fi
5431
5432
5433# For the TUI, we need enhanced curses functionality.
bec39cab
AC
5434#
5435# FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
5436# curses library because the latter might not provide all the
5437# functionality we need. However, this leads to problems on systems
5438# where the linker searches /usr/local/lib, but the compiler doesn't
5439# search /usr/local/include, if ncurses is installed in /usr/local. A
5440# default installation of ncurses on alpha*-dec-osf* will lead to such
5441# a situation.
b4e70030
JB
5442echo "$as_me:$LINENO: checking for library containing waddstr" >&5
5443echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
bec39cab
AC
5444if test "${ac_cv_search_waddstr+set}" = set; then
5445 echo $ECHO_N "(cached) $ECHO_C" >&6
5446else
5447 ac_func_search_save_LIBS=$LIBS
b4e70030 5448ac_cv_search_waddstr=no
bec39cab
AC
5449cat >conftest.$ac_ext <<_ACEOF
5450/* confdefs.h. */
5451_ACEOF
5452cat confdefs.h >>conftest.$ac_ext
5453cat >>conftest.$ac_ext <<_ACEOF
5454/* end confdefs.h. */
c906108c 5455
b4e70030 5456/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5457#ifdef __cplusplus
5458extern "C"
5459#endif
b4e70030
JB
5460/* We use char because int might match the return type of a gcc2
5461 builtin and then its argument prototype would still apply. */
bec39cab
AC
5462char waddstr ();
5463int
5464main ()
5465{
b4e70030 5466waddstr ();
bec39cab
AC
5467 ;
5468 return 0;
5469}
5470_ACEOF
b4e70030 5471rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
5472if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5473 (eval $ac_link) 2>conftest.er1
5474 ac_status=$?
5475 grep -v '^ *+' conftest.er1 >conftest.err
5476 rm -f conftest.er1
5477 cat conftest.err >&5
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); } &&
b4e70030
JB
5480 { ac_try='test -z "$ac_c_werror_flag"
5481 || test ! -s conftest.err'
bec39cab
AC
5482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5483 (eval $ac_try) 2>&5
5484 ac_status=$?
5485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5486 (exit $ac_status); }; } &&
5487 { ac_try='test -s conftest$ac_exeext'
5488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5489 (eval $ac_try) 2>&5
5490 ac_status=$?
5491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); }; }; then
b4e70030 5493 ac_cv_search_waddstr="none required"
bec39cab
AC
5494else
5495 echo "$as_me: failed program was:" >&5
5496sed 's/^/| /' conftest.$ac_ext >&5
1ba607ad
AC
5497
5498fi
bec39cab 5499rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
5500 conftest$ac_exeext conftest.$ac_ext
5501if test "$ac_cv_search_waddstr" = no; then
5502 for ac_lib in ncurses cursesX curses; do
5503 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5504 cat >conftest.$ac_ext <<_ACEOF
5505/* confdefs.h. */
5506_ACEOF
5507cat confdefs.h >>conftest.$ac_ext
5508cat >>conftest.$ac_ext <<_ACEOF
5509/* end confdefs.h. */
5510
5511/* Override any gcc2 internal prototype to avoid an error. */
5512#ifdef __cplusplus
5513extern "C"
5514#endif
5515/* We use char because int might match the return type of a gcc2
5516 builtin and then its argument prototype would still apply. */
5517char waddstr ();
5518int
5519main ()
5520{
5521waddstr ();
5522 ;
5523 return 0;
5524}
5525_ACEOF
5526rm -f conftest.$ac_objext conftest$ac_exeext
5527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5528 (eval $ac_link) 2>conftest.er1
5529 ac_status=$?
5530 grep -v '^ *+' conftest.er1 >conftest.err
5531 rm -f conftest.er1
5532 cat conftest.err >&5
5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); } &&
5535 { ac_try='test -z "$ac_c_werror_flag"
5536 || test ! -s conftest.err'
5537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5538 (eval $ac_try) 2>&5
5539 ac_status=$?
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); }; } &&
5542 { ac_try='test -s conftest$ac_exeext'
5543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5544 (eval $ac_try) 2>&5
5545 ac_status=$?
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); }; }; then
5548 ac_cv_search_waddstr="-l$ac_lib"
5549break
4e8d927d 5550else
b4e70030
JB
5551 echo "$as_me: failed program was:" >&5
5552sed 's/^/| /' conftest.$ac_ext >&5
5553
5554fi
5555rm -f conftest.err conftest.$ac_objext \
5556 conftest$ac_exeext conftest.$ac_ext
5557 done
1ba607ad 5558fi
bec39cab
AC
5559LIBS=$ac_func_search_save_LIBS
5560fi
b4e70030
JB
5561echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
5562echo "${ECHO_T}$ac_cv_search_waddstr" >&6
5563if test "$ac_cv_search_waddstr" != no; then
5564 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
c906108c 5565
8bb2c122 5566fi
8bb2c122 5567
8bb2c122 5568
bec39cab
AC
5569# Since GDB uses Readline, we need termcap functionality. In many
5570# cases this will be provided by the curses library, but some systems
5571# have a seperate termcap library, or no curses library at all.
8bb2c122 5572
bec39cab
AC
5573case $host_os in
5574 cygwin*)
5575 if test -d $srcdir/libtermcap; then
5576 LIBS="../libtermcap/libtermcap.a $LIBS"
5577 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
5578 fi ;;
5579 go32* | *djgpp*)
5580 ac_cv_search_tgetent="none required"
5581 ;;
7ef34f2c
MM
5582 *mingw32*)
5583 ac_cv_search_tgetent="none required"
5584 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
5585 ;;
bec39cab 5586esac
627af7ea 5587
bec39cab 5588# These are the libraries checked by Readline.
b4e70030
JB
5589echo "$as_me:$LINENO: checking for library containing tgetent" >&5
5590echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
bec39cab
AC
5591if test "${ac_cv_search_tgetent+set}" = set; then
5592 echo $ECHO_N "(cached) $ECHO_C" >&6
5593else
5594 ac_func_search_save_LIBS=$LIBS
b4e70030 5595ac_cv_search_tgetent=no
bec39cab
AC
5596cat >conftest.$ac_ext <<_ACEOF
5597/* confdefs.h. */
5598_ACEOF
5599cat confdefs.h >>conftest.$ac_ext
5600cat >>conftest.$ac_ext <<_ACEOF
5601/* end confdefs.h. */
5602
b4e70030 5603/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5604#ifdef __cplusplus
5605extern "C"
5606#endif
b4e70030
JB
5607/* We use char because int might match the return type of a gcc2
5608 builtin and then its argument prototype would still apply. */
bec39cab
AC
5609char tgetent ();
5610int
5611main ()
5612{
b4e70030 5613tgetent ();
bec39cab
AC
5614 ;
5615 return 0;
5616}
5617_ACEOF
b4e70030 5618rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
5619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5620 (eval $ac_link) 2>conftest.er1
5621 ac_status=$?
5622 grep -v '^ *+' conftest.er1 >conftest.err
5623 rm -f conftest.er1
5624 cat conftest.err >&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); } &&
b4e70030
JB
5627 { ac_try='test -z "$ac_c_werror_flag"
5628 || test ! -s conftest.err'
bec39cab
AC
5629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5630 (eval $ac_try) 2>&5
5631 ac_status=$?
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); }; } &&
5634 { ac_try='test -s conftest$ac_exeext'
5635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5636 (eval $ac_try) 2>&5
5637 ac_status=$?
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); }; }; then
b4e70030 5640 ac_cv_search_tgetent="none required"
627af7ea 5641else
bec39cab
AC
5642 echo "$as_me: failed program was:" >&5
5643sed 's/^/| /' conftest.$ac_ext >&5
627af7ea 5644
627af7ea 5645fi
bec39cab 5646rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
5647 conftest$ac_exeext conftest.$ac_ext
5648if test "$ac_cv_search_tgetent" = no; then
5649 for ac_lib in termcap tinfo curses ncurses; do
5650 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5651 cat >conftest.$ac_ext <<_ACEOF
5652/* confdefs.h. */
5653_ACEOF
5654cat confdefs.h >>conftest.$ac_ext
5655cat >>conftest.$ac_ext <<_ACEOF
5656/* end confdefs.h. */
5657
5658/* Override any gcc2 internal prototype to avoid an error. */
5659#ifdef __cplusplus
5660extern "C"
5661#endif
5662/* We use char because int might match the return type of a gcc2
5663 builtin and then its argument prototype would still apply. */
5664char tgetent ();
5665int
5666main ()
5667{
5668tgetent ();
5669 ;
5670 return 0;
5671}
5672_ACEOF
5673rm -f conftest.$ac_objext conftest$ac_exeext
5674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5675 (eval $ac_link) 2>conftest.er1
5676 ac_status=$?
5677 grep -v '^ *+' conftest.er1 >conftest.err
5678 rm -f conftest.er1
5679 cat conftest.err >&5
5680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681 (exit $ac_status); } &&
5682 { ac_try='test -z "$ac_c_werror_flag"
5683 || test ! -s conftest.err'
5684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5685 (eval $ac_try) 2>&5
5686 ac_status=$?
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); }; } &&
5689 { ac_try='test -s conftest$ac_exeext'
5690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5691 (eval $ac_try) 2>&5
5692 ac_status=$?
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); }; }; then
5695 ac_cv_search_tgetent="-l$ac_lib"
5696break
4e8d927d 5697else
b4e70030
JB
5698 echo "$as_me: failed program was:" >&5
5699sed 's/^/| /' conftest.$ac_ext >&5
5700
5701fi
5702rm -f conftest.err conftest.$ac_objext \
5703 conftest$ac_exeext conftest.$ac_ext
5704 done
bec39cab
AC
5705fi
5706LIBS=$ac_func_search_save_LIBS
5707fi
b4e70030
JB
5708echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
5709echo "${ECHO_T}$ac_cv_search_tgetent" >&6
5710if test "$ac_cv_search_tgetent" != no; then
5711 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
627af7ea 5712
06825bd1
MK
5713fi
5714
06825bd1 5715
bec39cab
AC
5716if test "$ac_cv_search_tgetent" = no; then
5717 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
5718echo "$as_me: error: no termcap library found" >&2;}
5719 { (exit 1); exit 1; }; }
8ee53726
MK
5720fi
5721
3841debe 5722
6a30b0a5
AS
5723# Check whether --with-system-readline or --without-system-readline was given.
5724if test "${with_system_readline+set}" = set; then
5725 withval="$with_system_readline"
5726
5727fi;
5728
5729if test "$with_system_readline" = yes; then
5730 READLINE=-lreadline
5731 READLINE_DEPS=
5732 READLINE_CFLAGS=
5733else
5734 READLINE='$(READLINE_DIR)/libreadline.a'
5735 READLINE_DEPS='$(READLINE)'
5736 READLINE_CFLAGS='-I$(READLINE_SRC)/..'
5737fi
5738
5739
5740
5741
5742
5c39566f
DJ
5743# Check whether --with-expat or --without-expat was given.
5744if test "${with_expat+set}" = set; then
5745 withval="$with_expat"
5746
5747else
5748 with_expat=auto
5749fi;
5750echo "$as_me:$LINENO: checking whether to use expat" >&5
5751echo $ECHO_N "checking whether to use expat... $ECHO_C" >&6
5752echo "$as_me:$LINENO: result: $with_expat" >&5
5753echo "${ECHO_T}$with_expat" >&6
5754
5755if test "${with_expat}" = no; then
5756 { echo "$as_me:$LINENO: WARNING: expat support disabled; some features may be unavailable." >&5
5757echo "$as_me: WARNING: expat support disabled; some features may be unavailable." >&2;}
5758 HAVE_LIBEXPAT=no
5759else
5760
3841debe
DJ
5761 if test "X$prefix" = "XNONE"; then
5762 acl_final_prefix="$ac_default_prefix"
5763 else
5764 acl_final_prefix="$prefix"
5765 fi
5766 if test "X$exec_prefix" = "XNONE"; then
5767 acl_final_exec_prefix='${prefix}'
5768 else
5769 acl_final_exec_prefix="$exec_prefix"
5770 fi
5771 acl_save_prefix="$prefix"
5772 prefix="$acl_final_prefix"
5773 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5774 prefix="$acl_save_prefix"
5775
5776
5777# Check whether --with-gnu-ld or --without-gnu-ld was given.
5778if test "${with_gnu_ld+set}" = set; then
5779 withval="$with_gnu_ld"
5780 test "$withval" = no || with_gnu_ld=yes
5781else
5782 with_gnu_ld=no
5783fi;
5784# Prepare PATH_SEPARATOR.
5785# The user is always right.
5786if test "${PATH_SEPARATOR+set}" != set; then
5787 echo "#! /bin/sh" >conf$$.sh
5788 echo "exit 0" >>conf$$.sh
5789 chmod +x conf$$.sh
5790 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5791 PATH_SEPARATOR=';'
5792 else
5793 PATH_SEPARATOR=:
5794 fi
5795 rm -f conf$$.sh
5796fi
5797ac_prog=ld
5798if test "$GCC" = yes; then
5799 # Check if gcc -print-prog-name=ld gives a path.
5800 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5801echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5802 case $host in
5803 *-*-mingw*)
5804 # gcc leaves a trailing carriage return which upsets mingw
5805 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5806 *)
5807 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5808 esac
5809 case $ac_prog in
5810 # Accept absolute paths.
5811 [\\/]* | [A-Za-z]:[\\/]*)
5812 re_direlt='/[^/][^/]*/\.\./'
5813 # Canonicalize the path of ld
5814 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5815 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5816 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5817 done
5818 test -z "$LD" && LD="$ac_prog"
5819 ;;
5820 "")
5821 # If it fails, then pretend we aren't using GCC.
5822 ac_prog=ld
5823 ;;
5824 *)
5825 # If it is relative, then search for the first ld in PATH.
5826 with_gnu_ld=unknown
5827 ;;
5828 esac
5829elif test "$with_gnu_ld" = yes; then
5830 echo "$as_me:$LINENO: checking for GNU ld" >&5
5831echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5832else
5833 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5834echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5835fi
5836if test "${acl_cv_path_LD+set}" = set; then
5837 echo $ECHO_N "(cached) $ECHO_C" >&6
5838else
5839 if test -z "$LD"; then
5840 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5841 for ac_dir in $PATH; do
5842 test -z "$ac_dir" && ac_dir=.
5843 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5844 acl_cv_path_LD="$ac_dir/$ac_prog"
5845 # Check to see if the program is GNU ld. I'd rather use --version,
5846 # but apparently some GNU ld's only accept -v.
5847 # Break only if it was the GNU/non-GNU ld that we prefer.
5848 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5849 test "$with_gnu_ld" != no && break
5850 else
5851 test "$with_gnu_ld" != yes && break
5852 fi
5853 fi
5854 done
5855 IFS="$ac_save_ifs"
5856else
5857 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5858fi
5859fi
5860
5861LD="$acl_cv_path_LD"
5862if test -n "$LD"; then
5863 echo "$as_me:$LINENO: result: $LD" >&5
5864echo "${ECHO_T}$LD" >&6
5865else
5866 echo "$as_me:$LINENO: result: no" >&5
5867echo "${ECHO_T}no" >&6
5868fi
5869test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5870echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5871 { (exit 1); exit 1; }; }
5872echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5873echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5874if test "${acl_cv_prog_gnu_ld+set}" = set; then
5875 echo $ECHO_N "(cached) $ECHO_C" >&6
5876else
5877 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5878if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5879 acl_cv_prog_gnu_ld=yes
5880else
5881 acl_cv_prog_gnu_ld=no
5882fi
5883fi
5884echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5885echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5886with_gnu_ld=$acl_cv_prog_gnu_ld
5887
5888
5889
5890 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5891echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5892if test "${acl_cv_rpath+set}" = set; then
5893 echo $ECHO_N "(cached) $ECHO_C" >&6
5894else
5895
5896 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5897 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5898 . ./conftest.sh
5899 rm -f ./conftest.sh
5900 acl_cv_rpath=done
5901
5902fi
5903echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5904echo "${ECHO_T}$acl_cv_rpath" >&6
5905 wl="$acl_cv_wl"
5906 libext="$acl_cv_libext"
5907 shlibext="$acl_cv_shlibext"
5908 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5909 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5910 hardcode_direct="$acl_cv_hardcode_direct"
5911 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5912 # Check whether --enable-rpath or --disable-rpath was given.
5913if test "${enable_rpath+set}" = set; then
5914 enableval="$enable_rpath"
5915 :
5916else
5917 enable_rpath=yes
5918fi;
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928 use_additional=yes
5929
5930 acl_save_prefix="$prefix"
5931 prefix="$acl_final_prefix"
5932 acl_save_exec_prefix="$exec_prefix"
5933 exec_prefix="$acl_final_exec_prefix"
5934
5935 eval additional_includedir=\"$includedir\"
5936 eval additional_libdir=\"$libdir\"
5937
5938 exec_prefix="$acl_save_exec_prefix"
5939 prefix="$acl_save_prefix"
5940
5941
5942# Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
5943if test "${with_libexpat_prefix+set}" = set; then
5944 withval="$with_libexpat_prefix"
5945
5946 if test "X$withval" = "Xno"; then
5947 use_additional=no
5948 else
5949 if test "X$withval" = "X"; then
5950
5951 acl_save_prefix="$prefix"
5952 prefix="$acl_final_prefix"
5953 acl_save_exec_prefix="$exec_prefix"
5954 exec_prefix="$acl_final_exec_prefix"
5955
5956 eval additional_includedir=\"$includedir\"
5957 eval additional_libdir=\"$libdir\"
5958
5959 exec_prefix="$acl_save_exec_prefix"
5960 prefix="$acl_save_prefix"
5961
5962 else
5963 additional_includedir="$withval/include"
5964 additional_libdir="$withval/lib"
5965 fi
5966 fi
5967
5968fi;
5969 LIBEXPAT=
5970 LTLIBEXPAT=
5971 INCEXPAT=
5972 rpathdirs=
5973 ltrpathdirs=
5974 names_already_handled=
5975 names_next_round='expat '
5976 while test -n "$names_next_round"; do
5977 names_this_round="$names_next_round"
5978 names_next_round=
5979 for name in $names_this_round; do
5980 already_handled=
5981 for n in $names_already_handled; do
5982 if test "$n" = "$name"; then
5983 already_handled=yes
5984 break
5985 fi
5986 done
5987 if test -z "$already_handled"; then
5988 names_already_handled="$names_already_handled $name"
5989 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5990 eval value=\"\$HAVE_LIB$uppername\"
5991 if test -n "$value"; then
5992 if test "$value" = yes; then
5993 eval value=\"\$LIB$uppername\"
5994 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
5995 eval value=\"\$LTLIB$uppername\"
5996 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
5997 else
5998 :
5999 fi
6000 else
6001 found_dir=
6002 found_la=
6003 found_so=
6004 found_a=
6005 if test $use_additional = yes; then
6006 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6007 found_dir="$additional_libdir"
6008 found_so="$additional_libdir/lib$name.$shlibext"
6009 if test -f "$additional_libdir/lib$name.la"; then
6010 found_la="$additional_libdir/lib$name.la"
6011 fi
6012 else
6013 if test -f "$additional_libdir/lib$name.$libext"; then
6014 found_dir="$additional_libdir"
6015 found_a="$additional_libdir/lib$name.$libext"
6016 if test -f "$additional_libdir/lib$name.la"; then
6017 found_la="$additional_libdir/lib$name.la"
6018 fi
6019 fi
6020 fi
6021 fi
6022 if test "X$found_dir" = "X"; then
6023 for x in $LDFLAGS $LTLIBEXPAT; do
6024
6025 acl_save_prefix="$prefix"
6026 prefix="$acl_final_prefix"
6027 acl_save_exec_prefix="$exec_prefix"
6028 exec_prefix="$acl_final_exec_prefix"
6029 eval x=\"$x\"
6030 exec_prefix="$acl_save_exec_prefix"
6031 prefix="$acl_save_prefix"
6032
6033 case "$x" in
6034 -L*)
6035 dir=`echo "X$x" | sed -e 's/^X-L//'`
6036 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6037 found_dir="$dir"
6038 found_so="$dir/lib$name.$shlibext"
6039 if test -f "$dir/lib$name.la"; then
6040 found_la="$dir/lib$name.la"
6041 fi
6042 else
6043 if test -f "$dir/lib$name.$libext"; then
6044 found_dir="$dir"
6045 found_a="$dir/lib$name.$libext"
6046 if test -f "$dir/lib$name.la"; then
6047 found_la="$dir/lib$name.la"
6048 fi
6049 fi
6050 fi
6051 ;;
6052 esac
6053 if test "X$found_dir" != "X"; then
6054 break
6055 fi
6056 done
6057 fi
6058 if test "X$found_dir" != "X"; then
6059 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
6060 if test "X$found_so" != "X"; then
6061 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6062 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6063 else
6064 haveit=
6065 for x in $ltrpathdirs; do
6066 if test "X$x" = "X$found_dir"; then
6067 haveit=yes
6068 break
6069 fi
6070 done
6071 if test -z "$haveit"; then
6072 ltrpathdirs="$ltrpathdirs $found_dir"
6073 fi
6074 if test "$hardcode_direct" = yes; then
6075 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6076 else
6077 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6078 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6079 haveit=
6080 for x in $rpathdirs; do
6081 if test "X$x" = "X$found_dir"; then
6082 haveit=yes
6083 break
6084 fi
6085 done
6086 if test -z "$haveit"; then
6087 rpathdirs="$rpathdirs $found_dir"
6088 fi
6089 else
6090 haveit=
6091 for x in $LDFLAGS $LIBEXPAT; do
6092
6093 acl_save_prefix="$prefix"
6094 prefix="$acl_final_prefix"
6095 acl_save_exec_prefix="$exec_prefix"
6096 exec_prefix="$acl_final_exec_prefix"
6097 eval x=\"$x\"
6098 exec_prefix="$acl_save_exec_prefix"
6099 prefix="$acl_save_prefix"
6100
6101 if test "X$x" = "X-L$found_dir"; then
6102 haveit=yes
6103 break
6104 fi
6105 done
6106 if test -z "$haveit"; then
6107 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
6108 fi
6109 if test "$hardcode_minus_L" != no; then
6110 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6111 else
6112 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
6113 fi
6114 fi
6115 fi
6116 fi
6117 else
6118 if test "X$found_a" != "X"; then
6119 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
6120 else
6121 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
6122 fi
6123 fi
6124 additional_includedir=
6125 case "$found_dir" in
6126 */lib | */lib/)
6127 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6128 additional_includedir="$basedir/include"
6129 ;;
6130 esac
6131 if test "X$additional_includedir" != "X"; then
6132 if test "X$additional_includedir" != "X/usr/include"; then
6133 haveit=
6134 if test "X$additional_includedir" = "X/usr/local/include"; then
6135 if test -n "$GCC"; then
6136 case $host_os in
6137 linux*) haveit=yes;;
6138 esac
6139 fi
6140 fi
6141 if test -z "$haveit"; then
6142 for x in $CPPFLAGS $INCEXPAT; do
6143
6144 acl_save_prefix="$prefix"
6145 prefix="$acl_final_prefix"
6146 acl_save_exec_prefix="$exec_prefix"
6147 exec_prefix="$acl_final_exec_prefix"
6148 eval x=\"$x\"
6149 exec_prefix="$acl_save_exec_prefix"
6150 prefix="$acl_save_prefix"
6151
6152 if test "X$x" = "X-I$additional_includedir"; then
6153 haveit=yes
6154 break
6155 fi
6156 done
6157 if test -z "$haveit"; then
6158 if test -d "$additional_includedir"; then
6159 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
6160 fi
6161 fi
6162 fi
6163 fi
6164 fi
6165 if test -n "$found_la"; then
6166 save_libdir="$libdir"
6167 case "$found_la" in
6168 */* | *\\*) . "$found_la" ;;
6169 *) . "./$found_la" ;;
6170 esac
6171 libdir="$save_libdir"
6172 for dep in $dependency_libs; do
6173 case "$dep" in
6174 -L*)
6175 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6176 if test "X$additional_libdir" != "X/usr/lib"; then
6177 haveit=
6178 if test "X$additional_libdir" = "X/usr/local/lib"; then
6179 if test -n "$GCC"; then
6180 case $host_os in
6181 linux*) haveit=yes;;
6182 esac
6183 fi
6184 fi
6185 if test -z "$haveit"; then
6186 haveit=
6187 for x in $LDFLAGS $LIBEXPAT; do
6188
6189 acl_save_prefix="$prefix"
6190 prefix="$acl_final_prefix"
6191 acl_save_exec_prefix="$exec_prefix"
6192 exec_prefix="$acl_final_exec_prefix"
6193 eval x=\"$x\"
6194 exec_prefix="$acl_save_exec_prefix"
6195 prefix="$acl_save_prefix"
6196
6197 if test "X$x" = "X-L$additional_libdir"; then
6198 haveit=yes
6199 break
6200 fi
6201 done
6202 if test -z "$haveit"; then
6203 if test -d "$additional_libdir"; then
6204 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
6205 fi
6206 fi
6207 haveit=
6208 for x in $LDFLAGS $LTLIBEXPAT; do
6209
6210 acl_save_prefix="$prefix"
6211 prefix="$acl_final_prefix"
6212 acl_save_exec_prefix="$exec_prefix"
6213 exec_prefix="$acl_final_exec_prefix"
6214 eval x=\"$x\"
6215 exec_prefix="$acl_save_exec_prefix"
6216 prefix="$acl_save_prefix"
6217
6218 if test "X$x" = "X-L$additional_libdir"; then
6219 haveit=yes
6220 break
6221 fi
6222 done
6223 if test -z "$haveit"; then
6224 if test -d "$additional_libdir"; then
6225 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
6226 fi
6227 fi
6228 fi
6229 fi
6230 ;;
6231 -R*)
6232 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6233 if test "$enable_rpath" != no; then
6234 haveit=
6235 for x in $rpathdirs; do
6236 if test "X$x" = "X$dir"; then
6237 haveit=yes
6238 break
6239 fi
6240 done
6241 if test -z "$haveit"; then
6242 rpathdirs="$rpathdirs $dir"
6243 fi
6244 haveit=
6245 for x in $ltrpathdirs; do
6246 if test "X$x" = "X$dir"; then
6247 haveit=yes
6248 break
6249 fi
6250 done
6251 if test -z "$haveit"; then
6252 ltrpathdirs="$ltrpathdirs $dir"
6253 fi
6254 fi
6255 ;;
6256 -l*)
6257 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6258 ;;
6259 *.la)
6260 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6261 ;;
6262 *)
6263 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
6264 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
6265 ;;
6266 esac
6267 done
6268 fi
6269 else
6270 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
6271 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
6272 fi
6273 fi
6274 fi
6275 done
6276 done
6277 if test "X$rpathdirs" != "X"; then
6278 if test -n "$hardcode_libdir_separator"; then
6279 alldirs=
6280 for found_dir in $rpathdirs; do
6281 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6282 done
6283 acl_save_libdir="$libdir"
6284 libdir="$alldirs"
6285 eval flag=\"$hardcode_libdir_flag_spec\"
6286 libdir="$acl_save_libdir"
6287 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
6288 else
6289 for found_dir in $rpathdirs; do
6290 acl_save_libdir="$libdir"
6291 libdir="$found_dir"
6292 eval flag=\"$hardcode_libdir_flag_spec\"
6293 libdir="$acl_save_libdir"
6294 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
6295 done
6296 fi
6297 fi
6298 if test "X$ltrpathdirs" != "X"; then
6299 for found_dir in $ltrpathdirs; do
6300 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
6301 done
6302 fi
6303
6304
6305 ac_save_CPPFLAGS="$CPPFLAGS"
6306
6307 for element in $INCEXPAT; do
6308 haveit=
6309 for x in $CPPFLAGS; do
6310
6311 acl_save_prefix="$prefix"
6312 prefix="$acl_final_prefix"
6313 acl_save_exec_prefix="$exec_prefix"
6314 exec_prefix="$acl_final_exec_prefix"
6315 eval x=\"$x\"
6316 exec_prefix="$acl_save_exec_prefix"
6317 prefix="$acl_save_prefix"
6318
6319 if test "X$x" = "X$element"; then
6320 haveit=yes
6321 break
6322 fi
6323 done
6324 if test -z "$haveit"; then
6325 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6326 fi
6327 done
6328
6329
6330 echo "$as_me:$LINENO: checking for libexpat" >&5
6331echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
6332if test "${ac_cv_libexpat+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6334else
6335
6336 ac_save_LIBS="$LIBS"
6337 LIBS="$LIBS $LIBEXPAT"
6338 cat >conftest.$ac_ext <<_ACEOF
6339/* confdefs.h. */
6340_ACEOF
6341cat confdefs.h >>conftest.$ac_ext
6342cat >>conftest.$ac_ext <<_ACEOF
6343/* end confdefs.h. */
6344#include "expat.h"
6345int
6346main ()
6347{
6348XML_Parser p = XML_ParserCreate (0);
6349 ;
6350 return 0;
6351}
6352_ACEOF
6353rm -f conftest.$ac_objext conftest$ac_exeext
6354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6355 (eval $ac_link) 2>conftest.er1
6356 ac_status=$?
6357 grep -v '^ *+' conftest.er1 >conftest.err
6358 rm -f conftest.er1
6359 cat conftest.err >&5
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); } &&
6362 { ac_try='test -z "$ac_c_werror_flag"
6363 || test ! -s conftest.err'
6364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6365 (eval $ac_try) 2>&5
6366 ac_status=$?
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); }; } &&
6369 { ac_try='test -s conftest$ac_exeext'
6370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6371 (eval $ac_try) 2>&5
6372 ac_status=$?
6373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); }; }; then
6375 ac_cv_libexpat=yes
6376else
6377 echo "$as_me: failed program was:" >&5
6378sed 's/^/| /' conftest.$ac_ext >&5
6379
6380ac_cv_libexpat=no
6381fi
6382rm -f conftest.err conftest.$ac_objext \
6383 conftest$ac_exeext conftest.$ac_ext
6384 LIBS="$ac_save_LIBS"
6385
6386fi
6387echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
6388echo "${ECHO_T}$ac_cv_libexpat" >&6
6389 if test "$ac_cv_libexpat" = yes; then
6390 HAVE_LIBEXPAT=yes
6391
6392cat >>confdefs.h <<\_ACEOF
6393#define HAVE_LIBEXPAT 1
6394_ACEOF
6395
6396 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
6397echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
6398 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
6399echo "${ECHO_T}$LIBEXPAT" >&6
6400 else
6401 HAVE_LIBEXPAT=no
6402 CPPFLAGS="$ac_save_CPPFLAGS"
6403 LIBEXPAT=
6404 LTLIBEXPAT=
6405 fi
6406
6407
6408
6409
6410
6411
5c39566f
DJ
6412 if test "$HAVE_LIBEXPAT" != yes; then
6413 if test "$with_expat" = yes; then
6414 { { echo "$as_me:$LINENO: error: expat is missing or unusable" >&5
6415echo "$as_me: error: expat is missing or unusable" >&2;}
6416 { (exit 1); exit 1; }; }
6417 else
6418 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be unavailable." >&5
6419echo "$as_me: WARNING: expat is missing or unusable; some features may be unavailable." >&2;}
6420 fi
6421 else
6422 save_LIBS=$LIBS
6423 LIBS="$LIBS $LIBEXPAT"
ca4ca11e
DJ
6424
6425for ac_func in XML_StopParser
6426do
6427as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6428echo "$as_me:$LINENO: checking for $ac_func" >&5
6429echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6430if eval "test \"\${$as_ac_var+set}\" = set"; then
6431 echo $ECHO_N "(cached) $ECHO_C" >&6
6432else
6433 cat >conftest.$ac_ext <<_ACEOF
6434/* confdefs.h. */
6435_ACEOF
6436cat confdefs.h >>conftest.$ac_ext
6437cat >>conftest.$ac_ext <<_ACEOF
6438/* end confdefs.h. */
6439/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6441#define $ac_func innocuous_$ac_func
6442
6443/* System header to define __stub macros and hopefully few prototypes,
6444 which can conflict with char $ac_func (); below.
6445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6446 <limits.h> exists even on freestanding compilers. */
6447
6448#ifdef __STDC__
6449# include <limits.h>
6450#else
6451# include <assert.h>
6452#endif
6453
6454#undef $ac_func
6455
6456/* Override any gcc2 internal prototype to avoid an error. */
6457#ifdef __cplusplus
6458extern "C"
6459{
6460#endif
6461/* We use char because int might match the return type of a gcc2
6462 builtin and then its argument prototype would still apply. */
6463char $ac_func ();
6464/* The GNU C library defines this for functions which it implements
6465 to always fail with ENOSYS. Some functions are actually named
6466 something starting with __ and the normal name is an alias. */
6467#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6468choke me
6469#else
6470char (*f) () = $ac_func;
6471#endif
6472#ifdef __cplusplus
6473}
6474#endif
6475
6476int
6477main ()
6478{
6479return f != $ac_func;
6480 ;
6481 return 0;
6482}
6483_ACEOF
6484rm -f conftest.$ac_objext conftest$ac_exeext
6485if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6486 (eval $ac_link) 2>conftest.er1
6487 ac_status=$?
6488 grep -v '^ *+' conftest.er1 >conftest.err
6489 rm -f conftest.er1
6490 cat conftest.err >&5
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); } &&
6493 { ac_try='test -z "$ac_c_werror_flag"
6494 || test ! -s conftest.err'
6495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6496 (eval $ac_try) 2>&5
6497 ac_status=$?
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); }; } &&
6500 { ac_try='test -s conftest$ac_exeext'
6501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6502 (eval $ac_try) 2>&5
6503 ac_status=$?
6504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 (exit $ac_status); }; }; then
6506 eval "$as_ac_var=yes"
6507else
6508 echo "$as_me: failed program was:" >&5
6509sed 's/^/| /' conftest.$ac_ext >&5
6510
6511eval "$as_ac_var=no"
6512fi
6513rm -f conftest.err conftest.$ac_objext \
6514 conftest$ac_exeext conftest.$ac_ext
6515fi
6516echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6517echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6518if test `eval echo '${'$as_ac_var'}'` = yes; then
6519 cat >>confdefs.h <<_ACEOF
6520#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6521_ACEOF
6522
6523fi
6524done
6525
5c39566f
DJ
6526 LIBS=$save_LIBS
6527 fi
3841debe
DJ
6528fi
6529
bec39cab
AC
6530# ------------------------- #
6531# Checks for header files. #
6532# ------------------------- #
8ee53726 6533
0e5d83e3 6534
bec39cab
AC
6535
6536
6537
6538
6539ac_header_dirent=no
6540for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6541 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
b4e70030
JB
6542echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6543echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6544if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
6545 echo $ECHO_N "(cached) $ECHO_C" >&6
6546else
6547 cat >conftest.$ac_ext <<_ACEOF
6548/* confdefs.h. */
6549_ACEOF
6550cat confdefs.h >>conftest.$ac_ext
6551cat >>conftest.$ac_ext <<_ACEOF
6552/* end confdefs.h. */
6553#include <sys/types.h>
0e5d83e3 6554#include <$ac_hdr>
bec39cab
AC
6555
6556int
6557main ()
6558{
6559if ((DIR *) 0)
6560return 0;
6561 ;
6562 return 0;
6563}
6564_ACEOF
6565rm -f conftest.$ac_objext
6566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6567 (eval $ac_compile) 2>conftest.er1
6568 ac_status=$?
6569 grep -v '^ *+' conftest.er1 >conftest.err
6570 rm -f conftest.er1
6571 cat conftest.err >&5
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); } &&
b4e70030
JB
6574 { ac_try='test -z "$ac_c_werror_flag"
6575 || test ! -s conftest.err'
bec39cab
AC
6576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6577 (eval $ac_try) 2>&5
6578 ac_status=$?
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); }; } &&
6581 { ac_try='test -s conftest.$ac_objext'
6582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6583 (eval $ac_try) 2>&5
6584 ac_status=$?
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); }; }; then
6587 eval "$as_ac_Header=yes"
6588else
6589 echo "$as_me: failed program was:" >&5
6590sed 's/^/| /' conftest.$ac_ext >&5
6591
b4e70030 6592eval "$as_ac_Header=no"
bec39cab
AC
6593fi
6594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6595fi
b4e70030
JB
6596echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6597echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
6598if test `eval echo '${'$as_ac_Header'}'` = yes; then
6599 cat >>confdefs.h <<_ACEOF
6600#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6601_ACEOF
6602
6603ac_header_dirent=$ac_hdr; break
0e5d83e3 6604fi
0e5d83e3 6605
bec39cab
AC
6606done
6607# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6608if test $ac_header_dirent = dirent.h; then
b4e70030
JB
6609 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6610echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
bec39cab
AC
6611if test "${ac_cv_search_opendir+set}" = set; then
6612 echo $ECHO_N "(cached) $ECHO_C" >&6
6613else
6614 ac_func_search_save_LIBS=$LIBS
b4e70030 6615ac_cv_search_opendir=no
bec39cab
AC
6616cat >conftest.$ac_ext <<_ACEOF
6617/* confdefs.h. */
6618_ACEOF
6619cat confdefs.h >>conftest.$ac_ext
6620cat >>conftest.$ac_ext <<_ACEOF
6621/* end confdefs.h. */
0e5d83e3 6622
b4e70030 6623/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
6624#ifdef __cplusplus
6625extern "C"
6626#endif
b4e70030
JB
6627/* We use char because int might match the return type of a gcc2
6628 builtin and then its argument prototype would still apply. */
bec39cab
AC
6629char opendir ();
6630int
6631main ()
6632{
b4e70030 6633opendir ();
bec39cab
AC
6634 ;
6635 return 0;
6636}
6637_ACEOF
b4e70030 6638rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
6639if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6640 (eval $ac_link) 2>conftest.er1
6641 ac_status=$?
6642 grep -v '^ *+' conftest.er1 >conftest.err
6643 rm -f conftest.er1
6644 cat conftest.err >&5
6645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); } &&
b4e70030
JB
6647 { ac_try='test -z "$ac_c_werror_flag"
6648 || test ! -s conftest.err'
bec39cab
AC
6649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6650 (eval $ac_try) 2>&5
6651 ac_status=$?
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); }; } &&
6654 { ac_try='test -s conftest$ac_exeext'
6655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6656 (eval $ac_try) 2>&5
6657 ac_status=$?
6658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6659 (exit $ac_status); }; }; then
b4e70030 6660 ac_cv_search_opendir="none required"
bec39cab
AC
6661else
6662 echo "$as_me: failed program was:" >&5
6663sed 's/^/| /' conftest.$ac_ext >&5
6664
6665fi
bec39cab 6666rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
6667 conftest$ac_exeext conftest.$ac_ext
6668if test "$ac_cv_search_opendir" = no; then
6669 for ac_lib in dir; do
6670 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6671 cat >conftest.$ac_ext <<_ACEOF
6672/* confdefs.h. */
6673_ACEOF
6674cat confdefs.h >>conftest.$ac_ext
6675cat >>conftest.$ac_ext <<_ACEOF
6676/* end confdefs.h. */
6677
6678/* Override any gcc2 internal prototype to avoid an error. */
6679#ifdef __cplusplus
6680extern "C"
6681#endif
6682/* We use char because int might match the return type of a gcc2
6683 builtin and then its argument prototype would still apply. */
6684char opendir ();
6685int
6686main ()
6687{
6688opendir ();
6689 ;
6690 return 0;
6691}
6692_ACEOF
6693rm -f conftest.$ac_objext conftest$ac_exeext
6694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6695 (eval $ac_link) 2>conftest.er1
6696 ac_status=$?
6697 grep -v '^ *+' conftest.er1 >conftest.err
6698 rm -f conftest.er1
6699 cat conftest.err >&5
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); } &&
6702 { ac_try='test -z "$ac_c_werror_flag"
6703 || test ! -s conftest.err'
6704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6705 (eval $ac_try) 2>&5
6706 ac_status=$?
6707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708 (exit $ac_status); }; } &&
6709 { ac_try='test -s conftest$ac_exeext'
6710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711 (eval $ac_try) 2>&5
6712 ac_status=$?
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); }; }; then
6715 ac_cv_search_opendir="-l$ac_lib"
6716break
4e8d927d 6717else
b4e70030
JB
6718 echo "$as_me: failed program was:" >&5
6719sed 's/^/| /' conftest.$ac_ext >&5
6720
6721fi
6722rm -f conftest.err conftest.$ac_objext \
6723 conftest$ac_exeext conftest.$ac_ext
6724 done
0e5d83e3 6725fi
bec39cab 6726LIBS=$ac_func_search_save_LIBS
0e5d83e3 6727fi
b4e70030
JB
6728echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6729echo "${ECHO_T}$ac_cv_search_opendir" >&6
6730if test "$ac_cv_search_opendir" != no; then
6731 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
0e5d83e3 6732
0e5d83e3
JJ
6733fi
6734
d28f9cdf 6735else
b4e70030
JB
6736 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6737echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
bec39cab
AC
6738if test "${ac_cv_search_opendir+set}" = set; then
6739 echo $ECHO_N "(cached) $ECHO_C" >&6
6740else
6741 ac_func_search_save_LIBS=$LIBS
b4e70030 6742ac_cv_search_opendir=no
bec39cab
AC
6743cat >conftest.$ac_ext <<_ACEOF
6744/* confdefs.h. */
6745_ACEOF
6746cat confdefs.h >>conftest.$ac_ext
6747cat >>conftest.$ac_ext <<_ACEOF
6748/* end confdefs.h. */
d28f9cdf 6749
b4e70030 6750/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
6751#ifdef __cplusplus
6752extern "C"
d28f9cdf 6753#endif
b4e70030
JB
6754/* We use char because int might match the return type of a gcc2
6755 builtin and then its argument prototype would still apply. */
bec39cab
AC
6756char opendir ();
6757int
6758main ()
6759{
b4e70030 6760opendir ();
bec39cab
AC
6761 ;
6762 return 0;
6763}
6764_ACEOF
b4e70030 6765rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
6766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6767 (eval $ac_link) 2>conftest.er1
6768 ac_status=$?
6769 grep -v '^ *+' conftest.er1 >conftest.err
6770 rm -f conftest.er1
6771 cat conftest.err >&5
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); } &&
b4e70030
JB
6774 { ac_try='test -z "$ac_c_werror_flag"
6775 || test ! -s conftest.err'
bec39cab
AC
6776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777 (eval $ac_try) 2>&5
6778 ac_status=$?
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); }; } &&
6781 { ac_try='test -s conftest$ac_exeext'
6782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6783 (eval $ac_try) 2>&5
6784 ac_status=$?
6785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); }; }; then
b4e70030 6787 ac_cv_search_opendir="none required"
d28f9cdf 6788else
bec39cab
AC
6789 echo "$as_me: failed program was:" >&5
6790sed 's/^/| /' conftest.$ac_ext >&5
6791
d28f9cdf 6792fi
bec39cab 6793rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
6794 conftest$ac_exeext conftest.$ac_ext
6795if test "$ac_cv_search_opendir" = no; then
6796 for ac_lib in x; do
6797 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6798 cat >conftest.$ac_ext <<_ACEOF
6799/* confdefs.h. */
6800_ACEOF
6801cat confdefs.h >>conftest.$ac_ext
6802cat >>conftest.$ac_ext <<_ACEOF
6803/* end confdefs.h. */
6804
6805/* Override any gcc2 internal prototype to avoid an error. */
6806#ifdef __cplusplus
6807extern "C"
6808#endif
6809/* We use char because int might match the return type of a gcc2
6810 builtin and then its argument prototype would still apply. */
6811char opendir ();
6812int
6813main ()
6814{
6815opendir ();
6816 ;
6817 return 0;
6818}
6819_ACEOF
6820rm -f conftest.$ac_objext conftest$ac_exeext
6821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6822 (eval $ac_link) 2>conftest.er1
6823 ac_status=$?
6824 grep -v '^ *+' conftest.er1 >conftest.err
6825 rm -f conftest.er1
6826 cat conftest.err >&5
6827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828 (exit $ac_status); } &&
6829 { ac_try='test -z "$ac_c_werror_flag"
6830 || test ! -s conftest.err'
6831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6832 (eval $ac_try) 2>&5
6833 ac_status=$?
6834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6835 (exit $ac_status); }; } &&
6836 { ac_try='test -s conftest$ac_exeext'
6837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6838 (eval $ac_try) 2>&5
6839 ac_status=$?
6840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 (exit $ac_status); }; }; then
6842 ac_cv_search_opendir="-l$ac_lib"
6843break
4e8d927d 6844else
b4e70030
JB
6845 echo "$as_me: failed program was:" >&5
6846sed 's/^/| /' conftest.$ac_ext >&5
6847
6848fi
6849rm -f conftest.err conftest.$ac_objext \
6850 conftest$ac_exeext conftest.$ac_ext
6851 done
bec39cab
AC
6852fi
6853LIBS=$ac_func_search_save_LIBS
d28f9cdf 6854fi
b4e70030
JB
6855echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6856echo "${ECHO_T}$ac_cv_search_opendir" >&6
6857if test "$ac_cv_search_opendir" != no; then
6858 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
d28f9cdf 6859
d28f9cdf
DJ
6860fi
6861
bec39cab 6862fi
b0b1c2c0 6863
b4e70030
JB
6864echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6865echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
bec39cab
AC
6866if test "${ac_cv_header_stat_broken+set}" = set; then
6867 echo $ECHO_N "(cached) $ECHO_C" >&6
b0b1c2c0 6868else
bec39cab
AC
6869 cat >conftest.$ac_ext <<_ACEOF
6870/* confdefs.h. */
6871_ACEOF
6872cat confdefs.h >>conftest.$ac_ext
6873cat >>conftest.$ac_ext <<_ACEOF
6874/* end confdefs.h. */
6875#include <sys/types.h>
6876#include <sys/stat.h>
b0b1c2c0 6877
b4e70030 6878#if defined(S_ISBLK) && defined(S_IFDIR)
bec39cab
AC
6879# if S_ISBLK (S_IFDIR)
6880You lose.
6881# endif
6882#endif
b0b1c2c0 6883
b4e70030 6884#if defined(S_ISBLK) && defined(S_IFCHR)
bec39cab
AC
6885# if S_ISBLK (S_IFCHR)
6886You lose.
6887# endif
6888#endif
d28f9cdf 6889
b4e70030 6890#if defined(S_ISLNK) && defined(S_IFREG)
bec39cab
AC
6891# if S_ISLNK (S_IFREG)
6892You lose.
6893# endif
6894#endif
d28f9cdf 6895
b4e70030 6896#if defined(S_ISSOCK) && defined(S_IFREG)
bec39cab
AC
6897# if S_ISSOCK (S_IFREG)
6898You lose.
6899# endif
6900#endif
6901
6902_ACEOF
6903if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6904 $EGREP "You lose" >/dev/null 2>&1; then
6905 ac_cv_header_stat_broken=yes
d28f9cdf 6906else
bec39cab 6907 ac_cv_header_stat_broken=no
d28f9cdf
DJ
6908fi
6909rm -f conftest*
d28f9cdf 6910
d28f9cdf 6911fi
b4e70030
JB
6912echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6913echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
bec39cab 6914if test $ac_cv_header_stat_broken = yes; then
d28f9cdf 6915
bec39cab
AC
6916cat >>confdefs.h <<\_ACEOF
6917#define STAT_MACROS_BROKEN 1
6918_ACEOF
8bb2c122 6919
7a292a7a 6920fi
bec39cab 6921
b4e70030
JB
6922echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6923echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
bec39cab
AC
6924if test "${ac_cv_header_stdc+set}" = set; then
6925 echo $ECHO_N "(cached) $ECHO_C" >&6
7a292a7a 6926else
bec39cab
AC
6927 cat >conftest.$ac_ext <<_ACEOF
6928/* confdefs.h. */
6929_ACEOF
6930cat confdefs.h >>conftest.$ac_ext
6931cat >>conftest.$ac_ext <<_ACEOF
6932/* end confdefs.h. */
6933#include <stdlib.h>
6934#include <stdarg.h>
6935#include <string.h>
6936#include <float.h>
7a292a7a 6937
bec39cab
AC
6938int
6939main ()
6940{
7a292a7a 6941
bec39cab
AC
6942 ;
6943 return 0;
6944}
6945_ACEOF
6946rm -f conftest.$ac_objext
6947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6948 (eval $ac_compile) 2>conftest.er1
6949 ac_status=$?
6950 grep -v '^ *+' conftest.er1 >conftest.err
6951 rm -f conftest.er1
6952 cat conftest.err >&5
6953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954 (exit $ac_status); } &&
b4e70030
JB
6955 { ac_try='test -z "$ac_c_werror_flag"
6956 || test ! -s conftest.err'
bec39cab
AC
6957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6958 (eval $ac_try) 2>&5
6959 ac_status=$?
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); }; } &&
6962 { ac_try='test -s conftest.$ac_objext'
6963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6964 (eval $ac_try) 2>&5
6965 ac_status=$?
6966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967 (exit $ac_status); }; }; then
6968 ac_cv_header_stdc=yes
c906108c 6969else
bec39cab
AC
6970 echo "$as_me: failed program was:" >&5
6971sed 's/^/| /' conftest.$ac_ext >&5
c906108c 6972
b4e70030 6973ac_cv_header_stdc=no
c906108c 6974fi
bec39cab 6975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 6976
bec39cab
AC
6977if test $ac_cv_header_stdc = yes; then
6978 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6979 cat >conftest.$ac_ext <<_ACEOF
6980/* confdefs.h. */
6981_ACEOF
6982cat confdefs.h >>conftest.$ac_ext
6983cat >>conftest.$ac_ext <<_ACEOF
6984/* end confdefs.h. */
6985#include <string.h>
c906108c 6986
bec39cab
AC
6987_ACEOF
6988if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6989 $EGREP "memchr" >/dev/null 2>&1; then
6990 :
8bb2c122 6991else
bec39cab 6992 ac_cv_header_stdc=no
8bb2c122 6993fi
bec39cab
AC
6994rm -f conftest*
6995
c906108c
SS
6996fi
6997
bec39cab
AC
6998if test $ac_cv_header_stdc = yes; then
6999 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7000 cat >conftest.$ac_ext <<_ACEOF
7001/* confdefs.h. */
7002_ACEOF
7003cat confdefs.h >>conftest.$ac_ext
7004cat >>conftest.$ac_ext <<_ACEOF
7005/* end confdefs.h. */
7006#include <stdlib.h>
7007
7008_ACEOF
7009if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7010 $EGREP "free" >/dev/null 2>&1; then
7011 :
c906108c 7012else
bec39cab 7013 ac_cv_header_stdc=no
c906108c 7014fi
bec39cab
AC
7015rm -f conftest*
7016
c906108c
SS
7017fi
7018
bec39cab
AC
7019if test $ac_cv_header_stdc = yes; then
7020 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7021 if test "$cross_compiling" = yes; then
7022 :
c906108c 7023else
bec39cab
AC
7024 cat >conftest.$ac_ext <<_ACEOF
7025/* confdefs.h. */
7026_ACEOF
7027cat confdefs.h >>conftest.$ac_ext
7028cat >>conftest.$ac_ext <<_ACEOF
7029/* end confdefs.h. */
7030#include <ctype.h>
7031#if ((' ' & 0x0FF) == 0x020)
7032# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7033# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7034#else
7035# define ISLOWER(c) \
7036 (('a' <= (c) && (c) <= 'i') \
7037 || ('j' <= (c) && (c) <= 'r') \
7038 || ('s' <= (c) && (c) <= 'z'))
7039# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7040#endif
7041
7042#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7043int
7044main ()
7045{
7046 int i;
7047 for (i = 0; i < 256; i++)
7048 if (XOR (islower (i), ISLOWER (i))
7049 || toupper (i) != TOUPPER (i))
b4e70030
JB
7050 exit(2);
7051 exit (0);
bec39cab
AC
7052}
7053_ACEOF
7054rm -f conftest$ac_exeext
7055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7056 (eval $ac_link) 2>&5
7057 ac_status=$?
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7061 (eval $ac_try) 2>&5
7062 ac_status=$?
7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); }; }; then
7065 :
7066else
7067 echo "$as_me: program exited with status $ac_status" >&5
7068echo "$as_me: failed program was:" >&5
7069sed 's/^/| /' conftest.$ac_ext >&5
7070
7071( exit $ac_status )
7072ac_cv_header_stdc=no
c906108c 7073fi
b4e70030 7074rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 7075fi
c906108c 7076fi
bec39cab 7077fi
b4e70030
JB
7078echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7079echo "${ECHO_T}$ac_cv_header_stdc" >&6
bec39cab 7080if test $ac_cv_header_stdc = yes; then
c906108c 7081
bec39cab
AC
7082cat >>confdefs.h <<\_ACEOF
7083#define STDC_HEADERS 1
7084_ACEOF
c906108c 7085
bec39cab 7086fi
8bb2c122 7087
bec39cab 7088
7cb9022a 7089for ac_header in nlist.h
bec39cab
AC
7090do
7091as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7092if eval "test \"\${$as_ac_Header+set}\" = set"; then
7093 echo "$as_me:$LINENO: checking for $ac_header" >&5
7094echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7095if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7096 echo $ECHO_N "(cached) $ECHO_C" >&6
7097fi
b4e70030
JB
7098echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7099echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7100else
7101 # Is the header compilable?
b4e70030
JB
7102echo "$as_me:$LINENO: checking $ac_header usability" >&5
7103echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7104cat >conftest.$ac_ext <<_ACEOF
7105/* confdefs.h. */
7106_ACEOF
7107cat confdefs.h >>conftest.$ac_ext
7108cat >>conftest.$ac_ext <<_ACEOF
7109/* end confdefs.h. */
7110$ac_includes_default
7111#include <$ac_header>
7112_ACEOF
7113rm -f conftest.$ac_objext
7114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7115 (eval $ac_compile) 2>conftest.er1
7116 ac_status=$?
7117 grep -v '^ *+' conftest.er1 >conftest.err
7118 rm -f conftest.er1
7119 cat conftest.err >&5
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); } &&
b4e70030
JB
7122 { ac_try='test -z "$ac_c_werror_flag"
7123 || test ! -s conftest.err'
bec39cab
AC
7124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7125 (eval $ac_try) 2>&5
7126 ac_status=$?
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); }; } &&
7129 { ac_try='test -s conftest.$ac_objext'
7130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7131 (eval $ac_try) 2>&5
7132 ac_status=$?
7133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7134 (exit $ac_status); }; }; then
7135 ac_header_compiler=yes
7136else
7137 echo "$as_me: failed program was:" >&5
7138sed 's/^/| /' conftest.$ac_ext >&5
7139
b4e70030 7140ac_header_compiler=no
bec39cab
AC
7141fi
7142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7143echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7144echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7145
7146# Is the header present?
b4e70030
JB
7147echo "$as_me:$LINENO: checking $ac_header presence" >&5
7148echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7149cat >conftest.$ac_ext <<_ACEOF
7150/* confdefs.h. */
7151_ACEOF
7152cat confdefs.h >>conftest.$ac_ext
7153cat >>conftest.$ac_ext <<_ACEOF
7154/* end confdefs.h. */
7155#include <$ac_header>
7156_ACEOF
7157if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7158 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7159 ac_status=$?
7160 grep -v '^ *+' conftest.er1 >conftest.err
7161 rm -f conftest.er1
7162 cat conftest.err >&5
7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); } >/dev/null; then
7165 if test -s conftest.err; then
7166 ac_cpp_err=$ac_c_preproc_warn_flag
7167 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7168 else
7169 ac_cpp_err=
7170 fi
c906108c 7171else
bec39cab 7172 ac_cpp_err=yes
c906108c 7173fi
bec39cab
AC
7174if test -z "$ac_cpp_err"; then
7175 ac_header_preproc=yes
c906108c 7176else
bec39cab
AC
7177 echo "$as_me: failed program was:" >&5
7178sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 7179
bec39cab
AC
7180 ac_header_preproc=no
7181fi
7182rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7183echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7184echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 7185
bec39cab
AC
7186# So? What about this header?
7187case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7188 yes:no: )
7189 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7190echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7192echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7193 ac_header_preproc=yes
7194 ;;
7195 no:yes:* )
7196 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7197echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7198 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7199echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7200 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7201echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7202 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7203echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7205echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7206 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7207echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7208 (
7209 cat <<\_ASBOX
7210## ------------------------------------------ ##
7211## Report this to the AC_PACKAGE_NAME lists. ##
7212## ------------------------------------------ ##
7213_ASBOX
7214 ) |
7215 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7216 ;;
7217esac
b4e70030
JB
7218echo "$as_me:$LINENO: checking for $ac_header" >&5
7219echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7220if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7221 echo $ECHO_N "(cached) $ECHO_C" >&6
95ca63c4 7222else
bec39cab 7223 eval "$as_ac_Header=\$ac_header_preproc"
95ca63c4 7224fi
b4e70030
JB
7225echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7226echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 7227
95ca63c4 7228fi
bec39cab
AC
7229if test `eval echo '${'$as_ac_Header'}'` = yes; then
7230 cat >>confdefs.h <<_ACEOF
7231#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7232_ACEOF
7233
95ca63c4
CF
7234fi
7235
bec39cab 7236done
95ca63c4
CF
7237
7238
7cb9022a 7239for ac_header in link.h
bec39cab
AC
7240do
7241as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7242echo "$as_me:$LINENO: checking for $ac_header" >&5
7243echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7244if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7245 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 7246else
7cb9022a 7247 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
7248/* confdefs.h. */
7249_ACEOF
7250cat confdefs.h >>conftest.$ac_ext
7251cat >>conftest.$ac_ext <<_ACEOF
7252/* end confdefs.h. */
7cb9022a
MK
7253#if HAVE_SYS_TYPES_H
7254# include <sys/types.h>
7255#endif
7256#if HAVE_NLIST_H
7257# include <nlist.h>
7258#endif
7259
7260
bec39cab
AC
7261#include <$ac_header>
7262_ACEOF
7263rm -f conftest.$ac_objext
7264if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7265 (eval $ac_compile) 2>conftest.er1
7266 ac_status=$?
7267 grep -v '^ *+' conftest.er1 >conftest.err
7268 rm -f conftest.er1
7269 cat conftest.err >&5
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); } &&
b4e70030
JB
7272 { ac_try='test -z "$ac_c_werror_flag"
7273 || test ! -s conftest.err'
bec39cab
AC
7274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7275 (eval $ac_try) 2>&5
7276 ac_status=$?
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); }; } &&
7279 { ac_try='test -s conftest.$ac_objext'
7280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7281 (eval $ac_try) 2>&5
7282 ac_status=$?
7283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284 (exit $ac_status); }; }; then
7cb9022a 7285 eval "$as_ac_Header=yes"
bec39cab
AC
7286else
7287 echo "$as_me: failed program was:" >&5
7288sed 's/^/| /' conftest.$ac_ext >&5
7289
b4e70030 7290eval "$as_ac_Header=no"
bec39cab
AC
7291fi
7292rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 7293fi
b4e70030
JB
7294echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7295echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7296if test `eval echo '${'$as_ac_Header'}'` = yes; then
7297 cat >>confdefs.h <<_ACEOF
7298#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7299_ACEOF
95ca63c4 7300
bec39cab 7301fi
95ca63c4 7302
bec39cab 7303done
95ca63c4 7304
c906108c 7305
7cb9022a 7306for ac_header in machine/reg.h
bec39cab
AC
7307do
7308as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7309if eval "test \"\${$as_ac_Header+set}\" = set"; then
7310 echo "$as_me:$LINENO: checking for $ac_header" >&5
7311echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7312if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7313 echo $ECHO_N "(cached) $ECHO_C" >&6
7314fi
b4e70030
JB
7315echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7316echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7317else
7318 # Is the header compilable?
b4e70030
JB
7319echo "$as_me:$LINENO: checking $ac_header usability" >&5
7320echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7321cat >conftest.$ac_ext <<_ACEOF
7322/* confdefs.h. */
7323_ACEOF
7324cat confdefs.h >>conftest.$ac_ext
7325cat >>conftest.$ac_ext <<_ACEOF
7326/* end confdefs.h. */
7327$ac_includes_default
7328#include <$ac_header>
7329_ACEOF
7330rm -f conftest.$ac_objext
7331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7332 (eval $ac_compile) 2>conftest.er1
7333 ac_status=$?
7334 grep -v '^ *+' conftest.er1 >conftest.err
7335 rm -f conftest.er1
7336 cat conftest.err >&5
7337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 (exit $ac_status); } &&
b4e70030
JB
7339 { ac_try='test -z "$ac_c_werror_flag"
7340 || test ! -s conftest.err'
bec39cab
AC
7341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7342 (eval $ac_try) 2>&5
7343 ac_status=$?
7344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345 (exit $ac_status); }; } &&
7346 { ac_try='test -s conftest.$ac_objext'
7347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7348 (eval $ac_try) 2>&5
7349 ac_status=$?
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); }; }; then
7352 ac_header_compiler=yes
7353else
7354 echo "$as_me: failed program was:" >&5
7355sed 's/^/| /' conftest.$ac_ext >&5
7356
b4e70030 7357ac_header_compiler=no
bec39cab
AC
7358fi
7359rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7360echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7361echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7362
7363# Is the header present?
b4e70030
JB
7364echo "$as_me:$LINENO: checking $ac_header presence" >&5
7365echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7366cat >conftest.$ac_ext <<_ACEOF
7367/* confdefs.h. */
7368_ACEOF
7369cat confdefs.h >>conftest.$ac_ext
7370cat >>conftest.$ac_ext <<_ACEOF
7371/* end confdefs.h. */
7372#include <$ac_header>
7373_ACEOF
7374if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7375 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7376 ac_status=$?
7377 grep -v '^ *+' conftest.er1 >conftest.err
7378 rm -f conftest.er1
7379 cat conftest.err >&5
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); } >/dev/null; then
7382 if test -s conftest.err; then
7383 ac_cpp_err=$ac_c_preproc_warn_flag
7384 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7385 else
7386 ac_cpp_err=
7387 fi
75c6e08a 7388else
bec39cab 7389 ac_cpp_err=yes
75c6e08a 7390fi
bec39cab
AC
7391if test -z "$ac_cpp_err"; then
7392 ac_header_preproc=yes
7393else
7394 echo "$as_me: failed program was:" >&5
7395sed 's/^/| /' conftest.$ac_ext >&5
7396
7397 ac_header_preproc=no
75c6e08a 7398fi
bec39cab 7399rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7400echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7401echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
7402
7403# So? What about this header?
7404case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7405 yes:no: )
7406 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7407echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7409echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7410 ac_header_preproc=yes
7411 ;;
7412 no:yes:* )
7413 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7414echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7415 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7416echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7417 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7418echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7419 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7420echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7422echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7423 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7424echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7425 (
7426 cat <<\_ASBOX
7427## ------------------------------------------ ##
7428## Report this to the AC_PACKAGE_NAME lists. ##
7429## ------------------------------------------ ##
7430_ASBOX
7431 ) |
7432 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7433 ;;
7434esac
b4e70030
JB
7435echo "$as_me:$LINENO: checking for $ac_header" >&5
7436echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7437if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7438 echo $ECHO_N "(cached) $ECHO_C" >&6
75c6e08a 7439else
bec39cab
AC
7440 eval "$as_ac_Header=\$ac_header_preproc"
7441fi
b4e70030
JB
7442echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7443echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 7444
75c6e08a 7445fi
bec39cab
AC
7446if test `eval echo '${'$as_ac_Header'}'` = yes; then
7447 cat >>confdefs.h <<_ACEOF
7448#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7449_ACEOF
75c6e08a 7450
bec39cab 7451fi
75c6e08a 7452
bec39cab 7453done
75c6e08a
MK
7454
7455
9a156167 7456
bec39cab
AC
7457for ac_header in poll.h sys/poll.h
7458do
7459as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7460if eval "test \"\${$as_ac_Header+set}\" = set"; then
7461 echo "$as_me:$LINENO: checking for $ac_header" >&5
7462echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7463if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7464 echo $ECHO_N "(cached) $ECHO_C" >&6
7465fi
b4e70030
JB
7466echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7467echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7468else
7469 # Is the header compilable?
b4e70030
JB
7470echo "$as_me:$LINENO: checking $ac_header usability" >&5
7471echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7472cat >conftest.$ac_ext <<_ACEOF
7473/* confdefs.h. */
7474_ACEOF
7475cat confdefs.h >>conftest.$ac_ext
7476cat >>conftest.$ac_ext <<_ACEOF
7477/* end confdefs.h. */
7478$ac_includes_default
7479#include <$ac_header>
7480_ACEOF
7481rm -f conftest.$ac_objext
7482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7483 (eval $ac_compile) 2>conftest.er1
7484 ac_status=$?
7485 grep -v '^ *+' conftest.er1 >conftest.err
7486 rm -f conftest.er1
7487 cat conftest.err >&5
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); } &&
b4e70030
JB
7490 { ac_try='test -z "$ac_c_werror_flag"
7491 || test ! -s conftest.err'
bec39cab
AC
7492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7493 (eval $ac_try) 2>&5
7494 ac_status=$?
7495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496 (exit $ac_status); }; } &&
7497 { ac_try='test -s conftest.$ac_objext'
7498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7499 (eval $ac_try) 2>&5
7500 ac_status=$?
7501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502 (exit $ac_status); }; }; then
7503 ac_header_compiler=yes
7504else
7505 echo "$as_me: failed program was:" >&5
7506sed 's/^/| /' conftest.$ac_ext >&5
7507
b4e70030 7508ac_header_compiler=no
bec39cab
AC
7509fi
7510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7511echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7512echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7513
7514# Is the header present?
b4e70030
JB
7515echo "$as_me:$LINENO: checking $ac_header presence" >&5
7516echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7517cat >conftest.$ac_ext <<_ACEOF
7518/* confdefs.h. */
7519_ACEOF
7520cat confdefs.h >>conftest.$ac_ext
7521cat >>conftest.$ac_ext <<_ACEOF
7522/* end confdefs.h. */
7523#include <$ac_header>
7524_ACEOF
7525if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7527 ac_status=$?
7528 grep -v '^ *+' conftest.er1 >conftest.err
7529 rm -f conftest.er1
7530 cat conftest.err >&5
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); } >/dev/null; then
7533 if test -s conftest.err; then
7534 ac_cpp_err=$ac_c_preproc_warn_flag
7535 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7536 else
7537 ac_cpp_err=
7538 fi
9a156167 7539else
bec39cab 7540 ac_cpp_err=yes
9a156167 7541fi
bec39cab
AC
7542if test -z "$ac_cpp_err"; then
7543 ac_header_preproc=yes
7544else
7545 echo "$as_me: failed program was:" >&5
7546sed 's/^/| /' conftest.$ac_ext >&5
9a156167 7547
bec39cab 7548 ac_header_preproc=no
9a156167 7549fi
bec39cab 7550rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7551echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7552echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 7553
bec39cab
AC
7554# So? What about this header?
7555case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7556 yes:no: )
7557 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7558echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7560echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7561 ac_header_preproc=yes
7562 ;;
7563 no:yes:* )
7564 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7565echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7566 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7567echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7568 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7569echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7570 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7571echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7573echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7574 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7575echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7576 (
7577 cat <<\_ASBOX
7578## ------------------------------------------ ##
7579## Report this to the AC_PACKAGE_NAME lists. ##
7580## ------------------------------------------ ##
7581_ASBOX
7582 ) |
7583 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7584 ;;
7585esac
b4e70030
JB
7586echo "$as_me:$LINENO: checking for $ac_header" >&5
7587echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7588if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7589 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 7590else
bec39cab 7591 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 7592fi
b4e70030
JB
7593echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7594echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167 7595
bec39cab
AC
7596fi
7597if test `eval echo '${'$as_ac_Header'}'` = yes; then
7598 cat >>confdefs.h <<_ACEOF
7599#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7600_ACEOF
9a156167 7601
bec39cab 7602fi
9a156167 7603
bec39cab 7604done
9a156167 7605
9a156167 7606
9a156167 7607
bec39cab
AC
7608
7609for ac_header in proc_service.h thread_db.h gnu/libc-version.h
7610do
7611as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7612if eval "test \"\${$as_ac_Header+set}\" = set"; then
7613 echo "$as_me:$LINENO: checking for $ac_header" >&5
7614echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7615if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7616 echo $ECHO_N "(cached) $ECHO_C" >&6
7617fi
b4e70030
JB
7618echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7619echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7620else
7621 # Is the header compilable?
b4e70030
JB
7622echo "$as_me:$LINENO: checking $ac_header usability" >&5
7623echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7624cat >conftest.$ac_ext <<_ACEOF
7625/* confdefs.h. */
7626_ACEOF
7627cat confdefs.h >>conftest.$ac_ext
7628cat >>conftest.$ac_ext <<_ACEOF
436868fb
DP
7629/* end confdefs.h. */
7630$ac_includes_default
7631#include <$ac_header>
7632_ACEOF
7633rm -f conftest.$ac_objext
7634if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7635 (eval $ac_compile) 2>conftest.er1
7636 ac_status=$?
7637 grep -v '^ *+' conftest.er1 >conftest.err
7638 rm -f conftest.er1
7639 cat conftest.err >&5
7640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641 (exit $ac_status); } &&
7642 { ac_try='test -z "$ac_c_werror_flag"
7643 || test ! -s conftest.err'
7644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7645 (eval $ac_try) 2>&5
7646 ac_status=$?
7647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648 (exit $ac_status); }; } &&
7649 { ac_try='test -s conftest.$ac_objext'
7650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7651 (eval $ac_try) 2>&5
7652 ac_status=$?
7653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654 (exit $ac_status); }; }; then
7655 ac_header_compiler=yes
7656else
7657 echo "$as_me: failed program was:" >&5
7658sed 's/^/| /' conftest.$ac_ext >&5
7659
7660ac_header_compiler=no
7661fi
7662rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7663echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7664echo "${ECHO_T}$ac_header_compiler" >&6
7665
7666# Is the header present?
7667echo "$as_me:$LINENO: checking $ac_header presence" >&5
7668echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7669cat >conftest.$ac_ext <<_ACEOF
7670/* confdefs.h. */
7671_ACEOF
7672cat confdefs.h >>conftest.$ac_ext
7673cat >>conftest.$ac_ext <<_ACEOF
7674/* end confdefs.h. */
7675#include <$ac_header>
7676_ACEOF
7677if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7678 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7679 ac_status=$?
7680 grep -v '^ *+' conftest.er1 >conftest.err
7681 rm -f conftest.er1
7682 cat conftest.err >&5
7683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684 (exit $ac_status); } >/dev/null; then
7685 if test -s conftest.err; then
7686 ac_cpp_err=$ac_c_preproc_warn_flag
7687 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7688 else
7689 ac_cpp_err=
7690 fi
7691else
7692 ac_cpp_err=yes
7693fi
7694if test -z "$ac_cpp_err"; then
7695 ac_header_preproc=yes
7696else
7697 echo "$as_me: failed program was:" >&5
7698sed 's/^/| /' conftest.$ac_ext >&5
7699
7700 ac_header_preproc=no
7701fi
7702rm -f conftest.err conftest.$ac_ext
7703echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7704echo "${ECHO_T}$ac_header_preproc" >&6
7705
7706# So? What about this header?
7707case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7708 yes:no: )
7709 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7710echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7712echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7713 ac_header_preproc=yes
7714 ;;
7715 no:yes:* )
7716 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7717echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7718 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7719echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7720 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7721echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7722 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7723echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7725echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7726 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7727echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7728 (
7729 cat <<\_ASBOX
7730## ------------------------------------------ ##
7731## Report this to the AC_PACKAGE_NAME lists. ##
7732## ------------------------------------------ ##
7733_ASBOX
7734 ) |
7735 sed "s/^/$as_me: WARNING: /" >&2
7736 ;;
7737esac
7738echo "$as_me:$LINENO: checking for $ac_header" >&5
7739echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7740if eval "test \"\${$as_ac_Header+set}\" = set"; then
7741 echo $ECHO_N "(cached) $ECHO_C" >&6
7742else
7743 eval "$as_ac_Header=\$ac_header_preproc"
7744fi
7745echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7746echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7747
7748fi
7749if test `eval echo '${'$as_ac_Header'}'` = yes; then
7750 cat >>confdefs.h <<_ACEOF
7751#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7752_ACEOF
7753
7754fi
7755
7756done
7757
7758
7759for ac_header in signal.h
7760do
7761as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7762if eval "test \"\${$as_ac_Header+set}\" = set"; then
7763 echo "$as_me:$LINENO: checking for $ac_header" >&5
7764echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7765if eval "test \"\${$as_ac_Header+set}\" = set"; then
7766 echo $ECHO_N "(cached) $ECHO_C" >&6
7767fi
7768echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7769echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7770else
7771 # Is the header compilable?
7772echo "$as_me:$LINENO: checking $ac_header usability" >&5
7773echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7774cat >conftest.$ac_ext <<_ACEOF
7775/* confdefs.h. */
7776_ACEOF
7777cat confdefs.h >>conftest.$ac_ext
7778cat >>conftest.$ac_ext <<_ACEOF
bec39cab
AC
7779/* end confdefs.h. */
7780$ac_includes_default
7781#include <$ac_header>
7782_ACEOF
7783rm -f conftest.$ac_objext
7784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7785 (eval $ac_compile) 2>conftest.er1
7786 ac_status=$?
7787 grep -v '^ *+' conftest.er1 >conftest.err
7788 rm -f conftest.er1
7789 cat conftest.err >&5
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); } &&
b4e70030
JB
7792 { ac_try='test -z "$ac_c_werror_flag"
7793 || test ! -s conftest.err'
bec39cab
AC
7794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7795 (eval $ac_try) 2>&5
7796 ac_status=$?
7797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7798 (exit $ac_status); }; } &&
7799 { ac_try='test -s conftest.$ac_objext'
7800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7801 (eval $ac_try) 2>&5
7802 ac_status=$?
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); }; }; then
7805 ac_header_compiler=yes
7806else
7807 echo "$as_me: failed program was:" >&5
7808sed 's/^/| /' conftest.$ac_ext >&5
7809
b4e70030 7810ac_header_compiler=no
bec39cab
AC
7811fi
7812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7813echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7814echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7815
7816# Is the header present?
b4e70030
JB
7817echo "$as_me:$LINENO: checking $ac_header presence" >&5
7818echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7819cat >conftest.$ac_ext <<_ACEOF
7820/* confdefs.h. */
7821_ACEOF
7822cat confdefs.h >>conftest.$ac_ext
7823cat >>conftest.$ac_ext <<_ACEOF
7824/* end confdefs.h. */
7825#include <$ac_header>
7826_ACEOF
7827if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7828 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7829 ac_status=$?
7830 grep -v '^ *+' conftest.er1 >conftest.err
7831 rm -f conftest.er1
7832 cat conftest.err >&5
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); } >/dev/null; then
7835 if test -s conftest.err; then
7836 ac_cpp_err=$ac_c_preproc_warn_flag
7837 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7838 else
7839 ac_cpp_err=
7840 fi
9a156167 7841else
bec39cab 7842 ac_cpp_err=yes
9a156167 7843fi
bec39cab
AC
7844if test -z "$ac_cpp_err"; then
7845 ac_header_preproc=yes
7846else
7847 echo "$as_me: failed program was:" >&5
7848sed 's/^/| /' conftest.$ac_ext >&5
9a156167 7849
bec39cab 7850 ac_header_preproc=no
9a156167 7851fi
bec39cab 7852rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7853echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7854echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 7855
bec39cab
AC
7856# So? What about this header?
7857case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7858 yes:no: )
7859 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7860echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7862echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7863 ac_header_preproc=yes
7864 ;;
7865 no:yes:* )
7866 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7867echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7868 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7869echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7870 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7871echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7872 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7873echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7875echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7876 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7877echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7878 (
7879 cat <<\_ASBOX
7880## ------------------------------------------ ##
7881## Report this to the AC_PACKAGE_NAME lists. ##
7882## ------------------------------------------ ##
7883_ASBOX
7884 ) |
7885 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7886 ;;
7887esac
b4e70030
JB
7888echo "$as_me:$LINENO: checking for $ac_header" >&5
7889echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7890if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7891 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 7892else
bec39cab 7893 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 7894fi
b4e70030
JB
7895echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7896echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167
MK
7897
7898fi
bec39cab
AC
7899if test `eval echo '${'$as_ac_Header'}'` = yes; then
7900 cat >>confdefs.h <<_ACEOF
7901#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7902_ACEOF
9a156167 7903
bec39cab
AC
7904fi
7905
7906done
9a156167 7907
c890192f 7908
bec39cab
AC
7909for ac_header in stddef.h
7910do
7911as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7912if eval "test \"\${$as_ac_Header+set}\" = set"; then
7913 echo "$as_me:$LINENO: checking for $ac_header" >&5
7914echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7915if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7916 echo $ECHO_N "(cached) $ECHO_C" >&6
7917fi
b4e70030
JB
7918echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7919echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7920else
7921 # Is the header compilable?
b4e70030
JB
7922echo "$as_me:$LINENO: checking $ac_header usability" >&5
7923echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7924cat >conftest.$ac_ext <<_ACEOF
7925/* confdefs.h. */
7926_ACEOF
7927cat confdefs.h >>conftest.$ac_ext
7928cat >>conftest.$ac_ext <<_ACEOF
7929/* end confdefs.h. */
7930$ac_includes_default
7931#include <$ac_header>
7932_ACEOF
7933rm -f conftest.$ac_objext
7934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7935 (eval $ac_compile) 2>conftest.er1
7936 ac_status=$?
7937 grep -v '^ *+' conftest.er1 >conftest.err
7938 rm -f conftest.er1
7939 cat conftest.err >&5
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); } &&
b4e70030
JB
7942 { ac_try='test -z "$ac_c_werror_flag"
7943 || test ! -s conftest.err'
bec39cab
AC
7944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7945 (eval $ac_try) 2>&5
7946 ac_status=$?
7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); }; } &&
7949 { ac_try='test -s conftest.$ac_objext'
7950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7951 (eval $ac_try) 2>&5
7952 ac_status=$?
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); }; }; then
7955 ac_header_compiler=yes
7956else
7957 echo "$as_me: failed program was:" >&5
7958sed 's/^/| /' conftest.$ac_ext >&5
7959
b4e70030 7960ac_header_compiler=no
bec39cab
AC
7961fi
7962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7963echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7964echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7965
7966# Is the header present?
b4e70030
JB
7967echo "$as_me:$LINENO: checking $ac_header presence" >&5
7968echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7969cat >conftest.$ac_ext <<_ACEOF
7970/* confdefs.h. */
7971_ACEOF
7972cat confdefs.h >>conftest.$ac_ext
7973cat >>conftest.$ac_ext <<_ACEOF
7974/* end confdefs.h. */
7975#include <$ac_header>
7976_ACEOF
7977if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7978 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7979 ac_status=$?
7980 grep -v '^ *+' conftest.er1 >conftest.err
7981 rm -f conftest.er1
7982 cat conftest.err >&5
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); } >/dev/null; then
7985 if test -s conftest.err; then
7986 ac_cpp_err=$ac_c_preproc_warn_flag
7987 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7988 else
7989 ac_cpp_err=
7990 fi
c890192f 7991else
bec39cab
AC
7992 ac_cpp_err=yes
7993fi
7994if test -z "$ac_cpp_err"; then
7995 ac_header_preproc=yes
c890192f 7996else
bec39cab
AC
7997 echo "$as_me: failed program was:" >&5
7998sed 's/^/| /' conftest.$ac_ext >&5
7999
8000 ac_header_preproc=no
c890192f 8001fi
bec39cab 8002rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8003echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8004echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8005
8006# So? What about this header?
8007case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8008 yes:no: )
8009 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8010echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8012echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8013 ac_header_preproc=yes
8014 ;;
8015 no:yes:* )
8016 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8017echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8018 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8019echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8020 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8021echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8022 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8023echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8025echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8026 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8027echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8028 (
8029 cat <<\_ASBOX
8030## ------------------------------------------ ##
8031## Report this to the AC_PACKAGE_NAME lists. ##
8032## ------------------------------------------ ##
8033_ASBOX
8034 ) |
8035 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8036 ;;
8037esac
b4e70030
JB
8038echo "$as_me:$LINENO: checking for $ac_header" >&5
8039echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8040if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8041 echo $ECHO_N "(cached) $ECHO_C" >&6
c890192f 8042else
bec39cab 8043 eval "$as_ac_Header=\$ac_header_preproc"
c890192f 8044fi
b4e70030
JB
8045echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8046echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 8047
c890192f 8048fi
bec39cab
AC
8049if test `eval echo '${'$as_ac_Header'}'` = yes; then
8050 cat >>confdefs.h <<_ACEOF
8051#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8052_ACEOF
c890192f 8053
c890192f
MK
8054fi
8055
bec39cab 8056done
9a156167 8057
bec39cab
AC
8058
8059for ac_header in stdlib.h
8060do
8061as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8062if eval "test \"\${$as_ac_Header+set}\" = set"; then
8063 echo "$as_me:$LINENO: checking for $ac_header" >&5
8064echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8065if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8066 echo $ECHO_N "(cached) $ECHO_C" >&6
8067fi
b4e70030
JB
8068echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8069echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8070else
8071 # Is the header compilable?
b4e70030
JB
8072echo "$as_me:$LINENO: checking $ac_header usability" >&5
8073echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8074cat >conftest.$ac_ext <<_ACEOF
8075/* confdefs.h. */
8076_ACEOF
8077cat confdefs.h >>conftest.$ac_ext
8078cat >>conftest.$ac_ext <<_ACEOF
8079/* end confdefs.h. */
8080$ac_includes_default
8081#include <$ac_header>
8082_ACEOF
8083rm -f conftest.$ac_objext
8084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8085 (eval $ac_compile) 2>conftest.er1
8086 ac_status=$?
8087 grep -v '^ *+' conftest.er1 >conftest.err
8088 rm -f conftest.er1
8089 cat conftest.err >&5
8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); } &&
b4e70030
JB
8092 { ac_try='test -z "$ac_c_werror_flag"
8093 || test ! -s conftest.err'
bec39cab
AC
8094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8095 (eval $ac_try) 2>&5
8096 ac_status=$?
8097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098 (exit $ac_status); }; } &&
8099 { ac_try='test -s conftest.$ac_objext'
8100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8101 (eval $ac_try) 2>&5
8102 ac_status=$?
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); }; }; then
8105 ac_header_compiler=yes
8106else
8107 echo "$as_me: failed program was:" >&5
8108sed 's/^/| /' conftest.$ac_ext >&5
8109
b4e70030 8110ac_header_compiler=no
bec39cab
AC
8111fi
8112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8113echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8114echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8115
8116# Is the header present?
b4e70030
JB
8117echo "$as_me:$LINENO: checking $ac_header presence" >&5
8118echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8119cat >conftest.$ac_ext <<_ACEOF
8120/* confdefs.h. */
8121_ACEOF
8122cat confdefs.h >>conftest.$ac_ext
8123cat >>conftest.$ac_ext <<_ACEOF
8124/* end confdefs.h. */
8125#include <$ac_header>
8126_ACEOF
8127if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8128 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8129 ac_status=$?
8130 grep -v '^ *+' conftest.er1 >conftest.err
8131 rm -f conftest.er1
8132 cat conftest.err >&5
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); } >/dev/null; then
8135 if test -s conftest.err; then
8136 ac_cpp_err=$ac_c_preproc_warn_flag
8137 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8138 else
8139 ac_cpp_err=
8140 fi
9a156167 8141else
bec39cab
AC
8142 ac_cpp_err=yes
8143fi
8144if test -z "$ac_cpp_err"; then
8145 ac_header_preproc=yes
9a156167 8146else
bec39cab
AC
8147 echo "$as_me: failed program was:" >&5
8148sed 's/^/| /' conftest.$ac_ext >&5
8149
8150 ac_header_preproc=no
9a156167 8151fi
bec39cab 8152rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8153echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8154echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8155
8156# So? What about this header?
8157case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8158 yes:no: )
8159 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8160echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8162echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8163 ac_header_preproc=yes
8164 ;;
8165 no:yes:* )
8166 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8167echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8168 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8169echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8170 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8171echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8172 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8173echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8175echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8176 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8177echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8178 (
8179 cat <<\_ASBOX
8180## ------------------------------------------ ##
8181## Report this to the AC_PACKAGE_NAME lists. ##
8182## ------------------------------------------ ##
8183_ASBOX
8184 ) |
8185 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8186 ;;
8187esac
b4e70030
JB
8188echo "$as_me:$LINENO: checking for $ac_header" >&5
8189echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8190if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8191 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 8192else
bec39cab 8193 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 8194fi
b4e70030
JB
8195echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8196echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 8197
9a156167 8198fi
bec39cab
AC
8199if test `eval echo '${'$as_ac_Header'}'` = yes; then
8200 cat >>confdefs.h <<_ACEOF
8201#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8202_ACEOF
9a156167 8203
9a156167
MK
8204fi
8205
bec39cab
AC
8206done
8207
06825bd1 8208
bec39cab
AC
8209for ac_header in stdint.h
8210do
8211as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8212if eval "test \"\${$as_ac_Header+set}\" = set"; then
8213 echo "$as_me:$LINENO: checking for $ac_header" >&5
8214echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8215if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8216 echo $ECHO_N "(cached) $ECHO_C" >&6
8217fi
b4e70030
JB
8218echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8219echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8220else
8221 # Is the header compilable?
b4e70030
JB
8222echo "$as_me:$LINENO: checking $ac_header usability" >&5
8223echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8224cat >conftest.$ac_ext <<_ACEOF
8225/* confdefs.h. */
8226_ACEOF
8227cat confdefs.h >>conftest.$ac_ext
8228cat >>conftest.$ac_ext <<_ACEOF
8229/* end confdefs.h. */
8230$ac_includes_default
8231#include <$ac_header>
8232_ACEOF
8233rm -f conftest.$ac_objext
8234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8235 (eval $ac_compile) 2>conftest.er1
8236 ac_status=$?
8237 grep -v '^ *+' conftest.er1 >conftest.err
8238 rm -f conftest.er1
8239 cat conftest.err >&5
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); } &&
b4e70030
JB
8242 { ac_try='test -z "$ac_c_werror_flag"
8243 || test ! -s conftest.err'
bec39cab
AC
8244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8245 (eval $ac_try) 2>&5
8246 ac_status=$?
8247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248 (exit $ac_status); }; } &&
8249 { ac_try='test -s conftest.$ac_objext'
8250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8251 (eval $ac_try) 2>&5
8252 ac_status=$?
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); }; }; then
8255 ac_header_compiler=yes
8256else
8257 echo "$as_me: failed program was:" >&5
8258sed 's/^/| /' conftest.$ac_ext >&5
8259
b4e70030 8260ac_header_compiler=no
bec39cab
AC
8261fi
8262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8263echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8264echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8265
8266# Is the header present?
b4e70030
JB
8267echo "$as_me:$LINENO: checking $ac_header presence" >&5
8268echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8269cat >conftest.$ac_ext <<_ACEOF
8270/* confdefs.h. */
8271_ACEOF
8272cat confdefs.h >>conftest.$ac_ext
8273cat >>conftest.$ac_ext <<_ACEOF
8274/* end confdefs.h. */
8275#include <$ac_header>
8276_ACEOF
8277if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8278 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8279 ac_status=$?
8280 grep -v '^ *+' conftest.er1 >conftest.err
8281 rm -f conftest.er1
8282 cat conftest.err >&5
8283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8284 (exit $ac_status); } >/dev/null; then
8285 if test -s conftest.err; then
8286 ac_cpp_err=$ac_c_preproc_warn_flag
8287 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8288 else
8289 ac_cpp_err=
8290 fi
06825bd1 8291else
bec39cab
AC
8292 ac_cpp_err=yes
8293fi
8294if test -z "$ac_cpp_err"; then
8295 ac_header_preproc=yes
06825bd1 8296else
bec39cab
AC
8297 echo "$as_me: failed program was:" >&5
8298sed 's/^/| /' conftest.$ac_ext >&5
8299
8300 ac_header_preproc=no
06825bd1 8301fi
bec39cab 8302rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8303echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8304echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8305
8306# So? What about this header?
8307case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8308 yes:no: )
8309 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8310echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8312echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8313 ac_header_preproc=yes
8314 ;;
8315 no:yes:* )
8316 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8317echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8318 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8319echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8320 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8321echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8322 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8323echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8325echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8326 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8327echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8328 (
8329 cat <<\_ASBOX
8330## ------------------------------------------ ##
8331## Report this to the AC_PACKAGE_NAME lists. ##
8332## ------------------------------------------ ##
8333_ASBOX
8334 ) |
8335 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8336 ;;
8337esac
b4e70030
JB
8338echo "$as_me:$LINENO: checking for $ac_header" >&5
8339echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8340if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8341 echo $ECHO_N "(cached) $ECHO_C" >&6
06825bd1 8342else
bec39cab 8343 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 8344fi
b4e70030
JB
8345echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8346echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 8347
06825bd1 8348fi
bec39cab
AC
8349if test `eval echo '${'$as_ac_Header'}'` = yes; then
8350 cat >>confdefs.h <<_ACEOF
8351#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8352_ACEOF
06825bd1 8353
06825bd1 8354fi
4f0be353 8355
bec39cab 8356done
4f0be353 8357
06825bd1 8358
06825bd1 8359
bec39cab
AC
8360
8361for ac_header in string.h memory.h strings.h
8362do
8363as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8364if eval "test \"\${$as_ac_Header+set}\" = set"; then
8365 echo "$as_me:$LINENO: checking for $ac_header" >&5
8366echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8367if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8368 echo $ECHO_N "(cached) $ECHO_C" >&6
8369fi
b4e70030
JB
8370echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8371echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8372else
8373 # Is the header compilable?
b4e70030
JB
8374echo "$as_me:$LINENO: checking $ac_header usability" >&5
8375echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8376cat >conftest.$ac_ext <<_ACEOF
8377/* confdefs.h. */
8378_ACEOF
8379cat confdefs.h >>conftest.$ac_ext
8380cat >>conftest.$ac_ext <<_ACEOF
8381/* end confdefs.h. */
8382$ac_includes_default
8383#include <$ac_header>
8384_ACEOF
8385rm -f conftest.$ac_objext
8386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8387 (eval $ac_compile) 2>conftest.er1
8388 ac_status=$?
8389 grep -v '^ *+' conftest.er1 >conftest.err
8390 rm -f conftest.er1
8391 cat conftest.err >&5
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); } &&
b4e70030
JB
8394 { ac_try='test -z "$ac_c_werror_flag"
8395 || test ! -s conftest.err'
bec39cab
AC
8396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8397 (eval $ac_try) 2>&5
8398 ac_status=$?
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); }; } &&
8401 { ac_try='test -s conftest.$ac_objext'
8402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8403 (eval $ac_try) 2>&5
8404 ac_status=$?
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); }; }; then
8407 ac_header_compiler=yes
8408else
8409 echo "$as_me: failed program was:" >&5
8410sed 's/^/| /' conftest.$ac_ext >&5
8411
b4e70030 8412ac_header_compiler=no
bec39cab
AC
8413fi
8414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8415echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8416echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8417
8418# Is the header present?
b4e70030
JB
8419echo "$as_me:$LINENO: checking $ac_header presence" >&5
8420echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8421cat >conftest.$ac_ext <<_ACEOF
8422/* confdefs.h. */
8423_ACEOF
8424cat confdefs.h >>conftest.$ac_ext
8425cat >>conftest.$ac_ext <<_ACEOF
8426/* end confdefs.h. */
8427#include <$ac_header>
8428_ACEOF
8429if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8430 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8431 ac_status=$?
8432 grep -v '^ *+' conftest.er1 >conftest.err
8433 rm -f conftest.er1
8434 cat conftest.err >&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); } >/dev/null; then
8437 if test -s conftest.err; then
8438 ac_cpp_err=$ac_c_preproc_warn_flag
8439 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8440 else
8441 ac_cpp_err=
8442 fi
06825bd1 8443else
bec39cab
AC
8444 ac_cpp_err=yes
8445fi
8446if test -z "$ac_cpp_err"; then
8447 ac_header_preproc=yes
06825bd1 8448else
bec39cab
AC
8449 echo "$as_me: failed program was:" >&5
8450sed 's/^/| /' conftest.$ac_ext >&5
8451
8452 ac_header_preproc=no
06825bd1 8453fi
bec39cab 8454rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8455echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8456echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8457
8458# So? What about this header?
8459case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8460 yes:no: )
8461 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8462echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8464echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8465 ac_header_preproc=yes
8466 ;;
8467 no:yes:* )
8468 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8469echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8470 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8471echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8472 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8473echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8474 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8475echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8477echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8478 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8479echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8480 (
8481 cat <<\_ASBOX
8482## ------------------------------------------ ##
8483## Report this to the AC_PACKAGE_NAME lists. ##
8484## ------------------------------------------ ##
8485_ASBOX
8486 ) |
8487 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8488 ;;
8489esac
b4e70030
JB
8490echo "$as_me:$LINENO: checking for $ac_header" >&5
8491echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8492if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8493 echo $ECHO_N "(cached) $ECHO_C" >&6
8494else
8495 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 8496fi
b4e70030
JB
8497echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8498echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
06825bd1 8499
06825bd1 8500fi
bec39cab
AC
8501if test `eval echo '${'$as_ac_Header'}'` = yes; then
8502 cat >>confdefs.h <<_ACEOF
8503#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8504_ACEOF
06825bd1 8505
06825bd1
MK
8506fi
8507
bec39cab 8508done
5ee754fc 8509
bec39cab
AC
8510
8511for ac_header in sys/fault.h
5ee754fc 8512do
bec39cab 8513as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8514if eval "test \"\${$as_ac_Header+set}\" = set"; then
8515 echo "$as_me:$LINENO: checking for $ac_header" >&5
8516echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8517if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8518 echo $ECHO_N "(cached) $ECHO_C" >&6
8519fi
b4e70030
JB
8520echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8521echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8522else
8523 # Is the header compilable?
b4e70030
JB
8524echo "$as_me:$LINENO: checking $ac_header usability" >&5
8525echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8526cat >conftest.$ac_ext <<_ACEOF
8527/* confdefs.h. */
8528_ACEOF
8529cat confdefs.h >>conftest.$ac_ext
8530cat >>conftest.$ac_ext <<_ACEOF
8531/* end confdefs.h. */
8532$ac_includes_default
8533#include <$ac_header>
8534_ACEOF
8535rm -f conftest.$ac_objext
8536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8537 (eval $ac_compile) 2>conftest.er1
8538 ac_status=$?
8539 grep -v '^ *+' conftest.er1 >conftest.err
8540 rm -f conftest.er1
8541 cat conftest.err >&5
8542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543 (exit $ac_status); } &&
b4e70030
JB
8544 { ac_try='test -z "$ac_c_werror_flag"
8545 || test ! -s conftest.err'
bec39cab
AC
8546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8547 (eval $ac_try) 2>&5
8548 ac_status=$?
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); }; } &&
8551 { ac_try='test -s conftest.$ac_objext'
8552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8553 (eval $ac_try) 2>&5
8554 ac_status=$?
8555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556 (exit $ac_status); }; }; then
8557 ac_header_compiler=yes
8558else
8559 echo "$as_me: failed program was:" >&5
8560sed 's/^/| /' conftest.$ac_ext >&5
8561
b4e70030 8562ac_header_compiler=no
bec39cab
AC
8563fi
8564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8565echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8566echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8567
8568# Is the header present?
b4e70030
JB
8569echo "$as_me:$LINENO: checking $ac_header presence" >&5
8570echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8571cat >conftest.$ac_ext <<_ACEOF
8572/* confdefs.h. */
8573_ACEOF
8574cat confdefs.h >>conftest.$ac_ext
8575cat >>conftest.$ac_ext <<_ACEOF
8576/* end confdefs.h. */
8577#include <$ac_header>
8578_ACEOF
8579if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8580 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8581 ac_status=$?
8582 grep -v '^ *+' conftest.er1 >conftest.err
8583 rm -f conftest.er1
8584 cat conftest.err >&5
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); } >/dev/null; then
8587 if test -s conftest.err; then
8588 ac_cpp_err=$ac_c_preproc_warn_flag
8589 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8590 else
8591 ac_cpp_err=
8592 fi
5ee754fc 8593else
bec39cab 8594 ac_cpp_err=yes
5ee754fc 8595fi
bec39cab
AC
8596if test -z "$ac_cpp_err"; then
8597 ac_header_preproc=yes
8598else
8599 echo "$as_me: failed program was:" >&5
8600sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 8601
bec39cab 8602 ac_header_preproc=no
5ee754fc 8603fi
bec39cab 8604rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8605echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8606echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8607
8608# So? What about this header?
8609case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8610 yes:no: )
8611 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8612echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8614echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8615 ac_header_preproc=yes
8616 ;;
8617 no:yes:* )
8618 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8619echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8620 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8621echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8622 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8623echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8624 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8625echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8627echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8628 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8629echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8630 (
8631 cat <<\_ASBOX
8632## ------------------------------------------ ##
8633## Report this to the AC_PACKAGE_NAME lists. ##
8634## ------------------------------------------ ##
8635_ASBOX
8636 ) |
8637 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8638 ;;
8639esac
b4e70030
JB
8640echo "$as_me:$LINENO: checking for $ac_header" >&5
8641echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8642if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8643 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 8644else
bec39cab 8645 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 8646fi
b4e70030
JB
8647echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8648echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c906108c 8649
5ee754fc 8650fi
bec39cab
AC
8651if test `eval echo '${'$as_ac_Header'}'` = yes; then
8652 cat >>confdefs.h <<_ACEOF
8653#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8654_ACEOF
c906108c 8655
5ee754fc 8656fi
bec39cab
AC
8657
8658done
8659
8660
8661for ac_header in sys/file.h
8662do
8663as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8664if eval "test \"\${$as_ac_Header+set}\" = set"; then
8665 echo "$as_me:$LINENO: checking for $ac_header" >&5
8666echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8667if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8668 echo $ECHO_N "(cached) $ECHO_C" >&6
8669fi
b4e70030
JB
8670echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8671echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8672else
8673 # Is the header compilable?
b4e70030
JB
8674echo "$as_me:$LINENO: checking $ac_header usability" >&5
8675echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8676cat >conftest.$ac_ext <<_ACEOF
8677/* confdefs.h. */
8678_ACEOF
8679cat confdefs.h >>conftest.$ac_ext
8680cat >>conftest.$ac_ext <<_ACEOF
8681/* end confdefs.h. */
8682$ac_includes_default
8683#include <$ac_header>
8684_ACEOF
8685rm -f conftest.$ac_objext
8686if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8687 (eval $ac_compile) 2>conftest.er1
8688 ac_status=$?
8689 grep -v '^ *+' conftest.er1 >conftest.err
8690 rm -f conftest.er1
8691 cat conftest.err >&5
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); } &&
b4e70030
JB
8694 { ac_try='test -z "$ac_c_werror_flag"
8695 || test ! -s conftest.err'
bec39cab
AC
8696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8697 (eval $ac_try) 2>&5
8698 ac_status=$?
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); }; } &&
8701 { ac_try='test -s conftest.$ac_objext'
8702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8703 (eval $ac_try) 2>&5
8704 ac_status=$?
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); }; }; then
8707 ac_header_compiler=yes
8708else
8709 echo "$as_me: failed program was:" >&5
8710sed 's/^/| /' conftest.$ac_ext >&5
8711
b4e70030 8712ac_header_compiler=no
bec39cab
AC
8713fi
8714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8715echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8716echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8717
8718# Is the header present?
b4e70030
JB
8719echo "$as_me:$LINENO: checking $ac_header presence" >&5
8720echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8721cat >conftest.$ac_ext <<_ACEOF
8722/* confdefs.h. */
8723_ACEOF
8724cat confdefs.h >>conftest.$ac_ext
8725cat >>conftest.$ac_ext <<_ACEOF
8726/* end confdefs.h. */
8727#include <$ac_header>
8728_ACEOF
8729if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8730 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8731 ac_status=$?
8732 grep -v '^ *+' conftest.er1 >conftest.err
8733 rm -f conftest.er1
8734 cat conftest.err >&5
8735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736 (exit $ac_status); } >/dev/null; then
8737 if test -s conftest.err; then
8738 ac_cpp_err=$ac_c_preproc_warn_flag
8739 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8740 else
8741 ac_cpp_err=
8742 fi
5ee754fc 8743else
bec39cab 8744 ac_cpp_err=yes
5ee754fc 8745fi
bec39cab
AC
8746if test -z "$ac_cpp_err"; then
8747 ac_header_preproc=yes
8748else
8749 echo "$as_me: failed program was:" >&5
8750sed 's/^/| /' conftest.$ac_ext >&5
c906108c 8751
bec39cab 8752 ac_header_preproc=no
5ee754fc 8753fi
bec39cab 8754rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8755echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8756echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 8757
bec39cab
AC
8758# So? What about this header?
8759case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8760 yes:no: )
8761 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8762echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8764echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8765 ac_header_preproc=yes
8766 ;;
8767 no:yes:* )
8768 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8769echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8770 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8771echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8772 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8773echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8774 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8775echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8777echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8778 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8779echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8780 (
8781 cat <<\_ASBOX
8782## ------------------------------------------ ##
8783## Report this to the AC_PACKAGE_NAME lists. ##
8784## ------------------------------------------ ##
8785_ASBOX
8786 ) |
8787 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8788 ;;
8789esac
b4e70030
JB
8790echo "$as_me:$LINENO: checking for $ac_header" >&5
8791echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8792if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8793 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 8794else
bec39cab
AC
8795 eval "$as_ac_Header=\$ac_header_preproc"
8796fi
b4e70030
JB
8797echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8798echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 8799
bec39cab
AC
8800fi
8801if test `eval echo '${'$as_ac_Header'}'` = yes; then
8802 cat >>confdefs.h <<_ACEOF
8803#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8804_ACEOF
5ee754fc 8805
bec39cab 8806fi
5ee754fc 8807
bec39cab 8808done
5ee754fc 8809
5ee754fc 8810
bec39cab
AC
8811for ac_header in sys/filio.h
8812do
8813as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8814if eval "test \"\${$as_ac_Header+set}\" = set"; then
8815 echo "$as_me:$LINENO: checking for $ac_header" >&5
8816echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8817if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8818 echo $ECHO_N "(cached) $ECHO_C" >&6
8819fi
b4e70030
JB
8820echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8821echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8822else
8823 # Is the header compilable?
b4e70030
JB
8824echo "$as_me:$LINENO: checking $ac_header usability" >&5
8825echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8826cat >conftest.$ac_ext <<_ACEOF
8827/* confdefs.h. */
8828_ACEOF
8829cat confdefs.h >>conftest.$ac_ext
8830cat >>conftest.$ac_ext <<_ACEOF
8831/* end confdefs.h. */
8832$ac_includes_default
8833#include <$ac_header>
8834_ACEOF
8835rm -f conftest.$ac_objext
8836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8837 (eval $ac_compile) 2>conftest.er1
8838 ac_status=$?
8839 grep -v '^ *+' conftest.er1 >conftest.err
8840 rm -f conftest.er1
8841 cat conftest.err >&5
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); } &&
b4e70030
JB
8844 { ac_try='test -z "$ac_c_werror_flag"
8845 || test ! -s conftest.err'
bec39cab
AC
8846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8847 (eval $ac_try) 2>&5
8848 ac_status=$?
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); }; } &&
8851 { ac_try='test -s conftest.$ac_objext'
8852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8853 (eval $ac_try) 2>&5
8854 ac_status=$?
8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 (exit $ac_status); }; }; then
8857 ac_header_compiler=yes
8858else
8859 echo "$as_me: failed program was:" >&5
8860sed 's/^/| /' conftest.$ac_ext >&5
8861
b4e70030 8862ac_header_compiler=no
bec39cab
AC
8863fi
8864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8865echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8866echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8867
8868# Is the header present?
b4e70030
JB
8869echo "$as_me:$LINENO: checking $ac_header presence" >&5
8870echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8871cat >conftest.$ac_ext <<_ACEOF
8872/* confdefs.h. */
8873_ACEOF
8874cat confdefs.h >>conftest.$ac_ext
8875cat >>conftest.$ac_ext <<_ACEOF
8876/* end confdefs.h. */
8877#include <$ac_header>
8878_ACEOF
8879if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8880 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8881 ac_status=$?
8882 grep -v '^ *+' conftest.er1 >conftest.err
8883 rm -f conftest.er1
8884 cat conftest.err >&5
8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 (exit $ac_status); } >/dev/null; then
8887 if test -s conftest.err; then
8888 ac_cpp_err=$ac_c_preproc_warn_flag
8889 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8890 else
8891 ac_cpp_err=
8892 fi
5ee754fc 8893else
bec39cab 8894 ac_cpp_err=yes
5ee754fc 8895fi
bec39cab
AC
8896if test -z "$ac_cpp_err"; then
8897 ac_header_preproc=yes
8898else
8899 echo "$as_me: failed program was:" >&5
8900sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 8901
bec39cab 8902 ac_header_preproc=no
5ee754fc 8903fi
bec39cab 8904rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8905echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8906echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 8907
bec39cab
AC
8908# So? What about this header?
8909case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8910 yes:no: )
8911 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8912echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8914echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8915 ac_header_preproc=yes
8916 ;;
8917 no:yes:* )
8918 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8919echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8920 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8921echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8922 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8923echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8924 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8925echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8927echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8928 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8929echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8930 (
8931 cat <<\_ASBOX
8932## ------------------------------------------ ##
8933## Report this to the AC_PACKAGE_NAME lists. ##
8934## ------------------------------------------ ##
8935_ASBOX
8936 ) |
8937 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8938 ;;
8939esac
b4e70030
JB
8940echo "$as_me:$LINENO: checking for $ac_header" >&5
8941echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8942if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8943 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 8944else
bec39cab 8945 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 8946fi
b4e70030
JB
8947echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8948echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 8949
5ee754fc 8950fi
bec39cab
AC
8951if test `eval echo '${'$as_ac_Header'}'` = yes; then
8952 cat >>confdefs.h <<_ACEOF
8953#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8954_ACEOF
5ee754fc
MK
8955
8956fi
8957
bec39cab
AC
8958done
8959
8960
8961for ac_header in sys/ioctl.h
8962do
8963as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8964if eval "test \"\${$as_ac_Header+set}\" = set"; then
8965 echo "$as_me:$LINENO: checking for $ac_header" >&5
8966echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8967if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8968 echo $ECHO_N "(cached) $ECHO_C" >&6
8969fi
b4e70030
JB
8970echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8971echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8972else
8973 # Is the header compilable?
b4e70030
JB
8974echo "$as_me:$LINENO: checking $ac_header usability" >&5
8975echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8976cat >conftest.$ac_ext <<_ACEOF
8977/* confdefs.h. */
8978_ACEOF
8979cat confdefs.h >>conftest.$ac_ext
8980cat >>conftest.$ac_ext <<_ACEOF
8981/* end confdefs.h. */
8982$ac_includes_default
8983#include <$ac_header>
8984_ACEOF
8985rm -f conftest.$ac_objext
8986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8987 (eval $ac_compile) 2>conftest.er1
8988 ac_status=$?
8989 grep -v '^ *+' conftest.er1 >conftest.err
8990 rm -f conftest.er1
8991 cat conftest.err >&5
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); } &&
b4e70030
JB
8994 { ac_try='test -z "$ac_c_werror_flag"
8995 || test ! -s conftest.err'
bec39cab
AC
8996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8997 (eval $ac_try) 2>&5
8998 ac_status=$?
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); }; } &&
9001 { ac_try='test -s conftest.$ac_objext'
9002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9003 (eval $ac_try) 2>&5
9004 ac_status=$?
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); }; }; then
9007 ac_header_compiler=yes
9008else
9009 echo "$as_me: failed program was:" >&5
9010sed 's/^/| /' conftest.$ac_ext >&5
9011
b4e70030 9012ac_header_compiler=no
bec39cab
AC
9013fi
9014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9015echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9016echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9017
9018# Is the header present?
b4e70030
JB
9019echo "$as_me:$LINENO: checking $ac_header presence" >&5
9020echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9021cat >conftest.$ac_ext <<_ACEOF
9022/* confdefs.h. */
9023_ACEOF
9024cat confdefs.h >>conftest.$ac_ext
9025cat >>conftest.$ac_ext <<_ACEOF
9026/* end confdefs.h. */
9027#include <$ac_header>
9028_ACEOF
9029if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9030 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9031 ac_status=$?
9032 grep -v '^ *+' conftest.er1 >conftest.err
9033 rm -f conftest.er1
9034 cat conftest.err >&5
9035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036 (exit $ac_status); } >/dev/null; then
9037 if test -s conftest.err; then
9038 ac_cpp_err=$ac_c_preproc_warn_flag
9039 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9040 else
9041 ac_cpp_err=
9042 fi
5ee754fc 9043else
bec39cab 9044 ac_cpp_err=yes
5ee754fc 9045fi
bec39cab
AC
9046if test -z "$ac_cpp_err"; then
9047 ac_header_preproc=yes
9048else
9049 echo "$as_me: failed program was:" >&5
9050sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 9051
bec39cab 9052 ac_header_preproc=no
5ee754fc 9053fi
bec39cab 9054rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9055echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9056echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9057
bec39cab
AC
9058# So? What about this header?
9059case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9060 yes:no: )
9061 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9062echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9063 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9064echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9065 ac_header_preproc=yes
9066 ;;
9067 no:yes:* )
9068 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9069echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9070 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9071echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9072 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9073echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9074 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9075echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9077echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9078 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9079echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9080 (
9081 cat <<\_ASBOX
9082## ------------------------------------------ ##
9083## Report this to the AC_PACKAGE_NAME lists. ##
9084## ------------------------------------------ ##
9085_ASBOX
9086 ) |
9087 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9088 ;;
9089esac
b4e70030
JB
9090echo "$as_me:$LINENO: checking for $ac_header" >&5
9091echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9092if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 9093 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 9094else
bec39cab 9095 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9096fi
b4e70030
JB
9097echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9098echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc
MK
9099
9100fi
bec39cab
AC
9101if test `eval echo '${'$as_ac_Header'}'` = yes; then
9102 cat >>confdefs.h <<_ACEOF
9103#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9104_ACEOF
9105
5ee754fc
MK
9106fi
9107
bec39cab 9108done
5ee754fc 9109
5ee754fc 9110
bec39cab 9111for ac_header in sys/param.h
5ee754fc 9112do
bec39cab 9113as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9114if eval "test \"\${$as_ac_Header+set}\" = set"; then
9115 echo "$as_me:$LINENO: checking for $ac_header" >&5
9116echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9117if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9118 echo $ECHO_N "(cached) $ECHO_C" >&6
9119fi
b4e70030
JB
9120echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9121echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9122else
9123 # Is the header compilable?
b4e70030
JB
9124echo "$as_me:$LINENO: checking $ac_header usability" >&5
9125echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9126cat >conftest.$ac_ext <<_ACEOF
9127/* confdefs.h. */
9128_ACEOF
9129cat confdefs.h >>conftest.$ac_ext
9130cat >>conftest.$ac_ext <<_ACEOF
9131/* end confdefs.h. */
9132$ac_includes_default
9133#include <$ac_header>
9134_ACEOF
9135rm -f conftest.$ac_objext
9136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9137 (eval $ac_compile) 2>conftest.er1
9138 ac_status=$?
9139 grep -v '^ *+' conftest.er1 >conftest.err
9140 rm -f conftest.er1
9141 cat conftest.err >&5
9142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9143 (exit $ac_status); } &&
b4e70030
JB
9144 { ac_try='test -z "$ac_c_werror_flag"
9145 || test ! -s conftest.err'
bec39cab
AC
9146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9147 (eval $ac_try) 2>&5
9148 ac_status=$?
9149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9150 (exit $ac_status); }; } &&
9151 { ac_try='test -s conftest.$ac_objext'
9152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9153 (eval $ac_try) 2>&5
9154 ac_status=$?
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 (exit $ac_status); }; }; then
9157 ac_header_compiler=yes
9158else
9159 echo "$as_me: failed program was:" >&5
9160sed 's/^/| /' conftest.$ac_ext >&5
9161
b4e70030 9162ac_header_compiler=no
bec39cab
AC
9163fi
9164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9165echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9166echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9167
9168# Is the header present?
b4e70030
JB
9169echo "$as_me:$LINENO: checking $ac_header presence" >&5
9170echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9171cat >conftest.$ac_ext <<_ACEOF
9172/* confdefs.h. */
9173_ACEOF
9174cat confdefs.h >>conftest.$ac_ext
9175cat >>conftest.$ac_ext <<_ACEOF
9176/* end confdefs.h. */
9177#include <$ac_header>
9178_ACEOF
9179if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9181 ac_status=$?
9182 grep -v '^ *+' conftest.er1 >conftest.err
9183 rm -f conftest.er1
9184 cat conftest.err >&5
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); } >/dev/null; then
9187 if test -s conftest.err; then
9188 ac_cpp_err=$ac_c_preproc_warn_flag
9189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9190 else
9191 ac_cpp_err=
9192 fi
5ee754fc 9193else
bec39cab 9194 ac_cpp_err=yes
5ee754fc 9195fi
bec39cab
AC
9196if test -z "$ac_cpp_err"; then
9197 ac_header_preproc=yes
9198else
9199 echo "$as_me: failed program was:" >&5
9200sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 9201
bec39cab 9202 ac_header_preproc=no
5ee754fc 9203fi
bec39cab 9204rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9205echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9206echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
9207
9208# So? What about this header?
9209case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9210 yes:no: )
9211 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9212echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9214echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9215 ac_header_preproc=yes
9216 ;;
9217 no:yes:* )
9218 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9219echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9220 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9221echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9222 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9223echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9224 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9225echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9227echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9228 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9229echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9230 (
9231 cat <<\_ASBOX
9232## ------------------------------------------ ##
9233## Report this to the AC_PACKAGE_NAME lists. ##
9234## ------------------------------------------ ##
9235_ASBOX
9236 ) |
9237 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9238 ;;
9239esac
b4e70030
JB
9240echo "$as_me:$LINENO: checking for $ac_header" >&5
9241echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9242if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 9243 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 9244else
bec39cab 9245 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9246fi
b4e70030
JB
9247echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9248echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 9249
5ee754fc 9250fi
bec39cab
AC
9251if test `eval echo '${'$as_ac_Header'}'` = yes; then
9252 cat >>confdefs.h <<_ACEOF
9253#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9254_ACEOF
9255
5ee754fc 9256fi
bec39cab 9257
5ee754fc
MK
9258done
9259
bec39cab 9260
7eb368b3
NR
9261for ac_header in sys/resource.h
9262do
9263as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9264if eval "test \"\${$as_ac_Header+set}\" = set"; then
9265 echo "$as_me:$LINENO: checking for $ac_header" >&5
9266echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9267if eval "test \"\${$as_ac_Header+set}\" = set"; then
9268 echo $ECHO_N "(cached) $ECHO_C" >&6
9269fi
9270echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9271echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9272else
9273 # Is the header compilable?
9274echo "$as_me:$LINENO: checking $ac_header usability" >&5
9275echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9276cat >conftest.$ac_ext <<_ACEOF
9277/* confdefs.h. */
9278_ACEOF
9279cat confdefs.h >>conftest.$ac_ext
9280cat >>conftest.$ac_ext <<_ACEOF
9281/* end confdefs.h. */
9282$ac_includes_default
9283#include <$ac_header>
9284_ACEOF
9285rm -f conftest.$ac_objext
9286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9287 (eval $ac_compile) 2>conftest.er1
9288 ac_status=$?
9289 grep -v '^ *+' conftest.er1 >conftest.err
9290 rm -f conftest.er1
9291 cat conftest.err >&5
9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293 (exit $ac_status); } &&
9294 { ac_try='test -z "$ac_c_werror_flag"
9295 || test ! -s conftest.err'
9296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9297 (eval $ac_try) 2>&5
9298 ac_status=$?
9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300 (exit $ac_status); }; } &&
9301 { ac_try='test -s conftest.$ac_objext'
9302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9303 (eval $ac_try) 2>&5
9304 ac_status=$?
9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 (exit $ac_status); }; }; then
9307 ac_header_compiler=yes
9308else
9309 echo "$as_me: failed program was:" >&5
9310sed 's/^/| /' conftest.$ac_ext >&5
9311
9312ac_header_compiler=no
9313fi
9314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9315echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9316echo "${ECHO_T}$ac_header_compiler" >&6
9317
9318# Is the header present?
9319echo "$as_me:$LINENO: checking $ac_header presence" >&5
9320echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9321cat >conftest.$ac_ext <<_ACEOF
9322/* confdefs.h. */
9323_ACEOF
9324cat confdefs.h >>conftest.$ac_ext
9325cat >>conftest.$ac_ext <<_ACEOF
9326/* end confdefs.h. */
9327#include <$ac_header>
9328_ACEOF
9329if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9330 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9331 ac_status=$?
9332 grep -v '^ *+' conftest.er1 >conftest.err
9333 rm -f conftest.er1
9334 cat conftest.err >&5
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); } >/dev/null; then
9337 if test -s conftest.err; then
9338 ac_cpp_err=$ac_c_preproc_warn_flag
9339 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9340 else
9341 ac_cpp_err=
9342 fi
9343else
9344 ac_cpp_err=yes
9345fi
9346if test -z "$ac_cpp_err"; then
9347 ac_header_preproc=yes
9348else
9349 echo "$as_me: failed program was:" >&5
9350sed 's/^/| /' conftest.$ac_ext >&5
9351
9352 ac_header_preproc=no
9353fi
9354rm -f conftest.err conftest.$ac_ext
9355echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9356echo "${ECHO_T}$ac_header_preproc" >&6
9357
9358# So? What about this header?
9359case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9360 yes:no: )
9361 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9362echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9364echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9365 ac_header_preproc=yes
9366 ;;
9367 no:yes:* )
9368 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9369echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9370 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9371echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9372 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9373echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9374 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9375echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9377echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9378 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9379echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9380 (
9381 cat <<\_ASBOX
9382## ------------------------------------------ ##
9383## Report this to the AC_PACKAGE_NAME lists. ##
9384## ------------------------------------------ ##
9385_ASBOX
9386 ) |
9387 sed "s/^/$as_me: WARNING: /" >&2
9388 ;;
9389esac
9390echo "$as_me:$LINENO: checking for $ac_header" >&5
9391echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9392if eval "test \"\${$as_ac_Header+set}\" = set"; then
9393 echo $ECHO_N "(cached) $ECHO_C" >&6
9394else
9395 eval "$as_ac_Header=\$ac_header_preproc"
9396fi
9397echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9398echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9399
9400fi
9401if test `eval echo '${'$as_ac_Header'}'` = yes; then
9402 cat >>confdefs.h <<_ACEOF
9403#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9404_ACEOF
9405
9406fi
9407
9408done
9409
9410
bec39cab 9411for ac_header in sys/proc.h
5ee754fc 9412do
bec39cab 9413as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9414echo "$as_me:$LINENO: checking for $ac_header" >&5
9415echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9416if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 9417 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 9418else
7cb9022a 9419 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
9420/* confdefs.h. */
9421_ACEOF
9422cat confdefs.h >>conftest.$ac_ext
9423cat >>conftest.$ac_ext <<_ACEOF
9424/* end confdefs.h. */
7cb9022a
MK
9425#if HAVE_SYS_PARAM_H
9426# include <sys/param.h>
9427#endif
9428
9429
bec39cab
AC
9430#include <$ac_header>
9431_ACEOF
9432rm -f conftest.$ac_objext
9433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9434 (eval $ac_compile) 2>conftest.er1
9435 ac_status=$?
9436 grep -v '^ *+' conftest.er1 >conftest.err
9437 rm -f conftest.er1
9438 cat conftest.err >&5
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 (exit $ac_status); } &&
b4e70030
JB
9441 { ac_try='test -z "$ac_c_werror_flag"
9442 || test ! -s conftest.err'
bec39cab
AC
9443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9444 (eval $ac_try) 2>&5
9445 ac_status=$?
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 (exit $ac_status); }; } &&
9448 { ac_try='test -s conftest.$ac_objext'
9449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9450 (eval $ac_try) 2>&5
9451 ac_status=$?
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); }; }; then
7cb9022a 9454 eval "$as_ac_Header=yes"
bec39cab
AC
9455else
9456 echo "$as_me: failed program was:" >&5
9457sed 's/^/| /' conftest.$ac_ext >&5
9458
b4e70030 9459eval "$as_ac_Header=no"
bec39cab
AC
9460fi
9461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 9462fi
b4e70030
JB
9463echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9464echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9465if test `eval echo '${'$as_ac_Header'}'` = yes; then
9466 cat >>confdefs.h <<_ACEOF
9467#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9468_ACEOF
9469
5ee754fc 9470fi
bec39cab 9471
5ee754fc
MK
9472done
9473
bec39cab
AC
9474
9475for ac_header in sys/procfs.h
5ee754fc 9476do
bec39cab 9477as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9478if eval "test \"\${$as_ac_Header+set}\" = set"; then
9479 echo "$as_me:$LINENO: checking for $ac_header" >&5
9480echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9481if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9482 echo $ECHO_N "(cached) $ECHO_C" >&6
9483fi
b4e70030
JB
9484echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9485echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9486else
9487 # Is the header compilable?
b4e70030
JB
9488echo "$as_me:$LINENO: checking $ac_header usability" >&5
9489echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9490cat >conftest.$ac_ext <<_ACEOF
9491/* confdefs.h. */
9492_ACEOF
9493cat confdefs.h >>conftest.$ac_ext
9494cat >>conftest.$ac_ext <<_ACEOF
9495/* end confdefs.h. */
9496$ac_includes_default
9497#include <$ac_header>
9498_ACEOF
9499rm -f conftest.$ac_objext
9500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9501 (eval $ac_compile) 2>conftest.er1
9502 ac_status=$?
9503 grep -v '^ *+' conftest.er1 >conftest.err
9504 rm -f conftest.er1
9505 cat conftest.err >&5
9506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9507 (exit $ac_status); } &&
b4e70030
JB
9508 { ac_try='test -z "$ac_c_werror_flag"
9509 || test ! -s conftest.err'
bec39cab
AC
9510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9511 (eval $ac_try) 2>&5
9512 ac_status=$?
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); }; } &&
9515 { ac_try='test -s conftest.$ac_objext'
9516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9517 (eval $ac_try) 2>&5
9518 ac_status=$?
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); }; }; then
9521 ac_header_compiler=yes
9522else
9523 echo "$as_me: failed program was:" >&5
9524sed 's/^/| /' conftest.$ac_ext >&5
9525
b4e70030 9526ac_header_compiler=no
bec39cab
AC
9527fi
9528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9529echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9530echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9531
9532# Is the header present?
b4e70030
JB
9533echo "$as_me:$LINENO: checking $ac_header presence" >&5
9534echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9535cat >conftest.$ac_ext <<_ACEOF
9536/* confdefs.h. */
9537_ACEOF
9538cat confdefs.h >>conftest.$ac_ext
9539cat >>conftest.$ac_ext <<_ACEOF
9540/* end confdefs.h. */
9541#include <$ac_header>
9542_ACEOF
9543if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9544 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9545 ac_status=$?
9546 grep -v '^ *+' conftest.er1 >conftest.err
9547 rm -f conftest.er1
9548 cat conftest.err >&5
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); } >/dev/null; then
9551 if test -s conftest.err; then
9552 ac_cpp_err=$ac_c_preproc_warn_flag
9553 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9554 else
9555 ac_cpp_err=
9556 fi
9557else
9558 ac_cpp_err=yes
5ee754fc 9559fi
bec39cab
AC
9560if test -z "$ac_cpp_err"; then
9561 ac_header_preproc=yes
5ee754fc 9562else
bec39cab
AC
9563 echo "$as_me: failed program was:" >&5
9564sed 's/^/| /' conftest.$ac_ext >&5
9565
9566 ac_header_preproc=no
5ee754fc 9567fi
bec39cab 9568rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9569echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9570echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9571
bec39cab
AC
9572# So? What about this header?
9573case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9574 yes:no: )
9575 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9576echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9578echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9579 ac_header_preproc=yes
9580 ;;
9581 no:yes:* )
9582 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9583echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9584 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9585echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9586 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9587echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9588 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9589echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9591echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9592 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9593echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9594 (
9595 cat <<\_ASBOX
9596## ------------------------------------------ ##
9597## Report this to the AC_PACKAGE_NAME lists. ##
9598## ------------------------------------------ ##
9599_ASBOX
9600 ) |
9601 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9602 ;;
9603esac
b4e70030
JB
9604echo "$as_me:$LINENO: checking for $ac_header" >&5
9605echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9606if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9607 echo $ECHO_N "(cached) $ECHO_C" >&6
9608else
9609 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9610fi
b4e70030
JB
9611echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9612echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9613
5ee754fc 9614fi
bec39cab
AC
9615if test `eval echo '${'$as_ac_Header'}'` = yes; then
9616 cat >>confdefs.h <<_ACEOF
9617#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9618_ACEOF
9619
5ee754fc 9620fi
bec39cab 9621
5ee754fc
MK
9622done
9623
bec39cab
AC
9624
9625
9626for ac_header in sys/ptrace.h ptrace.h
5ee754fc 9627do
bec39cab 9628as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9629if eval "test \"\${$as_ac_Header+set}\" = set"; then
9630 echo "$as_me:$LINENO: checking for $ac_header" >&5
9631echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9632if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9633 echo $ECHO_N "(cached) $ECHO_C" >&6
9634fi
b4e70030
JB
9635echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9636echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9637else
9638 # Is the header compilable?
b4e70030
JB
9639echo "$as_me:$LINENO: checking $ac_header usability" >&5
9640echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9641cat >conftest.$ac_ext <<_ACEOF
9642/* confdefs.h. */
9643_ACEOF
9644cat confdefs.h >>conftest.$ac_ext
9645cat >>conftest.$ac_ext <<_ACEOF
9646/* end confdefs.h. */
9647$ac_includes_default
9648#include <$ac_header>
9649_ACEOF
9650rm -f conftest.$ac_objext
9651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9652 (eval $ac_compile) 2>conftest.er1
9653 ac_status=$?
9654 grep -v '^ *+' conftest.er1 >conftest.err
9655 rm -f conftest.er1
9656 cat conftest.err >&5
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 (exit $ac_status); } &&
b4e70030
JB
9659 { ac_try='test -z "$ac_c_werror_flag"
9660 || test ! -s conftest.err'
bec39cab
AC
9661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9662 (eval $ac_try) 2>&5
9663 ac_status=$?
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); }; } &&
9666 { ac_try='test -s conftest.$ac_objext'
9667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9668 (eval $ac_try) 2>&5
9669 ac_status=$?
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); }; }; then
9672 ac_header_compiler=yes
9673else
9674 echo "$as_me: failed program was:" >&5
9675sed 's/^/| /' conftest.$ac_ext >&5
9676
b4e70030 9677ac_header_compiler=no
bec39cab
AC
9678fi
9679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9680echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9681echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9682
9683# Is the header present?
b4e70030
JB
9684echo "$as_me:$LINENO: checking $ac_header presence" >&5
9685echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9686cat >conftest.$ac_ext <<_ACEOF
9687/* confdefs.h. */
9688_ACEOF
9689cat confdefs.h >>conftest.$ac_ext
9690cat >>conftest.$ac_ext <<_ACEOF
9691/* end confdefs.h. */
9692#include <$ac_header>
9693_ACEOF
9694if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9695 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9696 ac_status=$?
9697 grep -v '^ *+' conftest.er1 >conftest.err
9698 rm -f conftest.er1
9699 cat conftest.err >&5
9700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); } >/dev/null; then
9702 if test -s conftest.err; then
9703 ac_cpp_err=$ac_c_preproc_warn_flag
9704 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9705 else
9706 ac_cpp_err=
9707 fi
9708else
9709 ac_cpp_err=yes
5ee754fc 9710fi
bec39cab
AC
9711if test -z "$ac_cpp_err"; then
9712 ac_header_preproc=yes
5ee754fc 9713else
bec39cab
AC
9714 echo "$as_me: failed program was:" >&5
9715sed 's/^/| /' conftest.$ac_ext >&5
9716
9717 ac_header_preproc=no
5ee754fc 9718fi
bec39cab 9719rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9720echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9721echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9722
bec39cab
AC
9723# So? What about this header?
9724case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9725 yes:no: )
9726 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9727echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9729echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9730 ac_header_preproc=yes
9731 ;;
9732 no:yes:* )
9733 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9734echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9735 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9736echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9737 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9738echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9739 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9740echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9742echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9743 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9744echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9745 (
9746 cat <<\_ASBOX
9747## ------------------------------------------ ##
9748## Report this to the AC_PACKAGE_NAME lists. ##
9749## ------------------------------------------ ##
9750_ASBOX
9751 ) |
9752 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9753 ;;
9754esac
b4e70030
JB
9755echo "$as_me:$LINENO: checking for $ac_header" >&5
9756echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9757if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9758 echo $ECHO_N "(cached) $ECHO_C" >&6
9759else
9760 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9761fi
b4e70030
JB
9762echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9763echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9764
5ee754fc 9765fi
bec39cab
AC
9766if test `eval echo '${'$as_ac_Header'}'` = yes; then
9767 cat >>confdefs.h <<_ACEOF
9768#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9769_ACEOF
9770
5ee754fc 9771fi
bec39cab 9772
5ee754fc
MK
9773done
9774
bec39cab
AC
9775
9776
9777for ac_header in sys/reg.h sys/debugreg.h
5ee754fc 9778do
bec39cab 9779as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9780if eval "test \"\${$as_ac_Header+set}\" = set"; then
9781 echo "$as_me:$LINENO: checking for $ac_header" >&5
9782echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9783if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9784 echo $ECHO_N "(cached) $ECHO_C" >&6
9785fi
b4e70030
JB
9786echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9787echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9788else
9789 # Is the header compilable?
b4e70030
JB
9790echo "$as_me:$LINENO: checking $ac_header usability" >&5
9791echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9792cat >conftest.$ac_ext <<_ACEOF
9793/* confdefs.h. */
9794_ACEOF
9795cat confdefs.h >>conftest.$ac_ext
9796cat >>conftest.$ac_ext <<_ACEOF
9797/* end confdefs.h. */
9798$ac_includes_default
9799#include <$ac_header>
9800_ACEOF
9801rm -f conftest.$ac_objext
9802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9803 (eval $ac_compile) 2>conftest.er1
9804 ac_status=$?
9805 grep -v '^ *+' conftest.er1 >conftest.err
9806 rm -f conftest.er1
9807 cat conftest.err >&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); } &&
b4e70030
JB
9810 { ac_try='test -z "$ac_c_werror_flag"
9811 || test ! -s conftest.err'
bec39cab
AC
9812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9813 (eval $ac_try) 2>&5
9814 ac_status=$?
9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816 (exit $ac_status); }; } &&
9817 { ac_try='test -s conftest.$ac_objext'
9818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9819 (eval $ac_try) 2>&5
9820 ac_status=$?
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); }; }; then
9823 ac_header_compiler=yes
9824else
9825 echo "$as_me: failed program was:" >&5
9826sed 's/^/| /' conftest.$ac_ext >&5
9827
b4e70030 9828ac_header_compiler=no
bec39cab
AC
9829fi
9830rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9831echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9832echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9833
9834# Is the header present?
b4e70030
JB
9835echo "$as_me:$LINENO: checking $ac_header presence" >&5
9836echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9837cat >conftest.$ac_ext <<_ACEOF
9838/* confdefs.h. */
9839_ACEOF
9840cat confdefs.h >>conftest.$ac_ext
9841cat >>conftest.$ac_ext <<_ACEOF
9842/* end confdefs.h. */
9843#include <$ac_header>
9844_ACEOF
9845if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9846 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9847 ac_status=$?
9848 grep -v '^ *+' conftest.er1 >conftest.err
9849 rm -f conftest.er1
9850 cat conftest.err >&5
9851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9852 (exit $ac_status); } >/dev/null; then
9853 if test -s conftest.err; then
9854 ac_cpp_err=$ac_c_preproc_warn_flag
9855 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9856 else
9857 ac_cpp_err=
9858 fi
9859else
9860 ac_cpp_err=yes
5ee754fc 9861fi
bec39cab
AC
9862if test -z "$ac_cpp_err"; then
9863 ac_header_preproc=yes
5ee754fc 9864else
bec39cab
AC
9865 echo "$as_me: failed program was:" >&5
9866sed 's/^/| /' conftest.$ac_ext >&5
9867
9868 ac_header_preproc=no
5ee754fc 9869fi
bec39cab 9870rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9871echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9872echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9873
bec39cab
AC
9874# So? What about this header?
9875case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9876 yes:no: )
9877 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9878echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9880echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9881 ac_header_preproc=yes
9882 ;;
9883 no:yes:* )
9884 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9885echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9886 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9887echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9888 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9889echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9890 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9891echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9893echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9894 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9895echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9896 (
9897 cat <<\_ASBOX
9898## ------------------------------------------ ##
9899## Report this to the AC_PACKAGE_NAME lists. ##
9900## ------------------------------------------ ##
9901_ASBOX
9902 ) |
9903 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9904 ;;
9905esac
b4e70030
JB
9906echo "$as_me:$LINENO: checking for $ac_header" >&5
9907echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9908if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9909 echo $ECHO_N "(cached) $ECHO_C" >&6
9910else
9911 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9912fi
b4e70030
JB
9913echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9914echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9915
5ee754fc 9916fi
bec39cab
AC
9917if test `eval echo '${'$as_ac_Header'}'` = yes; then
9918 cat >>confdefs.h <<_ACEOF
9919#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9920_ACEOF
9921
5ee754fc 9922fi
bec39cab 9923
5ee754fc
MK
9924done
9925
bec39cab
AC
9926
9927for ac_header in sys/select.h
5ee754fc 9928do
bec39cab 9929as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9930if eval "test \"\${$as_ac_Header+set}\" = set"; then
9931 echo "$as_me:$LINENO: checking for $ac_header" >&5
9932echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9933if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9934 echo $ECHO_N "(cached) $ECHO_C" >&6
9935fi
b4e70030
JB
9936echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9937echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9938else
9939 # Is the header compilable?
b4e70030
JB
9940echo "$as_me:$LINENO: checking $ac_header usability" >&5
9941echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9942cat >conftest.$ac_ext <<_ACEOF
9943/* confdefs.h. */
9944_ACEOF
9945cat confdefs.h >>conftest.$ac_ext
9946cat >>conftest.$ac_ext <<_ACEOF
9947/* end confdefs.h. */
9948$ac_includes_default
9949#include <$ac_header>
9950_ACEOF
9951rm -f conftest.$ac_objext
9952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9953 (eval $ac_compile) 2>conftest.er1
9954 ac_status=$?
9955 grep -v '^ *+' conftest.er1 >conftest.err
9956 rm -f conftest.er1
9957 cat conftest.err >&5
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); } &&
b4e70030
JB
9960 { ac_try='test -z "$ac_c_werror_flag"
9961 || test ! -s conftest.err'
bec39cab
AC
9962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9963 (eval $ac_try) 2>&5
9964 ac_status=$?
9965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9966 (exit $ac_status); }; } &&
9967 { ac_try='test -s conftest.$ac_objext'
9968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9969 (eval $ac_try) 2>&5
9970 ac_status=$?
9971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9972 (exit $ac_status); }; }; then
9973 ac_header_compiler=yes
9974else
9975 echo "$as_me: failed program was:" >&5
9976sed 's/^/| /' conftest.$ac_ext >&5
9977
b4e70030 9978ac_header_compiler=no
bec39cab
AC
9979fi
9980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9981echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9982echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9983
9984# Is the header present?
b4e70030
JB
9985echo "$as_me:$LINENO: checking $ac_header presence" >&5
9986echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9987cat >conftest.$ac_ext <<_ACEOF
9988/* confdefs.h. */
9989_ACEOF
9990cat confdefs.h >>conftest.$ac_ext
9991cat >>conftest.$ac_ext <<_ACEOF
9992/* end confdefs.h. */
9993#include <$ac_header>
9994_ACEOF
9995if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9996 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9997 ac_status=$?
9998 grep -v '^ *+' conftest.er1 >conftest.err
9999 rm -f conftest.er1
10000 cat conftest.err >&5
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); } >/dev/null; then
10003 if test -s conftest.err; then
10004 ac_cpp_err=$ac_c_preproc_warn_flag
10005 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10006 else
10007 ac_cpp_err=
10008 fi
10009else
10010 ac_cpp_err=yes
5ee754fc 10011fi
bec39cab
AC
10012if test -z "$ac_cpp_err"; then
10013 ac_header_preproc=yes
5ee754fc 10014else
bec39cab
AC
10015 echo "$as_me: failed program was:" >&5
10016sed 's/^/| /' conftest.$ac_ext >&5
10017
10018 ac_header_preproc=no
5ee754fc 10019fi
bec39cab 10020rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10021echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10022echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10023
bec39cab
AC
10024# So? What about this header?
10025case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10026 yes:no: )
10027 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10028echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10030echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10031 ac_header_preproc=yes
10032 ;;
10033 no:yes:* )
10034 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10035echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10036 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10037echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10038 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10039echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10040 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10041echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10043echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10044 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10045echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10046 (
10047 cat <<\_ASBOX
10048## ------------------------------------------ ##
10049## Report this to the AC_PACKAGE_NAME lists. ##
10050## ------------------------------------------ ##
10051_ASBOX
10052 ) |
10053 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10054 ;;
10055esac
b4e70030
JB
10056echo "$as_me:$LINENO: checking for $ac_header" >&5
10057echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10058if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10059 echo $ECHO_N "(cached) $ECHO_C" >&6
10060else
10061 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10062fi
b4e70030
JB
10063echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10064echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10065
5ee754fc 10066fi
bec39cab
AC
10067if test `eval echo '${'$as_ac_Header'}'` = yes; then
10068 cat >>confdefs.h <<_ACEOF
10069#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10070_ACEOF
10071
5ee754fc 10072fi
bec39cab 10073
5ee754fc
MK
10074done
10075
bec39cab
AC
10076
10077for ac_header in sys/syscall.h
5ee754fc 10078do
bec39cab 10079as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10080if eval "test \"\${$as_ac_Header+set}\" = set"; then
10081 echo "$as_me:$LINENO: checking for $ac_header" >&5
10082echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10083if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10084 echo $ECHO_N "(cached) $ECHO_C" >&6
10085fi
b4e70030
JB
10086echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10087echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10088else
10089 # Is the header compilable?
b4e70030
JB
10090echo "$as_me:$LINENO: checking $ac_header usability" >&5
10091echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10092cat >conftest.$ac_ext <<_ACEOF
10093/* confdefs.h. */
10094_ACEOF
10095cat confdefs.h >>conftest.$ac_ext
10096cat >>conftest.$ac_ext <<_ACEOF
10097/* end confdefs.h. */
10098$ac_includes_default
10099#include <$ac_header>
10100_ACEOF
10101rm -f conftest.$ac_objext
10102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10103 (eval $ac_compile) 2>conftest.er1
10104 ac_status=$?
10105 grep -v '^ *+' conftest.er1 >conftest.err
10106 rm -f conftest.er1
10107 cat conftest.err >&5
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); } &&
b4e70030
JB
10110 { ac_try='test -z "$ac_c_werror_flag"
10111 || test ! -s conftest.err'
bec39cab
AC
10112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10113 (eval $ac_try) 2>&5
10114 ac_status=$?
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); }; } &&
10117 { ac_try='test -s conftest.$ac_objext'
10118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10119 (eval $ac_try) 2>&5
10120 ac_status=$?
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); }; }; then
10123 ac_header_compiler=yes
10124else
10125 echo "$as_me: failed program was:" >&5
10126sed 's/^/| /' conftest.$ac_ext >&5
10127
b4e70030 10128ac_header_compiler=no
bec39cab
AC
10129fi
10130rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10131echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10132echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10133
10134# Is the header present?
b4e70030
JB
10135echo "$as_me:$LINENO: checking $ac_header presence" >&5
10136echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10137cat >conftest.$ac_ext <<_ACEOF
10138/* confdefs.h. */
10139_ACEOF
10140cat confdefs.h >>conftest.$ac_ext
10141cat >>conftest.$ac_ext <<_ACEOF
10142/* end confdefs.h. */
10143#include <$ac_header>
10144_ACEOF
10145if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10147 ac_status=$?
10148 grep -v '^ *+' conftest.er1 >conftest.err
10149 rm -f conftest.er1
10150 cat conftest.err >&5
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); } >/dev/null; then
10153 if test -s conftest.err; then
10154 ac_cpp_err=$ac_c_preproc_warn_flag
10155 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10156 else
10157 ac_cpp_err=
10158 fi
10159else
10160 ac_cpp_err=yes
5ee754fc 10161fi
bec39cab
AC
10162if test -z "$ac_cpp_err"; then
10163 ac_header_preproc=yes
5ee754fc 10164else
bec39cab
AC
10165 echo "$as_me: failed program was:" >&5
10166sed 's/^/| /' conftest.$ac_ext >&5
10167
10168 ac_header_preproc=no
5ee754fc 10169fi
bec39cab 10170rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10171echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10172echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10173
bec39cab
AC
10174# So? What about this header?
10175case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10176 yes:no: )
10177 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10178echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10180echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10181 ac_header_preproc=yes
10182 ;;
10183 no:yes:* )
10184 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10185echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10186 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10187echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10188 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10189echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10190 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10191echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10193echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10194 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10195echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10196 (
10197 cat <<\_ASBOX
10198## ------------------------------------------ ##
10199## Report this to the AC_PACKAGE_NAME lists. ##
10200## ------------------------------------------ ##
10201_ASBOX
10202 ) |
10203 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10204 ;;
10205esac
b4e70030
JB
10206echo "$as_me:$LINENO: checking for $ac_header" >&5
10207echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10208if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10209 echo $ECHO_N "(cached) $ECHO_C" >&6
10210else
10211 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10212fi
b4e70030
JB
10213echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10214echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10215
5ee754fc 10216fi
bec39cab
AC
10217if test `eval echo '${'$as_ac_Header'}'` = yes; then
10218 cat >>confdefs.h <<_ACEOF
10219#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10220_ACEOF
10221
5ee754fc 10222fi
bec39cab 10223
5ee754fc
MK
10224done
10225
bec39cab
AC
10226
10227for ac_header in sys/types.h
5ee754fc 10228do
bec39cab 10229as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10230if eval "test \"\${$as_ac_Header+set}\" = set"; then
10231 echo "$as_me:$LINENO: checking for $ac_header" >&5
10232echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10233if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10234 echo $ECHO_N "(cached) $ECHO_C" >&6
10235fi
b4e70030
JB
10236echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10237echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10238else
10239 # Is the header compilable?
b4e70030
JB
10240echo "$as_me:$LINENO: checking $ac_header usability" >&5
10241echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10242cat >conftest.$ac_ext <<_ACEOF
10243/* confdefs.h. */
10244_ACEOF
10245cat confdefs.h >>conftest.$ac_ext
10246cat >>conftest.$ac_ext <<_ACEOF
10247/* end confdefs.h. */
10248$ac_includes_default
10249#include <$ac_header>
10250_ACEOF
10251rm -f conftest.$ac_objext
10252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10253 (eval $ac_compile) 2>conftest.er1
10254 ac_status=$?
10255 grep -v '^ *+' conftest.er1 >conftest.err
10256 rm -f conftest.er1
10257 cat conftest.err >&5
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); } &&
b4e70030
JB
10260 { ac_try='test -z "$ac_c_werror_flag"
10261 || test ! -s conftest.err'
bec39cab
AC
10262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10263 (eval $ac_try) 2>&5
10264 ac_status=$?
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); }; } &&
10267 { ac_try='test -s conftest.$ac_objext'
10268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10269 (eval $ac_try) 2>&5
10270 ac_status=$?
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); }; }; then
10273 ac_header_compiler=yes
10274else
10275 echo "$as_me: failed program was:" >&5
10276sed 's/^/| /' conftest.$ac_ext >&5
10277
b4e70030 10278ac_header_compiler=no
bec39cab
AC
10279fi
10280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10281echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10282echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10283
10284# Is the header present?
b4e70030
JB
10285echo "$as_me:$LINENO: checking $ac_header presence" >&5
10286echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10287cat >conftest.$ac_ext <<_ACEOF
10288/* confdefs.h. */
10289_ACEOF
10290cat confdefs.h >>conftest.$ac_ext
10291cat >>conftest.$ac_ext <<_ACEOF
10292/* end confdefs.h. */
10293#include <$ac_header>
10294_ACEOF
10295if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10296 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10297 ac_status=$?
10298 grep -v '^ *+' conftest.er1 >conftest.err
10299 rm -f conftest.er1
10300 cat conftest.err >&5
10301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10302 (exit $ac_status); } >/dev/null; then
10303 if test -s conftest.err; then
10304 ac_cpp_err=$ac_c_preproc_warn_flag
10305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10306 else
10307 ac_cpp_err=
10308 fi
10309else
10310 ac_cpp_err=yes
5ee754fc 10311fi
bec39cab
AC
10312if test -z "$ac_cpp_err"; then
10313 ac_header_preproc=yes
5ee754fc 10314else
bec39cab
AC
10315 echo "$as_me: failed program was:" >&5
10316sed 's/^/| /' conftest.$ac_ext >&5
10317
10318 ac_header_preproc=no
5ee754fc 10319fi
bec39cab 10320rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10321echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10322echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10323
bec39cab
AC
10324# So? What about this header?
10325case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10326 yes:no: )
10327 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10328echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10330echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10331 ac_header_preproc=yes
10332 ;;
10333 no:yes:* )
10334 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10335echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10336 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10337echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10338 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10339echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10340 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10341echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10343echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10344 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10345echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10346 (
10347 cat <<\_ASBOX
10348## ------------------------------------------ ##
10349## Report this to the AC_PACKAGE_NAME lists. ##
10350## ------------------------------------------ ##
10351_ASBOX
10352 ) |
10353 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10354 ;;
10355esac
b4e70030
JB
10356echo "$as_me:$LINENO: checking for $ac_header" >&5
10357echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10358if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10359 echo $ECHO_N "(cached) $ECHO_C" >&6
10360else
10361 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10362fi
b4e70030
JB
10363echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10364echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10365
5ee754fc 10366fi
bec39cab
AC
10367if test `eval echo '${'$as_ac_Header'}'` = yes; then
10368 cat >>confdefs.h <<_ACEOF
10369#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10370_ACEOF
10371
5ee754fc 10372fi
bec39cab 10373
5ee754fc
MK
10374done
10375
bec39cab
AC
10376
10377for ac_header in sys/user.h
5ee754fc 10378do
bec39cab 10379as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10380echo "$as_me:$LINENO: checking for $ac_header" >&5
10381echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10382if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 10383 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 10384else
7cb9022a 10385 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
10386/* confdefs.h. */
10387_ACEOF
10388cat confdefs.h >>conftest.$ac_ext
10389cat >>conftest.$ac_ext <<_ACEOF
10390/* end confdefs.h. */
7cb9022a
MK
10391#if HAVE_SYS_PARAM_H
10392# include <sys/param.h>
10393#endif
10394
10395
bec39cab
AC
10396#include <$ac_header>
10397_ACEOF
10398rm -f conftest.$ac_objext
10399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10400 (eval $ac_compile) 2>conftest.er1
10401 ac_status=$?
10402 grep -v '^ *+' conftest.er1 >conftest.err
10403 rm -f conftest.er1
10404 cat conftest.err >&5
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); } &&
b4e70030
JB
10407 { ac_try='test -z "$ac_c_werror_flag"
10408 || test ! -s conftest.err'
bec39cab
AC
10409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10410 (eval $ac_try) 2>&5
10411 ac_status=$?
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); }; } &&
10414 { ac_try='test -s conftest.$ac_objext'
10415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10416 (eval $ac_try) 2>&5
10417 ac_status=$?
10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); }; }; then
7cb9022a 10420 eval "$as_ac_Header=yes"
bec39cab
AC
10421else
10422 echo "$as_me: failed program was:" >&5
10423sed 's/^/| /' conftest.$ac_ext >&5
10424
b4e70030 10425eval "$as_ac_Header=no"
bec39cab
AC
10426fi
10427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 10428fi
b4e70030
JB
10429echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10430echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10431if test `eval echo '${'$as_ac_Header'}'` = yes; then
10432 cat >>confdefs.h <<_ACEOF
10433#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10434_ACEOF
10435
5ee754fc 10436fi
bec39cab 10437
5ee754fc
MK
10438done
10439
bec39cab
AC
10440
10441
10442for ac_header in sys/wait.h wait.h
5ee754fc 10443do
bec39cab 10444as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10445if eval "test \"\${$as_ac_Header+set}\" = set"; then
10446 echo "$as_me:$LINENO: checking for $ac_header" >&5
10447echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10448if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10449 echo $ECHO_N "(cached) $ECHO_C" >&6
10450fi
b4e70030
JB
10451echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10452echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10453else
10454 # Is the header compilable?
b4e70030
JB
10455echo "$as_me:$LINENO: checking $ac_header usability" >&5
10456echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10457cat >conftest.$ac_ext <<_ACEOF
10458/* confdefs.h. */
10459_ACEOF
10460cat confdefs.h >>conftest.$ac_ext
10461cat >>conftest.$ac_ext <<_ACEOF
10462/* end confdefs.h. */
10463$ac_includes_default
10464#include <$ac_header>
10465_ACEOF
10466rm -f conftest.$ac_objext
10467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10468 (eval $ac_compile) 2>conftest.er1
10469 ac_status=$?
10470 grep -v '^ *+' conftest.er1 >conftest.err
10471 rm -f conftest.er1
10472 cat conftest.err >&5
10473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10474 (exit $ac_status); } &&
b4e70030
JB
10475 { ac_try='test -z "$ac_c_werror_flag"
10476 || test ! -s conftest.err'
bec39cab
AC
10477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10478 (eval $ac_try) 2>&5
10479 ac_status=$?
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10481 (exit $ac_status); }; } &&
10482 { ac_try='test -s conftest.$ac_objext'
10483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10484 (eval $ac_try) 2>&5
10485 ac_status=$?
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); }; }; then
10488 ac_header_compiler=yes
10489else
10490 echo "$as_me: failed program was:" >&5
10491sed 's/^/| /' conftest.$ac_ext >&5
10492
b4e70030 10493ac_header_compiler=no
bec39cab
AC
10494fi
10495rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10496echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10497echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10498
10499# Is the header present?
b4e70030
JB
10500echo "$as_me:$LINENO: checking $ac_header presence" >&5
10501echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10502cat >conftest.$ac_ext <<_ACEOF
10503/* confdefs.h. */
10504_ACEOF
10505cat confdefs.h >>conftest.$ac_ext
10506cat >>conftest.$ac_ext <<_ACEOF
10507/* end confdefs.h. */
10508#include <$ac_header>
10509_ACEOF
10510if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10511 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10512 ac_status=$?
10513 grep -v '^ *+' conftest.er1 >conftest.err
10514 rm -f conftest.er1
10515 cat conftest.err >&5
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); } >/dev/null; then
10518 if test -s conftest.err; then
10519 ac_cpp_err=$ac_c_preproc_warn_flag
10520 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10521 else
10522 ac_cpp_err=
10523 fi
10524else
10525 ac_cpp_err=yes
5ee754fc 10526fi
bec39cab
AC
10527if test -z "$ac_cpp_err"; then
10528 ac_header_preproc=yes
5ee754fc 10529else
bec39cab
AC
10530 echo "$as_me: failed program was:" >&5
10531sed 's/^/| /' conftest.$ac_ext >&5
10532
10533 ac_header_preproc=no
5ee754fc 10534fi
bec39cab 10535rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10536echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10537echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10538
bec39cab
AC
10539# So? What about this header?
10540case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10541 yes:no: )
10542 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10543echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10544 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10545echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10546 ac_header_preproc=yes
10547 ;;
10548 no:yes:* )
10549 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10550echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10551 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10552echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10553 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10554echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10555 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10556echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10558echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10559 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10560echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10561 (
10562 cat <<\_ASBOX
10563## ------------------------------------------ ##
10564## Report this to the AC_PACKAGE_NAME lists. ##
10565## ------------------------------------------ ##
10566_ASBOX
10567 ) |
10568 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10569 ;;
10570esac
b4e70030
JB
10571echo "$as_me:$LINENO: checking for $ac_header" >&5
10572echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10573if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10574 echo $ECHO_N "(cached) $ECHO_C" >&6
10575else
10576 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 10577fi
b4e70030
JB
10578echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10579echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10580
9608ab8b 10581fi
bec39cab
AC
10582if test `eval echo '${'$as_ac_Header'}'` = yes; then
10583 cat >>confdefs.h <<_ACEOF
10584#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10585_ACEOF
10586
9608ab8b 10587fi
bec39cab 10588
9608ab8b 10589done
5ee754fc 10590
bec39cab
AC
10591
10592
10593
10594for ac_header in termios.h termio.h sgtty.h
5ee754fc 10595do
bec39cab 10596as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10597if eval "test \"\${$as_ac_Header+set}\" = set"; then
10598 echo "$as_me:$LINENO: checking for $ac_header" >&5
10599echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10600if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10601 echo $ECHO_N "(cached) $ECHO_C" >&6
10602fi
b4e70030
JB
10603echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10604echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10605else
10606 # Is the header compilable?
b4e70030
JB
10607echo "$as_me:$LINENO: checking $ac_header usability" >&5
10608echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10609cat >conftest.$ac_ext <<_ACEOF
10610/* confdefs.h. */
10611_ACEOF
10612cat confdefs.h >>conftest.$ac_ext
10613cat >>conftest.$ac_ext <<_ACEOF
10614/* end confdefs.h. */
10615$ac_includes_default
10616#include <$ac_header>
10617_ACEOF
10618rm -f conftest.$ac_objext
10619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10620 (eval $ac_compile) 2>conftest.er1
10621 ac_status=$?
10622 grep -v '^ *+' conftest.er1 >conftest.err
10623 rm -f conftest.er1
10624 cat conftest.err >&5
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); } &&
b4e70030
JB
10627 { ac_try='test -z "$ac_c_werror_flag"
10628 || test ! -s conftest.err'
bec39cab
AC
10629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10630 (eval $ac_try) 2>&5
10631 ac_status=$?
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); }; } &&
10634 { ac_try='test -s conftest.$ac_objext'
10635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10636 (eval $ac_try) 2>&5
10637 ac_status=$?
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); }; }; then
10640 ac_header_compiler=yes
10641else
10642 echo "$as_me: failed program was:" >&5
10643sed 's/^/| /' conftest.$ac_ext >&5
10644
b4e70030 10645ac_header_compiler=no
bec39cab
AC
10646fi
10647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10648echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10649echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10650
10651# Is the header present?
b4e70030
JB
10652echo "$as_me:$LINENO: checking $ac_header presence" >&5
10653echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10654cat >conftest.$ac_ext <<_ACEOF
10655/* confdefs.h. */
10656_ACEOF
10657cat confdefs.h >>conftest.$ac_ext
10658cat >>conftest.$ac_ext <<_ACEOF
10659/* end confdefs.h. */
10660#include <$ac_header>
10661_ACEOF
10662if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10664 ac_status=$?
10665 grep -v '^ *+' conftest.er1 >conftest.err
10666 rm -f conftest.er1
10667 cat conftest.err >&5
10668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 (exit $ac_status); } >/dev/null; then
10670 if test -s conftest.err; then
10671 ac_cpp_err=$ac_c_preproc_warn_flag
10672 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10673 else
10674 ac_cpp_err=
10675 fi
10676else
10677 ac_cpp_err=yes
9608ab8b 10678fi
bec39cab
AC
10679if test -z "$ac_cpp_err"; then
10680 ac_header_preproc=yes
9608ab8b 10681else
bec39cab
AC
10682 echo "$as_me: failed program was:" >&5
10683sed 's/^/| /' conftest.$ac_ext >&5
10684
10685 ac_header_preproc=no
9608ab8b 10686fi
bec39cab 10687rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10688echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10689echo "${ECHO_T}$ac_header_preproc" >&6
9608ab8b 10690
bec39cab
AC
10691# So? What about this header?
10692case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10693 yes:no: )
10694 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10695echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10697echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10698 ac_header_preproc=yes
10699 ;;
10700 no:yes:* )
10701 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10702echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10703 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10704echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10705 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10706echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10707 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10708echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10710echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10711 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10712echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10713 (
10714 cat <<\_ASBOX
10715## ------------------------------------------ ##
10716## Report this to the AC_PACKAGE_NAME lists. ##
10717## ------------------------------------------ ##
10718_ASBOX
10719 ) |
10720 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10721 ;;
10722esac
b4e70030
JB
10723echo "$as_me:$LINENO: checking for $ac_header" >&5
10724echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10725if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10726 echo $ECHO_N "(cached) $ECHO_C" >&6
10727else
10728 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 10729fi
b4e70030
JB
10730echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10731echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10732
9608ab8b 10733fi
bec39cab
AC
10734if test `eval echo '${'$as_ac_Header'}'` = yes; then
10735 cat >>confdefs.h <<_ACEOF
10736#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10737_ACEOF
10738
9608ab8b 10739fi
bec39cab 10740
5ee754fc 10741done
9608ab8b 10742
bec39cab
AC
10743
10744for ac_header in unistd.h
78434e59 10745do
bec39cab 10746as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10747if eval "test \"\${$as_ac_Header+set}\" = set"; then
10748 echo "$as_me:$LINENO: checking for $ac_header" >&5
10749echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10750if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10751 echo $ECHO_N "(cached) $ECHO_C" >&6
10752fi
b4e70030
JB
10753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10754echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10755else
10756 # Is the header compilable?
b4e70030
JB
10757echo "$as_me:$LINENO: checking $ac_header usability" >&5
10758echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10759cat >conftest.$ac_ext <<_ACEOF
10760/* confdefs.h. */
10761_ACEOF
10762cat confdefs.h >>conftest.$ac_ext
10763cat >>conftest.$ac_ext <<_ACEOF
10764/* end confdefs.h. */
10765$ac_includes_default
10766#include <$ac_header>
10767_ACEOF
10768rm -f conftest.$ac_objext
10769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10770 (eval $ac_compile) 2>conftest.er1
10771 ac_status=$?
10772 grep -v '^ *+' conftest.er1 >conftest.err
10773 rm -f conftest.er1
10774 cat conftest.err >&5
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); } &&
b4e70030
JB
10777 { ac_try='test -z "$ac_c_werror_flag"
10778 || test ! -s conftest.err'
bec39cab
AC
10779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10780 (eval $ac_try) 2>&5
10781 ac_status=$?
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); }; } &&
10784 { ac_try='test -s conftest.$ac_objext'
10785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10786 (eval $ac_try) 2>&5
10787 ac_status=$?
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); }; }; then
10790 ac_header_compiler=yes
10791else
10792 echo "$as_me: failed program was:" >&5
10793sed 's/^/| /' conftest.$ac_ext >&5
10794
b4e70030 10795ac_header_compiler=no
bec39cab
AC
10796fi
10797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10798echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10799echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10800
10801# Is the header present?
b4e70030
JB
10802echo "$as_me:$LINENO: checking $ac_header presence" >&5
10803echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10804cat >conftest.$ac_ext <<_ACEOF
10805/* confdefs.h. */
10806_ACEOF
10807cat confdefs.h >>conftest.$ac_ext
10808cat >>conftest.$ac_ext <<_ACEOF
10809/* end confdefs.h. */
10810#include <$ac_header>
10811_ACEOF
10812if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10814 ac_status=$?
10815 grep -v '^ *+' conftest.er1 >conftest.err
10816 rm -f conftest.er1
10817 cat conftest.err >&5
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); } >/dev/null; then
10820 if test -s conftest.err; then
10821 ac_cpp_err=$ac_c_preproc_warn_flag
10822 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10823 else
10824 ac_cpp_err=
10825 fi
10826else
10827 ac_cpp_err=yes
78434e59 10828fi
bec39cab
AC
10829if test -z "$ac_cpp_err"; then
10830 ac_header_preproc=yes
78434e59 10831else
bec39cab
AC
10832 echo "$as_me: failed program was:" >&5
10833sed 's/^/| /' conftest.$ac_ext >&5
10834
10835 ac_header_preproc=no
78434e59 10836fi
bec39cab 10837rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10838echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10839echo "${ECHO_T}$ac_header_preproc" >&6
78434e59 10840
bec39cab
AC
10841# So? What about this header?
10842case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10843 yes:no: )
10844 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10845echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10847echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10848 ac_header_preproc=yes
10849 ;;
10850 no:yes:* )
10851 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10852echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10853 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10854echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10855 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10856echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10857 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10858echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10860echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10861 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10862echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10863 (
10864 cat <<\_ASBOX
10865## ------------------------------------------ ##
10866## Report this to the AC_PACKAGE_NAME lists. ##
10867## ------------------------------------------ ##
10868_ASBOX
10869 ) |
10870 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10871 ;;
10872esac
b4e70030
JB
10873echo "$as_me:$LINENO: checking for $ac_header" >&5
10874echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10875if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10876 echo $ECHO_N "(cached) $ECHO_C" >&6
10877else
10878 eval "$as_ac_Header=\$ac_header_preproc"
086ec9eb 10879fi
b4e70030
JB
10880echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10881echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10882
086ec9eb 10883fi
bec39cab
AC
10884if test `eval echo '${'$as_ac_Header'}'` = yes; then
10885 cat >>confdefs.h <<_ACEOF
10886#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10887_ACEOF
10888
086ec9eb 10889fi
bec39cab 10890
086ec9eb
MK
10891done
10892
9608ab8b 10893
b1d19a62 10894# On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
5ee754fc
MK
10895# between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
10896# think that we don't have <curses.h> if we're using GCC.
10897case $host_os in
b1d19a62 10898 solaris2.[789])
5ee754fc 10899 if test "$GCC" = yes; then
bec39cab
AC
10900
10901cat >>confdefs.h <<\_ACEOF
5ee754fc 10902#define _MSE_INT_H 1
bec39cab 10903_ACEOF
5ee754fc
MK
10904
10905 fi ;;
10906esac
bec39cab
AC
10907
10908
10909
10910
10911for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
5ee754fc 10912do
bec39cab 10913as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10914if eval "test \"\${$as_ac_Header+set}\" = set"; then
10915 echo "$as_me:$LINENO: checking for $ac_header" >&5
10916echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10917if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10918 echo $ECHO_N "(cached) $ECHO_C" >&6
10919fi
b4e70030
JB
10920echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10921echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10922else
10923 # Is the header compilable?
b4e70030
JB
10924echo "$as_me:$LINENO: checking $ac_header usability" >&5
10925echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10926cat >conftest.$ac_ext <<_ACEOF
10927/* confdefs.h. */
10928_ACEOF
10929cat confdefs.h >>conftest.$ac_ext
10930cat >>conftest.$ac_ext <<_ACEOF
10931/* end confdefs.h. */
10932$ac_includes_default
10933#include <$ac_header>
10934_ACEOF
10935rm -f conftest.$ac_objext
10936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10937 (eval $ac_compile) 2>conftest.er1
10938 ac_status=$?
10939 grep -v '^ *+' conftest.er1 >conftest.err
10940 rm -f conftest.er1
10941 cat conftest.err >&5
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); } &&
b4e70030
JB
10944 { ac_try='test -z "$ac_c_werror_flag"
10945 || test ! -s conftest.err'
bec39cab
AC
10946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10947 (eval $ac_try) 2>&5
10948 ac_status=$?
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); }; } &&
10951 { ac_try='test -s conftest.$ac_objext'
10952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10953 (eval $ac_try) 2>&5
10954 ac_status=$?
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); }; }; then
10957 ac_header_compiler=yes
10958else
10959 echo "$as_me: failed program was:" >&5
10960sed 's/^/| /' conftest.$ac_ext >&5
10961
b4e70030 10962ac_header_compiler=no
bec39cab
AC
10963fi
10964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10965echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10966echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10967
10968# Is the header present?
b4e70030
JB
10969echo "$as_me:$LINENO: checking $ac_header presence" >&5
10970echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10971cat >conftest.$ac_ext <<_ACEOF
10972/* confdefs.h. */
10973_ACEOF
10974cat confdefs.h >>conftest.$ac_ext
10975cat >>conftest.$ac_ext <<_ACEOF
10976/* end confdefs.h. */
10977#include <$ac_header>
10978_ACEOF
10979if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10980 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10981 ac_status=$?
10982 grep -v '^ *+' conftest.er1 >conftest.err
10983 rm -f conftest.er1
10984 cat conftest.err >&5
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); } >/dev/null; then
10987 if test -s conftest.err; then
10988 ac_cpp_err=$ac_c_preproc_warn_flag
10989 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10990 else
10991 ac_cpp_err=
10992 fi
10993else
10994 ac_cpp_err=yes
c906108c 10995fi
bec39cab
AC
10996if test -z "$ac_cpp_err"; then
10997 ac_header_preproc=yes
10998else
10999 echo "$as_me: failed program was:" >&5
11000sed 's/^/| /' conftest.$ac_ext >&5
11001
11002 ac_header_preproc=no
c906108c 11003fi
bec39cab 11004rm -f conftest.err conftest.$ac_ext
b4e70030
JB
11005echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11006echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
11007
11008# So? What about this header?
11009case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11010 yes:no: )
11011 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11012echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11014echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11015 ac_header_preproc=yes
11016 ;;
11017 no:yes:* )
11018 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11019echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11020 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11021echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11022 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11023echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11024 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11025echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11027echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11028 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11029echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
11030 (
11031 cat <<\_ASBOX
11032## ------------------------------------------ ##
11033## Report this to the AC_PACKAGE_NAME lists. ##
11034## ------------------------------------------ ##
11035_ASBOX
11036 ) |
11037 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
11038 ;;
11039esac
b4e70030
JB
11040echo "$as_me:$LINENO: checking for $ac_header" >&5
11041echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11042if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 11043 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 11044else
bec39cab 11045 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 11046fi
b4e70030
JB
11047echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11048echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11049
11050fi
11051if test `eval echo '${'$as_ac_Header'}'` = yes; then
11052 cat >>confdefs.h <<_ACEOF
11053#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11054_ACEOF
11055
11056fi
11057
5ee754fc 11058done
c906108c 11059
bec39cab 11060
065a1afc 11061for ac_header in ncurses/term.h
3b78cdbb 11062do
bec39cab 11063as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11064if eval "test \"\${$as_ac_Header+set}\" = set"; then
11065 echo "$as_me:$LINENO: checking for $ac_header" >&5
11066echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11067if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11068 echo $ECHO_N "(cached) $ECHO_C" >&6
11069fi
b4e70030
JB
11070echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11071echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11072else
11073 # Is the header compilable?
b4e70030
JB
11074echo "$as_me:$LINENO: checking $ac_header usability" >&5
11075echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
11076cat >conftest.$ac_ext <<_ACEOF
11077/* confdefs.h. */
11078_ACEOF
11079cat confdefs.h >>conftest.$ac_ext
11080cat >>conftest.$ac_ext <<_ACEOF
11081/* end confdefs.h. */
11082$ac_includes_default
11083#include <$ac_header>
11084_ACEOF
11085rm -f conftest.$ac_objext
11086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11087 (eval $ac_compile) 2>conftest.er1
11088 ac_status=$?
11089 grep -v '^ *+' conftest.er1 >conftest.err
11090 rm -f conftest.er1
11091 cat conftest.err >&5
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); } &&
b4e70030
JB
11094 { ac_try='test -z "$ac_c_werror_flag"
11095 || test ! -s conftest.err'
bec39cab
AC
11096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11097 (eval $ac_try) 2>&5
11098 ac_status=$?
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); }; } &&
11101 { ac_try='test -s conftest.$ac_objext'
11102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11103 (eval $ac_try) 2>&5
11104 ac_status=$?
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); }; }; then
11107 ac_header_compiler=yes
11108else
11109 echo "$as_me: failed program was:" >&5
11110sed 's/^/| /' conftest.$ac_ext >&5
11111
b4e70030 11112ac_header_compiler=no
bec39cab
AC
11113fi
11114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
11115echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11116echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
11117
11118# Is the header present?
b4e70030
JB
11119echo "$as_me:$LINENO: checking $ac_header presence" >&5
11120echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
11121cat >conftest.$ac_ext <<_ACEOF
11122/* confdefs.h. */
11123_ACEOF
11124cat confdefs.h >>conftest.$ac_ext
11125cat >>conftest.$ac_ext <<_ACEOF
11126/* end confdefs.h. */
11127#include <$ac_header>
11128_ACEOF
11129if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11131 ac_status=$?
11132 grep -v '^ *+' conftest.er1 >conftest.err
11133 rm -f conftest.er1
11134 cat conftest.err >&5
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); } >/dev/null; then
11137 if test -s conftest.err; then
11138 ac_cpp_err=$ac_c_preproc_warn_flag
11139 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11140 else
11141 ac_cpp_err=
11142 fi
11143else
11144 ac_cpp_err=yes
3b78cdbb 11145fi
bec39cab
AC
11146if test -z "$ac_cpp_err"; then
11147 ac_header_preproc=yes
11148else
11149 echo "$as_me: failed program was:" >&5
11150sed 's/^/| /' conftest.$ac_ext >&5
11151
11152 ac_header_preproc=no
3b78cdbb 11153fi
bec39cab 11154rm -f conftest.err conftest.$ac_ext
b4e70030
JB
11155echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11156echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
11157
11158# So? What about this header?
11159case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11160 yes:no: )
11161 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11162echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11164echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11165 ac_header_preproc=yes
11166 ;;
11167 no:yes:* )
11168 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11169echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11170 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11171echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11172 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11173echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11174 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11175echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11177echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11178 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11179echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
11180 (
11181 cat <<\_ASBOX
11182## ------------------------------------------ ##
11183## Report this to the AC_PACKAGE_NAME lists. ##
11184## ------------------------------------------ ##
11185_ASBOX
11186 ) |
11187 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
11188 ;;
11189esac
b4e70030
JB
11190echo "$as_me:$LINENO: checking for $ac_header" >&5
11191echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11192if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 11193 echo $ECHO_N "(cached) $ECHO_C" >&6
3b78cdbb 11194else
bec39cab
AC
11195 eval "$as_ac_Header=\$ac_header_preproc"
11196fi
b4e70030
JB
11197echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11198echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 11199
3b78cdbb 11200fi
bec39cab
AC
11201if test `eval echo '${'$as_ac_Header'}'` = yes; then
11202 cat >>confdefs.h <<_ACEOF
11203#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11204_ACEOF
11205
11206fi
11207
3b78cdbb
DA
11208done
11209
c906108c 11210
065a1afc
JB
11211for ac_header in term.h
11212do
11213as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11214echo "$as_me:$LINENO: checking for $ac_header" >&5
11215echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11216if eval "test \"\${$as_ac_Header+set}\" = set"; then
065a1afc
JB
11217 echo $ECHO_N "(cached) $ECHO_C" >&6
11218else
11219 cat >conftest.$ac_ext <<_ACEOF
11220/* confdefs.h. */
11221_ACEOF
11222cat confdefs.h >>conftest.$ac_ext
11223cat >>conftest.$ac_ext <<_ACEOF
11224/* end confdefs.h. */
11225#if HAVE_CURSES_H
11226# include <curses.h>
11227#endif
11228
11229
11230#include <$ac_header>
11231_ACEOF
11232rm -f conftest.$ac_objext
11233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11234 (eval $ac_compile) 2>conftest.er1
11235 ac_status=$?
11236 grep -v '^ *+' conftest.er1 >conftest.err
11237 rm -f conftest.er1
11238 cat conftest.err >&5
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); } &&
b4e70030
JB
11241 { ac_try='test -z "$ac_c_werror_flag"
11242 || test ! -s conftest.err'
065a1afc
JB
11243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11244 (eval $ac_try) 2>&5
11245 ac_status=$?
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); }; } &&
11248 { ac_try='test -s conftest.$ac_objext'
11249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11250 (eval $ac_try) 2>&5
11251 ac_status=$?
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); }; }; then
11254 eval "$as_ac_Header=yes"
11255else
11256 echo "$as_me: failed program was:" >&5
11257sed 's/^/| /' conftest.$ac_ext >&5
11258
b4e70030 11259eval "$as_ac_Header=no"
065a1afc
JB
11260fi
11261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11262fi
b4e70030
JB
11263echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11264echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
065a1afc
JB
11265if test `eval echo '${'$as_ac_Header'}'` = yes; then
11266 cat >>confdefs.h <<_ACEOF
11267#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11268_ACEOF
11269
11270fi
11271
11272done
11273
11274
5ee754fc
MK
11275# FIXME: kettenis/20030102: In most cases we include these
11276# unconditionally, so what's the point in checking these?
bec39cab
AC
11277
11278
11279for ac_header in ctype.h time.h
c906108c 11280do
bec39cab 11281as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11282if eval "test \"\${$as_ac_Header+set}\" = set"; then
11283 echo "$as_me:$LINENO: checking for $ac_header" >&5
11284echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11285if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11286 echo $ECHO_N "(cached) $ECHO_C" >&6
11287fi
b4e70030
JB
11288echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11289echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11290else
11291 # Is the header compilable?
b4e70030
JB
11292echo "$as_me:$LINENO: checking $ac_header usability" >&5
11293echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
11294cat >conftest.$ac_ext <<_ACEOF
11295/* confdefs.h. */
11296_ACEOF
11297cat confdefs.h >>conftest.$ac_ext
11298cat >>conftest.$ac_ext <<_ACEOF
11299/* end confdefs.h. */
11300$ac_includes_default
11301#include <$ac_header>
11302_ACEOF
11303rm -f conftest.$ac_objext
11304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11305 (eval $ac_compile) 2>conftest.er1
11306 ac_status=$?
11307 grep -v '^ *+' conftest.er1 >conftest.err
11308 rm -f conftest.er1
11309 cat conftest.err >&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); } &&
b4e70030
JB
11312 { ac_try='test -z "$ac_c_werror_flag"
11313 || test ! -s conftest.err'
bec39cab
AC
11314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11315 (eval $ac_try) 2>&5
11316 ac_status=$?
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); }; } &&
11319 { ac_try='test -s conftest.$ac_objext'
11320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11321 (eval $ac_try) 2>&5
11322 ac_status=$?
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); }; }; then
11325 ac_header_compiler=yes
11326else
11327 echo "$as_me: failed program was:" >&5
11328sed 's/^/| /' conftest.$ac_ext >&5
11329
b4e70030 11330ac_header_compiler=no
bec39cab
AC
11331fi
11332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
11333echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11334echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
11335
11336# Is the header present?
b4e70030
JB
11337echo "$as_me:$LINENO: checking $ac_header presence" >&5
11338echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
11339cat >conftest.$ac_ext <<_ACEOF
11340/* confdefs.h. */
11341_ACEOF
11342cat confdefs.h >>conftest.$ac_ext
11343cat >>conftest.$ac_ext <<_ACEOF
11344/* end confdefs.h. */
11345#include <$ac_header>
11346_ACEOF
11347if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11349 ac_status=$?
11350 grep -v '^ *+' conftest.er1 >conftest.err
11351 rm -f conftest.er1
11352 cat conftest.err >&5
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); } >/dev/null; then
11355 if test -s conftest.err; then
11356 ac_cpp_err=$ac_c_preproc_warn_flag
11357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11358 else
11359 ac_cpp_err=
11360 fi
11361else
11362 ac_cpp_err=yes
c906108c 11363fi
bec39cab
AC
11364if test -z "$ac_cpp_err"; then
11365 ac_header_preproc=yes
11366else
11367 echo "$as_me: failed program was:" >&5
11368sed 's/^/| /' conftest.$ac_ext >&5
11369
11370 ac_header_preproc=no
c906108c 11371fi
bec39cab 11372rm -f conftest.err conftest.$ac_ext
b4e70030
JB
11373echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11374echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
11375
11376# So? What about this header?
11377case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11378 yes:no: )
11379 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11380echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11382echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11383 ac_header_preproc=yes
11384 ;;
11385 no:yes:* )
11386 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11387echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11388 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11389echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11390 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11391echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11392 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11393echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11395echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11396 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11397echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
11398 (
11399 cat <<\_ASBOX
11400## ------------------------------------------ ##
11401## Report this to the AC_PACKAGE_NAME lists. ##
11402## ------------------------------------------ ##
11403_ASBOX
11404 ) |
11405 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
11406 ;;
11407esac
b4e70030
JB
11408echo "$as_me:$LINENO: checking for $ac_header" >&5
11409echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11410if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 11411 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 11412else
bec39cab
AC
11413 eval "$as_ac_Header=\$ac_header_preproc"
11414fi
b4e70030
JB
11415echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11416echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11417
11418fi
11419if test `eval echo '${'$as_ac_Header'}'` = yes; then
11420 cat >>confdefs.h <<_ACEOF
11421#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11422_ACEOF
11423
c906108c 11424fi
bec39cab 11425
c906108c
SS
11426done
11427
5ee754fc 11428
4e8d927d 11429# Create a header we can use portably to get the standard integer types.
666ec76f 11430
4e8d927d
DJ
11431
11432inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
11433
11434acx_cv_header_stdint=stddef.h
11435acx_cv_header_stdint_kind="(already complete)"
11436for i in stdint.h $inttype_headers; do
11437 unset ac_cv_type_uintptr_t
11438 unset ac_cv_type_uintmax_t
11439 unset ac_cv_type_int_least32_t
11440 unset ac_cv_type_int_fast32_t
11441 unset ac_cv_type_uint64_t
11442 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
b4e70030
JB
11443 echo "$as_me:$LINENO: checking for uintmax_t" >&5
11444echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
4e8d927d 11445if test "${ac_cv_type_uintmax_t+set}" = set; then
bec39cab 11446 echo $ECHO_N "(cached) $ECHO_C" >&6
40a7debc 11447else
bec39cab
AC
11448 cat >conftest.$ac_ext <<_ACEOF
11449/* confdefs.h. */
11450_ACEOF
11451cat confdefs.h >>conftest.$ac_ext
11452cat >>conftest.$ac_ext <<_ACEOF
11453/* end confdefs.h. */
4e8d927d
DJ
11454#include <sys/types.h>
11455#include <$i>
11456
bec39cab
AC
11457int
11458main ()
11459{
b4e70030 11460if ((uintmax_t *) 0)
4e8d927d 11461 return 0;
b4e70030 11462if (sizeof (uintmax_t))
4e8d927d
DJ
11463 return 0;
11464 ;
bec39cab
AC
11465 return 0;
11466}
11467_ACEOF
11468rm -f conftest.$ac_objext
11469if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11470 (eval $ac_compile) 2>conftest.er1
11471 ac_status=$?
11472 grep -v '^ *+' conftest.er1 >conftest.err
11473 rm -f conftest.er1
11474 cat conftest.err >&5
11475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476 (exit $ac_status); } &&
b4e70030
JB
11477 { ac_try='test -z "$ac_c_werror_flag"
11478 || test ! -s conftest.err'
bec39cab
AC
11479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11480 (eval $ac_try) 2>&5
11481 ac_status=$?
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); }; } &&
11484 { ac_try='test -s conftest.$ac_objext'
11485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11486 (eval $ac_try) 2>&5
11487 ac_status=$?
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); }; }; then
4e8d927d 11490 ac_cv_type_uintmax_t=yes
40a7debc 11491else
bec39cab
AC
11492 echo "$as_me: failed program was:" >&5
11493sed 's/^/| /' conftest.$ac_ext >&5
11494
b4e70030 11495ac_cv_type_uintmax_t=no
40a7debc 11496fi
bec39cab 11497rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40a7debc 11498fi
b4e70030
JB
11499echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
11500echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
4e8d927d
DJ
11501if test $ac_cv_type_uintmax_t = yes; then
11502 acx_cv_header_stdint=$i
666ec76f 11503else
4e8d927d 11504 continue
666ec76f 11505fi
4e8d927d 11506
b4e70030
JB
11507 echo "$as_me:$LINENO: checking for uintptr_t" >&5
11508echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4e8d927d 11509if test "${ac_cv_type_uintptr_t+set}" = set; then
bec39cab
AC
11510 echo $ECHO_N "(cached) $ECHO_C" >&6
11511else
11512 cat >conftest.$ac_ext <<_ACEOF
11513/* confdefs.h. */
11514_ACEOF
11515cat confdefs.h >>conftest.$ac_ext
11516cat >>conftest.$ac_ext <<_ACEOF
11517/* end confdefs.h. */
4e8d927d
DJ
11518#include <sys/types.h>
11519#include <$i>
11520
666ec76f
MK
11521int
11522main ()
11523{
b4e70030 11524if ((uintptr_t *) 0)
4e8d927d 11525 return 0;
b4e70030 11526if (sizeof (uintptr_t))
4e8d927d 11527 return 0;
666ec76f
MK
11528 ;
11529 return 0;
11530}
11531_ACEOF
11532rm -f conftest.$ac_objext
11533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11534 (eval $ac_compile) 2>conftest.er1
11535 ac_status=$?
11536 grep -v '^ *+' conftest.er1 >conftest.err
11537 rm -f conftest.er1
11538 cat conftest.err >&5
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); } &&
b4e70030
JB
11541 { ac_try='test -z "$ac_c_werror_flag"
11542 || test ! -s conftest.err'
666ec76f
MK
11543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11544 (eval $ac_try) 2>&5
11545 ac_status=$?
11546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547 (exit $ac_status); }; } &&
11548 { ac_try='test -s conftest.$ac_objext'
11549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11550 (eval $ac_try) 2>&5
11551 ac_status=$?
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); }; }; then
4e8d927d 11554 ac_cv_type_uintptr_t=yes
666ec76f
MK
11555else
11556 echo "$as_me: failed program was:" >&5
11557sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 11558
b4e70030 11559ac_cv_type_uintptr_t=no
a3828db0
MK
11560fi
11561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11562fi
b4e70030
JB
11563echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11564echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4e8d927d
DJ
11565if test $ac_cv_type_uintptr_t = yes; then
11566 :
a3828db0 11567else
4e8d927d 11568 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 11569fi
4e8d927d 11570
b4e70030
JB
11571 echo "$as_me:$LINENO: checking for int_least32_t" >&5
11572echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
4e8d927d 11573if test "${ac_cv_type_int_least32_t+set}" = set; then
a3828db0
MK
11574 echo $ECHO_N "(cached) $ECHO_C" >&6
11575else
11576 cat >conftest.$ac_ext <<_ACEOF
666ec76f
MK
11577/* confdefs.h. */
11578_ACEOF
11579cat confdefs.h >>conftest.$ac_ext
11580cat >>conftest.$ac_ext <<_ACEOF
11581/* end confdefs.h. */
4e8d927d
DJ
11582#include <sys/types.h>
11583#include <$i>
11584
bec39cab
AC
11585int
11586main ()
11587{
b4e70030 11588if ((int_least32_t *) 0)
4e8d927d 11589 return 0;
b4e70030 11590if (sizeof (int_least32_t))
4e8d927d 11591 return 0;
bec39cab
AC
11592 ;
11593 return 0;
11594}
11595_ACEOF
11596rm -f conftest.$ac_objext
11597if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11598 (eval $ac_compile) 2>conftest.er1
11599 ac_status=$?
11600 grep -v '^ *+' conftest.er1 >conftest.err
11601 rm -f conftest.er1
11602 cat conftest.err >&5
11603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604 (exit $ac_status); } &&
b4e70030
JB
11605 { ac_try='test -z "$ac_c_werror_flag"
11606 || test ! -s conftest.err'
bec39cab
AC
11607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11608 (eval $ac_try) 2>&5
11609 ac_status=$?
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); }; } &&
11612 { ac_try='test -s conftest.$ac_objext'
11613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11614 (eval $ac_try) 2>&5
11615 ac_status=$?
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); }; }; then
4e8d927d 11618 ac_cv_type_int_least32_t=yes
b9362cc7 11619else
bec39cab
AC
11620 echo "$as_me: failed program was:" >&5
11621sed 's/^/| /' conftest.$ac_ext >&5
11622
b4e70030 11623ac_cv_type_int_least32_t=no
b9362cc7 11624fi
bec39cab 11625rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b9362cc7 11626fi
b4e70030
JB
11627echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
11628echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
4e8d927d
DJ
11629if test $ac_cv_type_int_least32_t = yes; then
11630 :
a3828db0 11631else
4e8d927d 11632 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 11633fi
5ee754fc 11634
b4e70030
JB
11635 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
11636echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
4e8d927d 11637if test "${ac_cv_type_int_fast32_t+set}" = set; then
bec39cab
AC
11638 echo $ECHO_N "(cached) $ECHO_C" >&6
11639else
11640 cat >conftest.$ac_ext <<_ACEOF
11641/* confdefs.h. */
11642_ACEOF
11643cat confdefs.h >>conftest.$ac_ext
11644cat >>conftest.$ac_ext <<_ACEOF
11645/* end confdefs.h. */
4e8d927d
DJ
11646#include <sys/types.h>
11647#include <$i>
11648
bec39cab
AC
11649int
11650main ()
11651{
b4e70030 11652if ((int_fast32_t *) 0)
4e8d927d 11653 return 0;
b4e70030 11654if (sizeof (int_fast32_t))
4e8d927d 11655 return 0;
bec39cab
AC
11656 ;
11657 return 0;
11658}
11659_ACEOF
11660rm -f conftest.$ac_objext
11661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11662 (eval $ac_compile) 2>conftest.er1
11663 ac_status=$?
11664 grep -v '^ *+' conftest.er1 >conftest.err
11665 rm -f conftest.er1
11666 cat conftest.err >&5
11667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11668 (exit $ac_status); } &&
b4e70030
JB
11669 { ac_try='test -z "$ac_c_werror_flag"
11670 || test ! -s conftest.err'
bec39cab
AC
11671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11672 (eval $ac_try) 2>&5
11673 ac_status=$?
11674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11675 (exit $ac_status); }; } &&
11676 { ac_try='test -s conftest.$ac_objext'
11677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11678 (eval $ac_try) 2>&5
11679 ac_status=$?
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); }; }; then
4e8d927d 11682 ac_cv_type_int_fast32_t=yes
c906108c 11683else
bec39cab
AC
11684 echo "$as_me: failed program was:" >&5
11685sed 's/^/| /' conftest.$ac_ext >&5
11686
b4e70030 11687ac_cv_type_int_fast32_t=no
c906108c 11688fi
bec39cab 11689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 11690fi
b4e70030
JB
11691echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
11692echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
4e8d927d
DJ
11693if test $ac_cv_type_int_fast32_t = yes; then
11694 :
a3828db0 11695else
4e8d927d 11696 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 11697fi
4e8d927d 11698
b4e70030
JB
11699 echo "$as_me:$LINENO: checking for uint64_t" >&5
11700echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
4e8d927d 11701if test "${ac_cv_type_uint64_t+set}" = set; then
bec39cab
AC
11702 echo $ECHO_N "(cached) $ECHO_C" >&6
11703else
11704 cat >conftest.$ac_ext <<_ACEOF
11705/* confdefs.h. */
11706_ACEOF
11707cat confdefs.h >>conftest.$ac_ext
11708cat >>conftest.$ac_ext <<_ACEOF
11709/* end confdefs.h. */
4e8d927d
DJ
11710#include <sys/types.h>
11711#include <$i>
11712
bec39cab
AC
11713int
11714main ()
11715{
b4e70030 11716if ((uint64_t *) 0)
4e8d927d 11717 return 0;
b4e70030 11718if (sizeof (uint64_t))
4e8d927d 11719 return 0;
bec39cab
AC
11720 ;
11721 return 0;
11722}
11723_ACEOF
11724rm -f conftest.$ac_objext
11725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11726 (eval $ac_compile) 2>conftest.er1
11727 ac_status=$?
11728 grep -v '^ *+' conftest.er1 >conftest.err
11729 rm -f conftest.er1
11730 cat conftest.err >&5
11731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732 (exit $ac_status); } &&
b4e70030
JB
11733 { ac_try='test -z "$ac_c_werror_flag"
11734 || test ! -s conftest.err'
bec39cab
AC
11735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11736 (eval $ac_try) 2>&5
11737 ac_status=$?
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); }; } &&
11740 { ac_try='test -s conftest.$ac_objext'
11741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11742 (eval $ac_try) 2>&5
11743 ac_status=$?
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); }; }; then
4e8d927d 11746 ac_cv_type_uint64_t=yes
c906108c 11747else
bec39cab
AC
11748 echo "$as_me: failed program was:" >&5
11749sed 's/^/| /' conftest.$ac_ext >&5
11750
b4e70030 11751ac_cv_type_uint64_t=no
c906108c 11752fi
bec39cab 11753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 11754fi
b4e70030
JB
11755echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11756echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
4e8d927d
DJ
11757if test $ac_cv_type_uint64_t = yes; then
11758 :
a3828db0 11759else
4e8d927d 11760 acx_cv_header_stdint_kind="(lacks uint64_t)"
c906108c
SS
11761fi
11762
4e8d927d
DJ
11763 break
11764done
11765if test "$acx_cv_header_stdint" = stddef.h; then
3841debe 11766 acx_cv_header_stdint_kind="(lacks uintmax_t)"
4e8d927d 11767 for i in stdint.h $inttype_headers; do
3841debe 11768 unset ac_cv_type_uintptr_t
4e8d927d
DJ
11769 unset ac_cv_type_uint32_t
11770 unset ac_cv_type_uint64_t
11771 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
b4e70030
JB
11772 echo "$as_me:$LINENO: checking for uint32_t" >&5
11773echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
4e8d927d 11774if test "${ac_cv_type_uint32_t+set}" = set; then
bec39cab 11775 echo $ECHO_N "(cached) $ECHO_C" >&6
bce58c09 11776else
bec39cab
AC
11777 cat >conftest.$ac_ext <<_ACEOF
11778/* confdefs.h. */
11779_ACEOF
11780cat confdefs.h >>conftest.$ac_ext
11781cat >>conftest.$ac_ext <<_ACEOF
11782/* end confdefs.h. */
4e8d927d
DJ
11783#include <sys/types.h>
11784#include <$i>
11785
a3828db0
MK
11786int
11787main ()
11788{
b4e70030 11789if ((uint32_t *) 0)
4e8d927d 11790 return 0;
b4e70030 11791if (sizeof (uint32_t))
4e8d927d 11792 return 0;
a3828db0
MK
11793 ;
11794 return 0;
11795}
bec39cab
AC
11796_ACEOF
11797rm -f conftest.$ac_objext
11798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11799 (eval $ac_compile) 2>conftest.er1
11800 ac_status=$?
11801 grep -v '^ *+' conftest.er1 >conftest.err
11802 rm -f conftest.er1
11803 cat conftest.err >&5
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); } &&
b4e70030
JB
11806 { ac_try='test -z "$ac_c_werror_flag"
11807 || test ! -s conftest.err'
bec39cab
AC
11808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11809 (eval $ac_try) 2>&5
11810 ac_status=$?
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); }; } &&
11813 { ac_try='test -s conftest.$ac_objext'
11814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11815 (eval $ac_try) 2>&5
11816 ac_status=$?
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); }; }; then
4e8d927d 11819 ac_cv_type_uint32_t=yes
bce58c09 11820else
bec39cab
AC
11821 echo "$as_me: failed program was:" >&5
11822sed 's/^/| /' conftest.$ac_ext >&5
11823
b4e70030 11824ac_cv_type_uint32_t=no
bce58c09 11825fi
bec39cab 11826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bce58c09 11827fi
b4e70030
JB
11828echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
11829echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
4e8d927d
DJ
11830if test $ac_cv_type_uint32_t = yes; then
11831 acx_cv_header_stdint=$i
a3828db0 11832else
4e8d927d 11833 continue
e5a7de23 11834fi
4e8d927d 11835
b4e70030
JB
11836 echo "$as_me:$LINENO: checking for uint64_t" >&5
11837echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
4e8d927d 11838if test "${ac_cv_type_uint64_t+set}" = set; then
e5a7de23
EZ
11839 echo $ECHO_N "(cached) $ECHO_C" >&6
11840else
11841 cat >conftest.$ac_ext <<_ACEOF
11842/* confdefs.h. */
11843_ACEOF
11844cat confdefs.h >>conftest.$ac_ext
11845cat >>conftest.$ac_ext <<_ACEOF
11846/* end confdefs.h. */
4e8d927d
DJ
11847#include <sys/types.h>
11848#include <$i>
11849
e5a7de23
EZ
11850int
11851main ()
11852{
b4e70030 11853if ((uint64_t *) 0)
4e8d927d 11854 return 0;
b4e70030 11855if (sizeof (uint64_t))
4e8d927d 11856 return 0;
e5a7de23
EZ
11857 ;
11858 return 0;
11859}
11860_ACEOF
11861rm -f conftest.$ac_objext
11862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11863 (eval $ac_compile) 2>conftest.er1
11864 ac_status=$?
11865 grep -v '^ *+' conftest.er1 >conftest.err
11866 rm -f conftest.er1
11867 cat conftest.err >&5
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); } &&
b4e70030
JB
11870 { ac_try='test -z "$ac_c_werror_flag"
11871 || test ! -s conftest.err'
e5a7de23
EZ
11872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11873 (eval $ac_try) 2>&5
11874 ac_status=$?
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); }; } &&
11877 { ac_try='test -s conftest.$ac_objext'
11878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11879 (eval $ac_try) 2>&5
11880 ac_status=$?
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); }; }; then
4e8d927d 11883 ac_cv_type_uint64_t=yes
e5a7de23
EZ
11884else
11885 echo "$as_me: failed program was:" >&5
11886sed 's/^/| /' conftest.$ac_ext >&5
11887
b4e70030 11888ac_cv_type_uint64_t=no
e5a7de23
EZ
11889fi
11890rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11891fi
b4e70030
JB
11892echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11893echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
3841debe
DJ
11894
11895 echo "$as_me:$LINENO: checking for uintptr_t" >&5
11896echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
11897if test "${ac_cv_type_uintptr_t+set}" = set; then
11898 echo $ECHO_N "(cached) $ECHO_C" >&6
11899else
11900 cat >conftest.$ac_ext <<_ACEOF
11901/* confdefs.h. */
11902_ACEOF
11903cat confdefs.h >>conftest.$ac_ext
11904cat >>conftest.$ac_ext <<_ACEOF
11905/* end confdefs.h. */
11906#include <sys/types.h>
11907#include <$i>
11908
11909int
11910main ()
11911{
11912if ((uintptr_t *) 0)
11913 return 0;
11914if (sizeof (uintptr_t))
11915 return 0;
11916 ;
11917 return 0;
11918}
11919_ACEOF
11920rm -f conftest.$ac_objext
11921if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11922 (eval $ac_compile) 2>conftest.er1
11923 ac_status=$?
11924 grep -v '^ *+' conftest.er1 >conftest.err
11925 rm -f conftest.er1
11926 cat conftest.err >&5
11927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); } &&
11929 { ac_try='test -z "$ac_c_werror_flag"
11930 || test ! -s conftest.err'
11931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11932 (eval $ac_try) 2>&5
11933 ac_status=$?
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); }; } &&
11936 { ac_try='test -s conftest.$ac_objext'
11937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11938 (eval $ac_try) 2>&5
11939 ac_status=$?
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); }; }; then
11942 ac_cv_type_uintptr_t=yes
e5a7de23 11943else
3841debe
DJ
11944 echo "$as_me: failed program was:" >&5
11945sed 's/^/| /' conftest.$ac_ext >&5
11946
11947ac_cv_type_uintptr_t=no
4e8d927d 11948fi
3841debe
DJ
11949rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11950fi
11951echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11952echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
e5a7de23 11953
4e8d927d
DJ
11954 break
11955 done
e5a7de23 11956fi
4e8d927d
DJ
11957if test "$acx_cv_header_stdint" = stddef.h; then
11958 acx_cv_header_stdint_kind="(u_intXX_t style)"
11959 for i in sys/types.h $inttype_headers; do
11960 unset ac_cv_type_u_int32_t
11961 unset ac_cv_type_u_int64_t
11962 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
b4e70030
JB
11963 echo "$as_me:$LINENO: checking for u_int32_t" >&5
11964echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
4e8d927d 11965if test "${ac_cv_type_u_int32_t+set}" = set; then
e5a7de23
EZ
11966 echo $ECHO_N "(cached) $ECHO_C" >&6
11967else
11968 cat >conftest.$ac_ext <<_ACEOF
11969/* confdefs.h. */
11970_ACEOF
11971cat confdefs.h >>conftest.$ac_ext
11972cat >>conftest.$ac_ext <<_ACEOF
11973/* end confdefs.h. */
4e8d927d
DJ
11974#include <sys/types.h>
11975#include <$i>
11976
e5a7de23
EZ
11977int
11978main ()
11979{
b4e70030 11980if ((u_int32_t *) 0)
4e8d927d 11981 return 0;
b4e70030 11982if (sizeof (u_int32_t))
4e8d927d 11983 return 0;
e5a7de23
EZ
11984 ;
11985 return 0;
11986}
11987_ACEOF
11988rm -f conftest.$ac_objext
11989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11990 (eval $ac_compile) 2>conftest.er1
11991 ac_status=$?
11992 grep -v '^ *+' conftest.er1 >conftest.err
11993 rm -f conftest.er1
11994 cat conftest.err >&5
11995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11996 (exit $ac_status); } &&
b4e70030
JB
11997 { ac_try='test -z "$ac_c_werror_flag"
11998 || test ! -s conftest.err'
e5a7de23
EZ
11999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12000 (eval $ac_try) 2>&5
12001 ac_status=$?
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); }; } &&
12004 { ac_try='test -s conftest.$ac_objext'
12005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12006 (eval $ac_try) 2>&5
12007 ac_status=$?
12008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12009 (exit $ac_status); }; }; then
4e8d927d 12010 ac_cv_type_u_int32_t=yes
e5a7de23
EZ
12011else
12012 echo "$as_me: failed program was:" >&5
12013sed 's/^/| /' conftest.$ac_ext >&5
12014
b4e70030 12015ac_cv_type_u_int32_t=no
e5a7de23
EZ
12016fi
12017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12018fi
b4e70030
JB
12019echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
12020echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
4e8d927d
DJ
12021if test $ac_cv_type_u_int32_t = yes; then
12022 acx_cv_header_stdint=$i
e5a7de23 12023else
4e8d927d 12024 continue
a3828db0 12025fi
5ee754fc 12026
b4e70030
JB
12027 echo "$as_me:$LINENO: checking for u_int64_t" >&5
12028echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
4e8d927d 12029if test "${ac_cv_type_u_int64_t+set}" = set; then
bec39cab
AC
12030 echo $ECHO_N "(cached) $ECHO_C" >&6
12031else
12032 cat >conftest.$ac_ext <<_ACEOF
12033/* confdefs.h. */
12034_ACEOF
12035cat confdefs.h >>conftest.$ac_ext
12036cat >>conftest.$ac_ext <<_ACEOF
12037/* end confdefs.h. */
4e8d927d
DJ
12038#include <sys/types.h>
12039#include <$i>
12040
bec39cab
AC
12041int
12042main ()
12043{
b4e70030 12044if ((u_int64_t *) 0)
4e8d927d 12045 return 0;
b4e70030 12046if (sizeof (u_int64_t))
4e8d927d 12047 return 0;
bec39cab
AC
12048 ;
12049 return 0;
12050}
12051_ACEOF
a3828db0
MK
12052rm -f conftest.$ac_objext
12053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12054 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
12055 ac_status=$?
12056 grep -v '^ *+' conftest.er1 >conftest.err
12057 rm -f conftest.er1
12058 cat conftest.err >&5
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); } &&
b4e70030
JB
12061 { ac_try='test -z "$ac_c_werror_flag"
12062 || test ! -s conftest.err'
bec39cab
AC
12063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12064 (eval $ac_try) 2>&5
12065 ac_status=$?
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); }; } &&
a3828db0 12068 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
12069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12070 (eval $ac_try) 2>&5
12071 ac_status=$?
12072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073 (exit $ac_status); }; }; then
4e8d927d 12074 ac_cv_type_u_int64_t=yes
bec39cab
AC
12075else
12076 echo "$as_me: failed program was:" >&5
12077sed 's/^/| /' conftest.$ac_ext >&5
12078
b4e70030 12079ac_cv_type_u_int64_t=no
4e8d927d 12080fi
4e8d927d
DJ
12081rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12082fi
b4e70030
JB
12083echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
12084echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
4e8d927d
DJ
12085
12086 break
12087 done
12088fi
12089if test "$acx_cv_header_stdint" = stddef.h; then
12090 acx_cv_header_stdint_kind="(using manual detection)"
12091fi
12092
12093test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
12094test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
12095test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
12096test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
12097test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
12098
12099# ----------------- Summarize what we found so far
12100
b4e70030
JB
12101echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5
12102echo $ECHO_N "checking what to include in gdb_stdint.h... $ECHO_C" >&6
4e8d927d 12103
b4e70030 12104case `$as_basename gdb_stdint.h ||
4e8d927d
DJ
12105$as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
12106 Xgdb_stdint.h : 'X\(//\)$' \| \
b4e70030
JB
12107 Xgdb_stdint.h : 'X\(/\)$' \| \
12108 . : '\(.\)' 2>/dev/null ||
4e8d927d 12109echo X/gdb_stdint.h |
b4e70030
JB
12110 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12111 /^X\/\(\/\/\)$/{ s//\1/; q; }
12112 /^X\/\(\/\).*/{ s//\1/; q; }
12113 s/.*/./; q'` in
4e8d927d
DJ
12114 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
12115echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12116 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
12117echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12118 *) ;;
12119esac
12120
b4e70030
JB
12121echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
12122echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
4e8d927d
DJ
12123
12124# ----------------- done included file, check C basic types --------
12125
12126# Lacking an uintptr_t? Test size of void *
12127case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
b4e70030
JB
12128 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
12129echo $ECHO_N "checking for void *... $ECHO_C" >&6
4e8d927d
DJ
12130if test "${ac_cv_type_void_p+set}" = set; then
12131 echo $ECHO_N "(cached) $ECHO_C" >&6
12132else
12133 cat >conftest.$ac_ext <<_ACEOF
a3828db0 12134/* confdefs.h. */
bec39cab
AC
12135_ACEOF
12136cat confdefs.h >>conftest.$ac_ext
12137cat >>conftest.$ac_ext <<_ACEOF
12138/* end confdefs.h. */
a3828db0 12139$ac_includes_default
bec39cab
AC
12140int
12141main ()
12142{
b4e70030 12143if ((void * *) 0)
4e8d927d 12144 return 0;
b4e70030 12145if (sizeof (void *))
4e8d927d 12146 return 0;
bec39cab
AC
12147 ;
12148 return 0;
12149}
12150_ACEOF
a3828db0
MK
12151rm -f conftest.$ac_objext
12152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12153 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
12154 ac_status=$?
12155 grep -v '^ *+' conftest.er1 >conftest.err
12156 rm -f conftest.er1
12157 cat conftest.err >&5
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); } &&
b4e70030
JB
12160 { ac_try='test -z "$ac_c_werror_flag"
12161 || test ! -s conftest.err'
bec39cab
AC
12162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12163 (eval $ac_try) 2>&5
12164 ac_status=$?
12165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166 (exit $ac_status); }; } &&
a3828db0 12167 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
12168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12169 (eval $ac_try) 2>&5
12170 ac_status=$?
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); }; }; then
4e8d927d 12173 ac_cv_type_void_p=yes
46711df8 12174else
bec39cab
AC
12175 echo "$as_me: failed program was:" >&5
12176sed 's/^/| /' conftest.$ac_ext >&5
12177
b4e70030 12178ac_cv_type_void_p=no
a3828db0 12179fi
4e8d927d 12180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d3ea6809 12181fi
b4e70030
JB
12182echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
12183echo "${ECHO_T}$ac_cv_type_void_p" >&6
d3ea6809 12184
b4e70030
JB
12185echo "$as_me:$LINENO: checking size of void *" >&5
12186echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4e8d927d 12187if test "${ac_cv_sizeof_void_p+set}" = set; then
d3ea6809
MM
12188 echo $ECHO_N "(cached) $ECHO_C" >&6
12189else
4e8d927d 12190 if test "$ac_cv_type_void_p" = yes; then
b4e70030 12191 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
12192 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12193 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12194 # This bug is HP SR number 8606223364.
12195 if test "$cross_compiling" = yes; then
12196 # Depending upon the size, compute the lo and hi bounds.
12197cat >conftest.$ac_ext <<_ACEOF
d3ea6809
MM
12198/* confdefs.h. */
12199_ACEOF
12200cat confdefs.h >>conftest.$ac_ext
12201cat >>conftest.$ac_ext <<_ACEOF
12202/* end confdefs.h. */
12203$ac_includes_default
12204int
12205main ()
12206{
b4e70030 12207static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4e8d927d
DJ
12208test_array [0] = 0
12209
d3ea6809
MM
12210 ;
12211 return 0;
12212}
12213_ACEOF
12214rm -f conftest.$ac_objext
12215if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12216 (eval $ac_compile) 2>conftest.er1
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'
d3ea6809
MM
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); }; } &&
12230 { ac_try='test -s conftest.$ac_objext'
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
DJ
12236 ac_lo=0 ac_mid=0
12237 while :; do
12238 cat >conftest.$ac_ext <<_ACEOF
d3ea6809
MM
12239/* confdefs.h. */
12240_ACEOF
12241cat confdefs.h >>conftest.$ac_ext
12242cat >>conftest.$ac_ext <<_ACEOF
12243/* end confdefs.h. */
12244$ac_includes_default
12245int
12246main ()
12247{
b4e70030 12248static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4e8d927d
DJ
12249test_array [0] = 0
12250
d3ea6809
MM
12251 ;
12252 return 0;
12253}
12254_ACEOF
12255rm -f conftest.$ac_objext
12256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12257 (eval $ac_compile) 2>conftest.er1
12258 ac_status=$?
12259 grep -v '^ *+' conftest.er1 >conftest.err
12260 rm -f conftest.er1
12261 cat conftest.err >&5
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); } &&
b4e70030
JB
12264 { ac_try='test -z "$ac_c_werror_flag"
12265 || test ! -s conftest.err'
d3ea6809
MM
12266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12267 (eval $ac_try) 2>&5
12268 ac_status=$?
12269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); }; } &&
12271 { ac_try='test -s conftest.$ac_objext'
12272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12273 (eval $ac_try) 2>&5
12274 ac_status=$?
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); }; }; then
4e8d927d 12277 ac_hi=$ac_mid; break
d3ea6809
MM
12278else
12279 echo "$as_me: failed program was:" >&5
12280sed 's/^/| /' conftest.$ac_ext >&5
12281
b4e70030
JB
12282ac_lo=`expr $ac_mid + 1`
12283 if test $ac_lo -le $ac_mid; then
12284 ac_lo= ac_hi=
12285 break
12286 fi
12287 ac_mid=`expr 2 '*' $ac_mid + 1`
a3828db0 12288fi
4e8d927d
DJ
12289rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12290 done
bec39cab 12291else
4e8d927d
DJ
12292 echo "$as_me: failed program was:" >&5
12293sed 's/^/| /' conftest.$ac_ext >&5
12294
b4e70030 12295cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
12296/* confdefs.h. */
12297_ACEOF
12298cat confdefs.h >>conftest.$ac_ext
12299cat >>conftest.$ac_ext <<_ACEOF
12300/* end confdefs.h. */
4e8d927d 12301$ac_includes_default
bec39cab
AC
12302int
12303main ()
12304{
b4e70030 12305static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4e8d927d
DJ
12306test_array [0] = 0
12307
bec39cab
AC
12308 ;
12309 return 0;
12310}
12311_ACEOF
a3828db0
MK
12312rm -f conftest.$ac_objext
12313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12314 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
12315 ac_status=$?
12316 grep -v '^ *+' conftest.er1 >conftest.err
12317 rm -f conftest.er1
12318 cat conftest.err >&5
12319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320 (exit $ac_status); } &&
b4e70030
JB
12321 { ac_try='test -z "$ac_c_werror_flag"
12322 || test ! -s conftest.err'
bec39cab
AC
12323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12324 (eval $ac_try) 2>&5
12325 ac_status=$?
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); }; } &&
a3828db0 12328 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
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); }; }; then
4e8d927d
DJ
12334 ac_hi=-1 ac_mid=-1
12335 while :; do
12336 cat >conftest.$ac_ext <<_ACEOF
f9f87d2c
MK
12337/* confdefs.h. */
12338_ACEOF
12339cat confdefs.h >>conftest.$ac_ext
12340cat >>conftest.$ac_ext <<_ACEOF
12341/* end confdefs.h. */
4e8d927d 12342$ac_includes_default
f9f87d2c
MK
12343int
12344main ()
12345{
b4e70030 12346static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4e8d927d
DJ
12347test_array [0] = 0
12348
f9f87d2c
MK
12349 ;
12350 return 0;
12351}
12352_ACEOF
12353rm -f conftest.$ac_objext
12354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12355 (eval $ac_compile) 2>conftest.er1
12356 ac_status=$?
12357 grep -v '^ *+' conftest.er1 >conftest.err
12358 rm -f conftest.er1
12359 cat conftest.err >&5
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); } &&
b4e70030
JB
12362 { ac_try='test -z "$ac_c_werror_flag"
12363 || test ! -s conftest.err'
f9f87d2c
MK
12364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12365 (eval $ac_try) 2>&5
12366 ac_status=$?
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); }; } &&
12369 { ac_try='test -s conftest.$ac_objext'
12370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12371 (eval $ac_try) 2>&5
12372 ac_status=$?
12373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12374 (exit $ac_status); }; }; then
4e8d927d 12375 ac_lo=$ac_mid; break
f9f87d2c
MK
12376else
12377 echo "$as_me: failed program was:" >&5
12378sed 's/^/| /' conftest.$ac_ext >&5
12379
b4e70030
JB
12380ac_hi=`expr '(' $ac_mid ')' - 1`
12381 if test $ac_mid -le $ac_hi; then
12382 ac_lo= ac_hi=
12383 break
12384 fi
12385 ac_mid=`expr 2 '*' $ac_mid`
f9f87d2c 12386fi
4e8d927d
DJ
12387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12388 done
12389else
12390 echo "$as_me: failed program was:" >&5
12391sed 's/^/| /' conftest.$ac_ext >&5
f9f87d2c 12392
b4e70030 12393ac_lo= ac_hi=
4e8d927d 12394fi
4e8d927d 12395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3be60c3d 12396fi
4e8d927d
DJ
12397rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12398# Binary search between lo and hi bounds.
12399while test "x$ac_lo" != "x$ac_hi"; do
12400 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3be60c3d
MK
12401 cat >conftest.$ac_ext <<_ACEOF
12402/* confdefs.h. */
12403_ACEOF
12404cat confdefs.h >>conftest.$ac_ext
12405cat >>conftest.$ac_ext <<_ACEOF
12406/* end confdefs.h. */
4e8d927d 12407$ac_includes_default
3be60c3d
MK
12408int
12409main ()
12410{
b4e70030 12411static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4e8d927d
DJ
12412test_array [0] = 0
12413
3be60c3d
MK
12414 ;
12415 return 0;
12416}
12417_ACEOF
12418rm -f conftest.$ac_objext
12419if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12420 (eval $ac_compile) 2>conftest.er1
12421 ac_status=$?
12422 grep -v '^ *+' conftest.er1 >conftest.err
12423 rm -f conftest.er1
12424 cat conftest.err >&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); } &&
b4e70030
JB
12427 { ac_try='test -z "$ac_c_werror_flag"
12428 || test ! -s conftest.err'
3be60c3d
MK
12429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12430 (eval $ac_try) 2>&5
12431 ac_status=$?
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); }; } &&
12434 { ac_try='test -s conftest.$ac_objext'
12435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436 (eval $ac_try) 2>&5
12437 ac_status=$?
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); }; }; then
4e8d927d 12440 ac_hi=$ac_mid
3be60c3d
MK
12441else
12442 echo "$as_me: failed program was:" >&5
12443sed 's/^/| /' conftest.$ac_ext >&5
12444
b4e70030 12445ac_lo=`expr '(' $ac_mid ')' + 1`
3be60c3d 12446fi
4e8d927d
DJ
12447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12448done
12449case $ac_lo in
12450?*) ac_cv_sizeof_void_p=$ac_lo;;
b4e70030 12451'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4e8d927d 12452See \`config.log' for more details." >&5
b4e70030 12453echo "$as_me: error: cannot compute sizeof (void *), 77
4e8d927d 12454See \`config.log' for more details." >&2;}
b4e70030 12455 { (exit 1); exit 1; }; } ;;
4e8d927d 12456esac
b4e70030
JB
12457else
12458 if test "$cross_compiling" = yes; then
12459 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12460See \`config.log' for more details." >&5
12461echo "$as_me: error: cannot run test program while cross compiling
12462See \`config.log' for more details." >&2;}
12463 { (exit 1); exit 1; }; }
4e8d927d
DJ
12464else
12465 cat >conftest.$ac_ext <<_ACEOF
12466/* confdefs.h. */
3be60c3d 12467_ACEOF
4e8d927d
DJ
12468cat confdefs.h >>conftest.$ac_ext
12469cat >>conftest.$ac_ext <<_ACEOF
12470/* end confdefs.h. */
12471$ac_includes_default
b4e70030
JB
12472long longval () { return (long) (sizeof (void *)); }
12473unsigned long ulongval () { return (long) (sizeof (void *)); }
4e8d927d
DJ
12474#include <stdio.h>
12475#include <stdlib.h>
12476int
12477main ()
12478{
12479
12480 FILE *f = fopen ("conftest.val", "w");
12481 if (! f)
b4e70030
JB
12482 exit (1);
12483 if (((long) (sizeof (void *))) < 0)
4e8d927d 12484 {
b4e70030
JB
12485 long i = longval ();
12486 if (i != ((long) (sizeof (void *))))
12487 exit (1);
4e8d927d
DJ
12488 fprintf (f, "%ld\n", i);
12489 }
12490 else
12491 {
b4e70030
JB
12492 unsigned long i = ulongval ();
12493 if (i != ((long) (sizeof (void *))))
12494 exit (1);
4e8d927d
DJ
12495 fprintf (f, "%lu\n", i);
12496 }
b4e70030 12497 exit (ferror (f) || fclose (f) != 0);
3be60c3d 12498
4e8d927d
DJ
12499 ;
12500 return 0;
12501}
12502_ACEOF
12503rm -f conftest$ac_exeext
12504if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12505 (eval $ac_link) 2>&5
12506 ac_status=$?
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12510 (eval $ac_try) 2>&5
12511 ac_status=$?
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); }; }; then
12514 ac_cv_sizeof_void_p=`cat conftest.val`
12515else
12516 echo "$as_me: program exited with status $ac_status" >&5
12517echo "$as_me: failed program was:" >&5
12518sed 's/^/| /' conftest.$ac_ext >&5
3be60c3d 12519
4e8d927d 12520( exit $ac_status )
b4e70030 12521{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4e8d927d 12522See \`config.log' for more details." >&5
b4e70030 12523echo "$as_me: error: cannot compute sizeof (void *), 77
4e8d927d 12524See \`config.log' for more details." >&2;}
b4e70030
JB
12525 { (exit 1); exit 1; }; }
12526fi
12527rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f9f87d2c 12528fi
4e8d927d
DJ
12529fi
12530rm -f conftest.val
12531else
12532 ac_cv_sizeof_void_p=0
12533fi
12534fi
b4e70030
JB
12535echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
12536echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4e8d927d
DJ
12537cat >>confdefs.h <<_ACEOF
12538#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12539_ACEOF
f9f87d2c 12540
4e8d927d
DJ
12541 ;;
12542esac
46711df8 12543
4e8d927d
DJ
12544# Lacking an uint64_t? Test size of long
12545case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
b4e70030
JB
12546 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
12547echo $ECHO_N "checking for long... $ECHO_C" >&6
4e8d927d 12548if test "${ac_cv_type_long+set}" = set; then
bec39cab 12549 echo $ECHO_N "(cached) $ECHO_C" >&6
46711df8 12550else
bec39cab
AC
12551 cat >conftest.$ac_ext <<_ACEOF
12552/* confdefs.h. */
12553_ACEOF
12554cat confdefs.h >>conftest.$ac_ext
12555cat >>conftest.$ac_ext <<_ACEOF
12556/* end confdefs.h. */
4e8d927d 12557$ac_includes_default
bec39cab 12558int
46711df8
MK
12559main ()
12560{
b4e70030 12561if ((long *) 0)
4e8d927d 12562 return 0;
b4e70030 12563if (sizeof (long))
4e8d927d 12564 return 0;
a3828db0
MK
12565 ;
12566 return 0;
46711df8 12567}
bec39cab 12568_ACEOF
a3828db0
MK
12569rm -f conftest.$ac_objext
12570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12571 (eval $ac_compile) 2>conftest.er1
12572 ac_status=$?
12573 grep -v '^ *+' conftest.er1 >conftest.err
12574 rm -f conftest.er1
12575 cat conftest.err >&5
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); } &&
b4e70030
JB
12578 { ac_try='test -z "$ac_c_werror_flag"
12579 || test ! -s conftest.err'
a3828db0
MK
12580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12581 (eval $ac_try) 2>&5
bec39cab
AC
12582 ac_status=$?
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0
MK
12584 (exit $ac_status); }; } &&
12585 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
12586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12587 (eval $ac_try) 2>&5
12588 ac_status=$?
12589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); }; }; then
4e8d927d 12591 ac_cv_type_long=yes
46711df8 12592else
a3828db0 12593 echo "$as_me: failed program was:" >&5
bec39cab
AC
12594sed 's/^/| /' conftest.$ac_ext >&5
12595
b4e70030 12596ac_cv_type_long=no
46711df8 12597fi
4e8d927d 12598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46711df8 12599fi
b4e70030
JB
12600echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12601echo "${ECHO_T}$ac_cv_type_long" >&6
46711df8 12602
b4e70030
JB
12603echo "$as_me:$LINENO: checking size of long" >&5
12604echo $ECHO_N "checking size of long... $ECHO_C" >&6
4e8d927d 12605if test "${ac_cv_sizeof_long+set}" = set; then
bec39cab 12606 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 12607else
4e8d927d 12608 if test "$ac_cv_type_long" = yes; then
b4e70030 12609 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
12610 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12611 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12612 # This bug is HP SR number 8606223364.
12613 if test "$cross_compiling" = yes; then
12614 # Depending upon the size, compute the lo and hi bounds.
12615cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
12616/* confdefs.h. */
12617_ACEOF
12618cat confdefs.h >>conftest.$ac_ext
12619cat >>conftest.$ac_ext <<_ACEOF
12620/* end confdefs.h. */
4e8d927d 12621$ac_includes_default
4e8d927d
DJ
12622int
12623main ()
12624{
b4e70030 12625static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4e8d927d 12626test_array [0] = 0
a3828db0 12627
4e8d927d
DJ
12628 ;
12629 return 0;
12630}
bec39cab
AC
12631_ACEOF
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'
bec39cab
AC
12643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12644 (eval $ac_try) 2>&5
12645 ac_status=$?
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); }; } &&
12648 { ac_try='test -s conftest.$ac_objext'
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
DJ
12654 ac_lo=0 ac_mid=0
12655 while :; do
12656 cat >conftest.$ac_ext <<_ACEOF
12657/* confdefs.h. */
12658_ACEOF
12659cat confdefs.h >>conftest.$ac_ext
12660cat >>conftest.$ac_ext <<_ACEOF
12661/* end confdefs.h. */
12662$ac_includes_default
4e8d927d
DJ
12663int
12664main ()
12665{
b4e70030 12666static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4e8d927d
DJ
12667test_array [0] = 0
12668
12669 ;
12670 return 0;
12671}
12672_ACEOF
12673rm -f conftest.$ac_objext
12674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12675 (eval $ac_compile) 2>conftest.er1
12676 ac_status=$?
12677 grep -v '^ *+' conftest.er1 >conftest.err
12678 rm -f conftest.er1
12679 cat conftest.err >&5
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); } &&
b4e70030
JB
12682 { ac_try='test -z "$ac_c_werror_flag"
12683 || test ! -s conftest.err'
4e8d927d
DJ
12684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12685 (eval $ac_try) 2>&5
12686 ac_status=$?
12687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688 (exit $ac_status); }; } &&
12689 { ac_try='test -s conftest.$ac_objext'
12690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12691 (eval $ac_try) 2>&5
12692 ac_status=$?
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); }; }; then
12695 ac_hi=$ac_mid; break
12696else
12697 echo "$as_me: failed program was:" >&5
12698sed 's/^/| /' conftest.$ac_ext >&5
12699
b4e70030
JB
12700ac_lo=`expr $ac_mid + 1`
12701 if test $ac_lo -le $ac_mid; then
12702 ac_lo= ac_hi=
12703 break
12704 fi
12705 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 12706fi
4e8d927d
DJ
12707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12708 done
12709else
12710 echo "$as_me: failed program was:" >&5
12711sed 's/^/| /' conftest.$ac_ext >&5
12712
b4e70030 12713cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
12714/* confdefs.h. */
12715_ACEOF
12716cat confdefs.h >>conftest.$ac_ext
12717cat >>conftest.$ac_ext <<_ACEOF
12718/* end confdefs.h. */
12719$ac_includes_default
4e8d927d
DJ
12720int
12721main ()
12722{
b4e70030 12723static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4e8d927d
DJ
12724test_array [0] = 0
12725
12726 ;
12727 return 0;
12728}
12729_ACEOF
12730rm -f conftest.$ac_objext
12731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12732 (eval $ac_compile) 2>conftest.er1
12733 ac_status=$?
12734 grep -v '^ *+' conftest.er1 >conftest.err
12735 rm -f conftest.er1
12736 cat conftest.err >&5
12737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12738 (exit $ac_status); } &&
b4e70030
JB
12739 { ac_try='test -z "$ac_c_werror_flag"
12740 || test ! -s conftest.err'
4e8d927d
DJ
12741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12742 (eval $ac_try) 2>&5
12743 ac_status=$?
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); }; } &&
12746 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
12752 ac_hi=-1 ac_mid=-1
12753 while :; do
12754 cat >conftest.$ac_ext <<_ACEOF
12755/* confdefs.h. */
12756_ACEOF
12757cat confdefs.h >>conftest.$ac_ext
12758cat >>conftest.$ac_ext <<_ACEOF
12759/* end confdefs.h. */
12760$ac_includes_default
4e8d927d
DJ
12761int
12762main ()
12763{
b4e70030 12764static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4e8d927d
DJ
12765test_array [0] = 0
12766
12767 ;
12768 return 0;
12769}
12770_ACEOF
12771rm -f conftest.$ac_objext
12772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12773 (eval $ac_compile) 2>conftest.er1
12774 ac_status=$?
12775 grep -v '^ *+' conftest.er1 >conftest.err
12776 rm -f conftest.er1
12777 cat conftest.err >&5
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); } &&
b4e70030
JB
12780 { ac_try='test -z "$ac_c_werror_flag"
12781 || test ! -s conftest.err'
4e8d927d
DJ
12782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12783 (eval $ac_try) 2>&5
12784 ac_status=$?
12785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12786 (exit $ac_status); }; } &&
12787 { ac_try='test -s conftest.$ac_objext'
12788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12789 (eval $ac_try) 2>&5
12790 ac_status=$?
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); }; }; then
12793 ac_lo=$ac_mid; break
12794else
12795 echo "$as_me: failed program was:" >&5
12796sed 's/^/| /' conftest.$ac_ext >&5
12797
b4e70030
JB
12798ac_hi=`expr '(' $ac_mid ')' - 1`
12799 if test $ac_mid -le $ac_hi; then
12800 ac_lo= ac_hi=
12801 break
12802 fi
12803 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 12804fi
4e8d927d
DJ
12805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12806 done
12807else
12808 echo "$as_me: failed program was:" >&5
12809sed 's/^/| /' conftest.$ac_ext >&5
12810
b4e70030 12811ac_lo= ac_hi=
4e8d927d 12812fi
4e8d927d
DJ
12813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12814fi
4e8d927d
DJ
12815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12816# Binary search between lo and hi bounds.
12817while test "x$ac_lo" != "x$ac_hi"; do
12818 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12819 cat >conftest.$ac_ext <<_ACEOF
12820/* confdefs.h. */
12821_ACEOF
12822cat confdefs.h >>conftest.$ac_ext
12823cat >>conftest.$ac_ext <<_ACEOF
12824/* end confdefs.h. */
12825$ac_includes_default
4e8d927d
DJ
12826int
12827main ()
12828{
b4e70030 12829static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4e8d927d
DJ
12830test_array [0] = 0
12831
12832 ;
12833 return 0;
12834}
12835_ACEOF
12836rm -f conftest.$ac_objext
12837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12838 (eval $ac_compile) 2>conftest.er1
12839 ac_status=$?
12840 grep -v '^ *+' conftest.er1 >conftest.err
12841 rm -f conftest.er1
12842 cat conftest.err >&5
12843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); } &&
b4e70030
JB
12845 { ac_try='test -z "$ac_c_werror_flag"
12846 || test ! -s conftest.err'
4e8d927d
DJ
12847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12848 (eval $ac_try) 2>&5
12849 ac_status=$?
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); }; } &&
12852 { ac_try='test -s conftest.$ac_objext'
12853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12854 (eval $ac_try) 2>&5
12855 ac_status=$?
12856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); }; }; then
12858 ac_hi=$ac_mid
12859else
12860 echo "$as_me: failed program was:" >&5
12861sed 's/^/| /' conftest.$ac_ext >&5
12862
b4e70030 12863ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 12864fi
4e8d927d
DJ
12865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12866done
12867case $ac_lo in
12868?*) ac_cv_sizeof_long=$ac_lo;;
b4e70030 12869'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4e8d927d 12870See \`config.log' for more details." >&5
b4e70030 12871echo "$as_me: error: cannot compute sizeof (long), 77
4e8d927d 12872See \`config.log' for more details." >&2;}
b4e70030 12873 { (exit 1); exit 1; }; } ;;
4e8d927d 12874esac
b4e70030
JB
12875else
12876 if test "$cross_compiling" = yes; then
12877 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12878See \`config.log' for more details." >&5
12879echo "$as_me: error: cannot run test program while cross compiling
12880See \`config.log' for more details." >&2;}
12881 { (exit 1); exit 1; }; }
4e8d927d
DJ
12882else
12883 cat >conftest.$ac_ext <<_ACEOF
12884/* confdefs.h. */
12885_ACEOF
12886cat confdefs.h >>conftest.$ac_ext
12887cat >>conftest.$ac_ext <<_ACEOF
12888/* end confdefs.h. */
12889$ac_includes_default
b4e70030
JB
12890long longval () { return (long) (sizeof (long)); }
12891unsigned long ulongval () { return (long) (sizeof (long)); }
4e8d927d
DJ
12892#include <stdio.h>
12893#include <stdlib.h>
12894int
12895main ()
12896{
12897
12898 FILE *f = fopen ("conftest.val", "w");
12899 if (! f)
b4e70030
JB
12900 exit (1);
12901 if (((long) (sizeof (long))) < 0)
4e8d927d 12902 {
b4e70030
JB
12903 long i = longval ();
12904 if (i != ((long) (sizeof (long))))
12905 exit (1);
4e8d927d
DJ
12906 fprintf (f, "%ld\n", i);
12907 }
12908 else
12909 {
b4e70030
JB
12910 unsigned long i = ulongval ();
12911 if (i != ((long) (sizeof (long))))
12912 exit (1);
4e8d927d
DJ
12913 fprintf (f, "%lu\n", i);
12914 }
b4e70030 12915 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
12916
12917 ;
12918 return 0;
12919}
12920_ACEOF
12921rm -f conftest$ac_exeext
12922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12923 (eval $ac_link) 2>&5
12924 ac_status=$?
12925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12928 (eval $ac_try) 2>&5
12929 ac_status=$?
12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); }; }; then
12932 ac_cv_sizeof_long=`cat conftest.val`
12933else
12934 echo "$as_me: program exited with status $ac_status" >&5
12935echo "$as_me: failed program was:" >&5
12936sed 's/^/| /' conftest.$ac_ext >&5
12937
12938( exit $ac_status )
b4e70030 12939{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4e8d927d 12940See \`config.log' for more details." >&5
b4e70030 12941echo "$as_me: error: cannot compute sizeof (long), 77
4e8d927d 12942See \`config.log' for more details." >&2;}
b4e70030
JB
12943 { (exit 1); exit 1; }; }
12944fi
12945rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 12946fi
4e8d927d
DJ
12947fi
12948rm -f conftest.val
12949else
12950 ac_cv_sizeof_long=0
12951fi
12952fi
b4e70030
JB
12953echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12954echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4e8d927d
DJ
12955cat >>confdefs.h <<_ACEOF
12956#define SIZEOF_LONG $ac_cv_sizeof_long
12957_ACEOF
12958
12959 ;;
12960esac
12961
12962if test $acx_cv_header_stdint = stddef.h; then
12963 # Lacking a good header? Test size of everything and deduce all types.
b4e70030
JB
12964 echo "$as_me:$LINENO: checking for int" >&5
12965echo $ECHO_N "checking for int... $ECHO_C" >&6
4e8d927d
DJ
12966if test "${ac_cv_type_int+set}" = set; then
12967 echo $ECHO_N "(cached) $ECHO_C" >&6
12968else
12969 cat >conftest.$ac_ext <<_ACEOF
12970/* confdefs.h. */
12971_ACEOF
12972cat confdefs.h >>conftest.$ac_ext
12973cat >>conftest.$ac_ext <<_ACEOF
12974/* end confdefs.h. */
12975$ac_includes_default
4e8d927d
DJ
12976int
12977main ()
12978{
b4e70030 12979if ((int *) 0)
4e8d927d 12980 return 0;
b4e70030 12981if (sizeof (int))
4e8d927d
DJ
12982 return 0;
12983 ;
12984 return 0;
12985}
12986_ACEOF
12987rm -f conftest.$ac_objext
12988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12989 (eval $ac_compile) 2>conftest.er1
12990 ac_status=$?
12991 grep -v '^ *+' conftest.er1 >conftest.err
12992 rm -f conftest.er1
12993 cat conftest.err >&5
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); } &&
b4e70030
JB
12996 { ac_try='test -z "$ac_c_werror_flag"
12997 || test ! -s conftest.err'
4e8d927d
DJ
12998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12999 (eval $ac_try) 2>&5
13000 ac_status=$?
13001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002 (exit $ac_status); }; } &&
13003 { ac_try='test -s conftest.$ac_objext'
13004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13005 (eval $ac_try) 2>&5
13006 ac_status=$?
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); }; }; then
13009 ac_cv_type_int=yes
13010else
13011 echo "$as_me: failed program was:" >&5
13012sed 's/^/| /' conftest.$ac_ext >&5
13013
b4e70030 13014ac_cv_type_int=no
4e8d927d 13015fi
4e8d927d
DJ
13016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13017fi
b4e70030
JB
13018echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13019echo "${ECHO_T}$ac_cv_type_int" >&6
4e8d927d 13020
b4e70030
JB
13021echo "$as_me:$LINENO: checking size of int" >&5
13022echo $ECHO_N "checking size of int... $ECHO_C" >&6
4e8d927d
DJ
13023if test "${ac_cv_sizeof_int+set}" = set; then
13024 echo $ECHO_N "(cached) $ECHO_C" >&6
13025else
13026 if test "$ac_cv_type_int" = yes; then
b4e70030 13027 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
13028 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13029 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13030 # This bug is HP SR number 8606223364.
13031 if test "$cross_compiling" = yes; then
13032 # Depending upon the size, compute the lo and hi bounds.
13033cat >conftest.$ac_ext <<_ACEOF
13034/* confdefs.h. */
13035_ACEOF
13036cat confdefs.h >>conftest.$ac_ext
13037cat >>conftest.$ac_ext <<_ACEOF
13038/* end confdefs.h. */
13039$ac_includes_default
4e8d927d
DJ
13040int
13041main ()
13042{
b4e70030 13043static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4e8d927d
DJ
13044test_array [0] = 0
13045
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_lo=0 ac_mid=0
13073 while :; do
13074 cat >conftest.$ac_ext <<_ACEOF
13075/* confdefs.h. */
13076_ACEOF
13077cat confdefs.h >>conftest.$ac_ext
13078cat >>conftest.$ac_ext <<_ACEOF
13079/* end confdefs.h. */
13080$ac_includes_default
4e8d927d
DJ
13081int
13082main ()
13083{
b4e70030 13084static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4e8d927d
DJ
13085test_array [0] = 0
13086
13087 ;
13088 return 0;
13089}
13090_ACEOF
13091rm -f conftest.$ac_objext
13092if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13093 (eval $ac_compile) 2>conftest.er1
13094 ac_status=$?
13095 grep -v '^ *+' conftest.er1 >conftest.err
13096 rm -f conftest.er1
13097 cat conftest.err >&5
13098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); } &&
b4e70030
JB
13100 { ac_try='test -z "$ac_c_werror_flag"
13101 || test ! -s conftest.err'
4e8d927d
DJ
13102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13103 (eval $ac_try) 2>&5
13104 ac_status=$?
13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); }; } &&
13107 { ac_try='test -s conftest.$ac_objext'
13108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13109 (eval $ac_try) 2>&5
13110 ac_status=$?
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); }; }; then
13113 ac_hi=$ac_mid; break
13114else
13115 echo "$as_me: failed program was:" >&5
13116sed 's/^/| /' conftest.$ac_ext >&5
13117
b4e70030
JB
13118ac_lo=`expr $ac_mid + 1`
13119 if test $ac_lo -le $ac_mid; then
13120 ac_lo= ac_hi=
13121 break
13122 fi
13123 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 13124fi
4e8d927d
DJ
13125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13126 done
13127else
13128 echo "$as_me: failed program was:" >&5
13129sed 's/^/| /' conftest.$ac_ext >&5
13130
b4e70030 13131cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
13132/* confdefs.h. */
13133_ACEOF
13134cat confdefs.h >>conftest.$ac_ext
13135cat >>conftest.$ac_ext <<_ACEOF
13136/* end confdefs.h. */
13137$ac_includes_default
4e8d927d
DJ
13138int
13139main ()
13140{
b4e70030 13141static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4e8d927d
DJ
13142test_array [0] = 0
13143
13144 ;
13145 return 0;
13146}
13147_ACEOF
13148rm -f conftest.$ac_objext
13149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13150 (eval $ac_compile) 2>conftest.er1
13151 ac_status=$?
13152 grep -v '^ *+' conftest.er1 >conftest.err
13153 rm -f conftest.er1
13154 cat conftest.err >&5
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); } &&
b4e70030
JB
13157 { ac_try='test -z "$ac_c_werror_flag"
13158 || test ! -s conftest.err'
4e8d927d
DJ
13159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13160 (eval $ac_try) 2>&5
13161 ac_status=$?
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); }; } &&
13164 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13170 ac_hi=-1 ac_mid=-1
13171 while :; do
13172 cat >conftest.$ac_ext <<_ACEOF
13173/* confdefs.h. */
13174_ACEOF
13175cat confdefs.h >>conftest.$ac_ext
13176cat >>conftest.$ac_ext <<_ACEOF
13177/* end confdefs.h. */
13178$ac_includes_default
4e8d927d
DJ
13179int
13180main ()
13181{
b4e70030 13182static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4e8d927d
DJ
13183test_array [0] = 0
13184
13185 ;
13186 return 0;
13187}
13188_ACEOF
13189rm -f conftest.$ac_objext
13190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13191 (eval $ac_compile) 2>conftest.er1
13192 ac_status=$?
13193 grep -v '^ *+' conftest.er1 >conftest.err
13194 rm -f conftest.er1
13195 cat conftest.err >&5
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); } &&
b4e70030
JB
13198 { ac_try='test -z "$ac_c_werror_flag"
13199 || test ! -s conftest.err'
4e8d927d
DJ
13200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13201 (eval $ac_try) 2>&5
13202 ac_status=$?
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); }; } &&
13205 { ac_try='test -s conftest.$ac_objext'
13206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13207 (eval $ac_try) 2>&5
13208 ac_status=$?
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); }; }; then
13211 ac_lo=$ac_mid; break
13212else
13213 echo "$as_me: failed program was:" >&5
13214sed 's/^/| /' conftest.$ac_ext >&5
13215
b4e70030
JB
13216ac_hi=`expr '(' $ac_mid ')' - 1`
13217 if test $ac_mid -le $ac_hi; then
13218 ac_lo= ac_hi=
13219 break
13220 fi
13221 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 13222fi
4e8d927d
DJ
13223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13224 done
13225else
13226 echo "$as_me: failed program was:" >&5
13227sed 's/^/| /' conftest.$ac_ext >&5
13228
b4e70030 13229ac_lo= ac_hi=
4e8d927d 13230fi
4e8d927d
DJ
13231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13232fi
4e8d927d
DJ
13233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13234# Binary search between lo and hi bounds.
13235while test "x$ac_lo" != "x$ac_hi"; do
13236 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13237 cat >conftest.$ac_ext <<_ACEOF
13238/* confdefs.h. */
13239_ACEOF
13240cat confdefs.h >>conftest.$ac_ext
13241cat >>conftest.$ac_ext <<_ACEOF
13242/* end confdefs.h. */
13243$ac_includes_default
4e8d927d
DJ
13244int
13245main ()
13246{
b4e70030 13247static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4e8d927d
DJ
13248test_array [0] = 0
13249
13250 ;
13251 return 0;
13252}
13253_ACEOF
13254rm -f conftest.$ac_objext
13255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13256 (eval $ac_compile) 2>conftest.er1
13257 ac_status=$?
13258 grep -v '^ *+' conftest.er1 >conftest.err
13259 rm -f conftest.er1
13260 cat conftest.err >&5
13261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); } &&
b4e70030
JB
13263 { ac_try='test -z "$ac_c_werror_flag"
13264 || test ! -s conftest.err'
4e8d927d
DJ
13265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13266 (eval $ac_try) 2>&5
13267 ac_status=$?
13268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269 (exit $ac_status); }; } &&
13270 { ac_try='test -s conftest.$ac_objext'
13271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13272 (eval $ac_try) 2>&5
13273 ac_status=$?
13274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); }; }; then
13276 ac_hi=$ac_mid
13277else
13278 echo "$as_me: failed program was:" >&5
13279sed 's/^/| /' conftest.$ac_ext >&5
13280
b4e70030 13281ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 13282fi
4e8d927d
DJ
13283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13284done
13285case $ac_lo in
13286?*) ac_cv_sizeof_int=$ac_lo;;
b4e70030 13287'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4e8d927d 13288See \`config.log' for more details." >&5
b4e70030 13289echo "$as_me: error: cannot compute sizeof (int), 77
4e8d927d 13290See \`config.log' for more details." >&2;}
b4e70030 13291 { (exit 1); exit 1; }; } ;;
4e8d927d 13292esac
b4e70030
JB
13293else
13294 if test "$cross_compiling" = yes; then
13295 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13296See \`config.log' for more details." >&5
13297echo "$as_me: error: cannot run test program while cross compiling
13298See \`config.log' for more details." >&2;}
13299 { (exit 1); exit 1; }; }
4e8d927d
DJ
13300else
13301 cat >conftest.$ac_ext <<_ACEOF
13302/* confdefs.h. */
13303_ACEOF
13304cat confdefs.h >>conftest.$ac_ext
13305cat >>conftest.$ac_ext <<_ACEOF
13306/* end confdefs.h. */
13307$ac_includes_default
b4e70030
JB
13308long longval () { return (long) (sizeof (int)); }
13309unsigned long ulongval () { return (long) (sizeof (int)); }
4e8d927d
DJ
13310#include <stdio.h>
13311#include <stdlib.h>
13312int
13313main ()
13314{
13315
13316 FILE *f = fopen ("conftest.val", "w");
13317 if (! f)
b4e70030
JB
13318 exit (1);
13319 if (((long) (sizeof (int))) < 0)
4e8d927d 13320 {
b4e70030
JB
13321 long i = longval ();
13322 if (i != ((long) (sizeof (int))))
13323 exit (1);
4e8d927d
DJ
13324 fprintf (f, "%ld\n", i);
13325 }
13326 else
13327 {
b4e70030
JB
13328 unsigned long i = ulongval ();
13329 if (i != ((long) (sizeof (int))))
13330 exit (1);
4e8d927d
DJ
13331 fprintf (f, "%lu\n", i);
13332 }
b4e70030 13333 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
13334
13335 ;
13336 return 0;
13337}
13338_ACEOF
13339rm -f conftest$ac_exeext
13340if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13341 (eval $ac_link) 2>&5
13342 ac_status=$?
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13346 (eval $ac_try) 2>&5
13347 ac_status=$?
13348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13349 (exit $ac_status); }; }; then
13350 ac_cv_sizeof_int=`cat conftest.val`
13351else
13352 echo "$as_me: program exited with status $ac_status" >&5
13353echo "$as_me: failed program was:" >&5
13354sed 's/^/| /' conftest.$ac_ext >&5
13355
13356( exit $ac_status )
b4e70030 13357{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4e8d927d 13358See \`config.log' for more details." >&5
b4e70030 13359echo "$as_me: error: cannot compute sizeof (int), 77
4e8d927d 13360See \`config.log' for more details." >&2;}
b4e70030
JB
13361 { (exit 1); exit 1; }; }
13362fi
13363rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 13364fi
4e8d927d
DJ
13365fi
13366rm -f conftest.val
13367else
13368 ac_cv_sizeof_int=0
13369fi
13370fi
b4e70030
JB
13371echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13372echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4e8d927d
DJ
13373cat >>confdefs.h <<_ACEOF
13374#define SIZEOF_INT $ac_cv_sizeof_int
13375_ACEOF
13376
13377
b4e70030
JB
13378 echo "$as_me:$LINENO: checking for short" >&5
13379echo $ECHO_N "checking for short... $ECHO_C" >&6
4e8d927d
DJ
13380if test "${ac_cv_type_short+set}" = set; then
13381 echo $ECHO_N "(cached) $ECHO_C" >&6
13382else
13383 cat >conftest.$ac_ext <<_ACEOF
13384/* confdefs.h. */
13385_ACEOF
13386cat confdefs.h >>conftest.$ac_ext
13387cat >>conftest.$ac_ext <<_ACEOF
13388/* end confdefs.h. */
13389$ac_includes_default
4e8d927d
DJ
13390int
13391main ()
13392{
b4e70030 13393if ((short *) 0)
4e8d927d 13394 return 0;
b4e70030 13395if (sizeof (short))
4e8d927d
DJ
13396 return 0;
13397 ;
13398 return 0;
13399}
13400_ACEOF
13401rm -f conftest.$ac_objext
13402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13403 (eval $ac_compile) 2>conftest.er1
13404 ac_status=$?
13405 grep -v '^ *+' conftest.er1 >conftest.err
13406 rm -f conftest.er1
13407 cat conftest.err >&5
13408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409 (exit $ac_status); } &&
b4e70030
JB
13410 { ac_try='test -z "$ac_c_werror_flag"
13411 || test ! -s conftest.err'
4e8d927d
DJ
13412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13413 (eval $ac_try) 2>&5
13414 ac_status=$?
13415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416 (exit $ac_status); }; } &&
13417 { ac_try='test -s conftest.$ac_objext'
13418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13419 (eval $ac_try) 2>&5
13420 ac_status=$?
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); }; }; then
13423 ac_cv_type_short=yes
13424else
13425 echo "$as_me: failed program was:" >&5
13426sed 's/^/| /' conftest.$ac_ext >&5
13427
b4e70030 13428ac_cv_type_short=no
4e8d927d 13429fi
4e8d927d
DJ
13430rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13431fi
b4e70030
JB
13432echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13433echo "${ECHO_T}$ac_cv_type_short" >&6
4e8d927d 13434
b4e70030
JB
13435echo "$as_me:$LINENO: checking size of short" >&5
13436echo $ECHO_N "checking size of short... $ECHO_C" >&6
4e8d927d
DJ
13437if test "${ac_cv_sizeof_short+set}" = set; then
13438 echo $ECHO_N "(cached) $ECHO_C" >&6
13439else
13440 if test "$ac_cv_type_short" = yes; then
b4e70030 13441 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
13442 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13443 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13444 # This bug is HP SR number 8606223364.
13445 if test "$cross_compiling" = yes; then
13446 # Depending upon the size, compute the lo and hi bounds.
13447cat >conftest.$ac_ext <<_ACEOF
13448/* confdefs.h. */
13449_ACEOF
13450cat confdefs.h >>conftest.$ac_ext
13451cat >>conftest.$ac_ext <<_ACEOF
13452/* end confdefs.h. */
13453$ac_includes_default
4e8d927d
DJ
13454int
13455main ()
13456{
b4e70030 13457static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4e8d927d
DJ
13458test_array [0] = 0
13459
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_lo=0 ac_mid=0
13487 while :; do
13488 cat >conftest.$ac_ext <<_ACEOF
13489/* confdefs.h. */
13490_ACEOF
13491cat confdefs.h >>conftest.$ac_ext
13492cat >>conftest.$ac_ext <<_ACEOF
13493/* end confdefs.h. */
13494$ac_includes_default
4e8d927d
DJ
13495int
13496main ()
13497{
b4e70030 13498static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4e8d927d
DJ
13499test_array [0] = 0
13500
13501 ;
13502 return 0;
13503}
13504_ACEOF
13505rm -f conftest.$ac_objext
13506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13507 (eval $ac_compile) 2>conftest.er1
13508 ac_status=$?
13509 grep -v '^ *+' conftest.er1 >conftest.err
13510 rm -f conftest.er1
13511 cat conftest.err >&5
13512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13513 (exit $ac_status); } &&
b4e70030
JB
13514 { ac_try='test -z "$ac_c_werror_flag"
13515 || test ! -s conftest.err'
4e8d927d
DJ
13516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13517 (eval $ac_try) 2>&5
13518 ac_status=$?
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); }; } &&
13521 { ac_try='test -s conftest.$ac_objext'
13522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13523 (eval $ac_try) 2>&5
13524 ac_status=$?
13525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); }; }; then
13527 ac_hi=$ac_mid; break
13528else
13529 echo "$as_me: failed program was:" >&5
13530sed 's/^/| /' conftest.$ac_ext >&5
13531
b4e70030
JB
13532ac_lo=`expr $ac_mid + 1`
13533 if test $ac_lo -le $ac_mid; then
13534 ac_lo= ac_hi=
13535 break
13536 fi
13537 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 13538fi
4e8d927d
DJ
13539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13540 done
13541else
13542 echo "$as_me: failed program was:" >&5
13543sed 's/^/| /' conftest.$ac_ext >&5
13544
b4e70030 13545cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
13546/* confdefs.h. */
13547_ACEOF
13548cat confdefs.h >>conftest.$ac_ext
13549cat >>conftest.$ac_ext <<_ACEOF
13550/* end confdefs.h. */
13551$ac_includes_default
4e8d927d
DJ
13552int
13553main ()
13554{
b4e70030 13555static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4e8d927d
DJ
13556test_array [0] = 0
13557
13558 ;
13559 return 0;
13560}
13561_ACEOF
13562rm -f conftest.$ac_objext
13563if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13564 (eval $ac_compile) 2>conftest.er1
13565 ac_status=$?
13566 grep -v '^ *+' conftest.er1 >conftest.err
13567 rm -f conftest.er1
13568 cat conftest.err >&5
13569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570 (exit $ac_status); } &&
b4e70030
JB
13571 { ac_try='test -z "$ac_c_werror_flag"
13572 || test ! -s conftest.err'
4e8d927d
DJ
13573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13574 (eval $ac_try) 2>&5
13575 ac_status=$?
13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); }; } &&
13578 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13584 ac_hi=-1 ac_mid=-1
13585 while :; do
13586 cat >conftest.$ac_ext <<_ACEOF
13587/* confdefs.h. */
13588_ACEOF
13589cat confdefs.h >>conftest.$ac_ext
13590cat >>conftest.$ac_ext <<_ACEOF
13591/* end confdefs.h. */
13592$ac_includes_default
4e8d927d
DJ
13593int
13594main ()
13595{
b4e70030 13596static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4e8d927d
DJ
13597test_array [0] = 0
13598
13599 ;
13600 return 0;
13601}
13602_ACEOF
13603rm -f conftest.$ac_objext
13604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13605 (eval $ac_compile) 2>conftest.er1
13606 ac_status=$?
13607 grep -v '^ *+' conftest.er1 >conftest.err
13608 rm -f conftest.er1
13609 cat conftest.err >&5
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); } &&
b4e70030
JB
13612 { ac_try='test -z "$ac_c_werror_flag"
13613 || test ! -s conftest.err'
4e8d927d
DJ
13614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13615 (eval $ac_try) 2>&5
13616 ac_status=$?
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); }; } &&
13619 { ac_try='test -s conftest.$ac_objext'
13620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13621 (eval $ac_try) 2>&5
13622 ac_status=$?
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); }; }; then
13625 ac_lo=$ac_mid; break
13626else
13627 echo "$as_me: failed program was:" >&5
13628sed 's/^/| /' conftest.$ac_ext >&5
13629
b4e70030
JB
13630ac_hi=`expr '(' $ac_mid ')' - 1`
13631 if test $ac_mid -le $ac_hi; then
13632 ac_lo= ac_hi=
13633 break
13634 fi
13635 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 13636fi
4e8d927d
DJ
13637rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13638 done
13639else
13640 echo "$as_me: failed program was:" >&5
13641sed 's/^/| /' conftest.$ac_ext >&5
13642
b4e70030 13643ac_lo= ac_hi=
4e8d927d 13644fi
4e8d927d
DJ
13645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13646fi
4e8d927d
DJ
13647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13648# Binary search between lo and hi bounds.
13649while test "x$ac_lo" != "x$ac_hi"; do
13650 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13651 cat >conftest.$ac_ext <<_ACEOF
13652/* confdefs.h. */
13653_ACEOF
13654cat confdefs.h >>conftest.$ac_ext
13655cat >>conftest.$ac_ext <<_ACEOF
13656/* end confdefs.h. */
13657$ac_includes_default
4e8d927d
DJ
13658int
13659main ()
13660{
b4e70030 13661static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4e8d927d
DJ
13662test_array [0] = 0
13663
13664 ;
13665 return 0;
13666}
13667_ACEOF
13668rm -f conftest.$ac_objext
13669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13670 (eval $ac_compile) 2>conftest.er1
13671 ac_status=$?
13672 grep -v '^ *+' conftest.er1 >conftest.err
13673 rm -f conftest.er1
13674 cat conftest.err >&5
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); } &&
b4e70030
JB
13677 { ac_try='test -z "$ac_c_werror_flag"
13678 || test ! -s conftest.err'
4e8d927d
DJ
13679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13680 (eval $ac_try) 2>&5
13681 ac_status=$?
13682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683 (exit $ac_status); }; } &&
13684 { ac_try='test -s conftest.$ac_objext'
13685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13686 (eval $ac_try) 2>&5
13687 ac_status=$?
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); }; }; then
13690 ac_hi=$ac_mid
13691else
13692 echo "$as_me: failed program was:" >&5
13693sed 's/^/| /' conftest.$ac_ext >&5
13694
b4e70030 13695ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 13696fi
4e8d927d
DJ
13697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13698done
13699case $ac_lo in
13700?*) ac_cv_sizeof_short=$ac_lo;;
b4e70030 13701'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4e8d927d 13702See \`config.log' for more details." >&5
b4e70030 13703echo "$as_me: error: cannot compute sizeof (short), 77
4e8d927d 13704See \`config.log' for more details." >&2;}
b4e70030 13705 { (exit 1); exit 1; }; } ;;
4e8d927d 13706esac
b4e70030
JB
13707else
13708 if test "$cross_compiling" = yes; then
13709 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13710See \`config.log' for more details." >&5
13711echo "$as_me: error: cannot run test program while cross compiling
13712See \`config.log' for more details." >&2;}
13713 { (exit 1); exit 1; }; }
4e8d927d
DJ
13714else
13715 cat >conftest.$ac_ext <<_ACEOF
13716/* confdefs.h. */
13717_ACEOF
13718cat confdefs.h >>conftest.$ac_ext
13719cat >>conftest.$ac_ext <<_ACEOF
13720/* end confdefs.h. */
13721$ac_includes_default
b4e70030
JB
13722long longval () { return (long) (sizeof (short)); }
13723unsigned long ulongval () { return (long) (sizeof (short)); }
4e8d927d
DJ
13724#include <stdio.h>
13725#include <stdlib.h>
13726int
13727main ()
13728{
13729
13730 FILE *f = fopen ("conftest.val", "w");
13731 if (! f)
b4e70030
JB
13732 exit (1);
13733 if (((long) (sizeof (short))) < 0)
4e8d927d 13734 {
b4e70030
JB
13735 long i = longval ();
13736 if (i != ((long) (sizeof (short))))
13737 exit (1);
4e8d927d
DJ
13738 fprintf (f, "%ld\n", i);
13739 }
13740 else
13741 {
b4e70030
JB
13742 unsigned long i = ulongval ();
13743 if (i != ((long) (sizeof (short))))
13744 exit (1);
4e8d927d
DJ
13745 fprintf (f, "%lu\n", i);
13746 }
b4e70030 13747 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
13748
13749 ;
13750 return 0;
13751}
13752_ACEOF
13753rm -f conftest$ac_exeext
13754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13755 (eval $ac_link) 2>&5
13756 ac_status=$?
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13760 (eval $ac_try) 2>&5
13761 ac_status=$?
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); }; }; then
13764 ac_cv_sizeof_short=`cat conftest.val`
13765else
13766 echo "$as_me: program exited with status $ac_status" >&5
13767echo "$as_me: failed program was:" >&5
13768sed 's/^/| /' conftest.$ac_ext >&5
13769
13770( exit $ac_status )
b4e70030 13771{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4e8d927d 13772See \`config.log' for more details." >&5
b4e70030 13773echo "$as_me: error: cannot compute sizeof (short), 77
4e8d927d 13774See \`config.log' for more details." >&2;}
b4e70030
JB
13775 { (exit 1); exit 1; }; }
13776fi
13777rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 13778fi
4e8d927d
DJ
13779fi
13780rm -f conftest.val
13781else
13782 ac_cv_sizeof_short=0
13783fi
13784fi
b4e70030
JB
13785echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
13786echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4e8d927d
DJ
13787cat >>confdefs.h <<_ACEOF
13788#define SIZEOF_SHORT $ac_cv_sizeof_short
13789_ACEOF
13790
13791
b4e70030
JB
13792 echo "$as_me:$LINENO: checking for char" >&5
13793echo $ECHO_N "checking for char... $ECHO_C" >&6
4e8d927d
DJ
13794if test "${ac_cv_type_char+set}" = set; then
13795 echo $ECHO_N "(cached) $ECHO_C" >&6
13796else
13797 cat >conftest.$ac_ext <<_ACEOF
13798/* confdefs.h. */
13799_ACEOF
13800cat confdefs.h >>conftest.$ac_ext
13801cat >>conftest.$ac_ext <<_ACEOF
13802/* end confdefs.h. */
13803$ac_includes_default
4e8d927d
DJ
13804int
13805main ()
13806{
b4e70030 13807if ((char *) 0)
4e8d927d 13808 return 0;
b4e70030 13809if (sizeof (char))
4e8d927d
DJ
13810 return 0;
13811 ;
13812 return 0;
13813}
13814_ACEOF
13815rm -f conftest.$ac_objext
13816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13817 (eval $ac_compile) 2>conftest.er1
13818 ac_status=$?
13819 grep -v '^ *+' conftest.er1 >conftest.err
13820 rm -f conftest.er1
13821 cat conftest.err >&5
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); } &&
b4e70030
JB
13824 { ac_try='test -z "$ac_c_werror_flag"
13825 || test ! -s conftest.err'
4e8d927d
DJ
13826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13827 (eval $ac_try) 2>&5
13828 ac_status=$?
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); }; } &&
13831 { ac_try='test -s conftest.$ac_objext'
13832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13833 (eval $ac_try) 2>&5
13834 ac_status=$?
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); }; }; then
13837 ac_cv_type_char=yes
13838else
13839 echo "$as_me: failed program was:" >&5
13840sed 's/^/| /' conftest.$ac_ext >&5
13841
b4e70030 13842ac_cv_type_char=no
4e8d927d 13843fi
4e8d927d
DJ
13844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13845fi
b4e70030
JB
13846echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13847echo "${ECHO_T}$ac_cv_type_char" >&6
4e8d927d 13848
b4e70030
JB
13849echo "$as_me:$LINENO: checking size of char" >&5
13850echo $ECHO_N "checking size of char... $ECHO_C" >&6
4e8d927d
DJ
13851if test "${ac_cv_sizeof_char+set}" = set; then
13852 echo $ECHO_N "(cached) $ECHO_C" >&6
13853else
13854 if test "$ac_cv_type_char" = yes; then
b4e70030 13855 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
13856 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13857 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13858 # This bug is HP SR number 8606223364.
13859 if test "$cross_compiling" = yes; then
13860 # Depending upon the size, compute the lo and hi bounds.
13861cat >conftest.$ac_ext <<_ACEOF
13862/* confdefs.h. */
13863_ACEOF
13864cat confdefs.h >>conftest.$ac_ext
13865cat >>conftest.$ac_ext <<_ACEOF
13866/* end confdefs.h. */
13867$ac_includes_default
4e8d927d
DJ
13868int
13869main ()
13870{
b4e70030 13871static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4e8d927d
DJ
13872test_array [0] = 0
13873
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_lo=0 ac_mid=0
13901 while :; do
13902 cat >conftest.$ac_ext <<_ACEOF
13903/* confdefs.h. */
13904_ACEOF
13905cat confdefs.h >>conftest.$ac_ext
13906cat >>conftest.$ac_ext <<_ACEOF
13907/* end confdefs.h. */
13908$ac_includes_default
4e8d927d
DJ
13909int
13910main ()
13911{
b4e70030 13912static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4e8d927d
DJ
13913test_array [0] = 0
13914
13915 ;
13916 return 0;
13917}
13918_ACEOF
13919rm -f conftest.$ac_objext
13920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13921 (eval $ac_compile) 2>conftest.er1
13922 ac_status=$?
13923 grep -v '^ *+' conftest.er1 >conftest.err
13924 rm -f conftest.er1
13925 cat conftest.err >&5
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); } &&
b4e70030
JB
13928 { ac_try='test -z "$ac_c_werror_flag"
13929 || test ! -s conftest.err'
4e8d927d
DJ
13930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13931 (eval $ac_try) 2>&5
13932 ac_status=$?
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); }; } &&
13935 { ac_try='test -s conftest.$ac_objext'
13936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13937 (eval $ac_try) 2>&5
13938 ac_status=$?
13939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940 (exit $ac_status); }; }; then
13941 ac_hi=$ac_mid; break
13942else
13943 echo "$as_me: failed program was:" >&5
13944sed 's/^/| /' conftest.$ac_ext >&5
13945
b4e70030
JB
13946ac_lo=`expr $ac_mid + 1`
13947 if test $ac_lo -le $ac_mid; then
13948 ac_lo= ac_hi=
13949 break
13950 fi
13951 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 13952fi
4e8d927d
DJ
13953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13954 done
13955else
13956 echo "$as_me: failed program was:" >&5
13957sed 's/^/| /' conftest.$ac_ext >&5
13958
b4e70030 13959cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
13960/* confdefs.h. */
13961_ACEOF
13962cat confdefs.h >>conftest.$ac_ext
13963cat >>conftest.$ac_ext <<_ACEOF
13964/* end confdefs.h. */
13965$ac_includes_default
4e8d927d
DJ
13966int
13967main ()
13968{
b4e70030 13969static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4e8d927d
DJ
13970test_array [0] = 0
13971
13972 ;
13973 return 0;
13974}
13975_ACEOF
13976rm -f conftest.$ac_objext
13977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13978 (eval $ac_compile) 2>conftest.er1
13979 ac_status=$?
13980 grep -v '^ *+' conftest.er1 >conftest.err
13981 rm -f conftest.er1
13982 cat conftest.err >&5
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); } &&
b4e70030
JB
13985 { ac_try='test -z "$ac_c_werror_flag"
13986 || test ! -s conftest.err'
4e8d927d
DJ
13987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13988 (eval $ac_try) 2>&5
13989 ac_status=$?
13990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13991 (exit $ac_status); }; } &&
13992 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13998 ac_hi=-1 ac_mid=-1
13999 while :; do
14000 cat >conftest.$ac_ext <<_ACEOF
14001/* confdefs.h. */
14002_ACEOF
14003cat confdefs.h >>conftest.$ac_ext
14004cat >>conftest.$ac_ext <<_ACEOF
14005/* end confdefs.h. */
14006$ac_includes_default
4e8d927d
DJ
14007int
14008main ()
14009{
b4e70030 14010static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4e8d927d
DJ
14011test_array [0] = 0
14012
14013 ;
14014 return 0;
14015}
14016_ACEOF
14017rm -f conftest.$ac_objext
14018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14019 (eval $ac_compile) 2>conftest.er1
14020 ac_status=$?
14021 grep -v '^ *+' conftest.er1 >conftest.err
14022 rm -f conftest.er1
14023 cat conftest.err >&5
14024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025 (exit $ac_status); } &&
b4e70030
JB
14026 { ac_try='test -z "$ac_c_werror_flag"
14027 || test ! -s conftest.err'
4e8d927d
DJ
14028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14029 (eval $ac_try) 2>&5
14030 ac_status=$?
14031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14032 (exit $ac_status); }; } &&
14033 { ac_try='test -s conftest.$ac_objext'
14034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14035 (eval $ac_try) 2>&5
14036 ac_status=$?
14037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14038 (exit $ac_status); }; }; then
14039 ac_lo=$ac_mid; break
14040else
14041 echo "$as_me: failed program was:" >&5
14042sed 's/^/| /' conftest.$ac_ext >&5
14043
b4e70030
JB
14044ac_hi=`expr '(' $ac_mid ')' - 1`
14045 if test $ac_mid -le $ac_hi; then
14046 ac_lo= ac_hi=
14047 break
14048 fi
14049 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 14050fi
4e8d927d
DJ
14051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14052 done
14053else
14054 echo "$as_me: failed program was:" >&5
14055sed 's/^/| /' conftest.$ac_ext >&5
14056
b4e70030 14057ac_lo= ac_hi=
4e8d927d 14058fi
4e8d927d
DJ
14059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14060fi
4e8d927d
DJ
14061rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14062# Binary search between lo and hi bounds.
14063while test "x$ac_lo" != "x$ac_hi"; do
14064 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14065 cat >conftest.$ac_ext <<_ACEOF
14066/* confdefs.h. */
14067_ACEOF
14068cat confdefs.h >>conftest.$ac_ext
14069cat >>conftest.$ac_ext <<_ACEOF
14070/* end confdefs.h. */
14071$ac_includes_default
4e8d927d
DJ
14072int
14073main ()
14074{
b4e70030 14075static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4e8d927d
DJ
14076test_array [0] = 0
14077
14078 ;
14079 return 0;
14080}
14081_ACEOF
14082rm -f conftest.$ac_objext
14083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14084 (eval $ac_compile) 2>conftest.er1
14085 ac_status=$?
14086 grep -v '^ *+' conftest.er1 >conftest.err
14087 rm -f conftest.er1
14088 cat conftest.err >&5
14089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090 (exit $ac_status); } &&
b4e70030
JB
14091 { ac_try='test -z "$ac_c_werror_flag"
14092 || test ! -s conftest.err'
4e8d927d
DJ
14093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14094 (eval $ac_try) 2>&5
14095 ac_status=$?
14096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097 (exit $ac_status); }; } &&
14098 { ac_try='test -s conftest.$ac_objext'
14099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14100 (eval $ac_try) 2>&5
14101 ac_status=$?
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); }; }; then
14104 ac_hi=$ac_mid
14105else
14106 echo "$as_me: failed program was:" >&5
14107sed 's/^/| /' conftest.$ac_ext >&5
14108
b4e70030 14109ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 14110fi
4e8d927d
DJ
14111rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14112done
14113case $ac_lo in
14114?*) ac_cv_sizeof_char=$ac_lo;;
b4e70030 14115'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4e8d927d 14116See \`config.log' for more details." >&5
b4e70030 14117echo "$as_me: error: cannot compute sizeof (char), 77
4e8d927d 14118See \`config.log' for more details." >&2;}
b4e70030 14119 { (exit 1); exit 1; }; } ;;
4e8d927d 14120esac
b4e70030
JB
14121else
14122 if test "$cross_compiling" = yes; then
14123 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14124See \`config.log' for more details." >&5
14125echo "$as_me: error: cannot run test program while cross compiling
14126See \`config.log' for more details." >&2;}
14127 { (exit 1); exit 1; }; }
4e8d927d
DJ
14128else
14129 cat >conftest.$ac_ext <<_ACEOF
14130/* confdefs.h. */
14131_ACEOF
14132cat confdefs.h >>conftest.$ac_ext
14133cat >>conftest.$ac_ext <<_ACEOF
14134/* end confdefs.h. */
14135$ac_includes_default
b4e70030
JB
14136long longval () { return (long) (sizeof (char)); }
14137unsigned long ulongval () { return (long) (sizeof (char)); }
4e8d927d
DJ
14138#include <stdio.h>
14139#include <stdlib.h>
14140int
14141main ()
14142{
14143
14144 FILE *f = fopen ("conftest.val", "w");
14145 if (! f)
b4e70030
JB
14146 exit (1);
14147 if (((long) (sizeof (char))) < 0)
4e8d927d 14148 {
b4e70030
JB
14149 long i = longval ();
14150 if (i != ((long) (sizeof (char))))
14151 exit (1);
4e8d927d
DJ
14152 fprintf (f, "%ld\n", i);
14153 }
14154 else
14155 {
b4e70030
JB
14156 unsigned long i = ulongval ();
14157 if (i != ((long) (sizeof (char))))
14158 exit (1);
4e8d927d
DJ
14159 fprintf (f, "%lu\n", i);
14160 }
b4e70030 14161 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
14162
14163 ;
14164 return 0;
14165}
14166_ACEOF
14167rm -f conftest$ac_exeext
14168if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14169 (eval $ac_link) 2>&5
14170 ac_status=$?
14171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14174 (eval $ac_try) 2>&5
14175 ac_status=$?
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); }; }; then
14178 ac_cv_sizeof_char=`cat conftest.val`
14179else
14180 echo "$as_me: program exited with status $ac_status" >&5
14181echo "$as_me: failed program was:" >&5
14182sed 's/^/| /' conftest.$ac_ext >&5
14183
14184( exit $ac_status )
b4e70030 14185{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4e8d927d 14186See \`config.log' for more details." >&5
b4e70030 14187echo "$as_me: error: cannot compute sizeof (char), 77
4e8d927d 14188See \`config.log' for more details." >&2;}
b4e70030
JB
14189 { (exit 1); exit 1; }; }
14190fi
14191rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 14192fi
4e8d927d
DJ
14193fi
14194rm -f conftest.val
14195else
14196 ac_cv_sizeof_char=0
14197fi
14198fi
b4e70030
JB
14199echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14200echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4e8d927d
DJ
14201cat >>confdefs.h <<_ACEOF
14202#define SIZEOF_CHAR $ac_cv_sizeof_char
14203_ACEOF
14204
14205
14206
b4e70030
JB
14207 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
14208echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
4e8d927d
DJ
14209 case "$ac_cv_sizeof_char" in
14210 1) acx_cv_type_int8_t=char ;;
14211 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
14212echo "$as_me: error: no 8-bit type" >&2;}
14213 { (exit please report a bug); exit please report a bug; }; }
14214 esac
b4e70030
JB
14215 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
14216echo "${ECHO_T}$acx_cv_type_int8_t" >&6
4e8d927d 14217
b4e70030
JB
14218 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
14219echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
4e8d927d
DJ
14220 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
14221 2:*) acx_cv_type_int16_t=int ;;
14222 *:2) acx_cv_type_int16_t=short ;;
14223 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
14224echo "$as_me: error: no 16-bit type" >&2;}
14225 { (exit please report a bug); exit please report a bug; }; }
14226 esac
b4e70030
JB
14227 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
14228echo "${ECHO_T}$acx_cv_type_int16_t" >&6
4e8d927d 14229
b4e70030
JB
14230 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
14231echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
4e8d927d
DJ
14232 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
14233 4:*) acx_cv_type_int32_t=int ;;
14234 *:4) acx_cv_type_int32_t=long ;;
14235 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
14236echo "$as_me: error: no 32-bit type" >&2;}
14237 { (exit please report a bug); exit please report a bug; }; }
14238 esac
b4e70030
JB
14239 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
14240echo "${ECHO_T}$acx_cv_type_int32_t" >&6
4e8d927d
DJ
14241fi
14242
14243# These tests are here to make the output prettier
14244
14245if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
14246 case "$ac_cv_sizeof_long" in
14247 8) acx_cv_type_int64_t=long ;;
14248 esac
b4e70030
JB
14249 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
14250echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
14251 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
14252echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
4e8d927d
DJ
14253fi
14254
14255# Now we can use the above types
14256
14257if test "$ac_cv_type_uintptr_t" != yes; then
b4e70030
JB
14258 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
14259echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
4e8d927d
DJ
14260 case $ac_cv_sizeof_void_p in
14261 2) acx_cv_type_intptr_t=int16_t ;;
14262 4) acx_cv_type_intptr_t=int32_t ;;
14263 8) acx_cv_type_intptr_t=int64_t ;;
14264 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
14265echo "$as_me: error: no equivalent for intptr_t" >&2;}
14266 { (exit please report a bug); exit please report a bug; }; }
14267 esac
b4e70030
JB
14268 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
14269echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
4e8d927d
DJ
14270fi
14271
14272# ----------------- done all checks, emit header -------------
b4e70030 14273 ac_config_commands="$ac_config_commands gdb_stdint.h"
4e8d927d
DJ
14274
14275
14276
14277
14278# ------------------------- #
14279# Checks for declarations. #
14280# ------------------------- #
14281
b4e70030
JB
14282echo "$as_me:$LINENO: checking whether free is declared" >&5
14283echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
4e8d927d
DJ
14284if test "${ac_cv_have_decl_free+set}" = set; then
14285 echo $ECHO_N "(cached) $ECHO_C" >&6
14286else
14287 cat >conftest.$ac_ext <<_ACEOF
14288/* confdefs.h. */
14289_ACEOF
14290cat confdefs.h >>conftest.$ac_ext
14291cat >>conftest.$ac_ext <<_ACEOF
14292/* end confdefs.h. */
14293$ac_includes_default
14294int
14295main ()
14296{
14297#ifndef free
14298 char *p = (char *) free;
4e8d927d
DJ
14299#endif
14300
14301 ;
14302 return 0;
14303}
14304_ACEOF
14305rm -f conftest.$ac_objext
14306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14307 (eval $ac_compile) 2>conftest.er1
14308 ac_status=$?
14309 grep -v '^ *+' conftest.er1 >conftest.err
14310 rm -f conftest.er1
14311 cat conftest.err >&5
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); } &&
b4e70030
JB
14314 { ac_try='test -z "$ac_c_werror_flag"
14315 || test ! -s conftest.err'
4e8d927d
DJ
14316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14317 (eval $ac_try) 2>&5
14318 ac_status=$?
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); }; } &&
14321 { ac_try='test -s conftest.$ac_objext'
14322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323 (eval $ac_try) 2>&5
14324 ac_status=$?
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); }; }; then
14327 ac_cv_have_decl_free=yes
14328else
14329 echo "$as_me: failed program was:" >&5
14330sed 's/^/| /' conftest.$ac_ext >&5
14331
b4e70030 14332ac_cv_have_decl_free=no
4e8d927d 14333fi
4e8d927d
DJ
14334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14335fi
b4e70030
JB
14336echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
14337echo "${ECHO_T}$ac_cv_have_decl_free" >&6
4e8d927d
DJ
14338if test $ac_cv_have_decl_free = yes; then
14339
14340cat >>confdefs.h <<_ACEOF
14341#define HAVE_DECL_FREE 1
14342_ACEOF
14343
14344
14345else
14346 cat >>confdefs.h <<_ACEOF
14347#define HAVE_DECL_FREE 0
14348_ACEOF
14349
14350
14351fi
b4e70030
JB
14352echo "$as_me:$LINENO: checking whether malloc is declared" >&5
14353echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
4e8d927d
DJ
14354if test "${ac_cv_have_decl_malloc+set}" = set; then
14355 echo $ECHO_N "(cached) $ECHO_C" >&6
14356else
14357 cat >conftest.$ac_ext <<_ACEOF
14358/* confdefs.h. */
14359_ACEOF
14360cat confdefs.h >>conftest.$ac_ext
14361cat >>conftest.$ac_ext <<_ACEOF
14362/* end confdefs.h. */
14363$ac_includes_default
14364int
14365main ()
14366{
14367#ifndef malloc
14368 char *p = (char *) malloc;
4e8d927d
DJ
14369#endif
14370
14371 ;
14372 return 0;
14373}
14374_ACEOF
14375rm -f conftest.$ac_objext
14376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14377 (eval $ac_compile) 2>conftest.er1
14378 ac_status=$?
14379 grep -v '^ *+' conftest.er1 >conftest.err
14380 rm -f conftest.er1
14381 cat conftest.err >&5
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); } &&
b4e70030
JB
14384 { ac_try='test -z "$ac_c_werror_flag"
14385 || test ! -s conftest.err'
4e8d927d
DJ
14386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14387 (eval $ac_try) 2>&5
14388 ac_status=$?
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); }; } &&
14391 { ac_try='test -s conftest.$ac_objext'
14392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14393 (eval $ac_try) 2>&5
14394 ac_status=$?
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); }; }; then
14397 ac_cv_have_decl_malloc=yes
14398else
14399 echo "$as_me: failed program was:" >&5
14400sed 's/^/| /' conftest.$ac_ext >&5
14401
b4e70030 14402ac_cv_have_decl_malloc=no
4e8d927d 14403fi
4e8d927d
DJ
14404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14405fi
b4e70030
JB
14406echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
14407echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
4e8d927d
DJ
14408if test $ac_cv_have_decl_malloc = yes; then
14409
14410cat >>confdefs.h <<_ACEOF
14411#define HAVE_DECL_MALLOC 1
14412_ACEOF
14413
14414
14415else
14416 cat >>confdefs.h <<_ACEOF
14417#define HAVE_DECL_MALLOC 0
14418_ACEOF
14419
14420
14421fi
b4e70030
JB
14422echo "$as_me:$LINENO: checking whether realloc is declared" >&5
14423echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
4e8d927d
DJ
14424if test "${ac_cv_have_decl_realloc+set}" = set; then
14425 echo $ECHO_N "(cached) $ECHO_C" >&6
14426else
14427 cat >conftest.$ac_ext <<_ACEOF
14428/* confdefs.h. */
14429_ACEOF
14430cat confdefs.h >>conftest.$ac_ext
14431cat >>conftest.$ac_ext <<_ACEOF
14432/* end confdefs.h. */
14433$ac_includes_default
14434int
14435main ()
14436{
14437#ifndef realloc
14438 char *p = (char *) realloc;
4e8d927d
DJ
14439#endif
14440
14441 ;
14442 return 0;
14443}
14444_ACEOF
14445rm -f conftest.$ac_objext
14446if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14447 (eval $ac_compile) 2>conftest.er1
14448 ac_status=$?
14449 grep -v '^ *+' conftest.er1 >conftest.err
14450 rm -f conftest.er1
14451 cat conftest.err >&5
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); } &&
b4e70030
JB
14454 { ac_try='test -z "$ac_c_werror_flag"
14455 || test ! -s conftest.err'
4e8d927d
DJ
14456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14457 (eval $ac_try) 2>&5
14458 ac_status=$?
14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 (exit $ac_status); }; } &&
14461 { ac_try='test -s conftest.$ac_objext'
14462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14463 (eval $ac_try) 2>&5
14464 ac_status=$?
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); }; }; then
14467 ac_cv_have_decl_realloc=yes
14468else
14469 echo "$as_me: failed program was:" >&5
14470sed 's/^/| /' conftest.$ac_ext >&5
14471
b4e70030 14472ac_cv_have_decl_realloc=no
4e8d927d 14473fi
4e8d927d
DJ
14474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14475fi
b4e70030
JB
14476echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
14477echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
4e8d927d
DJ
14478if test $ac_cv_have_decl_realloc = yes; then
14479
14480cat >>confdefs.h <<_ACEOF
14481#define HAVE_DECL_REALLOC 1
14482_ACEOF
14483
14484
14485else
14486 cat >>confdefs.h <<_ACEOF
14487#define HAVE_DECL_REALLOC 0
14488_ACEOF
14489
14490
14491fi
14492
14493
b4e70030
JB
14494echo "$as_me:$LINENO: checking whether strerror is declared" >&5
14495echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
4e8d927d
DJ
14496if test "${ac_cv_have_decl_strerror+set}" = set; then
14497 echo $ECHO_N "(cached) $ECHO_C" >&6
14498else
14499 cat >conftest.$ac_ext <<_ACEOF
14500/* confdefs.h. */
14501_ACEOF
14502cat confdefs.h >>conftest.$ac_ext
14503cat >>conftest.$ac_ext <<_ACEOF
14504/* end confdefs.h. */
14505$ac_includes_default
14506int
14507main ()
14508{
14509#ifndef strerror
14510 char *p = (char *) strerror;
4e8d927d
DJ
14511#endif
14512
14513 ;
14514 return 0;
14515}
14516_ACEOF
14517rm -f conftest.$ac_objext
14518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14519 (eval $ac_compile) 2>conftest.er1
14520 ac_status=$?
14521 grep -v '^ *+' conftest.er1 >conftest.err
14522 rm -f conftest.er1
14523 cat conftest.err >&5
14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 (exit $ac_status); } &&
b4e70030
JB
14526 { ac_try='test -z "$ac_c_werror_flag"
14527 || test ! -s conftest.err'
4e8d927d
DJ
14528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14529 (eval $ac_try) 2>&5
14530 ac_status=$?
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); }; } &&
14533 { ac_try='test -s conftest.$ac_objext'
14534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14535 (eval $ac_try) 2>&5
14536 ac_status=$?
14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); }; }; then
14539 ac_cv_have_decl_strerror=yes
14540else
14541 echo "$as_me: failed program was:" >&5
14542sed 's/^/| /' conftest.$ac_ext >&5
14543
b4e70030 14544ac_cv_have_decl_strerror=no
4e8d927d 14545fi
4e8d927d
DJ
14546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14547fi
b4e70030
JB
14548echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
14549echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
4e8d927d
DJ
14550if test $ac_cv_have_decl_strerror = yes; then
14551
14552cat >>confdefs.h <<_ACEOF
14553#define HAVE_DECL_STRERROR 1
14554_ACEOF
14555
14556
14557else
14558 cat >>confdefs.h <<_ACEOF
14559#define HAVE_DECL_STRERROR 0
14560_ACEOF
14561
14562
14563fi
b4e70030
JB
14564echo "$as_me:$LINENO: checking whether strstr is declared" >&5
14565echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
4e8d927d
DJ
14566if test "${ac_cv_have_decl_strstr+set}" = set; then
14567 echo $ECHO_N "(cached) $ECHO_C" >&6
14568else
14569 cat >conftest.$ac_ext <<_ACEOF
14570/* confdefs.h. */
14571_ACEOF
14572cat confdefs.h >>conftest.$ac_ext
14573cat >>conftest.$ac_ext <<_ACEOF
14574/* end confdefs.h. */
14575$ac_includes_default
14576int
14577main ()
14578{
14579#ifndef strstr
14580 char *p = (char *) strstr;
4e8d927d
DJ
14581#endif
14582
14583 ;
14584 return 0;
14585}
14586_ACEOF
14587rm -f conftest.$ac_objext
14588if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14589 (eval $ac_compile) 2>conftest.er1
14590 ac_status=$?
14591 grep -v '^ *+' conftest.er1 >conftest.err
14592 rm -f conftest.er1
14593 cat conftest.err >&5
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); } &&
b4e70030
JB
14596 { ac_try='test -z "$ac_c_werror_flag"
14597 || test ! -s conftest.err'
4e8d927d
DJ
14598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14599 (eval $ac_try) 2>&5
14600 ac_status=$?
14601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14602 (exit $ac_status); }; } &&
14603 { ac_try='test -s conftest.$ac_objext'
14604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14605 (eval $ac_try) 2>&5
14606 ac_status=$?
14607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608 (exit $ac_status); }; }; then
14609 ac_cv_have_decl_strstr=yes
14610else
14611 echo "$as_me: failed program was:" >&5
14612sed 's/^/| /' conftest.$ac_ext >&5
14613
b4e70030 14614ac_cv_have_decl_strstr=no
4e8d927d 14615fi
4e8d927d
DJ
14616rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14617fi
b4e70030
JB
14618echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
14619echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
4e8d927d
DJ
14620if test $ac_cv_have_decl_strstr = yes; then
14621
14622cat >>confdefs.h <<_ACEOF
14623#define HAVE_DECL_STRSTR 1
14624_ACEOF
14625
14626
14627else
14628 cat >>confdefs.h <<_ACEOF
14629#define HAVE_DECL_STRSTR 0
14630_ACEOF
14631
14632
14633fi
14634
14635
b4e70030
JB
14636echo "$as_me:$LINENO: checking whether getopt is declared" >&5
14637echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
4e8d927d
DJ
14638if test "${ac_cv_have_decl_getopt+set}" = set; then
14639 echo $ECHO_N "(cached) $ECHO_C" >&6
14640else
14641 cat >conftest.$ac_ext <<_ACEOF
14642/* confdefs.h. */
14643_ACEOF
14644cat confdefs.h >>conftest.$ac_ext
14645cat >>conftest.$ac_ext <<_ACEOF
14646/* end confdefs.h. */
14647$ac_includes_default
14648int
14649main ()
14650{
14651#ifndef getopt
14652 char *p = (char *) getopt;
4e8d927d
DJ
14653#endif
14654
14655 ;
14656 return 0;
14657}
14658_ACEOF
14659rm -f conftest.$ac_objext
14660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14661 (eval $ac_compile) 2>conftest.er1
14662 ac_status=$?
14663 grep -v '^ *+' conftest.er1 >conftest.err
14664 rm -f conftest.er1
14665 cat conftest.err >&5
14666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667 (exit $ac_status); } &&
b4e70030
JB
14668 { ac_try='test -z "$ac_c_werror_flag"
14669 || test ! -s conftest.err'
4e8d927d
DJ
14670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14671 (eval $ac_try) 2>&5
14672 ac_status=$?
14673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674 (exit $ac_status); }; } &&
14675 { ac_try='test -s conftest.$ac_objext'
14676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14677 (eval $ac_try) 2>&5
14678 ac_status=$?
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); }; }; then
14681 ac_cv_have_decl_getopt=yes
14682else
14683 echo "$as_me: failed program was:" >&5
14684sed 's/^/| /' conftest.$ac_ext >&5
14685
b4e70030 14686ac_cv_have_decl_getopt=no
4e8d927d 14687fi
4e8d927d
DJ
14688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14689fi
b4e70030
JB
14690echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
14691echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
4e8d927d
DJ
14692if test $ac_cv_have_decl_getopt = yes; then
14693
14694cat >>confdefs.h <<_ACEOF
14695#define HAVE_DECL_GETOPT 1
14696_ACEOF
14697
14698
14699else
14700 cat >>confdefs.h <<_ACEOF
14701#define HAVE_DECL_GETOPT 0
14702_ACEOF
14703
14704
14705fi
b4e70030
JB
14706echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
14707echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
4e8d927d
DJ
14708if test "${ac_cv_have_decl_snprintf+set}" = set; then
14709 echo $ECHO_N "(cached) $ECHO_C" >&6
14710else
14711 cat >conftest.$ac_ext <<_ACEOF
14712/* confdefs.h. */
14713_ACEOF
14714cat confdefs.h >>conftest.$ac_ext
14715cat >>conftest.$ac_ext <<_ACEOF
14716/* end confdefs.h. */
14717$ac_includes_default
14718int
14719main ()
14720{
14721#ifndef snprintf
14722 char *p = (char *) snprintf;
4e8d927d
DJ
14723#endif
14724
14725 ;
14726 return 0;
14727}
14728_ACEOF
14729rm -f conftest.$ac_objext
14730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14731 (eval $ac_compile) 2>conftest.er1
14732 ac_status=$?
14733 grep -v '^ *+' conftest.er1 >conftest.err
14734 rm -f conftest.er1
14735 cat conftest.err >&5
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); } &&
b4e70030
JB
14738 { ac_try='test -z "$ac_c_werror_flag"
14739 || test ! -s conftest.err'
4e8d927d
DJ
14740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14741 (eval $ac_try) 2>&5
14742 ac_status=$?
14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744 (exit $ac_status); }; } &&
14745 { ac_try='test -s conftest.$ac_objext'
14746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14747 (eval $ac_try) 2>&5
14748 ac_status=$?
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); }; }; then
14751 ac_cv_have_decl_snprintf=yes
14752else
14753 echo "$as_me: failed program was:" >&5
14754sed 's/^/| /' conftest.$ac_ext >&5
14755
b4e70030 14756ac_cv_have_decl_snprintf=no
4e8d927d 14757fi
4e8d927d
DJ
14758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14759fi
b4e70030
JB
14760echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
14761echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
4e8d927d
DJ
14762if test $ac_cv_have_decl_snprintf = yes; then
14763
14764cat >>confdefs.h <<_ACEOF
14765#define HAVE_DECL_SNPRINTF 1
14766_ACEOF
14767
14768
14769else
14770 cat >>confdefs.h <<_ACEOF
14771#define HAVE_DECL_SNPRINTF 0
14772_ACEOF
14773
14774
14775fi
b4e70030
JB
14776echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
14777echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
4e8d927d
DJ
14778if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
14779 echo $ECHO_N "(cached) $ECHO_C" >&6
14780else
14781 cat >conftest.$ac_ext <<_ACEOF
14782/* confdefs.h. */
14783_ACEOF
14784cat confdefs.h >>conftest.$ac_ext
14785cat >>conftest.$ac_ext <<_ACEOF
14786/* end confdefs.h. */
14787$ac_includes_default
14788int
14789main ()
14790{
14791#ifndef vsnprintf
14792 char *p = (char *) vsnprintf;
4e8d927d
DJ
14793#endif
14794
14795 ;
14796 return 0;
14797}
14798_ACEOF
14799rm -f conftest.$ac_objext
14800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14801 (eval $ac_compile) 2>conftest.er1
14802 ac_status=$?
14803 grep -v '^ *+' conftest.er1 >conftest.err
14804 rm -f conftest.er1
14805 cat conftest.err >&5
14806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); } &&
b4e70030
JB
14808 { ac_try='test -z "$ac_c_werror_flag"
14809 || test ! -s conftest.err'
4e8d927d
DJ
14810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14811 (eval $ac_try) 2>&5
14812 ac_status=$?
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); }; } &&
14815 { ac_try='test -s conftest.$ac_objext'
14816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14817 (eval $ac_try) 2>&5
14818 ac_status=$?
14819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 (exit $ac_status); }; }; then
14821 ac_cv_have_decl_vsnprintf=yes
14822else
14823 echo "$as_me: failed program was:" >&5
14824sed 's/^/| /' conftest.$ac_ext >&5
14825
b4e70030 14826ac_cv_have_decl_vsnprintf=no
4e8d927d 14827fi
4e8d927d
DJ
14828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14829fi
b4e70030
JB
14830echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
14831echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
4e8d927d
DJ
14832if test $ac_cv_have_decl_vsnprintf = yes; then
14833
14834cat >>confdefs.h <<_ACEOF
14835#define HAVE_DECL_VSNPRINTF 1
14836_ACEOF
14837
14838
14839else
14840 cat >>confdefs.h <<_ACEOF
14841#define HAVE_DECL_VSNPRINTF 0
14842_ACEOF
14843
14844
14845fi
14846
14847
14848
14849# ----------------------- #
14850# Checks for structures. #
14851# ----------------------- #
14852
b4e70030
JB
14853echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14854echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
4e8d927d
DJ
14855if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14856 echo $ECHO_N "(cached) $ECHO_C" >&6
14857else
14858 cat >conftest.$ac_ext <<_ACEOF
14859/* confdefs.h. */
14860_ACEOF
14861cat confdefs.h >>conftest.$ac_ext
14862cat >>conftest.$ac_ext <<_ACEOF
14863/* end confdefs.h. */
14864$ac_includes_default
14865int
14866main ()
14867{
14868static struct stat ac_aggr;
14869if (ac_aggr.st_blocks)
14870return 0;
14871 ;
14872 return 0;
14873}
14874_ACEOF
14875rm -f conftest.$ac_objext
14876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14877 (eval $ac_compile) 2>conftest.er1
14878 ac_status=$?
14879 grep -v '^ *+' conftest.er1 >conftest.err
14880 rm -f conftest.er1
14881 cat conftest.err >&5
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); } &&
b4e70030
JB
14884 { ac_try='test -z "$ac_c_werror_flag"
14885 || test ! -s conftest.err'
4e8d927d
DJ
14886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14887 (eval $ac_try) 2>&5
14888 ac_status=$?
14889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890 (exit $ac_status); }; } &&
14891 { ac_try='test -s conftest.$ac_objext'
14892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14893 (eval $ac_try) 2>&5
14894 ac_status=$?
14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); }; }; then
14897 ac_cv_member_struct_stat_st_blocks=yes
14898else
14899 echo "$as_me: failed program was:" >&5
14900sed 's/^/| /' conftest.$ac_ext >&5
14901
b4e70030 14902cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
14903/* confdefs.h. */
14904_ACEOF
14905cat confdefs.h >>conftest.$ac_ext
14906cat >>conftest.$ac_ext <<_ACEOF
14907/* end confdefs.h. */
14908$ac_includes_default
14909int
14910main ()
14911{
14912static struct stat ac_aggr;
14913if (sizeof ac_aggr.st_blocks)
14914return 0;
14915 ;
14916 return 0;
14917}
14918_ACEOF
14919rm -f conftest.$ac_objext
14920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14921 (eval $ac_compile) 2>conftest.er1
14922 ac_status=$?
14923 grep -v '^ *+' conftest.er1 >conftest.err
14924 rm -f conftest.er1
14925 cat conftest.err >&5
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); } &&
b4e70030
JB
14928 { ac_try='test -z "$ac_c_werror_flag"
14929 || test ! -s conftest.err'
4e8d927d
DJ
14930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14931 (eval $ac_try) 2>&5
14932 ac_status=$?
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); }; } &&
14935 { ac_try='test -s conftest.$ac_objext'
14936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14937 (eval $ac_try) 2>&5
14938 ac_status=$?
14939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940 (exit $ac_status); }; }; then
14941 ac_cv_member_struct_stat_st_blocks=yes
14942else
14943 echo "$as_me: failed program was:" >&5
14944sed 's/^/| /' conftest.$ac_ext >&5
14945
b4e70030 14946ac_cv_member_struct_stat_st_blocks=no
4e8d927d 14947fi
4e8d927d
DJ
14948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14949fi
4e8d927d
DJ
14950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14951fi
b4e70030
JB
14952echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
14953echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
4e8d927d
DJ
14954if test $ac_cv_member_struct_stat_st_blocks = yes; then
14955
14956cat >>confdefs.h <<_ACEOF
14957#define HAVE_STRUCT_STAT_ST_BLOCKS 1
14958_ACEOF
14959
14960
14961fi
14962
b4e70030
JB
14963echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
14964echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
4e8d927d
DJ
14965if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
14966 echo $ECHO_N "(cached) $ECHO_C" >&6
14967else
14968 cat >conftest.$ac_ext <<_ACEOF
14969/* confdefs.h. */
14970_ACEOF
14971cat confdefs.h >>conftest.$ac_ext
14972cat >>conftest.$ac_ext <<_ACEOF
14973/* end confdefs.h. */
14974$ac_includes_default
14975int
14976main ()
14977{
14978static struct stat ac_aggr;
14979if (ac_aggr.st_blksize)
14980return 0;
14981 ;
14982 return 0;
14983}
14984_ACEOF
14985rm -f conftest.$ac_objext
14986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14987 (eval $ac_compile) 2>conftest.er1
14988 ac_status=$?
14989 grep -v '^ *+' conftest.er1 >conftest.err
14990 rm -f conftest.er1
14991 cat conftest.err >&5
14992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993 (exit $ac_status); } &&
b4e70030
JB
14994 { ac_try='test -z "$ac_c_werror_flag"
14995 || test ! -s conftest.err'
4e8d927d
DJ
14996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14997 (eval $ac_try) 2>&5
14998 ac_status=$?
14999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); }; } &&
15001 { ac_try='test -s conftest.$ac_objext'
15002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15003 (eval $ac_try) 2>&5
15004 ac_status=$?
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); }; }; then
15007 ac_cv_member_struct_stat_st_blksize=yes
15008else
15009 echo "$as_me: failed program was:" >&5
15010sed 's/^/| /' conftest.$ac_ext >&5
15011
b4e70030 15012cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
15013/* confdefs.h. */
15014_ACEOF
15015cat confdefs.h >>conftest.$ac_ext
15016cat >>conftest.$ac_ext <<_ACEOF
15017/* end confdefs.h. */
15018$ac_includes_default
15019int
15020main ()
15021{
15022static struct stat ac_aggr;
15023if (sizeof ac_aggr.st_blksize)
15024return 0;
15025 ;
15026 return 0;
15027}
15028_ACEOF
15029rm -f conftest.$ac_objext
15030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15031 (eval $ac_compile) 2>conftest.er1
15032 ac_status=$?
15033 grep -v '^ *+' conftest.er1 >conftest.err
15034 rm -f conftest.er1
15035 cat conftest.err >&5
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); } &&
b4e70030
JB
15038 { ac_try='test -z "$ac_c_werror_flag"
15039 || test ! -s conftest.err'
4e8d927d
DJ
15040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15041 (eval $ac_try) 2>&5
15042 ac_status=$?
15043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); }; } &&
15045 { ac_try='test -s conftest.$ac_objext'
15046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15047 (eval $ac_try) 2>&5
15048 ac_status=$?
15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050 (exit $ac_status); }; }; then
15051 ac_cv_member_struct_stat_st_blksize=yes
15052else
15053 echo "$as_me: failed program was:" >&5
15054sed 's/^/| /' conftest.$ac_ext >&5
15055
b4e70030 15056ac_cv_member_struct_stat_st_blksize=no
4e8d927d 15057fi
4e8d927d
DJ
15058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15059fi
4e8d927d
DJ
15060rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15061fi
b4e70030
JB
15062echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
15063echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
4e8d927d
DJ
15064if test $ac_cv_member_struct_stat_st_blksize = yes; then
15065
15066cat >>confdefs.h <<_ACEOF
15067#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
15068_ACEOF
15069
15070
15071fi
15072
15073
15074# ------------------ #
15075# Checks for types. #
15076# ------------------ #
15077
b4e70030
JB
15078echo "$as_me:$LINENO: checking return type of signal handlers" >&5
15079echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4e8d927d
DJ
15080if test "${ac_cv_type_signal+set}" = set; then
15081 echo $ECHO_N "(cached) $ECHO_C" >&6
15082else
15083 cat >conftest.$ac_ext <<_ACEOF
15084/* confdefs.h. */
15085_ACEOF
15086cat confdefs.h >>conftest.$ac_ext
15087cat >>conftest.$ac_ext <<_ACEOF
15088/* end confdefs.h. */
15089#include <sys/types.h>
15090#include <signal.h>
b4e70030
JB
15091#ifdef signal
15092# undef signal
15093#endif
15094#ifdef __cplusplus
15095extern "C" void (*signal (int, void (*)(int)))(int);
15096#else
15097void (*signal ()) ();
15098#endif
4e8d927d
DJ
15099
15100int
15101main ()
15102{
b4e70030 15103int i;
4e8d927d
DJ
15104 ;
15105 return 0;
15106}
15107_ACEOF
15108rm -f conftest.$ac_objext
15109if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15110 (eval $ac_compile) 2>conftest.er1
15111 ac_status=$?
15112 grep -v '^ *+' conftest.er1 >conftest.err
15113 rm -f conftest.er1
15114 cat conftest.err >&5
15115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116 (exit $ac_status); } &&
b4e70030
JB
15117 { ac_try='test -z "$ac_c_werror_flag"
15118 || test ! -s conftest.err'
4e8d927d
DJ
15119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15120 (eval $ac_try) 2>&5
15121 ac_status=$?
15122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15123 (exit $ac_status); }; } &&
15124 { ac_try='test -s conftest.$ac_objext'
15125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15126 (eval $ac_try) 2>&5
15127 ac_status=$?
15128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129 (exit $ac_status); }; }; then
b4e70030 15130 ac_cv_type_signal=void
4e8d927d
DJ
15131else
15132 echo "$as_me: failed program was:" >&5
15133sed 's/^/| /' conftest.$ac_ext >&5
15134
b4e70030 15135ac_cv_type_signal=int
4e8d927d 15136fi
4e8d927d
DJ
15137rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15138fi
b4e70030
JB
15139echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
15140echo "${ECHO_T}$ac_cv_type_signal" >&6
4e8d927d
DJ
15141
15142cat >>confdefs.h <<_ACEOF
15143#define RETSIGTYPE $ac_cv_type_signal
15144_ACEOF
15145
15146
b4e70030
JB
15147echo "$as_me:$LINENO: checking for socklen_t" >&5
15148echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
4e8d927d
DJ
15149if test "${ac_cv_type_socklen_t+set}" = set; then
15150 echo $ECHO_N "(cached) $ECHO_C" >&6
15151else
15152 cat >conftest.$ac_ext <<_ACEOF
15153/* confdefs.h. */
15154_ACEOF
15155cat confdefs.h >>conftest.$ac_ext
15156cat >>conftest.$ac_ext <<_ACEOF
15157/* end confdefs.h. */
15158#include <sys/types.h>
15159#include <sys/socket.h>
15160
15161
4e8d927d
DJ
15162int
15163main ()
15164{
b4e70030 15165if ((socklen_t *) 0)
4e8d927d 15166 return 0;
b4e70030 15167if (sizeof (socklen_t))
4e8d927d
DJ
15168 return 0;
15169 ;
15170 return 0;
15171}
15172_ACEOF
15173rm -f conftest.$ac_objext
15174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15175 (eval $ac_compile) 2>conftest.er1
15176 ac_status=$?
15177 grep -v '^ *+' conftest.er1 >conftest.err
15178 rm -f conftest.er1
15179 cat conftest.err >&5
15180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181 (exit $ac_status); } &&
b4e70030
JB
15182 { ac_try='test -z "$ac_c_werror_flag"
15183 || test ! -s conftest.err'
4e8d927d
DJ
15184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15185 (eval $ac_try) 2>&5
15186 ac_status=$?
15187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188 (exit $ac_status); }; } &&
15189 { ac_try='test -s conftest.$ac_objext'
15190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15191 (eval $ac_try) 2>&5
15192 ac_status=$?
15193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194 (exit $ac_status); }; }; then
15195 ac_cv_type_socklen_t=yes
15196else
15197 echo "$as_me: failed program was:" >&5
15198sed 's/^/| /' conftest.$ac_ext >&5
15199
b4e70030 15200ac_cv_type_socklen_t=no
4e8d927d 15201fi
4e8d927d
DJ
15202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15203fi
b4e70030
JB
15204echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
15205echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
4e8d927d
DJ
15206if test $ac_cv_type_socklen_t = yes; then
15207
15208cat >>confdefs.h <<_ACEOF
15209#define HAVE_SOCKLEN_T 1
15210_ACEOF
15211
15212
15213fi
15214
b4e70030
JB
15215echo "$as_me:$LINENO: checking for uintptr_t" >&5
15216echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4e8d927d
DJ
15217if test "${ac_cv_type_uintptr_t+set}" = set; then
15218 echo $ECHO_N "(cached) $ECHO_C" >&6
15219else
15220 cat >conftest.$ac_ext <<_ACEOF
15221/* confdefs.h. */
15222_ACEOF
15223cat confdefs.h >>conftest.$ac_ext
15224cat >>conftest.$ac_ext <<_ACEOF
15225/* end confdefs.h. */
15226#include <stdint.h>
15227
4e8d927d
DJ
15228int
15229main ()
15230{
b4e70030 15231if ((uintptr_t *) 0)
4e8d927d 15232 return 0;
b4e70030 15233if (sizeof (uintptr_t))
4e8d927d
DJ
15234 return 0;
15235 ;
15236 return 0;
15237}
15238_ACEOF
15239rm -f conftest.$ac_objext
15240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15241 (eval $ac_compile) 2>conftest.er1
15242 ac_status=$?
15243 grep -v '^ *+' conftest.er1 >conftest.err
15244 rm -f conftest.er1
15245 cat conftest.err >&5
15246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247 (exit $ac_status); } &&
b4e70030
JB
15248 { ac_try='test -z "$ac_c_werror_flag"
15249 || test ! -s conftest.err'
4e8d927d
DJ
15250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15251 (eval $ac_try) 2>&5
15252 ac_status=$?
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); }; } &&
15255 { ac_try='test -s conftest.$ac_objext'
15256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15257 (eval $ac_try) 2>&5
15258 ac_status=$?
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); }; }; then
15261 ac_cv_type_uintptr_t=yes
15262else
15263 echo "$as_me: failed program was:" >&5
15264sed 's/^/| /' conftest.$ac_ext >&5
15265
b4e70030 15266ac_cv_type_uintptr_t=no
4e8d927d 15267fi
4e8d927d
DJ
15268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15269fi
b4e70030
JB
15270echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
15271echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4e8d927d
DJ
15272if test $ac_cv_type_uintptr_t = yes; then
15273
15274cat >>confdefs.h <<_ACEOF
15275#define HAVE_UINTPTR_T 1
15276_ACEOF
15277
15278
15279fi
15280
15281
15282# ------------------------------------- #
15283# Checks for compiler characteristics. #
15284# ------------------------------------- #
15285
b4e70030
JB
15286echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15287echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4e8d927d
DJ
15288if test "${ac_cv_c_const+set}" = set; then
15289 echo $ECHO_N "(cached) $ECHO_C" >&6
15290else
15291 cat >conftest.$ac_ext <<_ACEOF
15292/* confdefs.h. */
15293_ACEOF
15294cat confdefs.h >>conftest.$ac_ext
15295cat >>conftest.$ac_ext <<_ACEOF
15296/* end confdefs.h. */
15297
15298int
15299main ()
15300{
15301/* FIXME: Include the comments suggested by Paul. */
15302#ifndef __cplusplus
15303 /* Ultrix mips cc rejects this. */
15304 typedef int charset[2];
15305 const charset x;
15306 /* SunOS 4.1.1 cc rejects this. */
15307 char const *const *ccp;
15308 char **p;
15309 /* NEC SVR4.0.2 mips cc rejects this. */
15310 struct point {int x, y;};
15311 static struct point const zero = {0,0};
15312 /* AIX XL C 1.02.0.0 rejects this.
15313 It does not let you subtract one const X* pointer from another in
15314 an arm of an if-expression whose if-part is not a constant
15315 expression */
15316 const char *g = "string";
15317 ccp = &g + (g ? g-g : 0);
15318 /* HPUX 7.0 cc rejects these. */
15319 ++ccp;
15320 p = (char**) ccp;
15321 ccp = (char const *const *) p;
15322 { /* SCO 3.2v4 cc rejects this. */
15323 char *t;
15324 char const *s = 0 ? (char *) 0 : (char const *) 0;
15325
15326 *t++ = 0;
4e8d927d
DJ
15327 }
15328 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15329 int x[] = {25, 17};
15330 const int *foo = &x[0];
15331 ++foo;
15332 }
15333 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15334 typedef const int *iptr;
15335 iptr p = 0;
15336 ++p;
15337 }
15338 { /* AIX XL C 1.02.0.0 rejects this saying
15339 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15340 struct s { int j; const int *ap[3]; };
15341 struct s *b; b->j = 5;
15342 }
15343 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15344 const int foo = 10;
4e8d927d 15345 }
4e8d927d
DJ
15346#endif
15347
15348 ;
15349 return 0;
15350}
15351_ACEOF
15352rm -f conftest.$ac_objext
15353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15354 (eval $ac_compile) 2>conftest.er1
15355 ac_status=$?
15356 grep -v '^ *+' conftest.er1 >conftest.err
15357 rm -f conftest.er1
15358 cat conftest.err >&5
15359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360 (exit $ac_status); } &&
b4e70030
JB
15361 { ac_try='test -z "$ac_c_werror_flag"
15362 || test ! -s conftest.err'
4e8d927d
DJ
15363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15364 (eval $ac_try) 2>&5
15365 ac_status=$?
15366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367 (exit $ac_status); }; } &&
15368 { ac_try='test -s conftest.$ac_objext'
15369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15370 (eval $ac_try) 2>&5
15371 ac_status=$?
15372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373 (exit $ac_status); }; }; then
15374 ac_cv_c_const=yes
15375else
15376 echo "$as_me: failed program was:" >&5
15377sed 's/^/| /' conftest.$ac_ext >&5
15378
b4e70030 15379ac_cv_c_const=no
4e8d927d 15380fi
4e8d927d
DJ
15381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15382fi
b4e70030
JB
15383echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15384echo "${ECHO_T}$ac_cv_c_const" >&6
4e8d927d
DJ
15385if test $ac_cv_c_const = no; then
15386
15387cat >>confdefs.h <<\_ACEOF
15388#define const
15389_ACEOF
15390
15391fi
15392
b4e70030
JB
15393echo "$as_me:$LINENO: checking for inline" >&5
15394echo $ECHO_N "checking for inline... $ECHO_C" >&6
4e8d927d
DJ
15395if test "${ac_cv_c_inline+set}" = set; then
15396 echo $ECHO_N "(cached) $ECHO_C" >&6
15397else
15398 ac_cv_c_inline=no
15399for ac_kw in inline __inline__ __inline; do
15400 cat >conftest.$ac_ext <<_ACEOF
15401/* confdefs.h. */
15402_ACEOF
15403cat confdefs.h >>conftest.$ac_ext
15404cat >>conftest.$ac_ext <<_ACEOF
15405/* end confdefs.h. */
15406#ifndef __cplusplus
15407typedef int foo_t;
15408static $ac_kw foo_t static_foo () {return 0; }
15409$ac_kw foo_t foo () {return 0; }
15410#endif
15411
15412_ACEOF
15413rm -f conftest.$ac_objext
15414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15415 (eval $ac_compile) 2>conftest.er1
15416 ac_status=$?
15417 grep -v '^ *+' conftest.er1 >conftest.err
15418 rm -f conftest.er1
15419 cat conftest.err >&5
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); } &&
b4e70030
JB
15422 { ac_try='test -z "$ac_c_werror_flag"
15423 || test ! -s conftest.err'
4e8d927d
DJ
15424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15425 (eval $ac_try) 2>&5
15426 ac_status=$?
15427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428 (exit $ac_status); }; } &&
15429 { ac_try='test -s conftest.$ac_objext'
15430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15431 (eval $ac_try) 2>&5
15432 ac_status=$?
15433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); }; }; then
b4e70030 15435 ac_cv_c_inline=$ac_kw; break
4e8d927d
DJ
15436else
15437 echo "$as_me: failed program was:" >&5
15438sed 's/^/| /' conftest.$ac_ext >&5
15439
4e8d927d 15440fi
4e8d927d 15441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
15442done
15443
15444fi
b4e70030
JB
15445echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15446echo "${ECHO_T}$ac_cv_c_inline" >&6
bec39cab 15447
bec39cab 15448
a3828db0
MK
15449case $ac_cv_c_inline in
15450 inline | yes) ;;
15451 *)
15452 case $ac_cv_c_inline in
15453 no) ac_val=;;
15454 *) ac_val=$ac_cv_c_inline;;
15455 esac
15456 cat >>confdefs.h <<_ACEOF
15457#ifndef __cplusplus
15458#define inline $ac_val
15459#endif
15460_ACEOF
bec39cab
AC
15461 ;;
15462esac
bec39cab 15463
74c1b268 15464
a3828db0
MK
15465# ------------------------------ #
15466# Checks for library functions. #
15467# ------------------------------ #
bec39cab 15468
a3828db0
MK
15469# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15470# for constant arguments. Useless!
b4e70030
JB
15471echo "$as_me:$LINENO: checking for working alloca.h" >&5
15472echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
a3828db0 15473if test "${ac_cv_working_alloca_h+set}" = set; then
bec39cab
AC
15474 echo $ECHO_N "(cached) $ECHO_C" >&6
15475else
15476 cat >conftest.$ac_ext <<_ACEOF
15477/* confdefs.h. */
15478_ACEOF
15479cat confdefs.h >>conftest.$ac_ext
15480cat >>conftest.$ac_ext <<_ACEOF
15481/* end confdefs.h. */
a3828db0 15482#include <alloca.h>
bec39cab
AC
15483int
15484main ()
15485{
a3828db0 15486char *p = (char *) alloca (2 * sizeof (int));
bec39cab
AC
15487 ;
15488 return 0;
15489}
15490_ACEOF
15491rm -f conftest.$ac_objext conftest$ac_exeext
15492if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15493 (eval $ac_link) 2>conftest.er1
15494 ac_status=$?
15495 grep -v '^ *+' conftest.er1 >conftest.err
15496 rm -f conftest.er1
15497 cat conftest.err >&5
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); } &&
b4e70030
JB
15500 { ac_try='test -z "$ac_c_werror_flag"
15501 || test ! -s conftest.err'
bec39cab
AC
15502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15503 (eval $ac_try) 2>&5
15504 ac_status=$?
15505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506 (exit $ac_status); }; } &&
15507 { ac_try='test -s conftest$ac_exeext'
15508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15509 (eval $ac_try) 2>&5
15510 ac_status=$?
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 (exit $ac_status); }; }; then
a3828db0 15513 ac_cv_working_alloca_h=yes
bec39cab
AC
15514else
15515 echo "$as_me: failed program was:" >&5
15516sed 's/^/| /' conftest.$ac_ext >&5
15517
b4e70030 15518ac_cv_working_alloca_h=no
bec39cab
AC
15519fi
15520rm -f conftest.err conftest.$ac_objext \
15521 conftest$ac_exeext conftest.$ac_ext
15522fi
b4e70030
JB
15523echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15524echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
a3828db0
MK
15525if test $ac_cv_working_alloca_h = yes; then
15526
15527cat >>confdefs.h <<\_ACEOF
15528#define HAVE_ALLOCA_H 1
bec39cab 15529_ACEOF
74c1b268 15530
74c1b268
AC
15531fi
15532
b4e70030
JB
15533echo "$as_me:$LINENO: checking for alloca" >&5
15534echo $ECHO_N "checking for alloca... $ECHO_C" >&6
a3828db0 15535if test "${ac_cv_func_alloca_works+set}" = set; then
bec39cab 15536 echo $ECHO_N "(cached) $ECHO_C" >&6
74c1b268 15537else
bec39cab
AC
15538 cat >conftest.$ac_ext <<_ACEOF
15539/* confdefs.h. */
15540_ACEOF
15541cat confdefs.h >>conftest.$ac_ext
15542cat >>conftest.$ac_ext <<_ACEOF
15543/* end confdefs.h. */
a3828db0
MK
15544#ifdef __GNUC__
15545# define alloca __builtin_alloca
15546#else
15547# ifdef _MSC_VER
15548# include <malloc.h>
15549# define alloca _alloca
15550# else
15551# if HAVE_ALLOCA_H
15552# include <alloca.h>
15553# else
15554# ifdef _AIX
15555 #pragma alloca
15556# else
15557# ifndef alloca /* predefined by HP cc +Olibcalls */
15558char *alloca ();
15559# endif
15560# endif
15561# endif
97bf5e38 15562# endif
a3828db0 15563#endif
97bf5e38 15564
bec39cab
AC
15565int
15566main ()
15567{
a3828db0 15568char *p = (char *) alloca (1);
bec39cab
AC
15569 ;
15570 return 0;
15571}
15572_ACEOF
a3828db0
MK
15573rm -f conftest.$ac_objext conftest$ac_exeext
15574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15575 (eval $ac_link) 2>conftest.er1
bec39cab
AC
15576 ac_status=$?
15577 grep -v '^ *+' conftest.er1 >conftest.err
15578 rm -f conftest.er1
15579 cat conftest.err >&5
15580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15581 (exit $ac_status); } &&
b4e70030
JB
15582 { ac_try='test -z "$ac_c_werror_flag"
15583 || test ! -s conftest.err'
bec39cab
AC
15584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15585 (eval $ac_try) 2>&5
15586 ac_status=$?
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 (exit $ac_status); }; } &&
a3828db0 15589 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
15590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15591 (eval $ac_try) 2>&5
15592 ac_status=$?
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); }; }; then
a3828db0 15595 ac_cv_func_alloca_works=yes
0200359f 15596else
bec39cab
AC
15597 echo "$as_me: failed program was:" >&5
15598sed 's/^/| /' conftest.$ac_ext >&5
0200359f 15599
b4e70030 15600ac_cv_func_alloca_works=no
0200359f 15601fi
a3828db0
MK
15602rm -f conftest.err conftest.$ac_objext \
15603 conftest$ac_exeext conftest.$ac_ext
72473524 15604fi
b4e70030
JB
15605echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15606echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
bec39cab 15607
a3828db0
MK
15608if test $ac_cv_func_alloca_works = yes; then
15609
15610cat >>confdefs.h <<\_ACEOF
15611#define HAVE_ALLOCA 1
bec39cab
AC
15612_ACEOF
15613
a3828db0
MK
15614else
15615 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15616# that cause trouble. Some versions do not even contain alloca or
15617# contain a buggy version. If you still want to use their alloca,
15618# use ar to extract alloca.o from them instead of compiling alloca.c.
72473524 15619
b4e70030 15620ALLOCA=alloca.$ac_objext
bec39cab 15621
a3828db0
MK
15622cat >>confdefs.h <<\_ACEOF
15623#define C_ALLOCA 1
15624_ACEOF
bec39cab 15625
a3828db0 15626
b4e70030
JB
15627echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15628echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
a3828db0 15629if test "${ac_cv_os_cray+set}" = set; then
bec39cab 15630 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 15631else
a3828db0 15632 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
15633/* confdefs.h. */
15634_ACEOF
15635cat confdefs.h >>conftest.$ac_ext
15636cat >>conftest.$ac_ext <<_ACEOF
15637/* end confdefs.h. */
b4e70030 15638#if defined(CRAY) && ! defined(CRAY2)
a3828db0
MK
15639webecray
15640#else
15641wenotbecray
15642#endif
15643
15644_ACEOF
15645if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15646 $EGREP "webecray" >/dev/null 2>&1; then
15647 ac_cv_os_cray=yes
15648else
15649 ac_cv_os_cray=no
15650fi
15651rm -f conftest*
15652
15653fi
b4e70030
JB
15654echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15655echo "${ECHO_T}$ac_cv_os_cray" >&6
a3828db0
MK
15656if test $ac_cv_os_cray = yes; then
15657 for ac_func in _getb67 GETB67 getb67; do
15658 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
15659echo "$as_me:$LINENO: checking for $ac_func" >&5
15660echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15661if eval "test \"\${$as_ac_var+set}\" = set"; then
a3828db0
MK
15662 echo $ECHO_N "(cached) $ECHO_C" >&6
15663else
15664 cat >conftest.$ac_ext <<_ACEOF
15665/* confdefs.h. */
15666_ACEOF
15667cat confdefs.h >>conftest.$ac_ext
15668cat >>conftest.$ac_ext <<_ACEOF
15669/* end confdefs.h. */
15670/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15672#define $ac_func innocuous_$ac_func
15673
15674/* System header to define __stub macros and hopefully few prototypes,
15675 which can conflict with char $ac_func (); below.
15676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15677 <limits.h> exists even on freestanding compilers. */
15678
15679#ifdef __STDC__
15680# include <limits.h>
15681#else
15682# include <assert.h>
15683#endif
15684
15685#undef $ac_func
15686
b4e70030 15687/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
15688#ifdef __cplusplus
15689extern "C"
b4e70030 15690{
a3828db0 15691#endif
b4e70030
JB
15692/* We use char because int might match the return type of a gcc2
15693 builtin and then its argument prototype would still apply. */
a3828db0
MK
15694char $ac_func ();
15695/* The GNU C library defines this for functions which it implements
15696 to always fail with ENOSYS. Some functions are actually named
15697 something starting with __ and the normal name is an alias. */
b4e70030 15698#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 15699choke me
b4e70030
JB
15700#else
15701char (*f) () = $ac_func;
15702#endif
15703#ifdef __cplusplus
15704}
a3828db0
MK
15705#endif
15706
15707int
15708main ()
15709{
b4e70030 15710return f != $ac_func;
a3828db0
MK
15711 ;
15712 return 0;
15713}
15714_ACEOF
15715rm -f conftest.$ac_objext conftest$ac_exeext
15716if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15717 (eval $ac_link) 2>conftest.er1
15718 ac_status=$?
15719 grep -v '^ *+' conftest.er1 >conftest.err
15720 rm -f conftest.er1
15721 cat conftest.err >&5
15722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723 (exit $ac_status); } &&
b4e70030
JB
15724 { ac_try='test -z "$ac_c_werror_flag"
15725 || test ! -s conftest.err'
a3828db0
MK
15726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15727 (eval $ac_try) 2>&5
15728 ac_status=$?
15729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); }; } &&
15731 { ac_try='test -s conftest$ac_exeext'
15732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15733 (eval $ac_try) 2>&5
15734 ac_status=$?
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); }; }; then
15737 eval "$as_ac_var=yes"
15738else
15739 echo "$as_me: failed program was:" >&5
15740sed 's/^/| /' conftest.$ac_ext >&5
15741
b4e70030 15742eval "$as_ac_var=no"
a3828db0
MK
15743fi
15744rm -f conftest.err conftest.$ac_objext \
15745 conftest$ac_exeext conftest.$ac_ext
15746fi
b4e70030
JB
15747echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15748echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
15749if test `eval echo '${'$as_ac_var'}'` = yes; then
15750
15751cat >>confdefs.h <<_ACEOF
15752#define CRAY_STACKSEG_END $ac_func
15753_ACEOF
15754
15755 break
15756fi
15757
15758 done
15759fi
15760
b4e70030
JB
15761echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15762echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
a3828db0
MK
15763if test "${ac_cv_c_stack_direction+set}" = set; then
15764 echo $ECHO_N "(cached) $ECHO_C" >&6
15765else
15766 if test "$cross_compiling" = yes; then
15767 ac_cv_c_stack_direction=0
15768else
15769 cat >conftest.$ac_ext <<_ACEOF
15770/* confdefs.h. */
15771_ACEOF
15772cat confdefs.h >>conftest.$ac_ext
15773cat >>conftest.$ac_ext <<_ACEOF
15774/* end confdefs.h. */
15775int
15776find_stack_direction ()
15777{
15778 static char *addr = 0;
15779 auto char dummy;
15780 if (addr == 0)
15781 {
15782 addr = &dummy;
15783 return find_stack_direction ();
15784 }
15785 else
15786 return (&dummy > addr) ? 1 : -1;
15787}
15788
15789int
15790main ()
15791{
b4e70030 15792 exit (find_stack_direction () < 0);
a3828db0
MK
15793}
15794_ACEOF
15795rm -f conftest$ac_exeext
15796if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15797 (eval $ac_link) 2>&5
15798 ac_status=$?
15799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15802 (eval $ac_try) 2>&5
15803 ac_status=$?
15804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805 (exit $ac_status); }; }; then
15806 ac_cv_c_stack_direction=1
15807else
15808 echo "$as_me: program exited with status $ac_status" >&5
15809echo "$as_me: failed program was:" >&5
15810sed 's/^/| /' conftest.$ac_ext >&5
15811
15812( exit $ac_status )
15813ac_cv_c_stack_direction=-1
15814fi
b4e70030 15815rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
15816fi
15817fi
b4e70030
JB
15818echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15819echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
a3828db0
MK
15820
15821cat >>confdefs.h <<_ACEOF
15822#define STACK_DIRECTION $ac_cv_c_stack_direction
15823_ACEOF
15824
15825
15826fi
15827
15828
15829
15830for ac_header in stdlib.h unistd.h
15831do
15832as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15833if eval "test \"\${$as_ac_Header+set}\" = set"; then
15834 echo "$as_me:$LINENO: checking for $ac_header" >&5
15835echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15836if eval "test \"\${$as_ac_Header+set}\" = set"; then
a3828db0
MK
15837 echo $ECHO_N "(cached) $ECHO_C" >&6
15838fi
b4e70030
JB
15839echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15840echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a3828db0
MK
15841else
15842 # Is the header compilable?
b4e70030
JB
15843echo "$as_me:$LINENO: checking $ac_header usability" >&5
15844echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a3828db0
MK
15845cat >conftest.$ac_ext <<_ACEOF
15846/* confdefs.h. */
15847_ACEOF
15848cat confdefs.h >>conftest.$ac_ext
15849cat >>conftest.$ac_ext <<_ACEOF
15850/* end confdefs.h. */
15851$ac_includes_default
15852#include <$ac_header>
15853_ACEOF
15854rm -f conftest.$ac_objext
15855if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15856 (eval $ac_compile) 2>conftest.er1
15857 ac_status=$?
bec39cab
AC
15858 grep -v '^ *+' conftest.er1 >conftest.err
15859 rm -f conftest.er1
15860 cat conftest.err >&5
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); } &&
b4e70030
JB
15863 { ac_try='test -z "$ac_c_werror_flag"
15864 || test ! -s conftest.err'
bec39cab
AC
15865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15866 (eval $ac_try) 2>&5
15867 ac_status=$?
15868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869 (exit $ac_status); }; } &&
15870 { ac_try='test -s conftest.$ac_objext'
15871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15872 (eval $ac_try) 2>&5
15873 ac_status=$?
15874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15875 (exit $ac_status); }; }; then
15876 ac_header_compiler=yes
15877else
15878 echo "$as_me: failed program was:" >&5
15879sed 's/^/| /' conftest.$ac_ext >&5
15880
b4e70030 15881ac_header_compiler=no
bec39cab
AC
15882fi
15883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15884echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15885echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15886
15887# Is the header present?
b4e70030
JB
15888echo "$as_me:$LINENO: checking $ac_header presence" >&5
15889echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15890cat >conftest.$ac_ext <<_ACEOF
15891/* confdefs.h. */
15892_ACEOF
15893cat confdefs.h >>conftest.$ac_ext
15894cat >>conftest.$ac_ext <<_ACEOF
15895/* end confdefs.h. */
15896#include <$ac_header>
15897_ACEOF
15898if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15899 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15900 ac_status=$?
15901 grep -v '^ *+' conftest.er1 >conftest.err
15902 rm -f conftest.er1
15903 cat conftest.err >&5
15904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905 (exit $ac_status); } >/dev/null; then
15906 if test -s conftest.err; then
15907 ac_cpp_err=$ac_c_preproc_warn_flag
15908 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15909 else
15910 ac_cpp_err=
15911 fi
15912else
15913 ac_cpp_err=yes
15914fi
15915if test -z "$ac_cpp_err"; then
15916 ac_header_preproc=yes
97bf5e38 15917else
bec39cab
AC
15918 echo "$as_me: failed program was:" >&5
15919sed 's/^/| /' conftest.$ac_ext >&5
15920
15921 ac_header_preproc=no
72473524 15922fi
bec39cab 15923rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15924echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15925echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 15926
bec39cab
AC
15927# So? What about this header?
15928case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15929 yes:no: )
15930 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15931echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15933echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15934 ac_header_preproc=yes
15935 ;;
15936 no:yes:* )
15937 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15938echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15939 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15940echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15941 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15942echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15943 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15944echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15946echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15947 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15948echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15949 (
15950 cat <<\_ASBOX
15951## ------------------------------------------ ##
15952## Report this to the AC_PACKAGE_NAME lists. ##
15953## ------------------------------------------ ##
15954_ASBOX
15955 ) |
15956 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
15957 ;;
15958esac
b4e70030
JB
15959echo "$as_me:$LINENO: checking for $ac_header" >&5
15960echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15961if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 15962 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 15963else
bec39cab
AC
15964 eval "$as_ac_Header=\$ac_header_preproc"
15965fi
b4e70030
JB
15966echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15967echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15968
15969fi
15970if test `eval echo '${'$as_ac_Header'}'` = yes; then
15971 cat >>confdefs.h <<_ACEOF
15972#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15973_ACEOF
15974
15975fi
15976
15977done
15978
15979
a3828db0 15980for ac_func in getpagesize
bec39cab
AC
15981do
15982as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
15983echo "$as_me:$LINENO: checking for $ac_func" >&5
15984echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15985if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
15986 echo $ECHO_N "(cached) $ECHO_C" >&6
15987else
15988 cat >conftest.$ac_ext <<_ACEOF
15989/* confdefs.h. */
15990_ACEOF
15991cat confdefs.h >>conftest.$ac_ext
15992cat >>conftest.$ac_ext <<_ACEOF
15993/* end confdefs.h. */
15994/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15996#define $ac_func innocuous_$ac_func
15997
97bf5e38 15998/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15999 which can conflict with char $ac_func (); below.
16000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16001 <limits.h> exists even on freestanding compilers. */
2b2d558c 16002
bec39cab
AC
16003#ifdef __STDC__
16004# include <limits.h>
16005#else
16006# include <assert.h>
16007#endif
97bf5e38 16008
bec39cab
AC
16009#undef $ac_func
16010
b4e70030 16011/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
16012#ifdef __cplusplus
16013extern "C"
b4e70030 16014{
bec39cab 16015#endif
b4e70030
JB
16016/* We use char because int might match the return type of a gcc2
16017 builtin and then its argument prototype would still apply. */
bec39cab 16018char $ac_func ();
97bf5e38
MK
16019/* The GNU C library defines this for functions which it implements
16020 to always fail with ENOSYS. Some functions are actually named
16021 something starting with __ and the normal name is an alias. */
b4e70030 16022#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 16023choke me
b4e70030
JB
16024#else
16025char (*f) () = $ac_func;
16026#endif
16027#ifdef __cplusplus
16028}
97bf5e38
MK
16029#endif
16030
bec39cab
AC
16031int
16032main ()
16033{
b4e70030 16034return f != $ac_func;
bec39cab
AC
16035 ;
16036 return 0;
16037}
16038_ACEOF
16039rm -f conftest.$ac_objext conftest$ac_exeext
16040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16041 (eval $ac_link) 2>conftest.er1
16042 ac_status=$?
16043 grep -v '^ *+' conftest.er1 >conftest.err
16044 rm -f conftest.er1
16045 cat conftest.err >&5
16046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047 (exit $ac_status); } &&
b4e70030
JB
16048 { ac_try='test -z "$ac_c_werror_flag"
16049 || test ! -s conftest.err'
bec39cab
AC
16050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16051 (eval $ac_try) 2>&5
16052 ac_status=$?
16053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16054 (exit $ac_status); }; } &&
16055 { ac_try='test -s conftest$ac_exeext'
16056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16057 (eval $ac_try) 2>&5
16058 ac_status=$?
16059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060 (exit $ac_status); }; }; then
16061 eval "$as_ac_var=yes"
16062else
16063 echo "$as_me: failed program was:" >&5
16064sed 's/^/| /' conftest.$ac_ext >&5
16065
b4e70030 16066eval "$as_ac_var=no"
bec39cab
AC
16067fi
16068rm -f conftest.err conftest.$ac_objext \
16069 conftest$ac_exeext conftest.$ac_ext
16070fi
b4e70030
JB
16071echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16072echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
16073if test `eval echo '${'$as_ac_var'}'` = yes; then
16074 cat >>confdefs.h <<_ACEOF
16075#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16076_ACEOF
16077
2b2d558c 16078fi
bec39cab 16079done
2b2d558c 16080
b4e70030
JB
16081echo "$as_me:$LINENO: checking for working mmap" >&5
16082echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
a3828db0 16083if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
bec39cab 16084 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 16085else
bec39cab 16086 if test "$cross_compiling" = yes; then
a3828db0 16087 ac_cv_func_mmap_fixed_mapped=no
bec39cab
AC
16088else
16089 cat >conftest.$ac_ext <<_ACEOF
a3828db0 16090/* confdefs.h. */
bec39cab
AC
16091_ACEOF
16092cat confdefs.h >>conftest.$ac_ext
16093cat >>conftest.$ac_ext <<_ACEOF
16094/* end confdefs.h. */
a3828db0
MK
16095$ac_includes_default
16096/* malloc might have been renamed as rpl_malloc. */
16097#undef malloc
bec39cab 16098
a3828db0
MK
16099/* Thanks to Mike Haertel and Jim Avera for this test.
16100 Here is a matrix of mmap possibilities:
16101 mmap private not fixed
16102 mmap private fixed at somewhere currently unmapped
16103 mmap private fixed at somewhere already mapped
16104 mmap shared not fixed
16105 mmap shared fixed at somewhere currently unmapped
16106 mmap shared fixed at somewhere already mapped
16107 For private mappings, we should verify that changes cannot be read()
16108 back from the file, nor mmap's back from the file at a different
16109 address. (There have been systems where private was not correctly
16110 implemented like the infamous i386 svr4.0, and systems where the
16111 VM page cache was not coherent with the file system buffer cache
16112 like early versions of FreeBSD and possibly contemporary NetBSD.)
16113 For shared mappings, we should conversely verify that changes get
16114 propagated back to all the places they're supposed to be.
7dfa765c 16115
a3828db0
MK
16116 Grep wants private fixed already mapped.
16117 The main things grep needs to know about mmap are:
16118 * does it exist and is it safe to write into the mmap'd area
16119 * how to use it (BSD variants) */
7dfa765c 16120
a3828db0
MK
16121#include <fcntl.h>
16122#include <sys/mman.h>
7dfa765c 16123
a3828db0
MK
16124#if !STDC_HEADERS && !HAVE_STDLIB_H
16125char *malloc ();
16126#endif
7dfa765c 16127
a3828db0
MK
16128/* This mess was copied from the GNU getpagesize.h. */
16129#if !HAVE_GETPAGESIZE
16130/* Assume that all systems that can run configure have sys/param.h. */
16131# if !HAVE_SYS_PARAM_H
16132# define HAVE_SYS_PARAM_H 1
16133# endif
64bb1671 16134
a3828db0
MK
16135# ifdef _SC_PAGESIZE
16136# define getpagesize() sysconf(_SC_PAGESIZE)
16137# else /* no _SC_PAGESIZE */
16138# if HAVE_SYS_PARAM_H
16139# include <sys/param.h>
16140# ifdef EXEC_PAGESIZE
16141# define getpagesize() EXEC_PAGESIZE
16142# else /* no EXEC_PAGESIZE */
16143# ifdef NBPG
16144# define getpagesize() NBPG * CLSIZE
16145# ifndef CLSIZE
16146# define CLSIZE 1
16147# endif /* no CLSIZE */
16148# else /* no NBPG */
16149# ifdef NBPC
16150# define getpagesize() NBPC
16151# else /* no NBPC */
16152# ifdef PAGESIZE
16153# define getpagesize() PAGESIZE
16154# endif /* PAGESIZE */
16155# endif /* no NBPC */
16156# endif /* no NBPG */
16157# endif /* no EXEC_PAGESIZE */
16158# else /* no HAVE_SYS_PARAM_H */
16159# define getpagesize() 8192 /* punt totally */
16160# endif /* no HAVE_SYS_PARAM_H */
16161# endif /* no _SC_PAGESIZE */
64bb1671 16162
a3828db0 16163#endif /* no HAVE_GETPAGESIZE */
64bb1671 16164
a3828db0
MK
16165int
16166main ()
16167{
16168 char *data, *data2, *data3;
16169 int i, pagesize;
16170 int fd;
97bf5e38 16171
a3828db0
MK
16172 pagesize = getpagesize ();
16173
16174 /* First, make a file with some known garbage in it. */
16175 data = (char *) malloc (pagesize);
16176 if (!data)
b4e70030 16177 exit (1);
a3828db0
MK
16178 for (i = 0; i < pagesize; ++i)
16179 *(data + i) = rand ();
16180 umask (0);
16181 fd = creat ("conftest.mmap", 0600);
16182 if (fd < 0)
b4e70030 16183 exit (1);
a3828db0 16184 if (write (fd, data, pagesize) != pagesize)
b4e70030 16185 exit (1);
a3828db0
MK
16186 close (fd);
16187
16188 /* Next, try to mmap the file at a fixed address which already has
16189 something else allocated at it. If we can, also make sure that
16190 we see the same garbage. */
16191 fd = open ("conftest.mmap", O_RDWR);
16192 if (fd < 0)
b4e70030 16193 exit (1);
a3828db0
MK
16194 data2 = (char *) malloc (2 * pagesize);
16195 if (!data2)
b4e70030
JB
16196 exit (1);
16197 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
a3828db0
MK
16198 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16199 MAP_PRIVATE | MAP_FIXED, fd, 0L))
b4e70030 16200 exit (1);
a3828db0
MK
16201 for (i = 0; i < pagesize; ++i)
16202 if (*(data + i) != *(data2 + i))
b4e70030 16203 exit (1);
a3828db0
MK
16204
16205 /* Finally, make sure that changes to the mapped area do not
16206 percolate back to the file as seen by read(). (This is a bug on
16207 some variants of i386 svr4.0.) */
16208 for (i = 0; i < pagesize; ++i)
16209 *(data2 + i) = *(data2 + i) + 1;
16210 data3 = (char *) malloc (pagesize);
16211 if (!data3)
b4e70030 16212 exit (1);
a3828db0 16213 if (read (fd, data3, pagesize) != pagesize)
b4e70030 16214 exit (1);
a3828db0
MK
16215 for (i = 0; i < pagesize; ++i)
16216 if (*(data + i) != *(data3 + i))
b4e70030 16217 exit (1);
a3828db0 16218 close (fd);
b4e70030 16219 exit (0);
97bf5e38 16220}
bec39cab
AC
16221_ACEOF
16222rm -f conftest$ac_exeext
16223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16224 (eval $ac_link) 2>&5
16225 ac_status=$?
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16229 (eval $ac_try) 2>&5
16230 ac_status=$?
16231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232 (exit $ac_status); }; }; then
a3828db0 16233 ac_cv_func_mmap_fixed_mapped=yes
5c44784c 16234else
bec39cab
AC
16235 echo "$as_me: program exited with status $ac_status" >&5
16236echo "$as_me: failed program was:" >&5
16237sed 's/^/| /' conftest.$ac_ext >&5
16238
16239( exit $ac_status )
a3828db0 16240ac_cv_func_mmap_fixed_mapped=no
0afdd437 16241fi
b4e70030 16242rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bec39cab 16243fi
a3828db0 16244fi
b4e70030
JB
16245echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16246echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
a3828db0 16247if test $ac_cv_func_mmap_fixed_mapped = yes; then
bec39cab
AC
16248
16249cat >>confdefs.h <<\_ACEOF
a3828db0 16250#define HAVE_MMAP 1
bec39cab 16251_ACEOF
0afdd437
MK
16252
16253fi
a3828db0 16254rm -f conftest.mmap
0afdd437 16255
b4e70030
JB
16256echo "$as_me:$LINENO: checking for pid_t" >&5
16257echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
a3828db0 16258if test "${ac_cv_type_pid_t+set}" = set; then
bec39cab
AC
16259 echo $ECHO_N "(cached) $ECHO_C" >&6
16260else
16261 cat >conftest.$ac_ext <<_ACEOF
16262/* confdefs.h. */
16263_ACEOF
16264cat confdefs.h >>conftest.$ac_ext
16265cat >>conftest.$ac_ext <<_ACEOF
16266/* end confdefs.h. */
a3828db0 16267$ac_includes_default
bec39cab
AC
16268int
16269main ()
16270{
b4e70030 16271if ((pid_t *) 0)
a3828db0 16272 return 0;
b4e70030 16273if (sizeof (pid_t))
a3828db0 16274 return 0;
bec39cab
AC
16275 ;
16276 return 0;
16277}
16278_ACEOF
a3828db0
MK
16279rm -f conftest.$ac_objext
16280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16281 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
16282 ac_status=$?
16283 grep -v '^ *+' conftest.er1 >conftest.err
16284 rm -f conftest.er1
16285 cat conftest.err >&5
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); } &&
b4e70030
JB
16288 { ac_try='test -z "$ac_c_werror_flag"
16289 || test ! -s conftest.err'
bec39cab
AC
16290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16291 (eval $ac_try) 2>&5
16292 ac_status=$?
16293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16294 (exit $ac_status); }; } &&
a3828db0 16295 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
16296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16297 (eval $ac_try) 2>&5
16298 ac_status=$?
16299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300 (exit $ac_status); }; }; then
a3828db0 16301 ac_cv_type_pid_t=yes
bec39cab
AC
16302else
16303 echo "$as_me: failed program was:" >&5
16304sed 's/^/| /' conftest.$ac_ext >&5
16305
b4e70030 16306ac_cv_type_pid_t=no
bec39cab 16307fi
a3828db0 16308rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 16309fi
b4e70030
JB
16310echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16311echo "${ECHO_T}$ac_cv_type_pid_t" >&6
a3828db0
MK
16312if test $ac_cv_type_pid_t = yes; then
16313 :
16314else
16315
16316cat >>confdefs.h <<_ACEOF
16317#define pid_t int
bec39cab 16318_ACEOF
7e89e357 16319
7e89e357
JT
16320fi
16321
bec39cab 16322
b4e70030
JB
16323
16324for ac_header in unistd.h vfork.h
7be570e7 16325do
a3828db0 16326as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
16327if eval "test \"\${$as_ac_Header+set}\" = set"; then
16328 echo "$as_me:$LINENO: checking for $ac_header" >&5
16329echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16330if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 16331 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0 16332fi
b4e70030
JB
16333echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16334echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 16335else
a3828db0 16336 # Is the header compilable?
b4e70030
JB
16337echo "$as_me:$LINENO: checking $ac_header usability" >&5
16338echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a3828db0 16339cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
16340/* confdefs.h. */
16341_ACEOF
16342cat confdefs.h >>conftest.$ac_ext
16343cat >>conftest.$ac_ext <<_ACEOF
16344/* end confdefs.h. */
a3828db0
MK
16345$ac_includes_default
16346#include <$ac_header>
bec39cab 16347_ACEOF
a3828db0
MK
16348rm -f conftest.$ac_objext
16349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16350 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
16351 ac_status=$?
16352 grep -v '^ *+' conftest.er1 >conftest.err
16353 rm -f conftest.er1
16354 cat conftest.err >&5
16355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356 (exit $ac_status); } &&
b4e70030
JB
16357 { ac_try='test -z "$ac_c_werror_flag"
16358 || test ! -s conftest.err'
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); }; } &&
a3828db0 16364 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
16365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16366 (eval $ac_try) 2>&5
16367 ac_status=$?
16368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369 (exit $ac_status); }; }; then
a3828db0 16370 ac_header_compiler=yes
bec39cab
AC
16371else
16372 echo "$as_me: failed program was:" >&5
16373sed 's/^/| /' conftest.$ac_ext >&5
16374
b4e70030 16375ac_header_compiler=no
bec39cab 16376fi
a3828db0 16377rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
16378echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16379echo "${ECHO_T}$ac_header_compiler" >&6
a3828db0
MK
16380
16381# Is the header present?
b4e70030
JB
16382echo "$as_me:$LINENO: checking $ac_header presence" >&5
16383echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
a3828db0
MK
16384cat >conftest.$ac_ext <<_ACEOF
16385/* confdefs.h. */
16386_ACEOF
16387cat confdefs.h >>conftest.$ac_ext
16388cat >>conftest.$ac_ext <<_ACEOF
16389/* end confdefs.h. */
16390#include <$ac_header>
16391_ACEOF
16392if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16393 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16394 ac_status=$?
16395 grep -v '^ *+' conftest.er1 >conftest.err
16396 rm -f conftest.er1
16397 cat conftest.err >&5
16398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399 (exit $ac_status); } >/dev/null; then
16400 if test -s conftest.err; then
16401 ac_cpp_err=$ac_c_preproc_warn_flag
16402 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16403 else
16404 ac_cpp_err=
16405 fi
16406else
16407 ac_cpp_err=yes
16408fi
16409if test -z "$ac_cpp_err"; then
16410 ac_header_preproc=yes
16411else
16412 echo "$as_me: failed program was:" >&5
16413sed 's/^/| /' conftest.$ac_ext >&5
16414
16415 ac_header_preproc=no
16416fi
16417rm -f conftest.err conftest.$ac_ext
b4e70030
JB
16418echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16419echo "${ECHO_T}$ac_header_preproc" >&6
a3828db0
MK
16420
16421# So? What about this header?
16422case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16423 yes:no: )
16424 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16425echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16427echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16428 ac_header_preproc=yes
16429 ;;
16430 no:yes:* )
16431 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16432echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16433 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16434echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16435 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16436echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16437 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16438echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16440echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16441 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16442echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
16443 (
16444 cat <<\_ASBOX
16445## ------------------------------------------ ##
16446## Report this to the AC_PACKAGE_NAME lists. ##
16447## ------------------------------------------ ##
16448_ASBOX
16449 ) |
16450 sed "s/^/$as_me: WARNING: /" >&2
a3828db0
MK
16451 ;;
16452esac
b4e70030
JB
16453echo "$as_me:$LINENO: checking for $ac_header" >&5
16454echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16455if eval "test \"\${$as_ac_Header+set}\" = set"; then
a3828db0
MK
16456 echo $ECHO_N "(cached) $ECHO_C" >&6
16457else
16458 eval "$as_ac_Header=\$ac_header_preproc"
16459fi
b4e70030
JB
16460echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16461echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a3828db0 16462
bec39cab 16463fi
a3828db0 16464if test `eval echo '${'$as_ac_Header'}'` = yes; then
bec39cab 16465 cat >>confdefs.h <<_ACEOF
a3828db0 16466#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
bec39cab 16467_ACEOF
14abd0fb 16468
14abd0fb 16469fi
a3828db0 16470
14abd0fb
MK
16471done
16472
bec39cab 16473
a3828db0
MK
16474
16475for ac_func in fork vfork
14abd0fb 16476do
bec39cab 16477as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
16478echo "$as_me:$LINENO: checking for $ac_func" >&5
16479echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16480if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
16481 echo $ECHO_N "(cached) $ECHO_C" >&6
16482else
16483 cat >conftest.$ac_ext <<_ACEOF
16484/* confdefs.h. */
16485_ACEOF
16486cat confdefs.h >>conftest.$ac_ext
16487cat >>conftest.$ac_ext <<_ACEOF
16488/* end confdefs.h. */
16489/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16490 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16491#define $ac_func innocuous_$ac_func
16492
14abd0fb 16493/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
16494 which can conflict with char $ac_func (); below.
16495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16496 <limits.h> exists even on freestanding compilers. */
16497
16498#ifdef __STDC__
16499# include <limits.h>
16500#else
16501# include <assert.h>
16502#endif
14abd0fb 16503
bec39cab 16504#undef $ac_func
14abd0fb 16505
b4e70030 16506/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
16507#ifdef __cplusplus
16508extern "C"
b4e70030 16509{
bec39cab 16510#endif
b4e70030
JB
16511/* We use char because int might match the return type of a gcc2
16512 builtin and then its argument prototype would still apply. */
bec39cab 16513char $ac_func ();
14abd0fb
MK
16514/* The GNU C library defines this for functions which it implements
16515 to always fail with ENOSYS. Some functions are actually named
16516 something starting with __ and the normal name is an alias. */
b4e70030 16517#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14abd0fb 16518choke me
b4e70030
JB
16519#else
16520char (*f) () = $ac_func;
16521#endif
16522#ifdef __cplusplus
16523}
14abd0fb
MK
16524#endif
16525
bec39cab
AC
16526int
16527main ()
16528{
b4e70030 16529return f != $ac_func;
bec39cab
AC
16530 ;
16531 return 0;
16532}
16533_ACEOF
16534rm -f conftest.$ac_objext conftest$ac_exeext
16535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16536 (eval $ac_link) 2>conftest.er1
16537 ac_status=$?
16538 grep -v '^ *+' conftest.er1 >conftest.err
16539 rm -f conftest.er1
16540 cat conftest.err >&5
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); } &&
b4e70030
JB
16543 { ac_try='test -z "$ac_c_werror_flag"
16544 || test ! -s conftest.err'
bec39cab
AC
16545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16546 (eval $ac_try) 2>&5
16547 ac_status=$?
16548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549 (exit $ac_status); }; } &&
16550 { ac_try='test -s conftest$ac_exeext'
16551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16552 (eval $ac_try) 2>&5
16553 ac_status=$?
16554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555 (exit $ac_status); }; }; then
16556 eval "$as_ac_var=yes"
16557else
16558 echo "$as_me: failed program was:" >&5
16559sed 's/^/| /' conftest.$ac_ext >&5
16560
b4e70030 16561eval "$as_ac_var=no"
bec39cab
AC
16562fi
16563rm -f conftest.err conftest.$ac_objext \
16564 conftest$ac_exeext conftest.$ac_ext
16565fi
b4e70030
JB
16566echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16567echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
16568if test `eval echo '${'$as_ac_var'}'` = yes; then
16569 cat >>confdefs.h <<_ACEOF
16570#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16571_ACEOF
7be570e7 16572
7be570e7
JM
16573fi
16574done
16575
a3828db0 16576if test "x$ac_cv_func_fork" = xyes; then
b4e70030
JB
16577 echo "$as_me:$LINENO: checking for working fork" >&5
16578echo $ECHO_N "checking for working fork... $ECHO_C" >&6
a3828db0
MK
16579if test "${ac_cv_func_fork_works+set}" = set; then
16580 echo $ECHO_N "(cached) $ECHO_C" >&6
16581else
16582 if test "$cross_compiling" = yes; then
16583 ac_cv_func_fork_works=cross
16584else
16585 cat >conftest.$ac_ext <<_ACEOF
b4e70030
JB
16586/* By Ruediger Kuhlmann. */
16587 #include <sys/types.h>
16588 #if HAVE_UNISTD_H
16589 # include <unistd.h>
16590 #endif
16591 /* Some systems only have a dummy stub for fork() */
16592 int main ()
16593 {
16594 if (fork() < 0)
16595 exit (1);
16596 exit (0);
16597 }
a3828db0
MK
16598_ACEOF
16599rm -f conftest$ac_exeext
16600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16601 (eval $ac_link) 2>&5
16602 ac_status=$?
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16606 (eval $ac_try) 2>&5
16607 ac_status=$?
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); }; }; then
16610 ac_cv_func_fork_works=yes
16611else
16612 echo "$as_me: program exited with status $ac_status" >&5
16613echo "$as_me: failed program was:" >&5
16614sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 16615
a3828db0
MK
16616( exit $ac_status )
16617ac_cv_func_fork_works=no
16618fi
b4e70030 16619rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
16620fi
16621fi
b4e70030
JB
16622echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
16623echo "${ECHO_T}$ac_cv_func_fork_works" >&6
a3828db0
MK
16624
16625else
16626 ac_cv_func_fork_works=$ac_cv_func_fork
16627fi
16628if test "x$ac_cv_func_fork_works" = xcross; then
16629 case $host in
16630 *-*-amigaos* | *-*-msdosdjgpp*)
16631 # Override, as these systems have only a dummy fork() stub
16632 ac_cv_func_fork_works=no
16633 ;;
16634 *)
16635 ac_cv_func_fork_works=yes
16636 ;;
16637 esac
16638 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16639echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16640fi
16641ac_cv_func_vfork_works=$ac_cv_func_vfork
16642if test "x$ac_cv_func_vfork" = xyes; then
b4e70030
JB
16643 echo "$as_me:$LINENO: checking for working vfork" >&5
16644echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
a3828db0 16645if test "${ac_cv_func_vfork_works+set}" = set; then
bec39cab 16646 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
16647else
16648 if test "$cross_compiling" = yes; then
16649 ac_cv_func_vfork_works=cross
bec39cab
AC
16650else
16651 cat >conftest.$ac_ext <<_ACEOF
16652/* confdefs.h. */
16653_ACEOF
16654cat confdefs.h >>conftest.$ac_ext
16655cat >>conftest.$ac_ext <<_ACEOF
16656/* end confdefs.h. */
a3828db0 16657/* Thanks to Paul Eggert for this test. */
b4e70030
JB
16658#include <stdio.h>
16659#include <stdlib.h>
16660#include <sys/types.h>
16661#include <sys/stat.h>
a3828db0 16662#include <sys/wait.h>
b4e70030
JB
16663#if HAVE_UNISTD_H
16664# include <unistd.h>
16665#endif
a3828db0
MK
16666#if HAVE_VFORK_H
16667# include <vfork.h>
bec39cab 16668#endif
a3828db0
MK
16669/* On some sparc systems, changes by the child to local and incoming
16670 argument registers are propagated back to the parent. The compiler
16671 is told about this with #include <vfork.h>, but some compilers
16672 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16673 static variable whose address is put into a register that is
16674 clobbered by the vfork. */
16675static void
bec39cab 16676#ifdef __cplusplus
a3828db0
MK
16677sparc_address_test (int arg)
16678# else
16679sparc_address_test (arg) int arg;
c906108c 16680#endif
a3828db0
MK
16681{
16682 static pid_t child;
16683 if (!child) {
16684 child = vfork ();
16685 if (child < 0) {
16686 perror ("vfork");
16687 _exit(2);
16688 }
16689 if (!child) {
16690 arg = getpid();
16691 write(-1, "", 0);
16692 _exit (arg);
16693 }
16694 }
16695}
97bf5e38 16696
bec39cab
AC
16697int
16698main ()
16699{
a3828db0
MK
16700 pid_t parent = getpid ();
16701 pid_t child;
16702
16703 sparc_address_test (0);
16704
16705 child = vfork ();
16706
16707 if (child == 0) {
16708 /* Here is another test for sparc vfork register problems. This
16709 test uses lots of local variables, at least as many local
16710 variables as main has allocated so far including compiler
16711 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16712 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16713 reuse the register of parent for one of the local variables,
16714 since it will think that parent can't possibly be used any more
16715 in this routine. Assigning to the local variable will thus
16716 munge parent in the parent process. */
16717 pid_t
16718 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16719 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16720 /* Convince the compiler that p..p7 are live; otherwise, it might
16721 use the same hardware register for all 8 local variables. */
16722 if (p != p1 || p != p2 || p != p3 || p != p4
16723 || p != p5 || p != p6 || p != p7)
16724 _exit(1);
16725
16726 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16727 from child file descriptors. If the child closes a descriptor
16728 before it execs or exits, this munges the parent's descriptor
16729 as well. Test for this by closing stdout in the child. */
16730 _exit(close(fileno(stdout)) != 0);
16731 } else {
16732 int status;
16733 struct stat st;
16734
16735 while (wait(&status) != child)
16736 ;
b4e70030 16737 exit(
a3828db0
MK
16738 /* Was there some problem with vforking? */
16739 child < 0
16740
16741 /* Did the child fail? (This shouldn't happen.) */
16742 || status
16743
16744 /* Did the vfork/compiler bug occur? */
16745 || parent != getpid()
16746
16747 /* Did the file descriptor bug occur? */
16748 || fstat(fileno(stdout), &st) != 0
16749 );
16750 }
bec39cab
AC
16751}
16752_ACEOF
a3828db0 16753rm -f conftest$ac_exeext
bec39cab 16754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 16755 (eval $ac_link) 2>&5
bec39cab
AC
16756 ac_status=$?
16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 16758 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
16759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16760 (eval $ac_try) 2>&5
16761 ac_status=$?
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); }; }; then
a3828db0
MK
16764 ac_cv_func_vfork_works=yes
16765else
16766 echo "$as_me: program exited with status $ac_status" >&5
16767echo "$as_me: failed program was:" >&5
16768sed 's/^/| /' conftest.$ac_ext >&5
16769
16770( exit $ac_status )
16771ac_cv_func_vfork_works=no
16772fi
b4e70030 16773rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
16774fi
16775fi
b4e70030
JB
16776echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
16777echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
a3828db0
MK
16778
16779fi;
16780if test "x$ac_cv_func_fork_works" = xcross; then
16781 ac_cv_func_vfork_works=$ac_cv_func_vfork
16782 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16783echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16784fi
16785
16786if test "x$ac_cv_func_vfork_works" = xyes; then
16787
16788cat >>confdefs.h <<\_ACEOF
16789#define HAVE_WORKING_VFORK 1
16790_ACEOF
16791
bec39cab 16792else
bec39cab 16793
a3828db0
MK
16794cat >>confdefs.h <<\_ACEOF
16795#define vfork fork
16796_ACEOF
16797
bec39cab 16798fi
a3828db0
MK
16799if test "x$ac_cv_func_fork_works" = xyes; then
16800
16801cat >>confdefs.h <<\_ACEOF
16802#define HAVE_WORKING_FORK 1
bec39cab 16803_ACEOF
c906108c 16804
c906108c
SS
16805fi
16806
bec39cab
AC
16807
16808
a3828db0 16809for ac_func in canonicalize_file_name realpath
97bf5e38 16810do
bec39cab 16811as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030 16812echo "$as_me:$LINENO: checking for $ac_func" >&5
7eb368b3
NR
16813echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16814if eval "test \"\${$as_ac_var+set}\" = set"; then
16815 echo $ECHO_N "(cached) $ECHO_C" >&6
16816else
16817 cat >conftest.$ac_ext <<_ACEOF
16818/* confdefs.h. */
16819_ACEOF
16820cat confdefs.h >>conftest.$ac_ext
16821cat >>conftest.$ac_ext <<_ACEOF
16822/* end confdefs.h. */
16823/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16825#define $ac_func innocuous_$ac_func
16826
16827/* System header to define __stub macros and hopefully few prototypes,
16828 which can conflict with char $ac_func (); below.
16829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16830 <limits.h> exists even on freestanding compilers. */
16831
16832#ifdef __STDC__
16833# include <limits.h>
16834#else
16835# include <assert.h>
16836#endif
16837
16838#undef $ac_func
16839
16840/* Override any gcc2 internal prototype to avoid an error. */
16841#ifdef __cplusplus
16842extern "C"
16843{
16844#endif
16845/* We use char because int might match the return type of a gcc2
16846 builtin and then its argument prototype would still apply. */
16847char $ac_func ();
16848/* The GNU C library defines this for functions which it implements
16849 to always fail with ENOSYS. Some functions are actually named
16850 something starting with __ and the normal name is an alias. */
16851#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16852choke me
16853#else
16854char (*f) () = $ac_func;
16855#endif
16856#ifdef __cplusplus
16857}
16858#endif
16859
16860int
16861main ()
16862{
16863return f != $ac_func;
16864 ;
16865 return 0;
16866}
16867_ACEOF
16868rm -f conftest.$ac_objext conftest$ac_exeext
16869if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16870 (eval $ac_link) 2>conftest.er1
16871 ac_status=$?
16872 grep -v '^ *+' conftest.er1 >conftest.err
16873 rm -f conftest.er1
16874 cat conftest.err >&5
16875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876 (exit $ac_status); } &&
16877 { ac_try='test -z "$ac_c_werror_flag"
16878 || test ! -s conftest.err'
16879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16880 (eval $ac_try) 2>&5
16881 ac_status=$?
16882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16883 (exit $ac_status); }; } &&
16884 { ac_try='test -s conftest$ac_exeext'
16885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16886 (eval $ac_try) 2>&5
16887 ac_status=$?
16888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889 (exit $ac_status); }; }; then
16890 eval "$as_ac_var=yes"
16891else
16892 echo "$as_me: failed program was:" >&5
16893sed 's/^/| /' conftest.$ac_ext >&5
16894
16895eval "$as_ac_var=no"
16896fi
16897rm -f conftest.err conftest.$ac_objext \
16898 conftest$ac_exeext conftest.$ac_ext
16899fi
16900echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16901echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16902if test `eval echo '${'$as_ac_var'}'` = yes; then
16903 cat >>confdefs.h <<_ACEOF
16904#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16905_ACEOF
16906
16907fi
16908done
16909
16910
16911for ac_func in getrusage
16912do
16913as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16914echo "$as_me:$LINENO: checking for $ac_func" >&5
b4e70030
JB
16915echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16916if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
16917 echo $ECHO_N "(cached) $ECHO_C" >&6
16918else
16919 cat >conftest.$ac_ext <<_ACEOF
16920/* confdefs.h. */
16921_ACEOF
16922cat confdefs.h >>conftest.$ac_ext
16923cat >>conftest.$ac_ext <<_ACEOF
16924/* end confdefs.h. */
16925/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16927#define $ac_func innocuous_$ac_func
16928
d3ea6809
MM
16929/* System header to define __stub macros and hopefully few prototypes,
16930 which can conflict with char $ac_func (); below.
16931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16932 <limits.h> exists even on freestanding compilers. */
16933
16934#ifdef __STDC__
16935# include <limits.h>
16936#else
16937# include <assert.h>
16938#endif
16939
16940#undef $ac_func
16941
b4e70030 16942/* Override any gcc2 internal prototype to avoid an error. */
d3ea6809
MM
16943#ifdef __cplusplus
16944extern "C"
b4e70030 16945{
d3ea6809 16946#endif
b4e70030
JB
16947/* We use char because int might match the return type of a gcc2
16948 builtin and then its argument prototype would still apply. */
d3ea6809
MM
16949char $ac_func ();
16950/* The GNU C library defines this for functions which it implements
16951 to always fail with ENOSYS. Some functions are actually named
16952 something starting with __ and the normal name is an alias. */
b4e70030 16953#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d3ea6809 16954choke me
b4e70030
JB
16955#else
16956char (*f) () = $ac_func;
16957#endif
16958#ifdef __cplusplus
16959}
d3ea6809
MM
16960#endif
16961
16962int
16963main ()
16964{
b4e70030 16965return f != $ac_func;
d3ea6809
MM
16966 ;
16967 return 0;
16968}
16969_ACEOF
16970rm -f conftest.$ac_objext conftest$ac_exeext
16971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16972 (eval $ac_link) 2>conftest.er1
16973 ac_status=$?
16974 grep -v '^ *+' conftest.er1 >conftest.err
16975 rm -f conftest.er1
16976 cat conftest.err >&5
16977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16978 (exit $ac_status); } &&
b4e70030
JB
16979 { ac_try='test -z "$ac_c_werror_flag"
16980 || test ! -s conftest.err'
d3ea6809
MM
16981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16982 (eval $ac_try) 2>&5
16983 ac_status=$?
16984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16985 (exit $ac_status); }; } &&
16986 { ac_try='test -s conftest$ac_exeext'
16987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16988 (eval $ac_try) 2>&5
16989 ac_status=$?
16990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991 (exit $ac_status); }; }; then
16992 eval "$as_ac_var=yes"
16993else
16994 echo "$as_me: failed program was:" >&5
16995sed 's/^/| /' conftest.$ac_ext >&5
16996
b4e70030 16997eval "$as_ac_var=no"
d3ea6809
MM
16998fi
16999rm -f conftest.err conftest.$ac_objext \
17000 conftest$ac_exeext conftest.$ac_ext
17001fi
b4e70030
JB
17002echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17003echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
d3ea6809
MM
17004if test `eval echo '${'$as_ac_var'}'` = yes; then
17005 cat >>confdefs.h <<_ACEOF
17006#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17007_ACEOF
17008
17009fi
17010done
17011
17012
17013
17014for ac_func in getuid getgid
17015do
17016as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17017echo "$as_me:$LINENO: checking for $ac_func" >&5
17018echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17019if eval "test \"\${$as_ac_var+set}\" = set"; then
d3ea6809
MM
17020 echo $ECHO_N "(cached) $ECHO_C" >&6
17021else
17022 cat >conftest.$ac_ext <<_ACEOF
17023/* confdefs.h. */
17024_ACEOF
17025cat confdefs.h >>conftest.$ac_ext
17026cat >>conftest.$ac_ext <<_ACEOF
17027/* end confdefs.h. */
17028/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17030#define $ac_func innocuous_$ac_func
17031
97bf5e38 17032/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
17033 which can conflict with char $ac_func (); below.
17034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17035 <limits.h> exists even on freestanding compilers. */
c906108c 17036
bec39cab
AC
17037#ifdef __STDC__
17038# include <limits.h>
17039#else
17040# include <assert.h>
17041#endif
97bf5e38 17042
bec39cab
AC
17043#undef $ac_func
17044
b4e70030 17045/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
17046#ifdef __cplusplus
17047extern "C"
b4e70030 17048{
bec39cab 17049#endif
b4e70030
JB
17050/* We use char because int might match the return type of a gcc2
17051 builtin and then its argument prototype would still apply. */
bec39cab 17052char $ac_func ();
97bf5e38
MK
17053/* The GNU C library defines this for functions which it implements
17054 to always fail with ENOSYS. Some functions are actually named
17055 something starting with __ and the normal name is an alias. */
b4e70030 17056#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 17057choke me
b4e70030
JB
17058#else
17059char (*f) () = $ac_func;
17060#endif
17061#ifdef __cplusplus
17062}
c906108c 17063#endif
97bf5e38 17064
bec39cab
AC
17065int
17066main ()
17067{
b4e70030 17068return f != $ac_func;
bec39cab
AC
17069 ;
17070 return 0;
17071}
17072_ACEOF
17073rm -f conftest.$ac_objext conftest$ac_exeext
17074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17075 (eval $ac_link) 2>conftest.er1
17076 ac_status=$?
17077 grep -v '^ *+' conftest.er1 >conftest.err
17078 rm -f conftest.er1
17079 cat conftest.err >&5
17080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081 (exit $ac_status); } &&
b4e70030
JB
17082 { ac_try='test -z "$ac_c_werror_flag"
17083 || test ! -s conftest.err'
bec39cab
AC
17084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17085 (eval $ac_try) 2>&5
17086 ac_status=$?
17087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088 (exit $ac_status); }; } &&
17089 { ac_try='test -s conftest$ac_exeext'
17090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17091 (eval $ac_try) 2>&5
17092 ac_status=$?
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); }; }; then
17095 eval "$as_ac_var=yes"
17096else
17097 echo "$as_me: failed program was:" >&5
17098sed 's/^/| /' conftest.$ac_ext >&5
17099
b4e70030 17100eval "$as_ac_var=no"
bec39cab
AC
17101fi
17102rm -f conftest.err conftest.$ac_objext \
17103 conftest$ac_exeext conftest.$ac_ext
17104fi
b4e70030
JB
17105echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17106echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
17107if test `eval echo '${'$as_ac_var'}'` = yes; then
17108 cat >>confdefs.h <<_ACEOF
17109#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17110_ACEOF
c906108c 17111
c906108c 17112fi
97bf5e38 17113done
c906108c 17114
bec39cab 17115
a3828db0 17116for ac_func in poll
97bf5e38 17117do
bec39cab 17118as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17119echo "$as_me:$LINENO: checking for $ac_func" >&5
17120echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17121if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17122 echo $ECHO_N "(cached) $ECHO_C" >&6
17123else
17124 cat >conftest.$ac_ext <<_ACEOF
17125/* confdefs.h. */
17126_ACEOF
17127cat confdefs.h >>conftest.$ac_ext
17128cat >>conftest.$ac_ext <<_ACEOF
17129/* end confdefs.h. */
17130/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17131 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17132#define $ac_func innocuous_$ac_func
17133
97bf5e38 17134/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
17135 which can conflict with char $ac_func (); below.
17136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17137 <limits.h> exists even on freestanding compilers. */
17138
17139#ifdef __STDC__
17140# include <limits.h>
17141#else
17142# include <assert.h>
17143#endif
c906108c 17144
bec39cab 17145#undef $ac_func
97bf5e38 17146
b4e70030 17147/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
17148#ifdef __cplusplus
17149extern "C"
b4e70030 17150{
bec39cab 17151#endif
b4e70030
JB
17152/* We use char because int might match the return type of a gcc2
17153 builtin and then its argument prototype would still apply. */
bec39cab 17154char $ac_func ();
97bf5e38
MK
17155/* The GNU C library defines this for functions which it implements
17156 to always fail with ENOSYS. Some functions are actually named
17157 something starting with __ and the normal name is an alias. */
b4e70030 17158#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 17159choke me
b4e70030
JB
17160#else
17161char (*f) () = $ac_func;
17162#endif
17163#ifdef __cplusplus
17164}
c906108c 17165#endif
97bf5e38 17166
bec39cab
AC
17167int
17168main ()
17169{
b4e70030 17170return f != $ac_func;
bec39cab
AC
17171 ;
17172 return 0;
17173}
17174_ACEOF
17175rm -f conftest.$ac_objext conftest$ac_exeext
17176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17177 (eval $ac_link) 2>conftest.er1
17178 ac_status=$?
17179 grep -v '^ *+' conftest.er1 >conftest.err
17180 rm -f conftest.er1
17181 cat conftest.err >&5
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); } &&
b4e70030
JB
17184 { ac_try='test -z "$ac_c_werror_flag"
17185 || test ! -s conftest.err'
bec39cab
AC
17186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17187 (eval $ac_try) 2>&5
17188 ac_status=$?
17189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17190 (exit $ac_status); }; } &&
17191 { ac_try='test -s conftest$ac_exeext'
17192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17193 (eval $ac_try) 2>&5
17194 ac_status=$?
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); }; }; then
17197 eval "$as_ac_var=yes"
17198else
17199 echo "$as_me: failed program was:" >&5
17200sed 's/^/| /' conftest.$ac_ext >&5
17201
b4e70030 17202eval "$as_ac_var=no"
bec39cab
AC
17203fi
17204rm -f conftest.err conftest.$ac_objext \
17205 conftest$ac_exeext conftest.$ac_ext
17206fi
b4e70030
JB
17207echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17208echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
17209if test `eval echo '${'$as_ac_var'}'` = yes; then
17210 cat >>confdefs.h <<_ACEOF
17211#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17212_ACEOF
c906108c 17213
c906108c 17214fi
97bf5e38 17215done
c906108c 17216
bec39cab 17217
a3828db0 17218for ac_func in pread64
97bf5e38 17219do
bec39cab 17220as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17221echo "$as_me:$LINENO: checking for $ac_func" >&5
17222echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17223if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17224 echo $ECHO_N "(cached) $ECHO_C" >&6
17225else
17226 cat >conftest.$ac_ext <<_ACEOF
17227/* confdefs.h. */
17228_ACEOF
17229cat confdefs.h >>conftest.$ac_ext
17230cat >>conftest.$ac_ext <<_ACEOF
17231/* end confdefs.h. */
17232/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17234#define $ac_func innocuous_$ac_func
17235
97bf5e38 17236/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
17237 which can conflict with char $ac_func (); below.
17238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17239 <limits.h> exists even on freestanding compilers. */
17240
17241#ifdef __STDC__
17242# include <limits.h>
17243#else
17244# include <assert.h>
17245#endif
c906108c 17246
bec39cab 17247#undef $ac_func
97bf5e38 17248
b4e70030 17249/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
17250#ifdef __cplusplus
17251extern "C"
b4e70030 17252{
bec39cab 17253#endif
b4e70030
JB
17254/* We use char because int might match the return type of a gcc2
17255 builtin and then its argument prototype would still apply. */
bec39cab 17256char $ac_func ();
97bf5e38
MK
17257/* The GNU C library defines this for functions which it implements
17258 to always fail with ENOSYS. Some functions are actually named
17259 something starting with __ and the normal name is an alias. */
b4e70030 17260#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 17261choke me
b4e70030
JB
17262#else
17263char (*f) () = $ac_func;
17264#endif
17265#ifdef __cplusplus
17266}
c906108c 17267#endif
97bf5e38 17268
bec39cab
AC
17269int
17270main ()
17271{
b4e70030 17272return f != $ac_func;
bec39cab
AC
17273 ;
17274 return 0;
17275}
17276_ACEOF
17277rm -f conftest.$ac_objext conftest$ac_exeext
17278if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17279 (eval $ac_link) 2>conftest.er1
17280 ac_status=$?
17281 grep -v '^ *+' conftest.er1 >conftest.err
17282 rm -f conftest.er1
17283 cat conftest.err >&5
17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); } &&
b4e70030
JB
17286 { ac_try='test -z "$ac_c_werror_flag"
17287 || test ! -s conftest.err'
bec39cab
AC
17288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17289 (eval $ac_try) 2>&5
17290 ac_status=$?
17291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17292 (exit $ac_status); }; } &&
17293 { ac_try='test -s conftest$ac_exeext'
17294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17295 (eval $ac_try) 2>&5
17296 ac_status=$?
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); }; }; then
17299 eval "$as_ac_var=yes"
17300else
17301 echo "$as_me: failed program was:" >&5
17302sed 's/^/| /' conftest.$ac_ext >&5
17303
b4e70030 17304eval "$as_ac_var=no"
bec39cab
AC
17305fi
17306rm -f conftest.err conftest.$ac_objext \
17307 conftest$ac_exeext conftest.$ac_ext
17308fi
b4e70030
JB
17309echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17310echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
17311if test `eval echo '${'$as_ac_var'}'` = yes; then
17312 cat >>confdefs.h <<_ACEOF
17313#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17314_ACEOF
c906108c 17315
c906108c 17316fi
97bf5e38 17317done
c906108c 17318
bec39cab 17319
a3828db0 17320for ac_func in sbrk
b757528f 17321do
bec39cab 17322as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17323echo "$as_me:$LINENO: checking for $ac_func" >&5
17324echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17325if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17326 echo $ECHO_N "(cached) $ECHO_C" >&6
17327else
17328 cat >conftest.$ac_ext <<_ACEOF
17329/* confdefs.h. */
17330_ACEOF
17331cat confdefs.h >>conftest.$ac_ext
17332cat >>conftest.$ac_ext <<_ACEOF
17333/* end confdefs.h. */
17334/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17336#define $ac_func innocuous_$ac_func
17337
b757528f 17338/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
17339 which can conflict with char $ac_func (); below.
17340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17341 <limits.h> exists even on freestanding compilers. */
17342
17343#ifdef __STDC__
17344# include <limits.h>
17345#else
17346# include <assert.h>
17347#endif
b757528f 17348
bec39cab 17349#undef $ac_func
b757528f 17350
b4e70030 17351/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
17352#ifdef __cplusplus
17353extern "C"
b4e70030 17354{
bec39cab 17355#endif
b4e70030
JB
17356/* We use char because int might match the return type of a gcc2
17357 builtin and then its argument prototype would still apply. */
bec39cab 17358char $ac_func ();
b757528f
JJ
17359/* The GNU C library defines this for functions which it implements
17360 to always fail with ENOSYS. Some functions are actually named
17361 something starting with __ and the normal name is an alias. */
b4e70030 17362#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
b757528f 17363choke me
b4e70030
JB
17364#else
17365char (*f) () = $ac_func;
17366#endif
17367#ifdef __cplusplus
17368}
b757528f
JJ
17369#endif
17370
bec39cab
AC
17371int
17372main ()
17373{
b4e70030 17374return f != $ac_func;
bec39cab
AC
17375 ;
17376 return 0;
17377}
17378_ACEOF
17379rm -f conftest.$ac_objext conftest$ac_exeext
17380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17381 (eval $ac_link) 2>conftest.er1
17382 ac_status=$?
17383 grep -v '^ *+' conftest.er1 >conftest.err
17384 rm -f conftest.er1
17385 cat conftest.err >&5
17386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387 (exit $ac_status); } &&
b4e70030
JB
17388 { ac_try='test -z "$ac_c_werror_flag"
17389 || test ! -s conftest.err'
bec39cab
AC
17390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17391 (eval $ac_try) 2>&5
17392 ac_status=$?
17393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17394 (exit $ac_status); }; } &&
17395 { ac_try='test -s conftest$ac_exeext'
17396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17397 (eval $ac_try) 2>&5
17398 ac_status=$?
17399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17400 (exit $ac_status); }; }; then
17401 eval "$as_ac_var=yes"
17402else
17403 echo "$as_me: failed program was:" >&5
17404sed 's/^/| /' conftest.$ac_ext >&5
17405
b4e70030 17406eval "$as_ac_var=no"
bec39cab
AC
17407fi
17408rm -f conftest.err conftest.$ac_objext \
17409 conftest$ac_exeext conftest.$ac_ext
17410fi
b4e70030
JB
17411echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17412echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
17413if test `eval echo '${'$as_ac_var'}'` = yes; then
17414 cat >>confdefs.h <<_ACEOF
17415#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17416_ACEOF
b757528f 17417
b757528f
JJ
17418fi
17419done
17420
bec39cab 17421
a3828db0
MK
17422
17423for ac_func in setpgid setpgrp
bcb3dc3d 17424do
bec39cab 17425as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17426echo "$as_me:$LINENO: checking for $ac_func" >&5
17427echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17428if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17429 echo $ECHO_N "(cached) $ECHO_C" >&6
17430else
17431 cat >conftest.$ac_ext <<_ACEOF
17432/* confdefs.h. */
17433_ACEOF
17434cat confdefs.h >>conftest.$ac_ext
17435cat >>conftest.$ac_ext <<_ACEOF
17436/* end confdefs.h. */
17437/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17438 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17439#define $ac_func innocuous_$ac_func
17440
bcb3dc3d 17441/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
17442 which can conflict with char $ac_func (); below.
17443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17444 <limits.h> exists even on freestanding compilers. */
17445
17446#ifdef __STDC__
17447# include <limits.h>
17448#else
17449# include <assert.h>
17450#endif
bcb3dc3d 17451
bec39cab 17452#undef $ac_func
bcb3dc3d 17453
b4e70030 17454/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
17455#ifdef __cplusplus
17456extern "C"
b4e70030 17457{
bec39cab 17458#endif
b4e70030
JB
17459/* We use char because int might match the return type of a gcc2
17460 builtin and then its argument prototype would still apply. */
bec39cab 17461char $ac_func ();
bcb3dc3d
MK
17462/* The GNU C library defines this for functions which it implements
17463 to always fail with ENOSYS. Some functions are actually named
17464 something starting with __ and the normal name is an alias. */
b4e70030 17465#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
bcb3dc3d 17466choke me
b4e70030
JB
17467#else
17468char (*f) () = $ac_func;
17469#endif
17470#ifdef __cplusplus
17471}
bcb3dc3d
MK
17472#endif
17473
bec39cab
AC
17474int
17475main ()
17476{
b4e70030 17477return f != $ac_func;
bec39cab
AC
17478 ;
17479 return 0;
17480}
17481_ACEOF
17482rm -f conftest.$ac_objext conftest$ac_exeext
17483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17484 (eval $ac_link) 2>conftest.er1
17485 ac_status=$?
17486 grep -v '^ *+' conftest.er1 >conftest.err
17487 rm -f conftest.er1
17488 cat conftest.err >&5
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); } &&
b4e70030
JB
17491 { ac_try='test -z "$ac_c_werror_flag"
17492 || test ! -s conftest.err'
bec39cab
AC
17493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17494 (eval $ac_try) 2>&5
17495 ac_status=$?
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); }; } &&
17498 { ac_try='test -s conftest$ac_exeext'
17499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17500 (eval $ac_try) 2>&5
17501 ac_status=$?
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); }; }; then
17504 eval "$as_ac_var=yes"
17505else
17506 echo "$as_me: failed program was:" >&5
17507sed 's/^/| /' conftest.$ac_ext >&5
17508
b4e70030 17509eval "$as_ac_var=no"
bec39cab
AC
17510fi
17511rm -f conftest.err conftest.$ac_objext \
17512 conftest$ac_exeext conftest.$ac_ext
17513fi
b4e70030
JB
17514echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17515echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
17516if test `eval echo '${'$as_ac_var'}'` = yes; then
17517 cat >>confdefs.h <<_ACEOF
17518#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17519_ACEOF
bcb3dc3d 17520
bcb3dc3d
MK
17521fi
17522done
17523
bec39cab 17524
a3828db0
MK
17525
17526
17527for ac_func in sigaction sigprocmask sigsetmask
8b9cf735 17528do
bec39cab 17529as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17530echo "$as_me:$LINENO: checking for $ac_func" >&5
17531echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17532if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17533 echo $ECHO_N "(cached) $ECHO_C" >&6
17534else
17535 cat >conftest.$ac_ext <<_ACEOF
17536/* confdefs.h. */
17537_ACEOF
17538cat confdefs.h >>conftest.$ac_ext
17539cat >>conftest.$ac_ext <<_ACEOF
17540/* end confdefs.h. */
17541/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17543#define $ac_func innocuous_$ac_func
17544
8b9cf735 17545/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
17546 which can conflict with char $ac_func (); below.
17547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17548 <limits.h> exists even on freestanding compilers. */
17549
17550#ifdef __STDC__
17551# include <limits.h>
17552#else
17553# include <assert.h>
17554#endif
8b9cf735 17555
bec39cab 17556#undef $ac_func
8b9cf735 17557
b4e70030 17558/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
17559#ifdef __cplusplus
17560extern "C"
b4e70030 17561{
a3828db0 17562#endif
b4e70030
JB
17563/* We use char because int might match the return type of a gcc2
17564 builtin and then its argument prototype would still apply. */
a3828db0
MK
17565char $ac_func ();
17566/* The GNU C library defines this for functions which it implements
17567 to always fail with ENOSYS. Some functions are actually named
17568 something starting with __ and the normal name is an alias. */
b4e70030 17569#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 17570choke me
b4e70030
JB
17571#else
17572char (*f) () = $ac_func;
17573#endif
17574#ifdef __cplusplus
17575}
a3828db0
MK
17576#endif
17577
bec39cab
AC
17578int
17579main ()
17580{
b4e70030 17581return f != $ac_func;
bec39cab
AC
17582 ;
17583 return 0;
17584}
17585_ACEOF
a3828db0
MK
17586rm -f conftest.$ac_objext conftest$ac_exeext
17587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17588 (eval $ac_link) 2>conftest.er1
bec39cab
AC
17589 ac_status=$?
17590 grep -v '^ *+' conftest.er1 >conftest.err
17591 rm -f conftest.er1
17592 cat conftest.err >&5
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); } &&
b4e70030
JB
17595 { ac_try='test -z "$ac_c_werror_flag"
17596 || test ! -s conftest.err'
bec39cab
AC
17597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17598 (eval $ac_try) 2>&5
17599 ac_status=$?
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); }; } &&
a3828db0 17602 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
17603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17604 (eval $ac_try) 2>&5
17605 ac_status=$?
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); }; }; then
a3828db0 17608 eval "$as_ac_var=yes"
086ec9eb 17609else
bec39cab
AC
17610 echo "$as_me: failed program was:" >&5
17611sed 's/^/| /' conftest.$ac_ext >&5
17612
b4e70030 17613eval "$as_ac_var=no"
a3828db0
MK
17614fi
17615rm -f conftest.err conftest.$ac_objext \
17616 conftest$ac_exeext conftest.$ac_ext
17617fi
b4e70030
JB
17618echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17619echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
17620if test `eval echo '${'$as_ac_var'}'` = yes; then
17621 cat >>confdefs.h <<_ACEOF
17622#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17623_ACEOF
17624
086ec9eb 17625fi
a3828db0
MK
17626done
17627
17628
17629for ac_func in socketpair
17630do
17631as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17632echo "$as_me:$LINENO: checking for $ac_func" >&5
17633echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17634if eval "test \"\${$as_ac_var+set}\" = set"; then
a3828db0
MK
17635 echo $ECHO_N "(cached) $ECHO_C" >&6
17636else
17637 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
17638/* confdefs.h. */
17639_ACEOF
17640cat confdefs.h >>conftest.$ac_ext
17641cat >>conftest.$ac_ext <<_ACEOF
17642/* end confdefs.h. */
a3828db0
MK
17643/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17645#define $ac_func innocuous_$ac_func
17646
17647/* System header to define __stub macros and hopefully few prototypes,
17648 which can conflict with char $ac_func (); below.
17649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17650 <limits.h> exists even on freestanding compilers. */
17651
17652#ifdef __STDC__
17653# include <limits.h>
17654#else
17655# include <assert.h>
17656#endif
17657
17658#undef $ac_func
17659
b4e70030 17660/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
17661#ifdef __cplusplus
17662extern "C"
b4e70030 17663{
a3828db0 17664#endif
b4e70030
JB
17665/* We use char because int might match the return type of a gcc2
17666 builtin and then its argument prototype would still apply. */
a3828db0
MK
17667char $ac_func ();
17668/* The GNU C library defines this for functions which it implements
17669 to always fail with ENOSYS. Some functions are actually named
17670 something starting with __ and the normal name is an alias. */
b4e70030 17671#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 17672choke me
b4e70030
JB
17673#else
17674char (*f) () = $ac_func;
17675#endif
17676#ifdef __cplusplus
17677}
a3828db0
MK
17678#endif
17679
bec39cab
AC
17680int
17681main ()
17682{
b4e70030 17683return f != $ac_func;
bec39cab
AC
17684 ;
17685 return 0;
17686}
17687_ACEOF
a3828db0
MK
17688rm -f conftest.$ac_objext conftest$ac_exeext
17689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17690 (eval $ac_link) 2>conftest.er1
bec39cab
AC
17691 ac_status=$?
17692 grep -v '^ *+' conftest.er1 >conftest.err
17693 rm -f conftest.er1
17694 cat conftest.err >&5
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); } &&
b4e70030
JB
17697 { ac_try='test -z "$ac_c_werror_flag"
17698 || test ! -s conftest.err'
bec39cab
AC
17699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17700 (eval $ac_try) 2>&5
17701 ac_status=$?
17702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17703 (exit $ac_status); }; } &&
a3828db0 17704 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
17705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17706 (eval $ac_try) 2>&5
17707 ac_status=$?
17708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709 (exit $ac_status); }; }; then
a3828db0 17710 eval "$as_ac_var=yes"
086ec9eb 17711else
bec39cab
AC
17712 echo "$as_me: failed program was:" >&5
17713sed 's/^/| /' conftest.$ac_ext >&5
17714
b4e70030 17715eval "$as_ac_var=no"
086ec9eb 17716fi
a3828db0
MK
17717rm -f conftest.err conftest.$ac_objext \
17718 conftest$ac_exeext conftest.$ac_ext
086ec9eb 17719fi
b4e70030
JB
17720echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17721echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
17722if test `eval echo '${'$as_ac_var'}'` = yes; then
17723 cat >>confdefs.h <<_ACEOF
17724#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 17725_ACEOF
086ec9eb
MK
17726
17727fi
a3828db0 17728done
086ec9eb 17729
a3828db0
MK
17730
17731for ac_func in syscall
17732do
17733as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17734echo "$as_me:$LINENO: checking for $ac_func" >&5
17735echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17736if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 17737 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab
AC
17738else
17739 cat >conftest.$ac_ext <<_ACEOF
17740/* confdefs.h. */
17741_ACEOF
17742cat confdefs.h >>conftest.$ac_ext
17743cat >>conftest.$ac_ext <<_ACEOF
17744/* end confdefs.h. */
a3828db0
MK
17745/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17747#define $ac_func innocuous_$ac_func
17748
17749/* System header to define __stub macros and hopefully few prototypes,
17750 which can conflict with char $ac_func (); below.
17751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17752 <limits.h> exists even on freestanding compilers. */
17753
17754#ifdef __STDC__
17755# include <limits.h>
17756#else
17757# include <assert.h>
17758#endif
17759
17760#undef $ac_func
17761
b4e70030 17762/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
17763#ifdef __cplusplus
17764extern "C"
b4e70030 17765{
a3828db0 17766#endif
b4e70030
JB
17767/* We use char because int might match the return type of a gcc2
17768 builtin and then its argument prototype would still apply. */
a3828db0
MK
17769char $ac_func ();
17770/* The GNU C library defines this for functions which it implements
17771 to always fail with ENOSYS. Some functions are actually named
17772 something starting with __ and the normal name is an alias. */
b4e70030 17773#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 17774choke me
b4e70030
JB
17775#else
17776char (*f) () = $ac_func;
17777#endif
17778#ifdef __cplusplus
17779}
c906108c 17780#endif
97bf5e38 17781
bec39cab
AC
17782int
17783main ()
97bf5e38 17784{
b4e70030 17785return f != $ac_func;
bec39cab
AC
17786 ;
17787 return 0;
97bf5e38 17788}
bec39cab 17789_ACEOF
a3828db0 17790rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab 17791if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 17792 (eval $ac_link) 2>conftest.er1
bec39cab 17793 ac_status=$?
a3828db0
MK
17794 grep -v '^ *+' conftest.er1 >conftest.err
17795 rm -f conftest.er1
17796 cat conftest.err >&5
bec39cab 17797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 17798 (exit $ac_status); } &&
b4e70030
JB
17799 { ac_try='test -z "$ac_c_werror_flag"
17800 || test ! -s conftest.err'
a3828db0
MK
17801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17802 (eval $ac_try) 2>&5
17803 ac_status=$?
17804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805 (exit $ac_status); }; } &&
17806 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
17807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17808 (eval $ac_try) 2>&5
17809 ac_status=$?
17810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811 (exit $ac_status); }; }; then
a3828db0 17812 eval "$as_ac_var=yes"
c906108c 17813else
a3828db0 17814 echo "$as_me: failed program was:" >&5
bec39cab
AC
17815sed 's/^/| /' conftest.$ac_ext >&5
17816
b4e70030 17817eval "$as_ac_var=no"
97bf5e38 17818fi
a3828db0
MK
17819rm -f conftest.err conftest.$ac_objext \
17820 conftest$ac_exeext conftest.$ac_ext
17821fi
b4e70030
JB
17822echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17823echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
17824if test `eval echo '${'$as_ac_var'}'` = yes; then
17825 cat >>confdefs.h <<_ACEOF
17826#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 17827_ACEOF
c906108c
SS
17828
17829fi
a3828db0 17830done
c906108c 17831
a3828db0
MK
17832
17833for ac_func in ttrace
17834do
17835as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17836echo "$as_me:$LINENO: checking for $ac_func" >&5
17837echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17838if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 17839 echo $ECHO_N "(cached) $ECHO_C" >&6
b83266a0 17840else
bec39cab
AC
17841 cat >conftest.$ac_ext <<_ACEOF
17842/* confdefs.h. */
17843_ACEOF
17844cat confdefs.h >>conftest.$ac_ext
17845cat >>conftest.$ac_ext <<_ACEOF
17846/* end confdefs.h. */
a3828db0
MK
17847/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17849#define $ac_func innocuous_$ac_func
b83266a0 17850
a3828db0
MK
17851/* System header to define __stub macros and hopefully few prototypes,
17852 which can conflict with char $ac_func (); below.
17853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17854 <limits.h> exists even on freestanding compilers. */
17855
17856#ifdef __STDC__
17857# include <limits.h>
17858#else
17859# include <assert.h>
17860#endif
17861
17862#undef $ac_func
17863
b4e70030 17864/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
17865#ifdef __cplusplus
17866extern "C"
b4e70030 17867{
a3828db0 17868#endif
b4e70030
JB
17869/* We use char because int might match the return type of a gcc2
17870 builtin and then its argument prototype would still apply. */
a3828db0
MK
17871char $ac_func ();
17872/* The GNU C library defines this for functions which it implements
17873 to always fail with ENOSYS. Some functions are actually named
17874 something starting with __ and the normal name is an alias. */
b4e70030 17875#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 17876choke me
b4e70030
JB
17877#else
17878char (*f) () = $ac_func;
17879#endif
17880#ifdef __cplusplus
17881}
a3828db0 17882#endif
97bf5e38 17883
bec39cab
AC
17884int
17885main ()
17886{
b4e70030 17887return f != $ac_func;
bec39cab
AC
17888 ;
17889 return 0;
17890}
17891_ACEOF
a3828db0
MK
17892rm -f conftest.$ac_objext conftest$ac_exeext
17893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17894 (eval $ac_link) 2>conftest.er1
bec39cab
AC
17895 ac_status=$?
17896 grep -v '^ *+' conftest.er1 >conftest.err
17897 rm -f conftest.er1
17898 cat conftest.err >&5
17899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900 (exit $ac_status); } &&
b4e70030
JB
17901 { ac_try='test -z "$ac_c_werror_flag"
17902 || test ! -s conftest.err'
bec39cab
AC
17903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17904 (eval $ac_try) 2>&5
17905 ac_status=$?
17906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907 (exit $ac_status); }; } &&
a3828db0 17908 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
17909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17910 (eval $ac_try) 2>&5
17911 ac_status=$?
17912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913 (exit $ac_status); }; }; then
a3828db0 17914 eval "$as_ac_var=yes"
b83266a0 17915else
bec39cab
AC
17916 echo "$as_me: failed program was:" >&5
17917sed 's/^/| /' conftest.$ac_ext >&5
17918
b4e70030 17919eval "$as_ac_var=no"
b83266a0 17920fi
a3828db0
MK
17921rm -f conftest.err conftest.$ac_objext \
17922 conftest$ac_exeext conftest.$ac_ext
b83266a0 17923fi
b4e70030
JB
17924echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17925echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
17926if test `eval echo '${'$as_ac_var'}'` = yes; then
17927 cat >>confdefs.h <<_ACEOF
17928#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 17929_ACEOF
b83266a0 17930
97bf5e38 17931fi
a3828db0 17932done
b83266a0 17933
a3828db0
MK
17934
17935for ac_func in wborder
17936do
17937as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17938echo "$as_me:$LINENO: checking for $ac_func" >&5
17939echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17940if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17941 echo $ECHO_N "(cached) $ECHO_C" >&6
17942else
17943 cat >conftest.$ac_ext <<_ACEOF
17944/* confdefs.h. */
17945_ACEOF
17946cat confdefs.h >>conftest.$ac_ext
17947cat >>conftest.$ac_ext <<_ACEOF
17948/* end confdefs.h. */
a3828db0
MK
17949/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17951#define $ac_func innocuous_$ac_func
a4db0f07 17952
a3828db0
MK
17953/* System header to define __stub macros and hopefully few prototypes,
17954 which can conflict with char $ac_func (); below.
17955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17956 <limits.h> exists even on freestanding compilers. */
17957
17958#ifdef __STDC__
17959# include <limits.h>
17960#else
17961# include <assert.h>
17962#endif
17963
17964#undef $ac_func
17965
b4e70030 17966/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
17967#ifdef __cplusplus
17968extern "C"
b4e70030 17969{
a3828db0 17970#endif
b4e70030
JB
17971/* We use char because int might match the return type of a gcc2
17972 builtin and then its argument prototype would still apply. */
a3828db0
MK
17973char $ac_func ();
17974/* The GNU C library defines this for functions which it implements
17975 to always fail with ENOSYS. Some functions are actually named
17976 something starting with __ and the normal name is an alias. */
b4e70030 17977#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 17978choke me
b4e70030
JB
17979#else
17980char (*f) () = $ac_func;
17981#endif
17982#ifdef __cplusplus
17983}
a3828db0 17984#endif
97bf5e38 17985
bec39cab
AC
17986int
17987main ()
17988{
b4e70030 17989return f != $ac_func;
bec39cab
AC
17990 ;
17991 return 0;
17992}
17993_ACEOF
a3828db0
MK
17994rm -f conftest.$ac_objext conftest$ac_exeext
17995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17996 (eval $ac_link) 2>conftest.er1
bec39cab
AC
17997 ac_status=$?
17998 grep -v '^ *+' conftest.er1 >conftest.err
17999 rm -f conftest.er1
18000 cat conftest.err >&5
18001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002 (exit $ac_status); } &&
b4e70030
JB
18003 { ac_try='test -z "$ac_c_werror_flag"
18004 || test ! -s conftest.err'
bec39cab
AC
18005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18006 (eval $ac_try) 2>&5
18007 ac_status=$?
18008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18009 (exit $ac_status); }; } &&
a3828db0 18010 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
18011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18012 (eval $ac_try) 2>&5
18013 ac_status=$?
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); }; }; then
a3828db0 18016 eval "$as_ac_var=yes"
a4db0f07 18017else
bec39cab
AC
18018 echo "$as_me: failed program was:" >&5
18019sed 's/^/| /' conftest.$ac_ext >&5
18020
b4e70030 18021eval "$as_ac_var=no"
a4db0f07 18022fi
a3828db0
MK
18023rm -f conftest.err conftest.$ac_objext \
18024 conftest$ac_exeext conftest.$ac_ext
a4db0f07 18025fi
b4e70030
JB
18026echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18027echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
18028if test `eval echo '${'$as_ac_var'}'` = yes; then
18029 cat >>confdefs.h <<_ACEOF
18030#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 18031_ACEOF
a4db0f07
RH
18032
18033fi
a3828db0 18034done
c906108c 18035
06825bd1 18036
a3828db0
MK
18037# Check the return and argument types of ptrace. No canned test for
18038# this, so roll our own.
18039gdb_ptrace_headers='
18040#if HAVE_SYS_TYPES_H
18041# include <sys/types.h>
18042#endif
18043#if HAVE_SYS_PTRACE_H
18044# include <sys/ptrace.h>
18045#endif
18046#if HAVE_UNISTD_H
18047# include <unistd.h>
18048#endif
18049'
18050# There is no point in checking if we don't have a prototype.
b4e70030
JB
18051echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
18052echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
a3828db0 18053if test "${ac_cv_have_decl_ptrace+set}" = set; then
bec39cab
AC
18054 echo $ECHO_N "(cached) $ECHO_C" >&6
18055else
18056 cat >conftest.$ac_ext <<_ACEOF
18057/* confdefs.h. */
18058_ACEOF
18059cat confdefs.h >>conftest.$ac_ext
18060cat >>conftest.$ac_ext <<_ACEOF
18061/* end confdefs.h. */
a3828db0
MK
18062$gdb_ptrace_headers
18063
bec39cab
AC
18064int
18065main ()
18066{
a3828db0
MK
18067#ifndef ptrace
18068 char *p = (char *) ptrace;
06825bd1 18069#endif
a3828db0 18070
bec39cab
AC
18071 ;
18072 return 0;
18073}
18074_ACEOF
18075rm -f conftest.$ac_objext
18076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18077 (eval $ac_compile) 2>conftest.er1
18078 ac_status=$?
18079 grep -v '^ *+' conftest.er1 >conftest.err
18080 rm -f conftest.er1
18081 cat conftest.err >&5
18082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083 (exit $ac_status); } &&
b4e70030
JB
18084 { ac_try='test -z "$ac_c_werror_flag"
18085 || test ! -s conftest.err'
bec39cab
AC
18086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18087 (eval $ac_try) 2>&5
18088 ac_status=$?
18089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18090 (exit $ac_status); }; } &&
18091 { ac_try='test -s conftest.$ac_objext'
18092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18093 (eval $ac_try) 2>&5
18094 ac_status=$?
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); }; }; then
a3828db0 18097 ac_cv_have_decl_ptrace=yes
06825bd1 18098else
bec39cab
AC
18099 echo "$as_me: failed program was:" >&5
18100sed 's/^/| /' conftest.$ac_ext >&5
18101
b4e70030 18102ac_cv_have_decl_ptrace=no
06825bd1 18103fi
bec39cab 18104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
06825bd1 18105fi
b4e70030
JB
18106echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
18107echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
a3828db0 18108if test $ac_cv_have_decl_ptrace = yes; then
06825bd1 18109
a3828db0
MK
18110cat >>confdefs.h <<_ACEOF
18111#define HAVE_DECL_PTRACE 1
18112_ACEOF
bec39cab 18113
bec39cab 18114
a3828db0
MK
18115else
18116 cat >>confdefs.h <<_ACEOF
18117#define HAVE_DECL_PTRACE 0
bec39cab 18118_ACEOF
06825bd1 18119
a3828db0
MK
18120
18121 : ${gdb_cv_func_ptrace_ret='int'}
18122 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
18123
06825bd1
MK
18124fi
18125
a3828db0
MK
18126
18127# Check return type.
b4e70030
JB
18128echo "$as_me:$LINENO: checking return type of ptrace" >&5
18129echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
a3828db0 18130if test "${gdb_cv_func_ptrace_ret+set}" = set; then
bec39cab
AC
18131 echo $ECHO_N "(cached) $ECHO_C" >&6
18132else
18133 cat >conftest.$ac_ext <<_ACEOF
18134/* confdefs.h. */
18135_ACEOF
18136cat confdefs.h >>conftest.$ac_ext
18137cat >>conftest.$ac_ext <<_ACEOF
18138/* end confdefs.h. */
a3828db0 18139$gdb_ptrace_headers
bec39cab
AC
18140int
18141main ()
18142{
a3828db0 18143extern int ptrace ();
bec39cab
AC
18144 ;
18145 return 0;
18146}
18147_ACEOF
18148rm -f conftest.$ac_objext
18149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18150 (eval $ac_compile) 2>conftest.er1
18151 ac_status=$?
18152 grep -v '^ *+' conftest.er1 >conftest.err
18153 rm -f conftest.er1
18154 cat conftest.err >&5
18155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156 (exit $ac_status); } &&
b4e70030
JB
18157 { ac_try='test -z "$ac_c_werror_flag"
18158 || test ! -s conftest.err'
bec39cab
AC
18159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18160 (eval $ac_try) 2>&5
18161 ac_status=$?
18162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18163 (exit $ac_status); }; } &&
18164 { ac_try='test -s conftest.$ac_objext'
18165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18166 (eval $ac_try) 2>&5
18167 ac_status=$?
18168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18169 (exit $ac_status); }; }; then
a3828db0 18170 gdb_cv_func_ptrace_ret='int'
70f9f479 18171else
bec39cab
AC
18172 echo "$as_me: failed program was:" >&5
18173sed 's/^/| /' conftest.$ac_ext >&5
18174
b4e70030 18175gdb_cv_func_ptrace_ret='long'
70f9f479 18176fi
bec39cab 18177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70f9f479 18178fi
b4e70030
JB
18179echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
18180echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
bec39cab 18181
a3828db0
MK
18182cat >>confdefs.h <<_ACEOF
18183#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
bec39cab 18184_ACEOF
70f9f479 18185
a3828db0 18186# Check argument types.
b4e70030
JB
18187echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
18188echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
a3828db0 18189if test "${gdb_cv_func_ptrace_args+set}" = set; then
bec39cab
AC
18190 echo $ECHO_N "(cached) $ECHO_C" >&6
18191else
a3828db0
MK
18192
18193for gdb_arg1 in 'int' 'long'; do
18194 for gdb_arg2 in 'pid_t' 'int' 'long'; do
18195 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
18196 for gdb_arg4 in 'int' 'long'; do
18197 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
18198/* confdefs.h. */
18199_ACEOF
18200cat confdefs.h >>conftest.$ac_ext
18201cat >>conftest.$ac_ext <<_ACEOF
18202/* end confdefs.h. */
a3828db0 18203$gdb_ptrace_headers
bec39cab
AC
18204int
18205main ()
18206{
a3828db0
MK
18207
18208extern $gdb_cv_func_ptrace_ret
18209 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
18210
bec39cab
AC
18211 ;
18212 return 0;
18213}
18214_ACEOF
18215rm -f conftest.$ac_objext
18216if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18217 (eval $ac_compile) 2>conftest.er1
18218 ac_status=$?
18219 grep -v '^ *+' conftest.er1 >conftest.err
18220 rm -f conftest.er1
18221 cat conftest.err >&5
18222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18223 (exit $ac_status); } &&
b4e70030
JB
18224 { ac_try='test -z "$ac_c_werror_flag"
18225 || test ! -s conftest.err'
bec39cab
AC
18226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18227 (eval $ac_try) 2>&5
18228 ac_status=$?
18229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); }; } &&
18231 { ac_try='test -s conftest.$ac_objext'
18232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18233 (eval $ac_try) 2>&5
18234 ac_status=$?
18235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236 (exit $ac_status); }; }; then
a3828db0
MK
18237 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
18238 break 4;
5c7f2947 18239else
bec39cab
AC
18240 echo "$as_me: failed program was:" >&5
18241sed 's/^/| /' conftest.$ac_ext >&5
18242
5c7f2947 18243fi
bec39cab 18244rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
18245 for gdb_arg5 in 'int *' 'int' 'long'; do
18246 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
18247/* confdefs.h. */
18248_ACEOF
18249cat confdefs.h >>conftest.$ac_ext
18250cat >>conftest.$ac_ext <<_ACEOF
18251/* end confdefs.h. */
a3828db0 18252$gdb_ptrace_headers
bec39cab
AC
18253int
18254main ()
18255{
a3828db0
MK
18256
18257extern $gdb_cv_func_ptrace_ret
18258 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
18259
bec39cab
AC
18260 ;
18261 return 0;
18262}
18263_ACEOF
18264rm -f conftest.$ac_objext
18265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18266 (eval $ac_compile) 2>conftest.er1
18267 ac_status=$?
18268 grep -v '^ *+' conftest.er1 >conftest.err
18269 rm -f conftest.er1
18270 cat conftest.err >&5
18271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18272 (exit $ac_status); } &&
b4e70030
JB
18273 { ac_try='test -z "$ac_c_werror_flag"
18274 || test ! -s conftest.err'
bec39cab
AC
18275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18276 (eval $ac_try) 2>&5
18277 ac_status=$?
18278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18279 (exit $ac_status); }; } &&
18280 { ac_try='test -s conftest.$ac_objext'
18281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18282 (eval $ac_try) 2>&5
18283 ac_status=$?
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); }; }; then
a3828db0
MK
18286
18287gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
18288 break 5;
78434e59 18289else
bec39cab
AC
18290 echo "$as_me: failed program was:" >&5
18291sed 's/^/| /' conftest.$ac_ext >&5
18292
78434e59 18293fi
bec39cab 18294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
18295 done
18296 done
18297 done
18298 done
18299done
18300# Provide a safe default value.
18301: ${gdb_cv_func_ptrace_args='int,int,long,long'}
18302
78434e59 18303fi
b4e70030
JB
18304echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
18305echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
a3828db0
MK
18306ac_save_IFS=$IFS; IFS=','
18307set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
18308IFS=$ac_save_IFS
18309shift
bec39cab 18310
a3828db0
MK
18311cat >>confdefs.h <<_ACEOF
18312#define PTRACE_TYPE_ARG3 $3
18313_ACEOF
18314
18315if test -n "$5"; then
18316
18317cat >>confdefs.h <<_ACEOF
18318#define PTRACE_TYPE_ARG5 $5
bec39cab 18319_ACEOF
78434e59
MK
18320
18321fi
18322
a3828db0 18323if test "$cross_compiling" = no; then
b4e70030
JB
18324 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
18325echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
a3828db0 18326if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 18327 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
18328else
18329 if test "$cross_compiling" = yes; then
18330 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
18331echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
18332 { (exit 1); exit 1; }; }
bec39cab
AC
18333else
18334 cat >conftest.$ac_ext <<_ACEOF
18335/* confdefs.h. */
18336_ACEOF
18337cat confdefs.h >>conftest.$ac_ext
18338cat >>conftest.$ac_ext <<_ACEOF
18339/* end confdefs.h. */
b4e70030
JB
18340#if HAVE_UNISTD_H
18341# include <unistd.h>
18342#endif
18343
bec39cab
AC
18344int
18345main ()
18346{
a3828db0
MK
18347/* If this system has a BSD-style setpgrp which takes arguments,
18348 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
18349 exit successfully. */
b4e70030 18350 exit (setpgrp (1,1) == -1 ? 0 : 1);
bec39cab
AC
18351 ;
18352 return 0;
18353}
18354_ACEOF
a3828db0
MK
18355rm -f conftest$ac_exeext
18356if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18357 (eval $ac_link) 2>&5
bec39cab
AC
18358 ac_status=$?
18359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 18360 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
18361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18362 (eval $ac_try) 2>&5
18363 ac_status=$?
18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365 (exit $ac_status); }; }; then
a3828db0 18366 ac_cv_func_setpgrp_void=no
c906108c 18367else
a3828db0
MK
18368 echo "$as_me: program exited with status $ac_status" >&5
18369echo "$as_me: failed program was:" >&5
bec39cab
AC
18370sed 's/^/| /' conftest.$ac_ext >&5
18371
a3828db0
MK
18372( exit $ac_status )
18373ac_cv_func_setpgrp_void=yes
c906108c 18374fi
b4e70030 18375rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 18376fi
a3828db0 18377fi
b4e70030
JB
18378echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
18379echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
a3828db0
MK
18380if test $ac_cv_func_setpgrp_void = yes; then
18381
18382cat >>confdefs.h <<\_ACEOF
18383#define SETPGRP_VOID 1
bec39cab 18384_ACEOF
97bf5e38
MK
18385
18386fi
a3828db0
MK
18387
18388else
b4e70030
JB
18389 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
18390echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
a3828db0 18391if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 18392 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 18393else
bec39cab
AC
18394 cat >conftest.$ac_ext <<_ACEOF
18395/* confdefs.h. */
18396_ACEOF
18397cat confdefs.h >>conftest.$ac_ext
18398cat >>conftest.$ac_ext <<_ACEOF
18399/* end confdefs.h. */
a3828db0
MK
18400
18401#include <unistd.h>
18402
bec39cab
AC
18403int
18404main ()
18405{
a3828db0
MK
18406
18407 if (setpgrp(1,1) == -1)
18408 exit (0);
18409 else
18410 exit (1);
18411
bec39cab
AC
18412 ;
18413 return 0;
18414}
18415_ACEOF
18416rm -f conftest.$ac_objext
18417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18418 (eval $ac_compile) 2>conftest.er1
18419 ac_status=$?
18420 grep -v '^ *+' conftest.er1 >conftest.err
18421 rm -f conftest.er1
18422 cat conftest.err >&5
18423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424 (exit $ac_status); } &&
b4e70030
JB
18425 { ac_try='test -z "$ac_c_werror_flag"
18426 || test ! -s conftest.err'
bec39cab
AC
18427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18428 (eval $ac_try) 2>&5
18429 ac_status=$?
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); }; } &&
18432 { ac_try='test -s conftest.$ac_objext'
18433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18434 (eval $ac_try) 2>&5
18435 ac_status=$?
18436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437 (exit $ac_status); }; }; then
a3828db0 18438 ac_cv_func_setpgrp_void=no
c906108c 18439else
bec39cab
AC
18440 echo "$as_me: failed program was:" >&5
18441sed 's/^/| /' conftest.$ac_ext >&5
18442
b4e70030 18443ac_cv_func_setpgrp_void=yes
c906108c 18444fi
bec39cab 18445rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18446fi
b4e70030
JB
18447echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
18448echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
a3828db0 18449if test $ac_cv_func_setpgrp_void = yes; then
bec39cab 18450 cat >>confdefs.h <<\_ACEOF
a3828db0 18451#define SETPGRP_VOID 1
bec39cab 18452_ACEOF
c3f6f71d 18453
a3828db0 18454fi
c906108c
SS
18455fi
18456
a3828db0
MK
18457# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
18458# since sigsetjmp might only be defined as a macro.
b4e70030
JB
18459echo "$as_me:$LINENO: checking for sigsetjmp" >&5
18460echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
a3828db0 18461if test "${gdb_cv_func_sigsetjmp+set}" = set; then
bec39cab
AC
18462 echo $ECHO_N "(cached) $ECHO_C" >&6
18463else
18464 cat >conftest.$ac_ext <<_ACEOF
18465/* confdefs.h. */
18466_ACEOF
18467cat confdefs.h >>conftest.$ac_ext
18468cat >>conftest.$ac_ext <<_ACEOF
18469/* end confdefs.h. */
a3828db0
MK
18470
18471#include <setjmp.h>
18472
bec39cab
AC
18473int
18474main ()
18475{
a3828db0 18476sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
bec39cab
AC
18477 ;
18478 return 0;
18479}
18480_ACEOF
18481rm -f conftest.$ac_objext
18482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18483 (eval $ac_compile) 2>conftest.er1
18484 ac_status=$?
18485 grep -v '^ *+' conftest.er1 >conftest.err
18486 rm -f conftest.er1
18487 cat conftest.err >&5
18488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489 (exit $ac_status); } &&
b4e70030
JB
18490 { ac_try='test -z "$ac_c_werror_flag"
18491 || test ! -s conftest.err'
bec39cab
AC
18492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18493 (eval $ac_try) 2>&5
18494 ac_status=$?
18495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18496 (exit $ac_status); }; } &&
18497 { ac_try='test -s conftest.$ac_objext'
18498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18499 (eval $ac_try) 2>&5
18500 ac_status=$?
18501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18502 (exit $ac_status); }; }; then
a3828db0 18503 gdb_cv_func_sigsetjmp=yes
c906108c 18504else
bec39cab
AC
18505 echo "$as_me: failed program was:" >&5
18506sed 's/^/| /' conftest.$ac_ext >&5
18507
b4e70030 18508gdb_cv_func_sigsetjmp=no
c906108c 18509fi
bec39cab 18510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18511fi
b4e70030
JB
18512echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
18513echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
a3828db0 18514if test $gdb_cv_func_sigsetjmp = yes; then
c906108c 18515
a3828db0
MK
18516cat >>confdefs.h <<\_ACEOF
18517#define HAVE_SIGSETJMP 1
bec39cab 18518_ACEOF
c906108c 18519
97bf5e38 18520fi
c906108c 18521
a3828db0
MK
18522# Assume we'll default to using the included libiberty regex.
18523gdb_use_included_regex=yes
18524
18525# However, if the system regex is GNU regex, then default to *not*
18526# using the included regex.
b4e70030
JB
18527echo "$as_me:$LINENO: checking for GNU regex" >&5
18528echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
a3828db0 18529if test "${gdb_cv_have_gnu_regex+set}" = set; then
bec39cab
AC
18530 echo $ECHO_N "(cached) $ECHO_C" >&6
18531else
18532 cat >conftest.$ac_ext <<_ACEOF
18533/* confdefs.h. */
18534_ACEOF
18535cat confdefs.h >>conftest.$ac_ext
18536cat >>conftest.$ac_ext <<_ACEOF
18537/* end confdefs.h. */
a3828db0 18538#include <gnu-versions.h>
bec39cab
AC
18539int
18540main ()
18541{
a3828db0
MK
18542#define REGEX_INTERFACE_VERSION 1
18543#if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
18544# error "Version mismatch"
18545#endif
bec39cab
AC
18546 ;
18547 return 0;
18548}
18549_ACEOF
18550rm -f conftest.$ac_objext
18551if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18552 (eval $ac_compile) 2>conftest.er1
18553 ac_status=$?
18554 grep -v '^ *+' conftest.er1 >conftest.err
18555 rm -f conftest.er1
18556 cat conftest.err >&5
18557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558 (exit $ac_status); } &&
b4e70030
JB
18559 { ac_try='test -z "$ac_c_werror_flag"
18560 || test ! -s conftest.err'
bec39cab
AC
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); }; } &&
18566 { ac_try='test -s conftest.$ac_objext'
18567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18568 (eval $ac_try) 2>&5
18569 ac_status=$?
18570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571 (exit $ac_status); }; }; then
a3828db0 18572 gdb_cv_have_gnu_regex=yes
c906108c 18573else
bec39cab
AC
18574 echo "$as_me: failed program was:" >&5
18575sed 's/^/| /' conftest.$ac_ext >&5
18576
b4e70030 18577gdb_cv_have_gnu_regex=no
c906108c 18578fi
bec39cab 18579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18580fi
b4e70030
JB
18581echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
18582echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
a3828db0
MK
18583if test $gdb_cv_have_gnu_regex = yes; then
18584 gdb_use_included_regex=no
18585fi
c906108c 18586
a3828db0 18587
b4e70030 18588# Check whether --with-included-regex or --without-included-regex was given.
a3828db0 18589if test "${with_included_regex+set}" = set; then
b4e70030
JB
18590 withval="$with_included_regex"
18591 gdb_with_regex=$withval
a3828db0
MK
18592else
18593 gdb_with_regex=$gdb_use_included_regex
b4e70030 18594fi;
a3828db0
MK
18595if test "$gdb_with_regex" = yes; then
18596
18597cat >>confdefs.h <<\_ACEOF
18598#define USE_INCLUDED_REGEX 1
bec39cab 18599_ACEOF
c906108c 18600
97bf5e38 18601fi
c906108c 18602
5c45e068 18603# Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
b4e70030
JB
18604echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
18605echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
5c45e068 18606if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
bec39cab
AC
18607 echo $ECHO_N "(cached) $ECHO_C" >&6
18608else
18609 cat >conftest.$ac_ext <<_ACEOF
18610/* confdefs.h. */
18611_ACEOF
18612cat confdefs.h >>conftest.$ac_ext
18613cat >>conftest.$ac_ext <<_ACEOF
18614/* end confdefs.h. */
a3828db0
MK
18615#include <sys/param.h>
18616#include <sys/proc.h>
5c45e068
MK
18617
18618
bec39cab
AC
18619int
18620main ()
18621{
5c45e068
MK
18622static struct thread ac_aggr;
18623if (ac_aggr.td_pcb)
18624return 0;
bec39cab
AC
18625 ;
18626 return 0;
18627}
18628_ACEOF
18629rm -f conftest.$ac_objext
18630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18631 (eval $ac_compile) 2>conftest.er1
18632 ac_status=$?
18633 grep -v '^ *+' conftest.er1 >conftest.err
18634 rm -f conftest.er1
18635 cat conftest.err >&5
18636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18637 (exit $ac_status); } &&
b4e70030
JB
18638 { ac_try='test -z "$ac_c_werror_flag"
18639 || test ! -s conftest.err'
bec39cab
AC
18640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18641 (eval $ac_try) 2>&5
18642 ac_status=$?
18643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644 (exit $ac_status); }; } &&
18645 { ac_try='test -s conftest.$ac_objext'
18646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18647 (eval $ac_try) 2>&5
18648 ac_status=$?
18649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18650 (exit $ac_status); }; }; then
5c45e068 18651 ac_cv_member_struct_thread_td_pcb=yes
c906108c 18652else
bec39cab
AC
18653 echo "$as_me: failed program was:" >&5
18654sed 's/^/| /' conftest.$ac_ext >&5
18655
b4e70030 18656cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
18657/* confdefs.h. */
18658_ACEOF
18659cat confdefs.h >>conftest.$ac_ext
18660cat >>conftest.$ac_ext <<_ACEOF
18661/* end confdefs.h. */
18662#include <sys/param.h>
18663#include <sys/proc.h>
18664
18665
18666int
18667main ()
18668{
18669static struct thread ac_aggr;
18670if (sizeof ac_aggr.td_pcb)
18671return 0;
18672 ;
18673 return 0;
18674}
18675_ACEOF
18676rm -f conftest.$ac_objext
18677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18678 (eval $ac_compile) 2>conftest.er1
18679 ac_status=$?
18680 grep -v '^ *+' conftest.er1 >conftest.err
18681 rm -f conftest.er1
18682 cat conftest.err >&5
18683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684 (exit $ac_status); } &&
b4e70030
JB
18685 { ac_try='test -z "$ac_c_werror_flag"
18686 || test ! -s conftest.err'
5c45e068
MK
18687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18688 (eval $ac_try) 2>&5
18689 ac_status=$?
18690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691 (exit $ac_status); }; } &&
18692 { ac_try='test -s conftest.$ac_objext'
18693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18694 (eval $ac_try) 2>&5
18695 ac_status=$?
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); }; }; then
18698 ac_cv_member_struct_thread_td_pcb=yes
18699else
18700 echo "$as_me: failed program was:" >&5
18701sed 's/^/| /' conftest.$ac_ext >&5
18702
b4e70030 18703ac_cv_member_struct_thread_td_pcb=no
5c45e068
MK
18704fi
18705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18706fi
bec39cab 18707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18708fi
b4e70030
JB
18709echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
18710echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
5c45e068 18711if test $ac_cv_member_struct_thread_td_pcb = yes; then
c906108c 18712
5c45e068 18713cat >>confdefs.h <<_ACEOF
a3828db0 18714#define HAVE_STRUCT_THREAD_TD_PCB 1
bec39cab 18715_ACEOF
c906108c 18716
5c45e068 18717
97bf5e38 18718fi
c906108c 18719
5c45e068 18720
a3828db0 18721# See if <sys/lwp.h> defines `struct lwp`.
b4e70030
JB
18722echo "$as_me:$LINENO: checking for struct lwp" >&5
18723echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
a3828db0 18724if test "${gdb_cv_struct_lwp+set}" = set; then
bec39cab
AC
18725 echo $ECHO_N "(cached) $ECHO_C" >&6
18726else
18727 cat >conftest.$ac_ext <<_ACEOF
18728/* confdefs.h. */
18729_ACEOF
18730cat confdefs.h >>conftest.$ac_ext
18731cat >>conftest.$ac_ext <<_ACEOF
18732/* end confdefs.h. */
a3828db0
MK
18733#include <sys/param.h>
18734#include <sys/lwp.h>
bec39cab
AC
18735int
18736main ()
18737{
a3828db0 18738struct lwp l;
bec39cab
AC
18739 ;
18740 return 0;
18741}
18742_ACEOF
18743rm -f conftest.$ac_objext
18744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18745 (eval $ac_compile) 2>conftest.er1
18746 ac_status=$?
18747 grep -v '^ *+' conftest.er1 >conftest.err
18748 rm -f conftest.er1
18749 cat conftest.err >&5
18750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751 (exit $ac_status); } &&
b4e70030
JB
18752 { ac_try='test -z "$ac_c_werror_flag"
18753 || test ! -s conftest.err'
bec39cab
AC
18754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18755 (eval $ac_try) 2>&5
18756 ac_status=$?
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); }; } &&
18759 { ac_try='test -s conftest.$ac_objext'
18760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18761 (eval $ac_try) 2>&5
18762 ac_status=$?
18763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764 (exit $ac_status); }; }; then
a3828db0 18765 gdb_cv_struct_lwp=yes
c906108c 18766else
bec39cab
AC
18767 echo "$as_me: failed program was:" >&5
18768sed 's/^/| /' conftest.$ac_ext >&5
18769
b4e70030 18770gdb_cv_struct_lwp=no
c906108c 18771fi
bec39cab 18772rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18773fi
b4e70030
JB
18774echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
18775echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
a3828db0 18776if test $gdb_cv_struct_lwp = yes; then
c906108c 18777
a3828db0
MK
18778cat >>confdefs.h <<\_ACEOF
18779#define HAVE_STRUCT_LWP 1
bec39cab 18780_ACEOF
c906108c 18781
97bf5e38 18782fi
c906108c 18783
a3828db0 18784# See if <machine/reg.h> degines `struct reg'.
b4e70030
JB
18785echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
18786echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
a3828db0 18787if test "${gdb_cv_struct_reg+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/types.h>
18797#include <machine/reg.h>
bec39cab
AC
18798int
18799main ()
18800{
a3828db0 18801struct reg r;
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_reg=yes
27ca5dad 18829else
bec39cab
AC
18830 echo "$as_me: failed program was:" >&5
18831sed 's/^/| /' conftest.$ac_ext >&5
18832
b4e70030 18833gdb_cv_struct_reg=no
27ca5dad 18834fi
bec39cab 18835rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27ca5dad 18836fi
b4e70030
JB
18837echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
18838echo "${ECHO_T}$gdb_cv_struct_reg" >&6
a3828db0 18839if test $gdb_cv_struct_reg = yes; then
bec39cab
AC
18840
18841cat >>confdefs.h <<\_ACEOF
a3828db0 18842#define HAVE_STRUCT_REG 1
bec39cab 18843_ACEOF
27ca5dad
MC
18844
18845fi
97bf5e38 18846
a3828db0
MK
18847# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
18848# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
b4e70030
JB
18849echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
18850echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
5c45e068 18851if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
bec39cab 18852 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 18853else
bec39cab
AC
18854 cat >conftest.$ac_ext <<_ACEOF
18855/* confdefs.h. */
18856_ACEOF
18857cat confdefs.h >>conftest.$ac_ext
18858cat >>conftest.$ac_ext <<_ACEOF
18859/* end confdefs.h. */
a3828db0 18860#include <machine/reg.h>
5c45e068
MK
18861
18862int
18863main ()
18864{
18865static struct reg ac_aggr;
18866if (ac_aggr.r_fs)
18867return 0;
18868 ;
18869 return 0;
18870}
18871_ACEOF
18872rm -f conftest.$ac_objext
18873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18874 (eval $ac_compile) 2>conftest.er1
18875 ac_status=$?
18876 grep -v '^ *+' conftest.er1 >conftest.err
18877 rm -f conftest.er1
18878 cat conftest.err >&5
18879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); } &&
b4e70030
JB
18881 { ac_try='test -z "$ac_c_werror_flag"
18882 || test ! -s conftest.err'
5c45e068
MK
18883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18884 (eval $ac_try) 2>&5
18885 ac_status=$?
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); }; } &&
18888 { ac_try='test -s conftest.$ac_objext'
18889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18890 (eval $ac_try) 2>&5
18891 ac_status=$?
18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); }; }; then
18894 ac_cv_member_struct_reg_r_fs=yes
18895else
18896 echo "$as_me: failed program was:" >&5
18897sed 's/^/| /' conftest.$ac_ext >&5
18898
b4e70030 18899cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
18900/* confdefs.h. */
18901_ACEOF
18902cat confdefs.h >>conftest.$ac_ext
18903cat >>conftest.$ac_ext <<_ACEOF
18904/* end confdefs.h. */
18905#include <machine/reg.h>
18906
bec39cab
AC
18907int
18908main ()
18909{
5c45e068
MK
18910static struct reg ac_aggr;
18911if (sizeof ac_aggr.r_fs)
18912return 0;
bec39cab
AC
18913 ;
18914 return 0;
18915}
18916_ACEOF
18917rm -f conftest.$ac_objext
18918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18919 (eval $ac_compile) 2>conftest.er1
18920 ac_status=$?
18921 grep -v '^ *+' conftest.er1 >conftest.err
18922 rm -f conftest.er1
18923 cat conftest.err >&5
18924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925 (exit $ac_status); } &&
b4e70030
JB
18926 { ac_try='test -z "$ac_c_werror_flag"
18927 || test ! -s conftest.err'
bec39cab
AC
18928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18929 (eval $ac_try) 2>&5
18930 ac_status=$?
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); }; } &&
18933 { ac_try='test -s conftest.$ac_objext'
18934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18935 (eval $ac_try) 2>&5
18936 ac_status=$?
18937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938 (exit $ac_status); }; }; then
5c45e068 18939 ac_cv_member_struct_reg_r_fs=yes
3862412b 18940else
bec39cab
AC
18941 echo "$as_me: failed program was:" >&5
18942sed 's/^/| /' conftest.$ac_ext >&5
18943
b4e70030 18944ac_cv_member_struct_reg_r_fs=no
3862412b 18945fi
bec39cab 18946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 18947fi
5c45e068
MK
18948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18949fi
b4e70030
JB
18950echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
18951echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
5c45e068
MK
18952if test $ac_cv_member_struct_reg_r_fs = yes; then
18953
18954cat >>confdefs.h <<_ACEOF
a3828db0 18955#define HAVE_STRUCT_REG_R_FS 1
bec39cab 18956_ACEOF
3862412b 18957
5c45e068 18958
97bf5e38 18959fi
b4e70030
JB
18960echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
18961echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
5c45e068 18962if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
bec39cab 18963 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 18964else
bec39cab
AC
18965 cat >conftest.$ac_ext <<_ACEOF
18966/* confdefs.h. */
18967_ACEOF
18968cat confdefs.h >>conftest.$ac_ext
18969cat >>conftest.$ac_ext <<_ACEOF
18970/* end confdefs.h. */
a3828db0 18971#include <machine/reg.h>
5c45e068 18972
bec39cab
AC
18973int
18974main ()
18975{
5c45e068
MK
18976static struct reg ac_aggr;
18977if (ac_aggr.r_gs)
18978return 0;
bec39cab
AC
18979 ;
18980 return 0;
18981}
18982_ACEOF
18983rm -f conftest.$ac_objext
18984if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18985 (eval $ac_compile) 2>conftest.er1
18986 ac_status=$?
18987 grep -v '^ *+' conftest.er1 >conftest.err
18988 rm -f conftest.er1
18989 cat conftest.err >&5
18990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991 (exit $ac_status); } &&
b4e70030
JB
18992 { ac_try='test -z "$ac_c_werror_flag"
18993 || test ! -s conftest.err'
bec39cab
AC
18994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18995 (eval $ac_try) 2>&5
18996 ac_status=$?
18997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18998 (exit $ac_status); }; } &&
18999 { ac_try='test -s conftest.$ac_objext'
19000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19001 (eval $ac_try) 2>&5
19002 ac_status=$?
19003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004 (exit $ac_status); }; }; then
5c45e068 19005 ac_cv_member_struct_reg_r_gs=yes
3862412b 19006else
bec39cab
AC
19007 echo "$as_me: failed program was:" >&5
19008sed 's/^/| /' conftest.$ac_ext >&5
19009
b4e70030 19010cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
19011/* confdefs.h. */
19012_ACEOF
19013cat confdefs.h >>conftest.$ac_ext
19014cat >>conftest.$ac_ext <<_ACEOF
19015/* end confdefs.h. */
19016#include <machine/reg.h>
19017
19018int
19019main ()
19020{
19021static struct reg ac_aggr;
19022if (sizeof ac_aggr.r_gs)
19023return 0;
19024 ;
19025 return 0;
19026}
19027_ACEOF
19028rm -f conftest.$ac_objext
19029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19030 (eval $ac_compile) 2>conftest.er1
19031 ac_status=$?
19032 grep -v '^ *+' conftest.er1 >conftest.err
19033 rm -f conftest.er1
19034 cat conftest.err >&5
19035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036 (exit $ac_status); } &&
b4e70030
JB
19037 { ac_try='test -z "$ac_c_werror_flag"
19038 || test ! -s conftest.err'
5c45e068
MK
19039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19040 (eval $ac_try) 2>&5
19041 ac_status=$?
19042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043 (exit $ac_status); }; } &&
19044 { ac_try='test -s conftest.$ac_objext'
19045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19046 (eval $ac_try) 2>&5
19047 ac_status=$?
19048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049 (exit $ac_status); }; }; then
19050 ac_cv_member_struct_reg_r_gs=yes
19051else
19052 echo "$as_me: failed program was:" >&5
19053sed 's/^/| /' conftest.$ac_ext >&5
19054
b4e70030 19055ac_cv_member_struct_reg_r_gs=no
3862412b 19056fi
bec39cab 19057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 19058fi
5c45e068
MK
19059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19060fi
b4e70030
JB
19061echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
19062echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
5c45e068
MK
19063if test $ac_cv_member_struct_reg_r_gs = yes; then
19064
19065cat >>confdefs.h <<_ACEOF
a3828db0 19066#define HAVE_STRUCT_REG_R_GS 1
bec39cab 19067_ACEOF
3862412b 19068
5c45e068 19069
97bf5e38 19070fi
3862412b 19071
5c45e068 19072
a3828db0 19073# See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
b4e70030
JB
19074echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
19075echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
a3828db0 19076if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
bec39cab 19077 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 19078else
bec39cab
AC
19079 cat >conftest.$ac_ext <<_ACEOF
19080/* confdefs.h. */
19081_ACEOF
19082cat confdefs.h >>conftest.$ac_ext
19083cat >>conftest.$ac_ext <<_ACEOF
19084/* end confdefs.h. */
a3828db0 19085#include <sys/ptrace.h>
bec39cab
AC
19086int
19087main ()
19088{
a3828db0 19089PTRACE_GETREGS;
bec39cab
AC
19090 ;
19091 return 0;
19092}
19093_ACEOF
19094rm -f conftest.$ac_objext
19095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19096 (eval $ac_compile) 2>conftest.er1
19097 ac_status=$?
19098 grep -v '^ *+' conftest.er1 >conftest.err
19099 rm -f conftest.er1
19100 cat conftest.err >&5
19101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102 (exit $ac_status); } &&
b4e70030
JB
19103 { ac_try='test -z "$ac_c_werror_flag"
19104 || test ! -s conftest.err'
bec39cab
AC
19105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19106 (eval $ac_try) 2>&5
19107 ac_status=$?
19108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109 (exit $ac_status); }; } &&
19110 { ac_try='test -s conftest.$ac_objext'
19111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19112 (eval $ac_try) 2>&5
19113 ac_status=$?
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); }; }; then
a3828db0 19116 gdb_cv_have_ptrace_getregs=yes
451928c5 19117else
bec39cab
AC
19118 echo "$as_me: failed program was:" >&5
19119sed 's/^/| /' conftest.$ac_ext >&5
19120
b4e70030 19121gdb_cv_have_ptrace_getregs=no
451928c5 19122fi
bec39cab 19123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
19124fi
19125
b4e70030
JB
19126echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
19127echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
a3828db0 19128if test $gdb_cv_have_ptrace_getregs = yes; then
60ca704f
SE
19129
19130cat >>confdefs.h <<\_ACEOF
a3828db0 19131#define HAVE_PTRACE_GETREGS 1
bec39cab 19132_ACEOF
451928c5 19133
97bf5e38 19134fi
451928c5 19135
a3828db0 19136# See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
b4e70030
JB
19137echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
19138echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
a3828db0 19139if test "${gdb_cv_have_ptrace_getfpxregs+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_GETFPXREGS;
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_getfpxregs=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_getfpxregs=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_getfpxregs" >&5
19190echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
a3828db0 19191if test $gdb_cv_have_ptrace_getfpxregs = yes; then
60ca704f
SE
19192
19193cat >>confdefs.h <<\_ACEOF
a3828db0 19194#define HAVE_PTRACE_GETFPXREGS 1
bec39cab 19195_ACEOF
451928c5 19196
97bf5e38 19197fi
451928c5 19198
a3828db0 19199# See if <sys/ptrace.h> provides the PT_GETDBREGS request.
b4e70030
JB
19200echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
19201echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
a3828db0 19202if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
bec39cab 19203 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 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
MK
19211#include <sys/types.h>
19212#include <sys/ptrace.h>
bec39cab
AC
19213int
19214main ()
19215{
a3828db0 19216PT_GETDBREGS;
bec39cab
AC
19217 ;
19218 return 0;
19219}
19220_ACEOF
19221rm -f conftest.$ac_objext
19222if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19223 (eval $ac_compile) 2>conftest.er1
19224 ac_status=$?
19225 grep -v '^ *+' conftest.er1 >conftest.err
19226 rm -f conftest.er1
19227 cat conftest.err >&5
19228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19229 (exit $ac_status); } &&
b4e70030
JB
19230 { ac_try='test -z "$ac_c_werror_flag"
19231 || test ! -s conftest.err'
bec39cab
AC
19232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19233 (eval $ac_try) 2>&5
19234 ac_status=$?
19235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236 (exit $ac_status); }; } &&
19237 { ac_try='test -s conftest.$ac_objext'
19238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19239 (eval $ac_try) 2>&5
19240 ac_status=$?
19241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242 (exit $ac_status); }; }; then
a3828db0 19243 gdb_cv_have_pt_getdbregs=yes
3862412b 19244else
bec39cab
AC
19245 echo "$as_me: failed program was:" >&5
19246sed 's/^/| /' conftest.$ac_ext >&5
19247
b4e70030 19248gdb_cv_have_pt_getdbregs=no
3862412b 19249fi
bec39cab 19250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
19251fi
19252
b4e70030
JB
19253echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
19254echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
a3828db0 19255if test $gdb_cv_have_pt_getdbregs = yes; then
60ca704f
SE
19256
19257cat >>confdefs.h <<\_ACEOF
a3828db0 19258#define HAVE_PT_GETDBREGS 1
bec39cab 19259_ACEOF
3862412b 19260
97bf5e38 19261fi
3862412b 19262
a3828db0 19263# See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
b4e70030
JB
19264echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
19265echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
a3828db0 19266if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
bec39cab 19267 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 19268else
bec39cab
AC
19269 cat >conftest.$ac_ext <<_ACEOF
19270/* confdefs.h. */
19271_ACEOF
19272cat confdefs.h >>conftest.$ac_ext
19273cat >>conftest.$ac_ext <<_ACEOF
19274/* end confdefs.h. */
a3828db0
MK
19275#include <sys/types.h>
19276#include <sys/ptrace.h>
bec39cab
AC
19277int
19278main ()
19279{
a3828db0 19280PT_GETXMMREGS;
bec39cab
AC
19281 ;
19282 return 0;
19283}
19284_ACEOF
19285rm -f conftest.$ac_objext
19286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19287 (eval $ac_compile) 2>conftest.er1
19288 ac_status=$?
19289 grep -v '^ *+' conftest.er1 >conftest.err
19290 rm -f conftest.er1
19291 cat conftest.err >&5
19292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293 (exit $ac_status); } &&
b4e70030
JB
19294 { ac_try='test -z "$ac_c_werror_flag"
19295 || test ! -s conftest.err'
bec39cab
AC
19296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19297 (eval $ac_try) 2>&5
19298 ac_status=$?
19299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300 (exit $ac_status); }; } &&
19301 { ac_try='test -s conftest.$ac_objext'
19302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19303 (eval $ac_try) 2>&5
19304 ac_status=$?
19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306 (exit $ac_status); }; }; then
a3828db0 19307 gdb_cv_have_pt_getxmmregs=yes
3862412b 19308else
bec39cab
AC
19309 echo "$as_me: failed program was:" >&5
19310sed 's/^/| /' conftest.$ac_ext >&5
19311
b4e70030 19312gdb_cv_have_pt_getxmmregs=no
3862412b 19313fi
bec39cab 19314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
19315fi
19316
b4e70030
JB
19317echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
19318echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
a3828db0 19319if test $gdb_cv_have_pt_getxmmregs = yes; then
60ca704f
SE
19320
19321cat >>confdefs.h <<\_ACEOF
a3828db0 19322#define HAVE_PT_GETXMMREGS 1
bec39cab 19323_ACEOF
3862412b 19324
97bf5e38 19325fi
3862412b 19326
eb368090 19327# Detect which type of /proc is in use, such as for Unixware or Solaris.
97bf5e38
MK
19328
19329if test "${target}" = "${host}"; then
19330 case "${host}" in
97bf5e38 19331 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
60ca704f
SE
19332
19333cat >>confdefs.h <<\_ACEOF
97bf5e38 19334#define NEW_PROC_API 1
bec39cab 19335_ACEOF
97bf5e38
MK
19336
19337 ;;
0bbc026e 19338 *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
60ca704f
SE
19339
19340cat >>confdefs.h <<\_ACEOF
97bf5e38 19341#define NEW_PROC_API 1
bec39cab 19342_ACEOF
c960c18f
AC
19343
19344 ;;
19345 mips-sgi-irix5*)
19346 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
60ca704f
SE
19347
19348cat >>confdefs.h <<\_ACEOF
c960c18f 19349#define _KMEMUSER 1
bec39cab 19350_ACEOF
97bf5e38
MK
19351
19352 ;;
19353 esac
19354fi
19355
19356if test "$ac_cv_header_sys_procfs_h" = yes; then
b4e70030
JB
19357 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
19358echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19359 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
19360 echo $ECHO_N "(cached) $ECHO_C" >&6
19361else
19362 cat >conftest.$ac_ext <<_ACEOF
19363/* confdefs.h. */
19364_ACEOF
19365cat confdefs.h >>conftest.$ac_ext
19366cat >>conftest.$ac_ext <<_ACEOF
19367/* end confdefs.h. */
596c9d4b
KB
19368
19369#define _SYSCALL32
19370#include <sys/procfs.h>
bec39cab
AC
19371int
19372main ()
19373{
97bf5e38 19374pstatus_t avar
bec39cab
AC
19375 ;
19376 return 0;
19377}
19378_ACEOF
19379rm -f conftest.$ac_objext
19380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19381 (eval $ac_compile) 2>conftest.er1
19382 ac_status=$?
19383 grep -v '^ *+' conftest.er1 >conftest.err
19384 rm -f conftest.er1
19385 cat conftest.err >&5
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); } &&
b4e70030
JB
19388 { ac_try='test -z "$ac_c_werror_flag"
19389 || test ! -s conftest.err'
bec39cab
AC
19390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19391 (eval $ac_try) 2>&5
19392 ac_status=$?
19393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19394 (exit $ac_status); }; } &&
19395 { ac_try='test -s conftest.$ac_objext'
19396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19397 (eval $ac_try) 2>&5
19398 ac_status=$?
19399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400 (exit $ac_status); }; }; then
97bf5e38 19401 bfd_cv_have_sys_procfs_type_pstatus_t=yes
596c9d4b 19402else
bec39cab
AC
19403 echo "$as_me: failed program was:" >&5
19404sed 's/^/| /' conftest.$ac_ext >&5
19405
b4e70030 19406bfd_cv_have_sys_procfs_type_pstatus_t=no
bec39cab 19407
596c9d4b 19408fi
bec39cab 19409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
19410fi
19411
97bf5e38 19412 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
bec39cab
AC
19413
19414cat >>confdefs.h <<\_ACEOF
97bf5e38 19415#define HAVE_PSTATUS_T 1
bec39cab 19416_ACEOF
596c9d4b
KB
19417
19418 fi
b4e70030
JB
19419 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
19420echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
596c9d4b 19421
b4e70030
JB
19422 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
19423echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19424 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
19425 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 19426else
bec39cab
AC
19427 cat >conftest.$ac_ext <<_ACEOF
19428/* confdefs.h. */
19429_ACEOF
19430cat confdefs.h >>conftest.$ac_ext
19431cat >>conftest.$ac_ext <<_ACEOF
19432/* end confdefs.h. */
596c9d4b
KB
19433
19434#define _SYSCALL32
19435#include <sys/procfs.h>
bec39cab
AC
19436int
19437main ()
19438{
97bf5e38 19439prrun_t avar
bec39cab
AC
19440 ;
19441 return 0;
19442}
19443_ACEOF
19444rm -f conftest.$ac_objext
19445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19446 (eval $ac_compile) 2>conftest.er1
19447 ac_status=$?
19448 grep -v '^ *+' conftest.er1 >conftest.err
19449 rm -f conftest.er1
19450 cat conftest.err >&5
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); } &&
b4e70030
JB
19453 { ac_try='test -z "$ac_c_werror_flag"
19454 || test ! -s conftest.err'
bec39cab
AC
19455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19456 (eval $ac_try) 2>&5
19457 ac_status=$?
19458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459 (exit $ac_status); }; } &&
19460 { ac_try='test -s conftest.$ac_objext'
19461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19462 (eval $ac_try) 2>&5
19463 ac_status=$?
19464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); }; }; then
97bf5e38 19466 bfd_cv_have_sys_procfs_type_prrun_t=yes
596c9d4b 19467else
bec39cab
AC
19468 echo "$as_me: failed program was:" >&5
19469sed 's/^/| /' conftest.$ac_ext >&5
19470
b4e70030 19471bfd_cv_have_sys_procfs_type_prrun_t=no
bec39cab 19472
596c9d4b 19473fi
bec39cab 19474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
19475fi
19476
97bf5e38 19477 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
bec39cab
AC
19478
19479cat >>confdefs.h <<\_ACEOF
97bf5e38 19480#define HAVE_PRRUN_T 1
bec39cab 19481_ACEOF
596c9d4b
KB
19482
19483 fi
b4e70030
JB
19484 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
19485echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
596c9d4b 19486
b4e70030
JB
19487 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
19488echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19489 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
19490 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 19491else
bec39cab
AC
19492 cat >conftest.$ac_ext <<_ACEOF
19493/* confdefs.h. */
19494_ACEOF
19495cat confdefs.h >>conftest.$ac_ext
19496cat >>conftest.$ac_ext <<_ACEOF
19497/* end confdefs.h. */
596c9d4b
KB
19498
19499#define _SYSCALL32
19500#include <sys/procfs.h>
bec39cab
AC
19501int
19502main ()
19503{
97bf5e38 19504gregset_t avar
bec39cab
AC
19505 ;
19506 return 0;
19507}
19508_ACEOF
19509rm -f conftest.$ac_objext
19510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19511 (eval $ac_compile) 2>conftest.er1
19512 ac_status=$?
19513 grep -v '^ *+' conftest.er1 >conftest.err
19514 rm -f conftest.er1
19515 cat conftest.err >&5
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); } &&
b4e70030
JB
19518 { ac_try='test -z "$ac_c_werror_flag"
19519 || test ! -s conftest.err'
bec39cab
AC
19520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19521 (eval $ac_try) 2>&5
19522 ac_status=$?
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); }; } &&
19525 { ac_try='test -s conftest.$ac_objext'
19526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19527 (eval $ac_try) 2>&5
19528 ac_status=$?
19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); }; }; then
97bf5e38 19531 bfd_cv_have_sys_procfs_type_gregset_t=yes
596c9d4b 19532else
bec39cab
AC
19533 echo "$as_me: failed program was:" >&5
19534sed 's/^/| /' conftest.$ac_ext >&5
19535
b4e70030 19536bfd_cv_have_sys_procfs_type_gregset_t=no
bec39cab 19537
596c9d4b 19538fi
bec39cab 19539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
19540fi
19541
97bf5e38 19542 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
bec39cab
AC
19543
19544cat >>confdefs.h <<\_ACEOF
97bf5e38 19545#define HAVE_GREGSET_T 1
bec39cab 19546_ACEOF
596c9d4b
KB
19547
19548 fi
b4e70030
JB
19549 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
19550echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
451928c5 19551
b4e70030
JB
19552 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
19553echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19554 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
19555 echo $ECHO_N "(cached) $ECHO_C" >&6
d84dd0c5 19556else
bec39cab
AC
19557 cat >conftest.$ac_ext <<_ACEOF
19558/* confdefs.h. */
19559_ACEOF
19560cat confdefs.h >>conftest.$ac_ext
19561cat >>conftest.$ac_ext <<_ACEOF
19562/* end confdefs.h. */
97bf5e38
MK
19563
19564#define _SYSCALL32
d84dd0c5 19565#include <sys/procfs.h>
bec39cab
AC
19566int
19567main ()
19568{
97bf5e38 19569fpregset_t avar
bec39cab
AC
19570 ;
19571 return 0;
19572}
19573_ACEOF
19574rm -f conftest.$ac_objext
19575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19576 (eval $ac_compile) 2>conftest.er1
19577 ac_status=$?
19578 grep -v '^ *+' conftest.er1 >conftest.err
19579 rm -f conftest.er1
19580 cat conftest.err >&5
19581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19582 (exit $ac_status); } &&
b4e70030
JB
19583 { ac_try='test -z "$ac_c_werror_flag"
19584 || test ! -s conftest.err'
bec39cab
AC
19585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19586 (eval $ac_try) 2>&5
19587 ac_status=$?
19588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); }; } &&
19590 { ac_try='test -s conftest.$ac_objext'
19591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19592 (eval $ac_try) 2>&5
19593 ac_status=$?
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); }; }; then
97bf5e38 19596 bfd_cv_have_sys_procfs_type_fpregset_t=yes
d84dd0c5 19597else
bec39cab
AC
19598 echo "$as_me: failed program was:" >&5
19599sed 's/^/| /' conftest.$ac_ext >&5
19600
b4e70030 19601bfd_cv_have_sys_procfs_type_fpregset_t=no
bec39cab 19602
d84dd0c5 19603fi
bec39cab 19604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d84dd0c5
MK
19605fi
19606
97bf5e38 19607 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
bec39cab
AC
19608
19609cat >>confdefs.h <<\_ACEOF
97bf5e38 19610#define HAVE_FPREGSET_T 1
bec39cab 19611_ACEOF
d84dd0c5 19612
97bf5e38 19613 fi
b4e70030
JB
19614 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
19615echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
d84dd0c5 19616
b4e70030
JB
19617 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
19618echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19619 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
19620 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19621else
bec39cab
AC
19622 cat >conftest.$ac_ext <<_ACEOF
19623/* confdefs.h. */
19624_ACEOF
19625cat confdefs.h >>conftest.$ac_ext
19626cat >>conftest.$ac_ext <<_ACEOF
19627/* end confdefs.h. */
c906108c 19628
97bf5e38
MK
19629#define _SYSCALL32
19630#include <sys/procfs.h>
bec39cab
AC
19631int
19632main ()
19633{
97bf5e38 19634prgregset_t avar
bec39cab
AC
19635 ;
19636 return 0;
19637}
19638_ACEOF
19639rm -f conftest.$ac_objext
19640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19641 (eval $ac_compile) 2>conftest.er1
19642 ac_status=$?
19643 grep -v '^ *+' conftest.er1 >conftest.err
19644 rm -f conftest.er1
19645 cat conftest.err >&5
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); } &&
b4e70030
JB
19648 { ac_try='test -z "$ac_c_werror_flag"
19649 || test ! -s conftest.err'
bec39cab
AC
19650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19651 (eval $ac_try) 2>&5
19652 ac_status=$?
19653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654 (exit $ac_status); }; } &&
19655 { ac_try='test -s conftest.$ac_objext'
19656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19657 (eval $ac_try) 2>&5
19658 ac_status=$?
19659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660 (exit $ac_status); }; }; then
97bf5e38 19661 bfd_cv_have_sys_procfs_type_prgregset_t=yes
c906108c 19662else
bec39cab
AC
19663 echo "$as_me: failed program was:" >&5
19664sed 's/^/| /' conftest.$ac_ext >&5
19665
b4e70030 19666bfd_cv_have_sys_procfs_type_prgregset_t=no
bec39cab 19667
c906108c 19668fi
bec39cab 19669rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
19670fi
19671
97bf5e38 19672 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
bec39cab
AC
19673
19674cat >>confdefs.h <<\_ACEOF
97bf5e38 19675#define HAVE_PRGREGSET_T 1
bec39cab 19676_ACEOF
c906108c 19677
97bf5e38 19678 fi
b4e70030
JB
19679 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
19680echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
c906108c 19681
b4e70030
JB
19682 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
19683echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19684 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
19685 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 19686else
bec39cab
AC
19687 cat >conftest.$ac_ext <<_ACEOF
19688/* confdefs.h. */
19689_ACEOF
19690cat confdefs.h >>conftest.$ac_ext
19691cat >>conftest.$ac_ext <<_ACEOF
19692/* end confdefs.h. */
97bf5e38
MK
19693
19694#define _SYSCALL32
19695#include <sys/procfs.h>
bec39cab
AC
19696int
19697main ()
19698{
97bf5e38 19699prfpregset_t avar
bec39cab
AC
19700 ;
19701 return 0;
19702}
19703_ACEOF
19704rm -f conftest.$ac_objext
19705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19706 (eval $ac_compile) 2>conftest.er1
19707 ac_status=$?
19708 grep -v '^ *+' conftest.er1 >conftest.err
19709 rm -f conftest.er1
19710 cat conftest.err >&5
19711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19712 (exit $ac_status); } &&
b4e70030
JB
19713 { ac_try='test -z "$ac_c_werror_flag"
19714 || test ! -s conftest.err'
bec39cab
AC
19715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19716 (eval $ac_try) 2>&5
19717 ac_status=$?
19718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719 (exit $ac_status); }; } &&
19720 { ac_try='test -s conftest.$ac_objext'
19721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19722 (eval $ac_try) 2>&5
19723 ac_status=$?
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); }; }; then
97bf5e38 19726 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
d45fe813 19727else
bec39cab
AC
19728 echo "$as_me: failed program was:" >&5
19729sed 's/^/| /' conftest.$ac_ext >&5
19730
b4e70030 19731bfd_cv_have_sys_procfs_type_prfpregset_t=no
bec39cab 19732
d45fe813 19733fi
bec39cab 19734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
19735fi
19736
97bf5e38 19737 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
bec39cab
AC
19738
19739cat >>confdefs.h <<\_ACEOF
97bf5e38 19740#define HAVE_PRFPREGSET_T 1
bec39cab 19741_ACEOF
d45fe813 19742
97bf5e38 19743 fi
b4e70030
JB
19744 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
19745echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
d45fe813 19746
b4e70030
JB
19747 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
19748echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19749 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
19750 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 19751else
bec39cab
AC
19752 cat >conftest.$ac_ext <<_ACEOF
19753/* confdefs.h. */
19754_ACEOF
19755cat confdefs.h >>conftest.$ac_ext
19756cat >>conftest.$ac_ext <<_ACEOF
19757/* end confdefs.h. */
97bf5e38
MK
19758
19759#define _SYSCALL32
19760#include <sys/procfs.h>
bec39cab
AC
19761int
19762main ()
19763{
97bf5e38 19764prgregset32_t avar
bec39cab
AC
19765 ;
19766 return 0;
19767}
19768_ACEOF
19769rm -f conftest.$ac_objext
19770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19771 (eval $ac_compile) 2>conftest.er1
19772 ac_status=$?
19773 grep -v '^ *+' conftest.er1 >conftest.err
19774 rm -f conftest.er1
19775 cat conftest.err >&5
19776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777 (exit $ac_status); } &&
b4e70030
JB
19778 { ac_try='test -z "$ac_c_werror_flag"
19779 || test ! -s conftest.err'
bec39cab
AC
19780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19781 (eval $ac_try) 2>&5
19782 ac_status=$?
19783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784 (exit $ac_status); }; } &&
19785 { ac_try='test -s conftest.$ac_objext'
19786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19787 (eval $ac_try) 2>&5
19788 ac_status=$?
19789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790 (exit $ac_status); }; }; then
97bf5e38 19791 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
d45fe813 19792else
bec39cab
AC
19793 echo "$as_me: failed program was:" >&5
19794sed 's/^/| /' conftest.$ac_ext >&5
19795
b4e70030 19796bfd_cv_have_sys_procfs_type_prgregset32_t=no
bec39cab 19797
d45fe813 19798fi
bec39cab 19799rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
19800fi
19801
97bf5e38 19802 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
bec39cab
AC
19803
19804cat >>confdefs.h <<\_ACEOF
97bf5e38 19805#define HAVE_PRGREGSET32_T 1
bec39cab 19806_ACEOF
d45fe813 19807
97bf5e38 19808 fi
b4e70030
JB
19809 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
19810echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
d45fe813 19811
b4e70030
JB
19812 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
19813echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19814 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
19815 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 19816else
bec39cab
AC
19817 cat >conftest.$ac_ext <<_ACEOF
19818/* confdefs.h. */
19819_ACEOF
19820cat confdefs.h >>conftest.$ac_ext
19821cat >>conftest.$ac_ext <<_ACEOF
19822/* end confdefs.h. */
97bf5e38
MK
19823
19824#define _SYSCALL32
19825#include <sys/procfs.h>
bec39cab
AC
19826int
19827main ()
19828{
97bf5e38 19829prfpregset32_t avar
bec39cab
AC
19830 ;
19831 return 0;
19832}
19833_ACEOF
19834rm -f conftest.$ac_objext
19835if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19836 (eval $ac_compile) 2>conftest.er1
19837 ac_status=$?
19838 grep -v '^ *+' conftest.er1 >conftest.err
19839 rm -f conftest.er1
19840 cat conftest.err >&5
19841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842 (exit $ac_status); } &&
b4e70030
JB
19843 { ac_try='test -z "$ac_c_werror_flag"
19844 || test ! -s conftest.err'
bec39cab
AC
19845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19846 (eval $ac_try) 2>&5
19847 ac_status=$?
19848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849 (exit $ac_status); }; } &&
19850 { ac_try='test -s conftest.$ac_objext'
19851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19852 (eval $ac_try) 2>&5
19853 ac_status=$?
19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855 (exit $ac_status); }; }; then
97bf5e38 19856 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
d45fe813 19857else
bec39cab
AC
19858 echo "$as_me: failed program was:" >&5
19859sed 's/^/| /' conftest.$ac_ext >&5
19860
b4e70030 19861bfd_cv_have_sys_procfs_type_prfpregset32_t=no
bec39cab 19862
d45fe813 19863fi
bec39cab 19864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
19865fi
19866
97bf5e38 19867 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
bec39cab
AC
19868
19869cat >>confdefs.h <<\_ACEOF
97bf5e38 19870#define HAVE_PRFPREGSET32_T 1
bec39cab 19871_ACEOF
d45fe813 19872
97bf5e38 19873 fi
b4e70030
JB
19874 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
19875echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
d45fe813 19876
b4e70030
JB
19877 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
19878echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19879 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
19880 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 19881else
bec39cab
AC
19882 cat >conftest.$ac_ext <<_ACEOF
19883/* confdefs.h. */
19884_ACEOF
19885cat confdefs.h >>conftest.$ac_ext
19886cat >>conftest.$ac_ext <<_ACEOF
19887/* end confdefs.h. */
97bf5e38 19888
d45fe813 19889#define _SYSCALL32
97bf5e38 19890#include <sys/procfs.h>
bec39cab
AC
19891int
19892main ()
19893{
97bf5e38 19894lwpid_t avar
bec39cab
AC
19895 ;
19896 return 0;
19897}
19898_ACEOF
19899rm -f conftest.$ac_objext
19900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19901 (eval $ac_compile) 2>conftest.er1
19902 ac_status=$?
19903 grep -v '^ *+' conftest.er1 >conftest.err
19904 rm -f conftest.er1
19905 cat conftest.err >&5
19906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907 (exit $ac_status); } &&
b4e70030
JB
19908 { ac_try='test -z "$ac_c_werror_flag"
19909 || test ! -s conftest.err'
bec39cab
AC
19910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19911 (eval $ac_try) 2>&5
19912 ac_status=$?
19913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19914 (exit $ac_status); }; } &&
19915 { ac_try='test -s conftest.$ac_objext'
19916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19917 (eval $ac_try) 2>&5
19918 ac_status=$?
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); }; }; then
97bf5e38 19921 bfd_cv_have_sys_procfs_type_lwpid_t=yes
d45fe813 19922else
bec39cab
AC
19923 echo "$as_me: failed program was:" >&5
19924sed 's/^/| /' conftest.$ac_ext >&5
19925
b4e70030 19926bfd_cv_have_sys_procfs_type_lwpid_t=no
bec39cab 19927
d45fe813 19928fi
bec39cab 19929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
19930fi
19931
97bf5e38 19932 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
bec39cab
AC
19933
19934cat >>confdefs.h <<\_ACEOF
97bf5e38 19935#define HAVE_LWPID_T 1
bec39cab 19936_ACEOF
d45fe813 19937
97bf5e38 19938 fi
b4e70030
JB
19939 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
19940echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
c906108c 19941
b4e70030
JB
19942 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
19943echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19944 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
19945 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19946else
bec39cab
AC
19947 cat >conftest.$ac_ext <<_ACEOF
19948/* confdefs.h. */
19949_ACEOF
19950cat confdefs.h >>conftest.$ac_ext
19951cat >>conftest.$ac_ext <<_ACEOF
19952/* end confdefs.h. */
c906108c 19953
97bf5e38
MK
19954#define _SYSCALL32
19955#include <sys/procfs.h>
bec39cab
AC
19956int
19957main ()
19958{
97bf5e38 19959psaddr_t avar
bec39cab
AC
19960 ;
19961 return 0;
19962}
19963_ACEOF
19964rm -f conftest.$ac_objext
19965if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19966 (eval $ac_compile) 2>conftest.er1
19967 ac_status=$?
19968 grep -v '^ *+' conftest.er1 >conftest.err
19969 rm -f conftest.er1
19970 cat conftest.err >&5
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); } &&
b4e70030
JB
19973 { ac_try='test -z "$ac_c_werror_flag"
19974 || test ! -s conftest.err'
bec39cab
AC
19975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19976 (eval $ac_try) 2>&5
19977 ac_status=$?
19978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979 (exit $ac_status); }; } &&
19980 { ac_try='test -s conftest.$ac_objext'
19981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19982 (eval $ac_try) 2>&5
19983 ac_status=$?
19984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19985 (exit $ac_status); }; }; then
97bf5e38 19986 bfd_cv_have_sys_procfs_type_psaddr_t=yes
c906108c 19987else
bec39cab
AC
19988 echo "$as_me: failed program was:" >&5
19989sed 's/^/| /' conftest.$ac_ext >&5
19990
b4e70030 19991bfd_cv_have_sys_procfs_type_psaddr_t=no
bec39cab 19992
c906108c 19993fi
bec39cab 19994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
19995fi
19996
97bf5e38 19997 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
bec39cab
AC
19998
19999cat >>confdefs.h <<\_ACEOF
97bf5e38 20000#define HAVE_PSADDR_T 1
bec39cab 20001_ACEOF
c906108c 20002
97bf5e38 20003 fi
b4e70030
JB
20004 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
20005echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
c906108c 20006
b4e70030
JB
20007 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
20008echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20009 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
20010 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20011else
bec39cab
AC
20012 cat >conftest.$ac_ext <<_ACEOF
20013/* confdefs.h. */
20014_ACEOF
20015cat confdefs.h >>conftest.$ac_ext
20016cat >>conftest.$ac_ext <<_ACEOF
20017/* end confdefs.h. */
c906108c 20018
97bf5e38
MK
20019#define _SYSCALL32
20020#include <sys/procfs.h>
bec39cab
AC
20021int
20022main ()
20023{
97bf5e38 20024prsysent_t avar
bec39cab
AC
20025 ;
20026 return 0;
20027}
20028_ACEOF
20029rm -f conftest.$ac_objext
20030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20031 (eval $ac_compile) 2>conftest.er1
20032 ac_status=$?
20033 grep -v '^ *+' conftest.er1 >conftest.err
20034 rm -f conftest.er1
20035 cat conftest.err >&5
20036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037 (exit $ac_status); } &&
b4e70030
JB
20038 { ac_try='test -z "$ac_c_werror_flag"
20039 || test ! -s conftest.err'
bec39cab
AC
20040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20041 (eval $ac_try) 2>&5
20042 ac_status=$?
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); }; } &&
20045 { ac_try='test -s conftest.$ac_objext'
20046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20047 (eval $ac_try) 2>&5
20048 ac_status=$?
20049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050 (exit $ac_status); }; }; then
97bf5e38 20051 bfd_cv_have_sys_procfs_type_prsysent_t=yes
c906108c 20052else
bec39cab
AC
20053 echo "$as_me: failed program was:" >&5
20054sed 's/^/| /' conftest.$ac_ext >&5
20055
b4e70030 20056bfd_cv_have_sys_procfs_type_prsysent_t=no
bec39cab 20057
c906108c 20058fi
bec39cab 20059rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
20060fi
20061
97bf5e38 20062 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
bec39cab
AC
20063
20064cat >>confdefs.h <<\_ACEOF
97bf5e38 20065#define HAVE_PRSYSENT_T 1
bec39cab 20066_ACEOF
c906108c 20067
97bf5e38 20068 fi
b4e70030
JB
20069 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
20070echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
c906108c 20071
b4e70030
JB
20072 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
20073echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20074 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
20075 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20076else
bec39cab
AC
20077 cat >conftest.$ac_ext <<_ACEOF
20078/* confdefs.h. */
20079_ACEOF
20080cat confdefs.h >>conftest.$ac_ext
20081cat >>conftest.$ac_ext <<_ACEOF
20082/* end confdefs.h. */
c906108c 20083
97bf5e38
MK
20084#define _SYSCALL32
20085#include <sys/procfs.h>
bec39cab
AC
20086int
20087main ()
20088{
97bf5e38 20089pr_sigset_t avar
bec39cab
AC
20090 ;
20091 return 0;
20092}
20093_ACEOF
20094rm -f conftest.$ac_objext
20095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20096 (eval $ac_compile) 2>conftest.er1
20097 ac_status=$?
20098 grep -v '^ *+' conftest.er1 >conftest.err
20099 rm -f conftest.er1
20100 cat conftest.err >&5
20101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102 (exit $ac_status); } &&
b4e70030
JB
20103 { ac_try='test -z "$ac_c_werror_flag"
20104 || test ! -s conftest.err'
bec39cab
AC
20105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20106 (eval $ac_try) 2>&5
20107 ac_status=$?
20108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109 (exit $ac_status); }; } &&
20110 { ac_try='test -s conftest.$ac_objext'
20111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20112 (eval $ac_try) 2>&5
20113 ac_status=$?
20114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115 (exit $ac_status); }; }; then
97bf5e38 20116 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
c906108c 20117else
bec39cab
AC
20118 echo "$as_me: failed program was:" >&5
20119sed 's/^/| /' conftest.$ac_ext >&5
20120
b4e70030 20121bfd_cv_have_sys_procfs_type_pr_sigset_t=no
bec39cab 20122
c906108c 20123fi
bec39cab 20124rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
20125fi
20126
97bf5e38 20127 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
bec39cab
AC
20128
20129cat >>confdefs.h <<\_ACEOF
97bf5e38 20130#define HAVE_PR_SIGSET_T 1
bec39cab 20131_ACEOF
c906108c 20132
97bf5e38 20133 fi
b4e70030
JB
20134 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
20135echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
c906108c 20136
b4e70030
JB
20137 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
20138echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20139 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
20140 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20141else
bec39cab
AC
20142 cat >conftest.$ac_ext <<_ACEOF
20143/* confdefs.h. */
20144_ACEOF
20145cat confdefs.h >>conftest.$ac_ext
20146cat >>conftest.$ac_ext <<_ACEOF
20147/* end confdefs.h. */
c906108c 20148
97bf5e38
MK
20149#define _SYSCALL32
20150#include <sys/procfs.h>
bec39cab
AC
20151int
20152main ()
20153{
97bf5e38 20154pr_sigaction64_t avar
bec39cab
AC
20155 ;
20156 return 0;
20157}
20158_ACEOF
20159rm -f conftest.$ac_objext
20160if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20161 (eval $ac_compile) 2>conftest.er1
20162 ac_status=$?
20163 grep -v '^ *+' conftest.er1 >conftest.err
20164 rm -f conftest.er1
20165 cat conftest.err >&5
20166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167 (exit $ac_status); } &&
b4e70030
JB
20168 { ac_try='test -z "$ac_c_werror_flag"
20169 || test ! -s conftest.err'
bec39cab
AC
20170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20171 (eval $ac_try) 2>&5
20172 ac_status=$?
20173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174 (exit $ac_status); }; } &&
20175 { ac_try='test -s conftest.$ac_objext'
20176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20177 (eval $ac_try) 2>&5
20178 ac_status=$?
20179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180 (exit $ac_status); }; }; then
97bf5e38 20181 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
c906108c 20182else
bec39cab
AC
20183 echo "$as_me: failed program was:" >&5
20184sed 's/^/| /' conftest.$ac_ext >&5
20185
b4e70030 20186bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
bec39cab 20187
c906108c 20188fi
bec39cab 20189rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
20190fi
20191
97bf5e38 20192 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
bec39cab
AC
20193
20194cat >>confdefs.h <<\_ACEOF
97bf5e38 20195#define HAVE_PR_SIGACTION64_T 1
bec39cab 20196_ACEOF
c906108c 20197
97bf5e38 20198 fi
b4e70030
JB
20199 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
20200echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
97bf5e38 20201
b4e70030
JB
20202 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
20203echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20204 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
20205 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 20206else
bec39cab
AC
20207 cat >conftest.$ac_ext <<_ACEOF
20208/* confdefs.h. */
20209_ACEOF
20210cat confdefs.h >>conftest.$ac_ext
20211cat >>conftest.$ac_ext <<_ACEOF
20212/* end confdefs.h. */
97bf5e38
MK
20213
20214#define _SYSCALL32
20215#include <sys/procfs.h>
bec39cab
AC
20216int
20217main ()
20218{
97bf5e38 20219pr_siginfo64_t avar
bec39cab
AC
20220 ;
20221 return 0;
20222}
20223_ACEOF
20224rm -f conftest.$ac_objext
20225if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20226 (eval $ac_compile) 2>conftest.er1
20227 ac_status=$?
20228 grep -v '^ *+' conftest.er1 >conftest.err
20229 rm -f conftest.er1
20230 cat conftest.err >&5
20231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20232 (exit $ac_status); } &&
b4e70030
JB
20233 { ac_try='test -z "$ac_c_werror_flag"
20234 || test ! -s conftest.err'
bec39cab
AC
20235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20236 (eval $ac_try) 2>&5
20237 ac_status=$?
20238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20239 (exit $ac_status); }; } &&
20240 { ac_try='test -s conftest.$ac_objext'
20241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20242 (eval $ac_try) 2>&5
20243 ac_status=$?
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); }; }; then
97bf5e38
MK
20246 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
20247else
bec39cab
AC
20248 echo "$as_me: failed program was:" >&5
20249sed 's/^/| /' conftest.$ac_ext >&5
20250
b4e70030 20251bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
bec39cab 20252
97bf5e38 20253fi
bec39cab 20254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20255fi
c906108c 20256
97bf5e38 20257 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
bec39cab
AC
20258
20259cat >>confdefs.h <<\_ACEOF
97bf5e38 20260#define HAVE_PR_SIGINFO64_T 1
bec39cab 20261_ACEOF
c906108c 20262
97bf5e38 20263 fi
b4e70030
JB
20264 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
20265echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
bec39cab
AC
20266
20267
97bf5e38
MK
20268
20269
20270
97bf5e38 20271 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
b4e70030
JB
20272 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
20273echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
bec39cab
AC
20274 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
20275 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
20276else
20277 if test "$cross_compiling" = yes; then
97bf5e38 20278 gdb_cv_prfpregset_t_broken=yes
c906108c 20279else
bec39cab
AC
20280 cat >conftest.$ac_ext <<_ACEOF
20281/* confdefs.h. */
20282_ACEOF
20283cat confdefs.h >>conftest.$ac_ext
20284cat >>conftest.$ac_ext <<_ACEOF
20285/* end confdefs.h. */
97bf5e38
MK
20286#include <sys/procfs.h>
20287 int main ()
20288 {
20289 if (sizeof (prfpregset_t) == sizeof (void *))
20290 return 1;
20291 return 0;
20292 }
bec39cab
AC
20293_ACEOF
20294rm -f conftest$ac_exeext
20295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20296 (eval $ac_link) 2>&5
20297 ac_status=$?
20298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20301 (eval $ac_try) 2>&5
20302 ac_status=$?
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 (exit $ac_status); }; }; then
97bf5e38 20305 gdb_cv_prfpregset_t_broken=no
c906108c 20306else
bec39cab
AC
20307 echo "$as_me: program exited with status $ac_status" >&5
20308echo "$as_me: failed program was:" >&5
20309sed 's/^/| /' conftest.$ac_ext >&5
20310
20311( exit $ac_status )
20312gdb_cv_prfpregset_t_broken=yes
c906108c 20313fi
b4e70030 20314rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 20315fi
c906108c
SS
20316fi
20317
b4e70030
JB
20318 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
20319echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
97bf5e38 20320 if test $gdb_cv_prfpregset_t_broken = yes; then
60ca704f
SE
20321
20322cat >>confdefs.h <<\_ACEOF
97bf5e38 20323#define PRFPREGSET_T_BROKEN 1
bec39cab 20324_ACEOF
c906108c 20325
97bf5e38
MK
20326 fi
20327 fi
c906108c 20328
bec39cab 20329
b4e70030
JB
20330 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
20331echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20332 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
20333 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20334else
bec39cab
AC
20335 cat >conftest.$ac_ext <<_ACEOF
20336/* confdefs.h. */
20337_ACEOF
20338cat confdefs.h >>conftest.$ac_ext
20339cat >>conftest.$ac_ext <<_ACEOF
20340/* end confdefs.h. */
97bf5e38
MK
20341#include <unistd.h>
20342#include <sys/types.h>
20343#include <sys/procfs.h>
20344
bec39cab
AC
20345int
20346main ()
20347{
97bf5e38
MK
20348
20349 int dummy;;
20350 dummy = ioctl(0, PIOCSET, &dummy);
bec39cab
AC
20351
20352 ;
20353 return 0;
20354}
20355_ACEOF
20356rm -f conftest.$ac_objext
20357if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20358 (eval $ac_compile) 2>conftest.er1
20359 ac_status=$?
20360 grep -v '^ *+' conftest.er1 >conftest.err
20361 rm -f conftest.er1
20362 cat conftest.err >&5
20363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364 (exit $ac_status); } &&
b4e70030
JB
20365 { ac_try='test -z "$ac_c_werror_flag"
20366 || test ! -s conftest.err'
bec39cab
AC
20367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20368 (eval $ac_try) 2>&5
20369 ac_status=$?
20370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371 (exit $ac_status); }; } &&
20372 { ac_try='test -s conftest.$ac_objext'
20373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20374 (eval $ac_try) 2>&5
20375 ac_status=$?
20376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377 (exit $ac_status); }; }; then
97bf5e38 20378 gdb_cv_have_procfs_piocset=yes
c906108c 20379else
bec39cab
AC
20380 echo "$as_me: failed program was:" >&5
20381sed 's/^/| /' conftest.$ac_ext >&5
20382
b4e70030 20383gdb_cv_have_procfs_piocset=no
c906108c 20384fi
bec39cab 20385rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20386fi
97bf5e38 20387
b4e70030
JB
20388 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
20389echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
97bf5e38 20390 if test $gdb_cv_have_procfs_piocset = yes; then
60ca704f
SE
20391
20392cat >>confdefs.h <<\_ACEOF
97bf5e38 20393#define HAVE_PROCFS_PIOCSET 1
bec39cab 20394_ACEOF
97bf5e38
MK
20395
20396 fi
c906108c 20397fi
c906108c 20398
97bf5e38 20399if test ${host} = ${target} ; then
bec39cab 20400
b4e70030
JB
20401 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
20402echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
bec39cab
AC
20403 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
20404 echo $ECHO_N "(cached) $ECHO_C" >&6
20405else
20406 cat >conftest.$ac_ext <<_ACEOF
20407/* confdefs.h. */
20408_ACEOF
20409cat confdefs.h >>conftest.$ac_ext
20410cat >>conftest.$ac_ext <<_ACEOF
20411/* end confdefs.h. */
97bf5e38 20412#include <link.h>
bec39cab
AC
20413int
20414main ()
20415{
97bf5e38 20416struct link_map lm; (void) lm.l_addr;
bec39cab
AC
20417 ;
20418 return 0;
20419}
20420_ACEOF
20421rm -f conftest.$ac_objext
20422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20423 (eval $ac_compile) 2>conftest.er1
20424 ac_status=$?
20425 grep -v '^ *+' conftest.er1 >conftest.err
20426 rm -f conftest.er1
20427 cat conftest.err >&5
20428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); } &&
b4e70030
JB
20430 { ac_try='test -z "$ac_c_werror_flag"
20431 || test ! -s conftest.err'
bec39cab
AC
20432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20433 (eval $ac_try) 2>&5
20434 ac_status=$?
20435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20436 (exit $ac_status); }; } &&
20437 { ac_try='test -s conftest.$ac_objext'
20438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20439 (eval $ac_try) 2>&5
20440 ac_status=$?
20441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442 (exit $ac_status); }; }; then
97bf5e38 20443 gdb_cv_have_struct_link_map_with_l_members=yes
c906108c 20444else
bec39cab
AC
20445 echo "$as_me: failed program was:" >&5
20446sed 's/^/| /' conftest.$ac_ext >&5
20447
b4e70030 20448gdb_cv_have_struct_link_map_with_l_members=no
c906108c 20449fi
bec39cab 20450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
20451fi
20452
b4e70030
JB
20453 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
20454echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
97bf5e38 20455 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
60ca704f
SE
20456
20457cat >>confdefs.h <<\_ACEOF
97bf5e38 20458#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
bec39cab 20459_ACEOF
97bf5e38
MK
20460
20461 fi
20462
bec39cab 20463
b4e70030
JB
20464 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
20465echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
bec39cab
AC
20466 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
20467 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20468else
bec39cab
AC
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
MK
20475#include <sys/types.h>
20476#include <link.h>
bec39cab
AC
20477int
20478main ()
20479{
97bf5e38 20480struct link_map lm; (void) lm.lm_addr;
bec39cab
AC
20481 ;
20482 return 0;
20483}
20484_ACEOF
20485rm -f conftest.$ac_objext
20486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20487 (eval $ac_compile) 2>conftest.er1
20488 ac_status=$?
20489 grep -v '^ *+' conftest.er1 >conftest.err
20490 rm -f conftest.er1
20491 cat conftest.err >&5
20492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493 (exit $ac_status); } &&
b4e70030
JB
20494 { ac_try='test -z "$ac_c_werror_flag"
20495 || test ! -s conftest.err'
bec39cab
AC
20496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20497 (eval $ac_try) 2>&5
20498 ac_status=$?
20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20500 (exit $ac_status); }; } &&
20501 { ac_try='test -s conftest.$ac_objext'
20502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20503 (eval $ac_try) 2>&5
20504 ac_status=$?
20505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20506 (exit $ac_status); }; }; then
97bf5e38
MK
20507 gdb_cv_have_struct_link_map_with_lm_members=yes
20508else
bec39cab
AC
20509 echo "$as_me: failed program was:" >&5
20510sed 's/^/| /' conftest.$ac_ext >&5
20511
b4e70030 20512gdb_cv_have_struct_link_map_with_lm_members=no
97bf5e38 20513fi
bec39cab 20514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20515fi
c906108c 20516
b4e70030
JB
20517 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
20518echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
97bf5e38 20519 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
60ca704f
SE
20520
20521cat >>confdefs.h <<\_ACEOF
97bf5e38 20522#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
bec39cab 20523_ACEOF
97bf5e38
MK
20524
20525 fi
20526
bec39cab 20527
b4e70030
JB
20528 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
20529echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
bec39cab
AC
20530 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
20531 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20532else
bec39cab
AC
20533 cat >conftest.$ac_ext <<_ACEOF
20534/* confdefs.h. */
20535_ACEOF
20536cat confdefs.h >>conftest.$ac_ext
20537cat >>conftest.$ac_ext <<_ACEOF
20538/* end confdefs.h. */
97bf5e38
MK
20539#include <sys/types.h>
20540#ifdef HAVE_NLIST_H
20541#include <nlist.h>
20542#endif
20543#include <link.h>
bec39cab
AC
20544int
20545main ()
20546{
97bf5e38 20547struct so_map lm; (void) lm.som_addr;
bec39cab
AC
20548 ;
20549 return 0;
20550}
20551_ACEOF
20552rm -f conftest.$ac_objext
20553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20554 (eval $ac_compile) 2>conftest.er1
20555 ac_status=$?
20556 grep -v '^ *+' conftest.er1 >conftest.err
20557 rm -f conftest.er1
20558 cat conftest.err >&5
20559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560 (exit $ac_status); } &&
b4e70030
JB
20561 { ac_try='test -z "$ac_c_werror_flag"
20562 || test ! -s conftest.err'
bec39cab
AC
20563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20564 (eval $ac_try) 2>&5
20565 ac_status=$?
20566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); }; } &&
20568 { ac_try='test -s conftest.$ac_objext'
20569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20570 (eval $ac_try) 2>&5
20571 ac_status=$?
20572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573 (exit $ac_status); }; }; then
97bf5e38
MK
20574 gdb_cv_have_struct_so_map_with_som_members=yes
20575else
bec39cab
AC
20576 echo "$as_me: failed program was:" >&5
20577sed 's/^/| /' conftest.$ac_ext >&5
20578
b4e70030 20579gdb_cv_have_struct_so_map_with_som_members=no
97bf5e38 20580fi
bec39cab 20581rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 20582fi
c906108c 20583
b4e70030
JB
20584 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
20585echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
97bf5e38 20586 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
60ca704f
SE
20587
20588cat >>confdefs.h <<\_ACEOF
97bf5e38 20589#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
bec39cab 20590_ACEOF
c906108c 20591
97bf5e38 20592 fi
c906108c 20593
bec39cab 20594
b4e70030
JB
20595 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
20596echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
bec39cab
AC
20597 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
20598 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 20599else
bec39cab
AC
20600 cat >conftest.$ac_ext <<_ACEOF
20601/* confdefs.h. */
20602_ACEOF
20603cat confdefs.h >>conftest.$ac_ext
20604cat >>conftest.$ac_ext <<_ACEOF
20605/* end confdefs.h. */
97bf5e38
MK
20606#define _SYSCALL32
20607#include <sys/link.h>
bec39cab
AC
20608int
20609main ()
20610{
97bf5e38 20611struct link_map32 l;
bec39cab
AC
20612 ;
20613 return 0;
20614}
20615_ACEOF
20616rm -f conftest.$ac_objext
20617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20618 (eval $ac_compile) 2>conftest.er1
20619 ac_status=$?
20620 grep -v '^ *+' conftest.er1 >conftest.err
20621 rm -f conftest.er1
20622 cat conftest.err >&5
20623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20624 (exit $ac_status); } &&
b4e70030
JB
20625 { ac_try='test -z "$ac_c_werror_flag"
20626 || test ! -s conftest.err'
bec39cab
AC
20627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20628 (eval $ac_try) 2>&5
20629 ac_status=$?
20630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631 (exit $ac_status); }; } &&
20632 { ac_try='test -s conftest.$ac_objext'
20633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20634 (eval $ac_try) 2>&5
20635 ac_status=$?
20636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637 (exit $ac_status); }; }; then
97bf5e38
MK
20638 gdb_cv_have_struct_link_map32=yes
20639else
bec39cab
AC
20640 echo "$as_me: failed program was:" >&5
20641sed 's/^/| /' conftest.$ac_ext >&5
20642
b4e70030 20643gdb_cv_have_struct_link_map32=no
97bf5e38 20644fi
bec39cab 20645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 20646fi
c906108c 20647
b4e70030
JB
20648 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
20649echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
97bf5e38 20650 if test $gdb_cv_have_struct_link_map32 = yes; then
60ca704f
SE
20651
20652cat >>confdefs.h <<\_ACEOF
97bf5e38 20653#define HAVE_STRUCT_LINK_MAP32 1
bec39cab 20654_ACEOF
c906108c 20655
60ca704f
SE
20656
20657cat >>confdefs.h <<\_ACEOF
97bf5e38 20658#define _SYSCALL32 1
bec39cab 20659_ACEOF
c906108c 20660
97bf5e38
MK
20661 fi
20662fi
c906108c 20663
bc8bcb4b 20664# Check if the compiler supports the `long long' type.
c906108c 20665
b4e70030
JB
20666echo "$as_me:$LINENO: checking for long long support in compiler" >&5
20667echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
bec39cab
AC
20668if test "${gdb_cv_c_long_long+set}" = set; then
20669 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 20670else
bec39cab
AC
20671 cat >conftest.$ac_ext <<_ACEOF
20672/* confdefs.h. */
20673_ACEOF
20674cat confdefs.h >>conftest.$ac_ext
20675cat >>conftest.$ac_ext <<_ACEOF
20676/* end confdefs.h. */
bc8bcb4b 20677extern long long foo;
bec39cab
AC
20678int
20679main ()
20680{
bc8bcb4b 20681switch (foo & 2) { case 0: return 1; }
bec39cab
AC
20682 ;
20683 return 0;
20684}
20685_ACEOF
20686rm -f conftest.$ac_objext
20687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20688 (eval $ac_compile) 2>conftest.er1
20689 ac_status=$?
20690 grep -v '^ *+' conftest.er1 >conftest.err
20691 rm -f conftest.er1
20692 cat conftest.err >&5
20693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694 (exit $ac_status); } &&
b4e70030
JB
20695 { ac_try='test -z "$ac_c_werror_flag"
20696 || test ! -s conftest.err'
bec39cab
AC
20697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20698 (eval $ac_try) 2>&5
20699 ac_status=$?
20700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701 (exit $ac_status); }; } &&
20702 { ac_try='test -s conftest.$ac_objext'
20703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20704 (eval $ac_try) 2>&5
20705 ac_status=$?
20706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707 (exit $ac_status); }; }; then
97bf5e38
MK
20708 gdb_cv_c_long_long=yes
20709else
bec39cab
AC
20710 echo "$as_me: failed program was:" >&5
20711sed 's/^/| /' conftest.$ac_ext >&5
20712
b4e70030 20713gdb_cv_c_long_long=no
97bf5e38 20714fi
bec39cab 20715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 20716fi
b4e70030
JB
20717echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
20718echo "${ECHO_T}$gdb_cv_c_long_long" >&6
97bf5e38 20719if test $gdb_cv_c_long_long = yes; then
bc8bcb4b
MK
20720
20721cat >>confdefs.h <<\_ACEOF
97bf5e38 20722#define CC_HAS_LONG_LONG 1
bec39cab 20723_ACEOF
97bf5e38
MK
20724
20725fi
20726
bc8bcb4b 20727# Check if the compiler and runtime support printing long longs.
97bf5e38 20728
b4e70030
JB
20729echo "$as_me:$LINENO: checking for long long support in printf" >&5
20730echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
bec39cab
AC
20731if test "${gdb_cv_printf_has_long_long+set}" = set; then
20732 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
20733else
20734 if test "$cross_compiling" = yes; then
20735 gdb_cv_printf_has_long_long=no
20736else
bec39cab
AC
20737 cat >conftest.$ac_ext <<_ACEOF
20738/* confdefs.h. */
20739_ACEOF
20740cat confdefs.h >>conftest.$ac_ext
20741cat >>conftest.$ac_ext <<_ACEOF
20742/* end confdefs.h. */
bc8bcb4b
MK
20743$ac_includes_default
20744int
20745main ()
20746{
20747char buf[32];
97bf5e38
MK
20748 long long l = 0;
20749 l = (l << 16) + 0x0123;
20750 l = (l << 16) + 0x4567;
20751 l = (l << 16) + 0x89ab;
20752 l = (l << 16) + 0xcdef;
20753 sprintf (buf, "0x%016llx", l);
20754 return (strcmp ("0x0123456789abcdef", buf));
bc8bcb4b
MK
20755 ;
20756 return 0;
c906108c 20757}
bec39cab
AC
20758_ACEOF
20759rm -f conftest$ac_exeext
20760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20761 (eval $ac_link) 2>&5
20762 ac_status=$?
20763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20766 (eval $ac_try) 2>&5
20767 ac_status=$?
20768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769 (exit $ac_status); }; }; then
97bf5e38
MK
20770 gdb_cv_printf_has_long_long=yes
20771else
bec39cab
AC
20772 echo "$as_me: program exited with status $ac_status" >&5
20773echo "$as_me: failed program was:" >&5
20774sed 's/^/| /' conftest.$ac_ext >&5
20775
20776( exit $ac_status )
20777gdb_cv_printf_has_long_long=no
97bf5e38 20778fi
b4e70030 20779rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 20780fi
97bf5e38 20781fi
b4e70030
JB
20782echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
20783echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
97bf5e38 20784if test $gdb_cv_printf_has_long_long = yes; then
bc8bcb4b
MK
20785
20786cat >>confdefs.h <<\_ACEOF
97bf5e38 20787#define PRINTF_HAS_LONG_LONG 1
bec39cab 20788_ACEOF
97bf5e38
MK
20789
20790fi
97bf5e38 20791
bc8bcb4b
MK
20792# Check if the compiler supports the `long double' type. We can't use
20793# AC_C_LONG_DOUBLE because that one does additional checks on the
20794# constants defined in <float.h> that fail on some systems,
20795# e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
97bf5e38 20796
b4e70030
JB
20797echo "$as_me:$LINENO: checking for long double support in compiler" >&5
20798echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
bc8bcb4b 20799if test "${gdb_cv_c_long_double+set}" = set; then
bec39cab 20800 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 20801else
bec39cab
AC
20802 cat >conftest.$ac_ext <<_ACEOF
20803/* confdefs.h. */
20804_ACEOF
20805cat confdefs.h >>conftest.$ac_ext
20806cat >>conftest.$ac_ext <<_ACEOF
20807/* end confdefs.h. */
97bf5e38 20808long double foo;
bec39cab
AC
20809_ACEOF
20810rm -f conftest.$ac_objext
20811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20812 (eval $ac_compile) 2>conftest.er1
20813 ac_status=$?
20814 grep -v '^ *+' conftest.er1 >conftest.err
20815 rm -f conftest.er1
20816 cat conftest.err >&5
20817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818 (exit $ac_status); } &&
b4e70030
JB
20819 { ac_try='test -z "$ac_c_werror_flag"
20820 || test ! -s conftest.err'
bec39cab
AC
20821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20822 (eval $ac_try) 2>&5
20823 ac_status=$?
20824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20825 (exit $ac_status); }; } &&
20826 { ac_try='test -s conftest.$ac_objext'
20827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20828 (eval $ac_try) 2>&5
20829 ac_status=$?
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); }; }; then
bc8bcb4b 20832 gdb_cv_c_long_double=yes
97bf5e38 20833else
bec39cab
AC
20834 echo "$as_me: failed program was:" >&5
20835sed 's/^/| /' conftest.$ac_ext >&5
20836
b4e70030 20837gdb_cv_c_long_double=no
97bf5e38 20838fi
bec39cab 20839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 20840fi
b4e70030
JB
20841echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
20842echo "${ECHO_T}$gdb_cv_c_long_double" >&6
bc8bcb4b 20843if test $gdb_cv_c_long_double = yes; then
c906108c 20844
bc8bcb4b 20845cat >>confdefs.h <<\_ACEOF
97bf5e38 20846#define HAVE_LONG_DOUBLE 1
bec39cab 20847_ACEOF
97bf5e38
MK
20848
20849fi
20850
bc8bcb4b 20851# Check if the compiler and runtime support printing long doubles.
97bf5e38 20852
b4e70030
JB
20853echo "$as_me:$LINENO: checking for long double support in printf" >&5
20854echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
bec39cab
AC
20855if test "${gdb_cv_printf_has_long_double+set}" = set; then
20856 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
20857else
20858 if test "$cross_compiling" = yes; then
20859 gdb_cv_printf_has_long_double=no
20860else
bec39cab
AC
20861 cat >conftest.$ac_ext <<_ACEOF
20862/* confdefs.h. */
20863_ACEOF
20864cat confdefs.h >>conftest.$ac_ext
20865cat >>conftest.$ac_ext <<_ACEOF
20866/* end confdefs.h. */
bc8bcb4b
MK
20867$ac_includes_default
20868int
20869main ()
20870{
20871char buf[16];
97bf5e38
MK
20872 long double f = 3.141592653;
20873 sprintf (buf, "%Lg", f);
20874 return (strncmp ("3.14159", buf, 7));
bc8bcb4b
MK
20875 ;
20876 return 0;
97bf5e38 20877}
bec39cab
AC
20878_ACEOF
20879rm -f conftest$ac_exeext
20880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20881 (eval $ac_link) 2>&5
20882 ac_status=$?
20883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20886 (eval $ac_try) 2>&5
20887 ac_status=$?
20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889 (exit $ac_status); }; }; then
97bf5e38 20890 gdb_cv_printf_has_long_double=yes
c906108c 20891else
bec39cab
AC
20892 echo "$as_me: program exited with status $ac_status" >&5
20893echo "$as_me: failed program was:" >&5
20894sed 's/^/| /' conftest.$ac_ext >&5
20895
20896( exit $ac_status )
20897gdb_cv_printf_has_long_double=no
c906108c 20898fi
b4e70030 20899rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 20900fi
c906108c 20901fi
b4e70030
JB
20902echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
20903echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
97bf5e38 20904if test $gdb_cv_printf_has_long_double = yes; then
bc8bcb4b
MK
20905
20906cat >>confdefs.h <<\_ACEOF
97bf5e38 20907#define PRINTF_HAS_LONG_DOUBLE 1
bec39cab 20908_ACEOF
97bf5e38
MK
20909
20910fi
97bf5e38 20911
bc8bcb4b 20912# Check if the compiler and runtime support scanning long doubles.
97bf5e38 20913
b4e70030
JB
20914echo "$as_me:$LINENO: checking for long double support in scanf" >&5
20915echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
bec39cab
AC
20916if test "${gdb_cv_scanf_has_long_double+set}" = set; then
20917 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
20918else
20919 if test "$cross_compiling" = yes; then
20920 gdb_cv_scanf_has_long_double=no
20921else
bec39cab
AC
20922 cat >conftest.$ac_ext <<_ACEOF
20923/* confdefs.h. */
20924_ACEOF
20925cat confdefs.h >>conftest.$ac_ext
20926cat >>conftest.$ac_ext <<_ACEOF
20927/* end confdefs.h. */
bc8bcb4b
MK
20928#include <stdio.h>
20929int
20930main ()
20931{
20932char *buf = "3.141592653";
97bf5e38
MK
20933 long double f = 0;
20934 sscanf (buf, "%Lg", &f);
20935 return !(f > 3.14159 && f < 3.14160);
bc8bcb4b
MK
20936 ;
20937 return 0;
97bf5e38 20938}
bec39cab
AC
20939_ACEOF
20940rm -f conftest$ac_exeext
20941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20942 (eval $ac_link) 2>&5
20943 ac_status=$?
20944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20947 (eval $ac_try) 2>&5
20948 ac_status=$?
20949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20950 (exit $ac_status); }; }; then
97bf5e38
MK
20951 gdb_cv_scanf_has_long_double=yes
20952else
bec39cab
AC
20953 echo "$as_me: program exited with status $ac_status" >&5
20954echo "$as_me: failed program was:" >&5
20955sed 's/^/| /' conftest.$ac_ext >&5
20956
20957( exit $ac_status )
20958gdb_cv_scanf_has_long_double=no
97bf5e38 20959fi
b4e70030 20960rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 20961fi
c906108c 20962fi
b4e70030
JB
20963echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
20964echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
97bf5e38 20965if test $gdb_cv_scanf_has_long_double = yes; then
bc8bcb4b
MK
20966
20967cat >>confdefs.h <<\_ACEOF
97bf5e38 20968#define SCANF_HAS_LONG_DOUBLE 1
bec39cab 20969_ACEOF
97bf5e38
MK
20970
20971fi
c906108c 20972
438013df
AO
20973case ${host_os} in
20974aix*)
b4e70030
JB
20975 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
20976echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
bec39cab
AC
20977if test "${gdb_cv_bigtoc+set}" = set; then
20978 echo $ECHO_N "(cached) $ECHO_C" >&6
438013df 20979else
bec39cab 20980
438013df
AO
20981 SAVE_LDFLAGS=$LDFLAGS
20982
20983 case $GCC in
20984 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
20985 *) gdb_cv_bigtoc=-bbigtoc ;;
20986 esac
20987
20988 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
bec39cab
AC
20989 cat >conftest.$ac_ext <<_ACEOF
20990/* confdefs.h. */
20991_ACEOF
20992cat confdefs.h >>conftest.$ac_ext
20993cat >>conftest.$ac_ext <<_ACEOF
20994/* end confdefs.h. */
438013df 20995
bec39cab
AC
20996int
20997main ()
20998{
438013df 20999int i;
bec39cab
AC
21000 ;
21001 return 0;
21002}
21003_ACEOF
21004rm -f conftest.$ac_objext conftest$ac_exeext
21005if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21006 (eval $ac_link) 2>conftest.er1
21007 ac_status=$?
21008 grep -v '^ *+' conftest.er1 >conftest.err
21009 rm -f conftest.er1
21010 cat conftest.err >&5
21011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012 (exit $ac_status); } &&
b4e70030
JB
21013 { ac_try='test -z "$ac_c_werror_flag"
21014 || test ! -s conftest.err'
bec39cab
AC
21015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21016 (eval $ac_try) 2>&5
21017 ac_status=$?
21018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019 (exit $ac_status); }; } &&
21020 { ac_try='test -s conftest$ac_exeext'
21021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21022 (eval $ac_try) 2>&5
21023 ac_status=$?
21024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21025 (exit $ac_status); }; }; then
438013df
AO
21026 :
21027else
bec39cab
AC
21028 echo "$as_me: failed program was:" >&5
21029sed 's/^/| /' conftest.$ac_ext >&5
21030
b4e70030 21031gdb_cv_bigtoc=
438013df 21032fi
bec39cab
AC
21033rm -f conftest.err conftest.$ac_objext \
21034 conftest$ac_exeext conftest.$ac_ext
ec76baa5 21035 LDFLAGS="${SAVE_LDFLAGS}"
438013df 21036
bec39cab 21037fi
b4e70030
JB
21038echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
21039echo "${ECHO_T}$gdb_cv_bigtoc" >&6
438013df
AO
21040 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
21041 ;;
21042esac
21043
c906108c
SS
21044
21045
21046if test ${build} = ${host} -a ${host} = ${target} ; then
21047 case ${host_os} in
21048 hpux*)
b4e70030
JB
21049 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
21050echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
c906108c
SS
21051 if test -f /usr/include/dce/cma_config.h ; then
21052 if test "$GCC" = "yes" ; then
b4e70030
JB
21053 echo "$as_me:$LINENO: result: yes" >&5
21054echo "${ECHO_T}yes" >&6
60ca704f
SE
21055
21056cat >>confdefs.h <<\_ACEOF
c906108c 21057#define HAVE_HPUX_THREAD_SUPPORT 1
bec39cab 21058_ACEOF
c906108c 21059
3483b318 21060 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
c906108c
SS
21061 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
21062 else
b4e70030
JB
21063 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
21064echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
c906108c
SS
21065 fi
21066 else
b4e70030
JB
21067 echo "$as_me:$LINENO: result: no" >&5
21068echo "${ECHO_T}no" >&6
c906108c
SS
21069 fi
21070 ;;
21071 solaris*)
d92419e5
JB
21072 # See if thread_db library is around for Solaris thread debugging.
21073 # Note that we must explicitly test for version 1 of the library
21074 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
21075 # the same API.
b4e70030
JB
21076 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
21077echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
c906108c 21078 if test -f /usr/lib/libthread_db.so.1 ; then
b4e70030
JB
21079 echo "$as_me:$LINENO: result: yes" >&5
21080echo "${ECHO_T}yes" >&6
60ca704f
SE
21081
21082cat >>confdefs.h <<\_ACEOF
c906108c 21083#define HAVE_THREAD_DB_LIB 1
bec39cab 21084_ACEOF
c906108c 21085
3483b318 21086 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
c906108c 21087 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
bec39cab 21088
b4e70030
JB
21089echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21090echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
bec39cab
AC
21091if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21092 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 21093else
bec39cab 21094 ac_check_lib_save_LIBS=$LIBS
c906108c 21095LIBS="-ldl $LIBS"
bec39cab
AC
21096cat >conftest.$ac_ext <<_ACEOF
21097/* confdefs.h. */
21098_ACEOF
21099cat confdefs.h >>conftest.$ac_ext
21100cat >>conftest.$ac_ext <<_ACEOF
21101/* end confdefs.h. */
21102
b4e70030 21103/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
21104#ifdef __cplusplus
21105extern "C"
21106#endif
b4e70030
JB
21107/* We use char because int might match the return type of a gcc2
21108 builtin and then its argument prototype would still apply. */
bec39cab
AC
21109char dlopen ();
21110int
21111main ()
21112{
b4e70030 21113dlopen ();
bec39cab
AC
21114 ;
21115 return 0;
21116}
21117_ACEOF
21118rm -f conftest.$ac_objext conftest$ac_exeext
21119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21120 (eval $ac_link) 2>conftest.er1
21121 ac_status=$?
21122 grep -v '^ *+' conftest.er1 >conftest.err
21123 rm -f conftest.er1
21124 cat conftest.err >&5
21125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126 (exit $ac_status); } &&
b4e70030
JB
21127 { ac_try='test -z "$ac_c_werror_flag"
21128 || test ! -s conftest.err'
bec39cab
AC
21129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21130 (eval $ac_try) 2>&5
21131 ac_status=$?
21132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21133 (exit $ac_status); }; } &&
21134 { ac_try='test -s conftest$ac_exeext'
21135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21136 (eval $ac_try) 2>&5
21137 ac_status=$?
21138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); }; }; then
21140 ac_cv_lib_dl_dlopen=yes
21141else
21142 echo "$as_me: failed program was:" >&5
21143sed 's/^/| /' conftest.$ac_ext >&5
21144
b4e70030 21145ac_cv_lib_dl_dlopen=no
bec39cab
AC
21146fi
21147rm -f conftest.err conftest.$ac_objext \
21148 conftest$ac_exeext conftest.$ac_ext
21149LIBS=$ac_check_lib_save_LIBS
21150fi
b4e70030
JB
21151echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21152echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
bec39cab
AC
21153if test $ac_cv_lib_dl_dlopen = yes; then
21154 cat >>confdefs.h <<_ACEOF
21155#define HAVE_LIBDL 1
21156_ACEOF
c906108c
SS
21157
21158 LIBS="-ldl $LIBS"
21159
c906108c
SS
21160fi
21161
21162 if test "$GCC" = "yes" ; then
21163 # The GNU linker requires the -export-dynamic option to make
21164 # all symbols visible in the dynamic symbol table.
21165 hold_ldflags=$LDFLAGS
b4e70030
JB
21166 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
21167echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
c906108c 21168 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
bec39cab
AC
21169 cat >conftest.$ac_ext <<_ACEOF
21170/* confdefs.h. */
21171_ACEOF
21172cat confdefs.h >>conftest.$ac_ext
21173cat >>conftest.$ac_ext <<_ACEOF
21174/* end confdefs.h. */
c906108c 21175
bec39cab
AC
21176int
21177main ()
21178{
c906108c 21179int i;
bec39cab
AC
21180 ;
21181 return 0;
21182}
21183_ACEOF
21184rm -f conftest.$ac_objext conftest$ac_exeext
21185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21186 (eval $ac_link) 2>conftest.er1
21187 ac_status=$?
21188 grep -v '^ *+' conftest.er1 >conftest.err
21189 rm -f conftest.er1
21190 cat conftest.err >&5
21191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21192 (exit $ac_status); } &&
b4e70030
JB
21193 { ac_try='test -z "$ac_c_werror_flag"
21194 || test ! -s conftest.err'
bec39cab
AC
21195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21196 (eval $ac_try) 2>&5
21197 ac_status=$?
21198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21199 (exit $ac_status); }; } &&
21200 { ac_try='test -s conftest$ac_exeext'
21201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21202 (eval $ac_try) 2>&5
21203 ac_status=$?
21204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21205 (exit $ac_status); }; }; then
c906108c
SS
21206 found=yes
21207else
bec39cab
AC
21208 echo "$as_me: failed program was:" >&5
21209sed 's/^/| /' conftest.$ac_ext >&5
21210
b4e70030 21211found=no
c906108c 21212fi
bec39cab
AC
21213rm -f conftest.err conftest.$ac_objext \
21214 conftest$ac_exeext conftest.$ac_ext
c906108c 21215 LDFLAGS=$hold_ldflags
b4e70030
JB
21216 echo "$as_me:$LINENO: result: $found" >&5
21217echo "${ECHO_T}$found" >&6
c906108c
SS
21218 if test $found = yes; then
21219 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
21220 fi
21221 fi
21222 # Sun randomly tweaked the prototypes in <proc_service.h>
21223 # at one point.
b4e70030
JB
21224 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
21225echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
bec39cab
AC
21226 if test "${gdb_cv_proc_service_is_old+set}" = set; then
21227 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 21228else
bec39cab
AC
21229
21230 cat >conftest.$ac_ext <<_ACEOF
21231/* confdefs.h. */
21232_ACEOF
21233cat confdefs.h >>conftest.$ac_ext
21234cat >>conftest.$ac_ext <<_ACEOF
21235/* end confdefs.h. */
c906108c
SS
21236
21237 #include <proc_service.h>
21238 ps_err_e ps_pdwrite
21239 (struct ps_prochandle*, psaddr_t, const void*, size_t);
c906108c 21240
bec39cab
AC
21241int
21242main ()
21243{
21244
21245 ;
21246 return 0;
21247}
21248_ACEOF
21249rm -f conftest.$ac_objext
21250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21251 (eval $ac_compile) 2>conftest.er1
21252 ac_status=$?
21253 grep -v '^ *+' conftest.er1 >conftest.err
21254 rm -f conftest.er1
21255 cat conftest.err >&5
21256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257 (exit $ac_status); } &&
b4e70030
JB
21258 { ac_try='test -z "$ac_c_werror_flag"
21259 || test ! -s conftest.err'
bec39cab
AC
21260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21261 (eval $ac_try) 2>&5
21262 ac_status=$?
21263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264 (exit $ac_status); }; } &&
21265 { ac_try='test -s conftest.$ac_objext'
21266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21267 (eval $ac_try) 2>&5
21268 ac_status=$?
21269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270 (exit $ac_status); }; }; then
c906108c
SS
21271 gdb_cv_proc_service_is_old=no
21272else
bec39cab
AC
21273 echo "$as_me: failed program was:" >&5
21274sed 's/^/| /' conftest.$ac_ext >&5
21275
b4e70030 21276gdb_cv_proc_service_is_old=yes
c906108c 21277fi
bec39cab
AC
21278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21279
c906108c
SS
21280fi
21281
b4e70030
JB
21282 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
21283echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
c906108c 21284 if test $gdb_cv_proc_service_is_old = yes; then
60ca704f
SE
21285
21286cat >>confdefs.h <<\_ACEOF
c906108c 21287#define PROC_SERVICE_IS_OLD 1
bec39cab 21288_ACEOF
c906108c
SS
21289
21290 fi
21291 else
b4e70030
JB
21292 echo "$as_me:$LINENO: result: no" >&5
21293echo "${ECHO_T}no" >&6
c906108c
SS
21294 fi
21295 ;;
d92419e5 21296 aix*)
b4e70030
JB
21297 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
21298echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
bec39cab
AC
21299 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
21300 echo $ECHO_N "(cached) $ECHO_C" >&6
21301else
21302 cat >conftest.$ac_ext <<_ACEOF
21303/* confdefs.h. */
21304_ACEOF
21305cat confdefs.h >>conftest.$ac_ext
21306cat >>conftest.$ac_ext <<_ACEOF
21307/* end confdefs.h. */
d92419e5 21308#include <sys/pthdebug.h>
bec39cab
AC
21309int
21310main ()
21311{
d92419e5
JB
21312#ifndef PTHDB_VERSION_3
21313 #error
21314 #endif
bec39cab
AC
21315 ;
21316 return 0;
21317}
21318_ACEOF
21319rm -f conftest.$ac_objext
21320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21321 (eval $ac_compile) 2>conftest.er1
21322 ac_status=$?
21323 grep -v '^ *+' conftest.er1 >conftest.err
21324 rm -f conftest.er1
21325 cat conftest.err >&5
21326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21327 (exit $ac_status); } &&
b4e70030
JB
21328 { ac_try='test -z "$ac_c_werror_flag"
21329 || test ! -s conftest.err'
bec39cab
AC
21330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21331 (eval $ac_try) 2>&5
21332 ac_status=$?
21333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21334 (exit $ac_status); }; } &&
21335 { ac_try='test -s conftest.$ac_objext'
21336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21337 (eval $ac_try) 2>&5
21338 ac_status=$?
21339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340 (exit $ac_status); }; }; then
d92419e5
JB
21341 gdb_cv_have_aix_thread_debug=yes
21342else
bec39cab
AC
21343 echo "$as_me: failed program was:" >&5
21344sed 's/^/| /' conftest.$ac_ext >&5
21345
b4e70030 21346gdb_cv_have_aix_thread_debug=no
d92419e5 21347fi
bec39cab 21348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d92419e5
JB
21349fi
21350
b4e70030
JB
21351 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
21352echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
d92419e5
JB
21353 if test $gdb_cv_have_aix_thread_debug = yes; then
21354 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
3483b318 21355 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
d92419e5
JB
21356 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
21357 fi
21358 ;;
c906108c 21359 esac
bec39cab 21360
c906108c
SS
21361fi
21362
3f47be5c 21363if test "x$ac_cv_header_thread_db_h" = "xyes"; then
b4e70030
JB
21364 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
21365echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
bec39cab
AC
21366if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
21367 echo $ECHO_N "(cached) $ECHO_C" >&6
21368else
21369 cat >conftest.$ac_ext <<_ACEOF
21370/* confdefs.h. */
21371_ACEOF
21372cat confdefs.h >>conftest.$ac_ext
21373cat >>conftest.$ac_ext <<_ACEOF
21374/* end confdefs.h. */
3f47be5c 21375#include <thread_db.h>
bec39cab
AC
21376int
21377main ()
21378{
3f47be5c 21379int i = TD_NOTALLOC;
bec39cab
AC
21380 ;
21381 return 0;
21382}
21383_ACEOF
21384rm -f conftest.$ac_objext
21385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21386 (eval $ac_compile) 2>conftest.er1
21387 ac_status=$?
21388 grep -v '^ *+' conftest.er1 >conftest.err
21389 rm -f conftest.er1
21390 cat conftest.err >&5
21391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21392 (exit $ac_status); } &&
b4e70030
JB
21393 { ac_try='test -z "$ac_c_werror_flag"
21394 || test ! -s conftest.err'
bec39cab
AC
21395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21396 (eval $ac_try) 2>&5
21397 ac_status=$?
21398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21399 (exit $ac_status); }; } &&
21400 { ac_try='test -s conftest.$ac_objext'
21401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21402 (eval $ac_try) 2>&5
21403 ac_status=$?
21404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405 (exit $ac_status); }; }; then
3f47be5c
EZ
21406 gdb_cv_thread_db_h_has_td_notalloc=yes
21407else
bec39cab
AC
21408 echo "$as_me: failed program was:" >&5
21409sed 's/^/| /' conftest.$ac_ext >&5
21410
b4e70030 21411gdb_cv_thread_db_h_has_td_notalloc=no
bec39cab 21412
3f47be5c 21413fi
bec39cab 21414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3f47be5c 21415
bec39cab 21416fi
b4e70030
JB
21417echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
21418echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
59f80f10
DJ
21419 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
21420echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
21421if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
21422 echo $ECHO_N "(cached) $ECHO_C" >&6
21423else
21424 cat >conftest.$ac_ext <<_ACEOF
21425/* confdefs.h. */
21426_ACEOF
21427cat confdefs.h >>conftest.$ac_ext
21428cat >>conftest.$ac_ext <<_ACEOF
21429/* end confdefs.h. */
21430#include <thread_db.h>
21431int
21432main ()
21433{
21434int i = TD_VERSION;
21435 ;
21436 return 0;
21437}
21438_ACEOF
21439rm -f conftest.$ac_objext
21440if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21441 (eval $ac_compile) 2>conftest.er1
21442 ac_status=$?
21443 grep -v '^ *+' conftest.er1 >conftest.err
21444 rm -f conftest.er1
21445 cat conftest.err >&5
21446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447 (exit $ac_status); } &&
21448 { ac_try='test -z "$ac_c_werror_flag"
21449 || test ! -s conftest.err'
21450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21451 (eval $ac_try) 2>&5
21452 ac_status=$?
21453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454 (exit $ac_status); }; } &&
21455 { ac_try='test -s conftest.$ac_objext'
21456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21457 (eval $ac_try) 2>&5
21458 ac_status=$?
21459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21460 (exit $ac_status); }; }; then
21461 gdb_cv_thread_db_h_has_td_version=yes
21462else
21463 echo "$as_me: failed program was:" >&5
21464sed 's/^/| /' conftest.$ac_ext >&5
21465
21466gdb_cv_thread_db_h_has_td_version=no
21467
21468fi
21469rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21470
21471fi
21472echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
21473echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
21474 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
21475echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
21476if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
21477 echo $ECHO_N "(cached) $ECHO_C" >&6
21478else
21479 cat >conftest.$ac_ext <<_ACEOF
21480/* confdefs.h. */
21481_ACEOF
21482cat confdefs.h >>conftest.$ac_ext
21483cat >>conftest.$ac_ext <<_ACEOF
21484/* end confdefs.h. */
21485#include <thread_db.h>
21486int
21487main ()
21488{
21489int i = TD_NOTLS;
21490 ;
21491 return 0;
21492}
21493_ACEOF
21494rm -f conftest.$ac_objext
21495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21496 (eval $ac_compile) 2>conftest.er1
21497 ac_status=$?
21498 grep -v '^ *+' conftest.er1 >conftest.err
21499 rm -f conftest.er1
21500 cat conftest.err >&5
21501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21502 (exit $ac_status); } &&
21503 { ac_try='test -z "$ac_c_werror_flag"
21504 || test ! -s conftest.err'
21505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21506 (eval $ac_try) 2>&5
21507 ac_status=$?
21508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509 (exit $ac_status); }; } &&
21510 { ac_try='test -s conftest.$ac_objext'
21511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21512 (eval $ac_try) 2>&5
21513 ac_status=$?
21514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21515 (exit $ac_status); }; }; then
21516 gdb_cv_thread_db_h_has_td_notls=yes
21517else
21518 echo "$as_me: failed program was:" >&5
21519sed 's/^/| /' conftest.$ac_ext >&5
21520
21521gdb_cv_thread_db_h_has_td_notls=no
21522
21523fi
21524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21525
21526fi
21527echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
21528echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
3f47be5c
EZ
21529fi
21530if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
bec39cab
AC
21531
21532cat >>confdefs.h <<\_ACEOF
3f47be5c 21533#define THREAD_DB_HAS_TD_NOTALLOC 1
bec39cab 21534_ACEOF
3f47be5c 21535
59f80f10
DJ
21536fi
21537if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
21538
21539cat >>confdefs.h <<\_ACEOF
21540#define THREAD_DB_HAS_TD_VERSION 1
21541_ACEOF
21542
21543fi
21544if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
21545
21546cat >>confdefs.h <<\_ACEOF
21547#define THREAD_DB_HAS_TD_NOTLS 1
21548_ACEOF
21549
3f47be5c
EZ
21550fi
21551
b757528f 21552if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
b4e70030
JB
21553 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
21554echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
bec39cab
AC
21555if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
21556 echo $ECHO_N "(cached) $ECHO_C" >&6
21557else
21558 cat >conftest.$ac_ext <<_ACEOF
21559/* confdefs.h. */
21560_ACEOF
21561cat confdefs.h >>conftest.$ac_ext
21562cat >>conftest.$ac_ext <<_ACEOF
21563/* end confdefs.h. */
b757528f 21564#include <sys/syscall.h>
bec39cab
AC
21565int
21566main ()
21567{
b757528f 21568int i = __NR_tkill;
bec39cab
AC
21569 ;
21570 return 0;
21571}
21572_ACEOF
21573rm -f conftest.$ac_objext
21574if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21575 (eval $ac_compile) 2>conftest.er1
21576 ac_status=$?
21577 grep -v '^ *+' conftest.er1 >conftest.err
21578 rm -f conftest.er1
21579 cat conftest.err >&5
21580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581 (exit $ac_status); } &&
b4e70030
JB
21582 { ac_try='test -z "$ac_c_werror_flag"
21583 || test ! -s conftest.err'
bec39cab
AC
21584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21585 (eval $ac_try) 2>&5
21586 ac_status=$?
21587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21588 (exit $ac_status); }; } &&
21589 { ac_try='test -s conftest.$ac_objext'
21590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21591 (eval $ac_try) 2>&5
21592 ac_status=$?
21593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21594 (exit $ac_status); }; }; then
b757528f
JJ
21595 gdb_cv_sys_syscall_h_has_tkill=yes
21596else
bec39cab
AC
21597 echo "$as_me: failed program was:" >&5
21598sed 's/^/| /' conftest.$ac_ext >&5
21599
b4e70030 21600gdb_cv_sys_syscall_h_has_tkill=no
bec39cab 21601
b757528f 21602fi
bec39cab 21603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b757528f 21604
bec39cab 21605fi
b4e70030
JB
21606echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
21607echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
b757528f
JJ
21608fi
21609if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
bec39cab
AC
21610
21611cat >>confdefs.h <<\_ACEOF
b757528f 21612#define HAVE_TKILL_SYSCALL 1
bec39cab 21613_ACEOF
b757528f
JJ
21614
21615fi
21616
fb40c209 21617
bec39cab 21618
b4e70030 21619# Check whether --with-sysroot or --without-sysroot was given.
030292b7 21620if test "${with_sysroot+set}" = set; then
b4e70030
JB
21621 withval="$with_sysroot"
21622
030292b7 21623 case ${with_sysroot} in
715d1656 21624 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
030292b7
DJ
21625 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
21626 esac
21627
21628 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
21629
07abfebf
RS
21630 if test "x$prefix" = xNONE; then
21631 test_prefix=/usr/local
21632 else
21633 test_prefix=$prefix
21634 fi
aa28a74e 21635 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
07abfebf 21636 test_exec_prefix=$test_prefix
030292b7 21637 else
07abfebf 21638 test_exec_prefix=$exec_prefix
030292b7
DJ
21639 fi
21640 case ${TARGET_SYSTEM_ROOT} in
715d1656 21641 "${test_prefix}"|"${test_prefix}/"*|\
07abfebf
RS
21642 "${test_exec_prefix}"|"${test_exec_prefix}/"*|\
21643 '${prefix}'|'${prefix}/'*|\
715d1656 21644 '${exec_prefix}'|'${exec_prefix}/'*)
030292b7
DJ
21645 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
21646 TARGET_SYSTEM_ROOT_DEFINE="$t"
21647 ;;
21648 esac
21649
21650else
bec39cab 21651
030292b7
DJ
21652 TARGET_SYSTEM_ROOT=
21653 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
21654
b4e70030 21655fi;
030292b7
DJ
21656
21657
21658
b4e70030 21659# Check whether --enable-werror or --disable-werror was given.
094a342e 21660if test "${enable_werror+set}" = set; then
b4e70030
JB
21661 enableval="$enable_werror"
21662 case "${enableval}" in
094a342e
MK
21663 yes | y) ERROR_ON_WARNING="yes" ;;
21664 no | n) ERROR_ON_WARNING="no" ;;
21665 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
21666echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
21667 { (exit 1); exit 1; }; } ;;
21668 esac
b4e70030 21669fi;
094a342e
MK
21670
21671# Enable -Werror by default when using gcc
21672if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
21673 ERROR_ON_WARNING=yes
21674fi
21675
21676WERROR_CFLAGS=""
21677if test "${ERROR_ON_WARNING}" = yes ; then
21678 WERROR_CFLAGS="-Werror"
21679fi
21680
aa79a185
DJ
21681# The entries after -Wno-pointer-sign are disabled warnings which may
21682# be enabled in the future, which can not currently be used to build
21683# GDB.
21684# NOTE: If you change this list, remember to update
3b851bce 21685# gdb/doc/gdbint.texinfo.
aa79a185
DJ
21686build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
21687-Wformat-nonliteral -Wno-pointer-sign \
58b38ee2 21688-Wno-unused -Wno-switch -Wno-char-subscripts"
a3b362c4 21689
b4e70030 21690# Check whether --enable-build-warnings or --disable-build-warnings was given.
c906108c 21691if test "${enable_build_warnings+set}" = set; then
b4e70030
JB
21692 enableval="$enable_build_warnings"
21693 case "${enableval}" in
c906108c
SS
21694 yes) ;;
21695 no) build_warnings="-w";;
21696 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21697 build_warnings="${build_warnings} ${t}";;
21698 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21699 build_warnings="${t} ${build_warnings}";;
21700 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
21701esac
d4f3574e 21702if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
746a987d 21703 echo "Setting compiler warning flags = $build_warnings" 6>&1
c906108c 21704fi
b4e70030 21705fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
3b851bce 21706if test "${enable_gdb_build_warnings+set}" = set; then
b4e70030
JB
21707 enableval="$enable_gdb_build_warnings"
21708 case "${enableval}" in
3b851bce
AC
21709 yes) ;;
21710 no) build_warnings="-w";;
21711 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21712 build_warnings="${build_warnings} ${t}";;
21713 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21714 build_warnings="${t} ${build_warnings}";;
21715 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
21716esac
21717if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
21718 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
21719fi
b4e70030 21720fi; WARN_CFLAGS=""
c906108c
SS
21721if test "x${build_warnings}" != x -a "x$GCC" = xyes
21722then
b4e70030
JB
21723 echo "$as_me:$LINENO: checking compiler warning flags" >&5
21724echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
746a987d
AC
21725 # Separate out the -Werror flag as some files just cannot be
21726 # compiled with it enabled.
21727 for w in ${build_warnings}; do
21728 case $w in
21729 -Werr*) WERROR_CFLAGS=-Werror ;;
21730 *) # Check that GCC accepts it
4536bbc6
AC
21731 saved_CFLAGS="$CFLAGS"
21732 CFLAGS="$CFLAGS $w"
bec39cab
AC
21733 cat >conftest.$ac_ext <<_ACEOF
21734/* confdefs.h. */
21735_ACEOF
21736cat confdefs.h >>conftest.$ac_ext
21737cat >>conftest.$ac_ext <<_ACEOF
21738/* end confdefs.h. */
4536bbc6 21739
bec39cab
AC
21740int
21741main ()
21742{
4536bbc6 21743
bec39cab
AC
21744 ;
21745 return 0;
21746}
21747_ACEOF
21748rm -f conftest.$ac_objext
21749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21750 (eval $ac_compile) 2>conftest.er1
21751 ac_status=$?
21752 grep -v '^ *+' conftest.er1 >conftest.err
21753 rm -f conftest.er1
21754 cat conftest.err >&5
21755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21756 (exit $ac_status); } &&
b4e70030
JB
21757 { ac_try='test -z "$ac_c_werror_flag"
21758 || test ! -s conftest.err'
bec39cab
AC
21759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21760 (eval $ac_try) 2>&5
21761 ac_status=$?
21762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763 (exit $ac_status); }; } &&
21764 { ac_try='test -s conftest.$ac_objext'
21765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21766 (eval $ac_try) 2>&5
21767 ac_status=$?
21768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769 (exit $ac_status); }; }; then
4536bbc6
AC
21770 WARN_CFLAGS="${WARN_CFLAGS} $w"
21771else
bec39cab
AC
21772 echo "$as_me: failed program was:" >&5
21773sed 's/^/| /' conftest.$ac_ext >&5
21774
4536bbc6 21775fi
bec39cab 21776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4536bbc6 21777 CFLAGS="$saved_CFLAGS"
746a987d
AC
21778 esac
21779 done
aa79a185
DJ
21780 echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
21781echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
c906108c
SS
21782fi
21783
21784
104c1213 21785
7a292a7a 21786# In the Cygwin environment, we need some additional flags.
b4e70030
JB
21787echo "$as_me:$LINENO: checking for cygwin" >&5
21788echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
bec39cab
AC
21789if test "${gdb_cv_os_cygwin+set}" = set; then
21790 echo $ECHO_N "(cached) $ECHO_C" >&6
21791else
21792 cat >conftest.$ac_ext <<_ACEOF
21793/* confdefs.h. */
21794_ACEOF
21795cat confdefs.h >>conftest.$ac_ext
21796cat >>conftest.$ac_ext <<_ACEOF
21797/* end confdefs.h. */
7a292a7a
SS
21798
21799#if defined (__CYGWIN__) || defined (__CYGWIN32__)
21800lose
21801#endif
bec39cab 21802_ACEOF
7a292a7a 21803if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 21804 $EGREP "lose" >/dev/null 2>&1; then
7a292a7a
SS
21805 gdb_cv_os_cygwin=yes
21806else
7a292a7a
SS
21807 gdb_cv_os_cygwin=no
21808fi
21809rm -f conftest*
21810
21811fi
b4e70030
JB
21812echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
21813echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
7a292a7a 21814
aff38e61 21815
3eb25fda 21816SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
aff38e61 21817case ${host} in
95cbc983
AC
21818 *go32* ) SER_HARDWIRE=ser-go32.o ;;
21819 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
0ea3f30e 21820 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
aff38e61
AC
21821esac
21822
21823
cd0fc7c3
SS
21824# libreadline needs libuser32.a in a cygwin environment
21825WIN32LIBS=
21826if test x$gdb_cv_os_cygwin = xyes; then
c5394b80
JM
21827 WIN32LIBS="-luser32"
21828 case "${target}" in
21829 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
21830 ;;
21831 esac
cd0fc7c3 21832fi
c906108c 21833
b4505029
MM
21834# The ser-tcp.c module requires sockets.
21835case ${host} in
21836 *mingw32*)
21837
21838cat >>confdefs.h <<\_ACEOF
21839#define USE_WIN32API 1
21840_ACEOF
21841
21842 WIN32LIBS="$WIN32LIBS -lws2_32"
21843 ;;
21844esac
21845
7a292a7a 21846
31d99776
DJ
21847# Add ELF support to GDB, but only if BFD includes ELF support.
21848OLD_CFLAGS=$CFLAGS
21849OLD_LDFLAGS=$LDFLAGS
21850OLD_LIBS=$LIBS
cab58a69 21851CFLAGS="$CFLAGS -I${srcdir}/../include -I../bfd -I${srcdir}/../bfd"
31d99776
DJ
21852LDFLAGS="$LDFLAGS -L../bfd -L../libiberty"
21853LIBS="$LIBS -lbfd -liberty"
21854echo "$as_me:$LINENO: checking for ELF support in BFD" >&5
21855echo $ECHO_N "checking for ELF support in BFD... $ECHO_C" >&6
21856if test "${gdb_cv_var_elf+set}" = set; then
21857 echo $ECHO_N "(cached) $ECHO_C" >&6
21858else
21859 cat >conftest.$ac_ext <<_ACEOF
21860/* confdefs.h. */
21861_ACEOF
21862cat confdefs.h >>conftest.$ac_ext
21863cat >>conftest.$ac_ext <<_ACEOF
21864/* end confdefs.h. */
21865#include <stdlib.h>
21866#include "bfd.h"
21867#include "elf-bfd.h"
21868
21869int
21870main ()
21871{
21872bfd *abfd = NULL; bfd_get_elf_phdr_upper_bound (abfd);
21873 ;
21874 return 0;
21875}
21876_ACEOF
21877rm -f conftest.$ac_objext conftest$ac_exeext
21878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21879 (eval $ac_link) 2>conftest.er1
21880 ac_status=$?
21881 grep -v '^ *+' conftest.er1 >conftest.err
21882 rm -f conftest.er1
21883 cat conftest.err >&5
21884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21885 (exit $ac_status); } &&
21886 { ac_try='test -z "$ac_c_werror_flag"
21887 || test ! -s conftest.err'
21888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21889 (eval $ac_try) 2>&5
21890 ac_status=$?
21891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892 (exit $ac_status); }; } &&
21893 { ac_try='test -s conftest$ac_exeext'
21894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21895 (eval $ac_try) 2>&5
21896 ac_status=$?
21897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898 (exit $ac_status); }; }; then
21899 gdb_cv_var_elf=yes
21900else
21901 echo "$as_me: failed program was:" >&5
21902sed 's/^/| /' conftest.$ac_ext >&5
21903
21904gdb_cv_var_elf=no
21905fi
21906rm -f conftest.err conftest.$ac_objext \
21907 conftest$ac_exeext conftest.$ac_ext
21908fi
21909echo "$as_me:$LINENO: result: $gdb_cv_var_elf" >&5
21910echo "${ECHO_T}$gdb_cv_var_elf" >&6
21911if test $gdb_cv_var_elf = yes; then
21912 CONFIG_OBS="$CONFIG_OBS elfread.o"
21913
21914cat >>confdefs.h <<\_ACEOF
21915#define HAVE_ELF 1
21916_ACEOF
21917
21918fi
21919CFLAGS=$OLD_CFLAGS
21920LDFLAGS=$OLD_LDFLAGS
21921LIBS=$OLD_LIBS
21922
121ce6e5
DJ
21923# Add any host-specific objects to GDB.
21924CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
21925
3fc11d3e
JM
21926LIBGUI="../libgui/src/libgui.a"
21927GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
21928
21929
7a292a7a 21930
3fc11d3e
JM
21931WIN32LDAPP=
21932
21933
21934
d91670b9
CV
21935case "${host}" in
21936*-*-cygwin*)
21937 configdir="win"
21938 ;;
21939*)
21940 configdir="unix"
21941 ;;
21942esac
3fc11d3e
JM
21943
21944GDBTKLIBS=
21945if test "${enable_gdbtk}" = "yes"; then
21946
d1c3b63a
KS
21947 # Gdbtk must have an absolute path to srcdir in order to run
21948 # properly when not installed.
21949 here=`pwd`
21950 cd ${srcdir}
21951 GDBTK_SRC_DIR=`pwd`
21952 cd $here
21953
bec39cab 21954
3fc11d3e
JM
21955#
21956# Ok, lets find the tcl configuration
bec39cab 21957# First, look for one uninstalled.
3fc11d3e
JM
21958# the alternative search directory is invoked by --with-tclconfig
21959#
21960
21961if test x"${no_tcl}" = x ; then
21962 # we reset no_tcl in case something fails here
21963 no_tcl=true
bec39cab 21964
b4e70030 21965# Check whether --with-tclconfig or --without-tclconfig was given.
3fc11d3e 21966if test "${with_tclconfig+set}" = set; then
b4e70030
JB
21967 withval="$with_tclconfig"
21968 with_tclconfig=${withval}
21969fi;
21970 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
21971echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
bec39cab
AC
21972 if test "${ac_cv_c_tclconfig+set}" = set; then
21973 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 21974else
bec39cab 21975
3fc11d3e
JM
21976
21977 # First check to see if --with-tclconfig was specified.
21978 if test x"${with_tclconfig}" != x ; then
21979 if test -f "${with_tclconfig}/tclConfig.sh" ; then
21980 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
21981 else
bec39cab
AC
21982 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
21983echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
21984 { (exit 1); exit 1; }; }
3fc11d3e
JM
21985 fi
21986 fi
21987
21988 # then check for a private Tcl installation
21989 if test x"${ac_cv_c_tclconfig}" = x ; then
21990 for i in \
21991 ../tcl \
21992 `ls -dr ../tcl[7-9]* 2>/dev/null` \
21993 ../../tcl \
21994 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
21995 ../../../tcl \
21996 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
21997 if test -f "$i/${configdir}/tclConfig.sh" ; then
21998 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
21999 break
22000 fi
22001 done
22002 fi
22003 # check in a few common install locations
22004 if test x"${ac_cv_c_tclconfig}" = x ; then
22005 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22006 if test -f "$i/tclConfig.sh" ; then
22007 ac_cv_c_tclconfig=`(cd $i; pwd)`
22008 break
22009 fi
22010 done
22011 fi
22012 # check in a few other private locations
22013 if test x"${ac_cv_c_tclconfig}" = x ; then
22014 for i in \
22015 ${srcdir}/../tcl \
22016 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
22017 if test -f "$i/${configdir}/tclConfig.sh" ; then
22018 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
22019 break
22020 fi
22021 done
22022 fi
bec39cab 22023
3fc11d3e
JM
22024fi
22025
22026 if test x"${ac_cv_c_tclconfig}" = x ; then
22027 TCLCONFIG="# no Tcl configs found"
bec39cab
AC
22028 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
22029echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
3fc11d3e
JM
22030 else
22031 no_tcl=
22032 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
b4e70030
JB
22033 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
22034echo "${ECHO_T}found $TCLCONFIG" >&6
3fc11d3e
JM
22035 fi
22036fi
22037
22038 if test -z "${no_tcl}"; then
bec39cab 22039
3fc11d3e
JM
22040 . $TCLCONFIG
22041
3fc11d3e
JM
22042
22043
22044
22045
3fc11d3e
JM
22046
22047
22048
bec39cab
AC
22049
22050
22051
22052
22053
22054
22055
22056
22057
22058
22059
22060
22061
22062
22063
22064
22065
22066
22067
3fc11d3e
JM
22068#
22069# Ok, lets find the tk configuration
bec39cab 22070# First, look for one uninstalled.
3fc11d3e
JM
22071# the alternative search directory is invoked by --with-tkconfig
22072#
22073
22074if test x"${no_tk}" = x ; then
22075 # we reset no_tk in case something fails here
22076 no_tk=true
bec39cab 22077
b4e70030 22078# Check whether --with-tkconfig or --without-tkconfig was given.
3fc11d3e 22079if test "${with_tkconfig+set}" = set; then
b4e70030
JB
22080 withval="$with_tkconfig"
22081 with_tkconfig=${withval}
22082fi;
22083 echo "$as_me:$LINENO: checking for Tk configuration" >&5
22084echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
bec39cab
AC
22085 if test "${ac_cv_c_tkconfig+set}" = set; then
22086 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 22087else
bec39cab 22088
3fc11d3e
JM
22089
22090 # First check to see if --with-tkconfig was specified.
22091 if test x"${with_tkconfig}" != x ; then
22092 if test -f "${with_tkconfig}/tkConfig.sh" ; then
22093 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
22094 else
bec39cab
AC
22095 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
22096echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
22097 { (exit 1); exit 1; }; }
3fc11d3e
JM
22098 fi
22099 fi
22100
22101 # then check for a private Tk library
22102 if test x"${ac_cv_c_tkconfig}" = x ; then
22103 for i in \
22104 ../tk \
22105 `ls -dr ../tk[4-9]* 2>/dev/null` \
22106 ../../tk \
22107 `ls -dr ../../tk[4-9]* 2>/dev/null` \
22108 ../../../tk \
22109 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
22110 if test -f "$i/${configdir}/tkConfig.sh" ; then
22111 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
22112 break
22113 fi
22114 done
22115 fi
22116 # check in a few common install locations
22117 if test x"${ac_cv_c_tkconfig}" = x ; then
22118 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22119 if test -f "$i/tkConfig.sh" ; then
22120 ac_cv_c_tkconfig=`(cd $i; pwd)`
22121 break
22122 fi
22123 done
22124 fi
22125 # check in a few other private locations
22126 if test x"${ac_cv_c_tkconfig}" = x ; then
22127 for i in \
22128 ${srcdir}/../tk \
22129 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
22130 if test -f "$i/${configdir}/tkConfig.sh" ; then
22131 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
22132 break
22133 fi
22134 done
22135 fi
bec39cab 22136
3fc11d3e
JM
22137fi
22138
22139 if test x"${ac_cv_c_tkconfig}" = x ; then
22140 TKCONFIG="# no Tk configs found"
bec39cab
AC
22141 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
22142echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
3fc11d3e
JM
22143 else
22144 no_tk=
22145 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
b4e70030
JB
22146 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
22147echo "${ECHO_T}found $TKCONFIG" >&6
3fc11d3e
JM
22148 fi
22149fi
22150
22151
22152
dd2504ab
JM
22153 # now look for Tcl library stuff
22154
d91670b9 22155 tcldir="../tcl/${configdir}/"
dd2504ab
JM
22156
22157 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
22158
3fc11d3e
JM
22159 # If $no_tk is nonempty, then we can't do Tk, and there is no
22160 # point to doing Tcl.
22161 if test -z "${no_tk}"; then
bec39cab 22162
3fc11d3e
JM
22163 if test -f "$TKCONFIG" ; then
22164 . $TKCONFIG
22165 fi
22166
3fc11d3e 22167
3fc11d3e
JM
22168
22169
3fc11d3e 22170
bec39cab
AC
22171
22172
22173
22174
22175
22176
22177
22178
22179
3fc11d3e
JM
22180#
22181# Ok, lets find the tcl source trees so we can use the headers
22182# Warning: transition of version 9 to 10 will break this algorithm
22183# because 10 sorts before 9. We also look for just tcl. We have to
22184# be careful that we don't match stuff like tclX by accident.
22185# the alternative search directory is involked by --with-tclinclude
22186#
22187
22188no_tcl=true
b4e70030
JB
22189echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
22190echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
bec39cab 22191
b4e70030 22192# Check whether --with-tclinclude or --without-tclinclude was given.
3fc11d3e 22193if test "${with_tclinclude+set}" = set; then
b4e70030
JB
22194 withval="$with_tclinclude"
22195 with_tclinclude=${withval}
22196fi;
bec39cab
AC
22197if test "${ac_cv_c_tclh+set}" = set; then
22198 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 22199else
bec39cab 22200
3fc11d3e
JM
22201# first check to see if --with-tclinclude was specified
22202if test x"${with_tclinclude}" != x ; then
22203 if test -f ${with_tclinclude}/tclInt.h ; then
22204 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
22205 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
22206 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
22207 else
bec39cab
AC
22208 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
22209echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
22210 { (exit 1); exit 1; }; }
3fc11d3e
JM
22211 fi
22212fi
22213
22214# next check if it came with Tcl configuration file
22215if test x"${ac_cv_c_tclconfig}" = x ; then
22216 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
22217 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
22218 fi
22219fi
22220
22221# next check in private source directory
22222#
22223# since ls returns lowest version numbers first, reverse its output
22224if test x"${ac_cv_c_tclh}" = x ; then
22225 for i in \
22226 ${srcdir}/../tcl \
22227 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
22228 ${srcdir}/../../tcl \
22229 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
22230 ${srcdir}/../../../tcl \
22231 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
22232 if test -f $i/generic/tclInt.h ; then
22233 ac_cv_c_tclh=`(cd $i/generic; pwd)`
22234 break
22235 fi
22236 done
22237fi
22238# finally check in a few common install locations
22239#
22240# since ls returns lowest version numbers first, reverse its output
22241if test x"${ac_cv_c_tclh}" = x ; then
22242 for i in \
22243 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
22244 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
22245 /usr/local/src/tcl \
22246 /usr/local/lib/tcl \
22247 ${prefix}/include ; do
22248 if test -f $i/generic/tclInt.h ; then
22249 ac_cv_c_tclh=`(cd $i/generic; pwd)`
22250 break
22251 fi
22252 done
22253fi
22254# see if one is installed
22255if test x"${ac_cv_c_tclh}" = x ; then
bec39cab 22256 if test "${ac_cv_header_tclInt_h+set}" = set; then
b4e70030
JB
22257 echo "$as_me:$LINENO: checking for tclInt.h" >&5
22258echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
bec39cab
AC
22259if test "${ac_cv_header_tclInt_h+set}" = set; then
22260 echo $ECHO_N "(cached) $ECHO_C" >&6
22261fi
b4e70030
JB
22262echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
22263echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
bec39cab
AC
22264else
22265 # Is the header compilable?
b4e70030
JB
22266echo "$as_me:$LINENO: checking tclInt.h usability" >&5
22267echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
bec39cab
AC
22268cat >conftest.$ac_ext <<_ACEOF
22269/* confdefs.h. */
22270_ACEOF
22271cat confdefs.h >>conftest.$ac_ext
22272cat >>conftest.$ac_ext <<_ACEOF
22273/* end confdefs.h. */
22274$ac_includes_default
22275#include <tclInt.h>
22276_ACEOF
22277rm -f conftest.$ac_objext
22278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22279 (eval $ac_compile) 2>conftest.er1
22280 ac_status=$?
22281 grep -v '^ *+' conftest.er1 >conftest.err
22282 rm -f conftest.er1
22283 cat conftest.err >&5
22284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22285 (exit $ac_status); } &&
b4e70030
JB
22286 { ac_try='test -z "$ac_c_werror_flag"
22287 || test ! -s conftest.err'
bec39cab
AC
22288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22289 (eval $ac_try) 2>&5
22290 ac_status=$?
22291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22292 (exit $ac_status); }; } &&
22293 { ac_try='test -s conftest.$ac_objext'
22294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22295 (eval $ac_try) 2>&5
22296 ac_status=$?
22297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22298 (exit $ac_status); }; }; then
22299 ac_header_compiler=yes
22300else
22301 echo "$as_me: failed program was:" >&5
22302sed 's/^/| /' conftest.$ac_ext >&5
22303
b4e70030 22304ac_header_compiler=no
bec39cab
AC
22305fi
22306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
22307echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22308echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
22309
22310# Is the header present?
b4e70030
JB
22311echo "$as_me:$LINENO: checking tclInt.h presence" >&5
22312echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
bec39cab
AC
22313cat >conftest.$ac_ext <<_ACEOF
22314/* confdefs.h. */
22315_ACEOF
22316cat confdefs.h >>conftest.$ac_ext
22317cat >>conftest.$ac_ext <<_ACEOF
22318/* end confdefs.h. */
3fc11d3e 22319#include <tclInt.h>
bec39cab
AC
22320_ACEOF
22321if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22323 ac_status=$?
22324 grep -v '^ *+' conftest.er1 >conftest.err
22325 rm -f conftest.er1
22326 cat conftest.err >&5
22327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22328 (exit $ac_status); } >/dev/null; then
22329 if test -s conftest.err; then
22330 ac_cpp_err=$ac_c_preproc_warn_flag
22331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22332 else
22333 ac_cpp_err=
22334 fi
22335else
22336 ac_cpp_err=yes
3fc11d3e 22337fi
bec39cab
AC
22338if test -z "$ac_cpp_err"; then
22339 ac_header_preproc=yes
22340else
22341 echo "$as_me: failed program was:" >&5
22342sed 's/^/| /' conftest.$ac_ext >&5
22343
22344 ac_header_preproc=no
3fc11d3e 22345fi
bec39cab 22346rm -f conftest.err conftest.$ac_ext
b4e70030
JB
22347echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22348echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
22349
22350# So? What about this header?
22351case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22352 yes:no: )
22353 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
22354echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22355 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
22356echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
22357 ac_header_preproc=yes
22358 ;;
22359 no:yes:* )
22360 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
22361echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
22362 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
22363echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
22364 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
22365echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
22366 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
22367echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
22368 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
22369echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
22370 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
22371echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
22372 (
22373 cat <<\_ASBOX
22374## ------------------------------------------ ##
22375## Report this to the AC_PACKAGE_NAME lists. ##
22376## ------------------------------------------ ##
22377_ASBOX
22378 ) |
22379 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
22380 ;;
22381esac
b4e70030
JB
22382echo "$as_me:$LINENO: checking for tclInt.h" >&5
22383echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
bec39cab
AC
22384if test "${ac_cv_header_tclInt_h+set}" = set; then
22385 echo $ECHO_N "(cached) $ECHO_C" >&6
22386else
22387 ac_cv_header_tclInt_h=$ac_header_preproc
22388fi
b4e70030
JB
22389echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
22390echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
bec39cab
AC
22391
22392fi
22393if test $ac_cv_header_tclInt_h = yes; then
3fc11d3e
JM
22394 ac_cv_c_tclh=installed
22395else
bec39cab 22396 ac_cv_c_tclh=""
3fc11d3e
JM
22397fi
22398
bec39cab 22399
3fc11d3e
JM
22400fi
22401
22402fi
22403
22404if test x"${ac_cv_c_tclh}" = x ; then
22405 TCLHDIR="# no Tcl private headers found"
bec39cab
AC
22406 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
22407echo "$as_me: error: Can't find Tcl private headers" >&2;}
22408 { (exit 1); exit 1; }; }
3fc11d3e
JM
22409fi
22410if test x"${ac_cv_c_tclh}" != x ; then
22411 no_tcl=""
22412 if test x"${ac_cv_c_tclh}" = x"installed" ; then
b4e70030
JB
22413 echo "$as_me:$LINENO: result: is installed" >&5
22414echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
22415 TCLHDIR=""
22416 else
b4e70030
JB
22417 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
22418echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
3fc11d3e
JM
22419 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
22420 TCLHDIR="-I${ac_cv_c_tclh}"
22421 fi
22422fi
22423
22424
22425
bec39cab 22426
3fc11d3e
JM
22427#
22428# Ok, lets find the tk source trees so we can use the headers
22429# If the directory (presumably symlink) named "tk" exists, use that one
22430# in preference to any others. Same logic is used when choosing library
22431# and again with Tcl. The search order is the best place to look first, then in
22432# decreasing significance. The loop breaks if the trigger file is found.
22433# Note the gross little conversion here of srcdir by cd'ing to the found
22434# directory. This converts the path from a relative to an absolute, so
22435# recursive cache variables for the path will work right. We check all
22436# the possible paths in one loop rather than many seperate loops to speed
22437# things up.
22438# the alternative search directory is involked by --with-tkinclude
22439#
22440no_tk=true
b4e70030
JB
22441echo "$as_me:$LINENO: checking for Tk private headers" >&5
22442echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
bec39cab 22443
b4e70030 22444# Check whether --with-tkinclude or --without-tkinclude was given.
3fc11d3e 22445if test "${with_tkinclude+set}" = set; then
b4e70030
JB
22446 withval="$with_tkinclude"
22447 with_tkinclude=${withval}
22448fi;
bec39cab
AC
22449if test "${ac_cv_c_tkh+set}" = set; then
22450 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 22451else
bec39cab 22452
3fc11d3e
JM
22453# first check to see if --with-tkinclude was specified
22454if test x"${with_tkinclude}" != x ; then
22455 if test -f ${with_tkinclude}/tk.h ; then
22456 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
22457 elif test -f ${with_tkinclude}/generic/tk.h ; then
22458 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
22459 else
bec39cab
AC
22460 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
22461echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
22462 { (exit 1); exit 1; }; }
3fc11d3e
JM
22463 fi
22464fi
22465
22466# next check if it came with Tk configuration file
22467if test x"${ac_cv_c_tkconfig}" = x ; then
22468 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
22469 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
22470 fi
22471fi
22472
22473# next check in private source directory
22474#
22475# since ls returns lowest version numbers first, reverse its output
22476if test x"${ac_cv_c_tkh}" = x ; then
22477 for i in \
22478 ${srcdir}/../tk \
22479 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
22480 ${srcdir}/../../tk \
22481 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
22482 ${srcdir}/../../../tk \
22483 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
22484 if test -f $i/generic/tk.h ; then
22485 ac_cv_c_tkh=`(cd $i/generic; pwd)`
22486 break
22487 fi
22488 done
22489fi
22490# finally check in a few common install locations
22491#
22492# since ls returns lowest version numbers first, reverse its output
22493if test x"${ac_cv_c_tkh}" = x ; then
22494 for i in \
22495 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
22496 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
22497 /usr/local/src/tk \
22498 /usr/local/lib/tk \
22499 ${prefix}/include ; do
22500 if test -f $i/generic/tk.h ; then
22501 ac_cv_c_tkh=`(cd $i/generic; pwd)`
22502 break
22503 fi
22504 done
22505fi
22506# see if one is installed
22507if test x"${ac_cv_c_tkh}" = x ; then
bec39cab 22508 if test "${ac_cv_header_tk_h+set}" = set; then
b4e70030
JB
22509 echo "$as_me:$LINENO: checking for tk.h" >&5
22510echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
bec39cab
AC
22511if test "${ac_cv_header_tk_h+set}" = set; then
22512 echo $ECHO_N "(cached) $ECHO_C" >&6
22513fi
b4e70030
JB
22514echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
22515echo "${ECHO_T}$ac_cv_header_tk_h" >&6
bec39cab
AC
22516else
22517 # Is the header compilable?
b4e70030
JB
22518echo "$as_me:$LINENO: checking tk.h usability" >&5
22519echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
bec39cab
AC
22520cat >conftest.$ac_ext <<_ACEOF
22521/* confdefs.h. */
22522_ACEOF
22523cat confdefs.h >>conftest.$ac_ext
22524cat >>conftest.$ac_ext <<_ACEOF
22525/* end confdefs.h. */
22526$ac_includes_default
3fc11d3e 22527#include <tk.h>
bec39cab
AC
22528_ACEOF
22529rm -f conftest.$ac_objext
22530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22531 (eval $ac_compile) 2>conftest.er1
22532 ac_status=$?
22533 grep -v '^ *+' conftest.er1 >conftest.err
22534 rm -f conftest.er1
22535 cat conftest.err >&5
22536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22537 (exit $ac_status); } &&
b4e70030
JB
22538 { ac_try='test -z "$ac_c_werror_flag"
22539 || test ! -s conftest.err'
bec39cab
AC
22540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22541 (eval $ac_try) 2>&5
22542 ac_status=$?
22543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22544 (exit $ac_status); }; } &&
22545 { ac_try='test -s conftest.$ac_objext'
22546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22547 (eval $ac_try) 2>&5
22548 ac_status=$?
22549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22550 (exit $ac_status); }; }; then
22551 ac_header_compiler=yes
22552else
22553 echo "$as_me: failed program was:" >&5
22554sed 's/^/| /' conftest.$ac_ext >&5
22555
b4e70030 22556ac_header_compiler=no
bec39cab
AC
22557fi
22558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
22559echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22560echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
22561
22562# Is the header present?
b4e70030
JB
22563echo "$as_me:$LINENO: checking tk.h presence" >&5
22564echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
bec39cab
AC
22565cat >conftest.$ac_ext <<_ACEOF
22566/* confdefs.h. */
22567_ACEOF
22568cat confdefs.h >>conftest.$ac_ext
22569cat >>conftest.$ac_ext <<_ACEOF
22570/* end confdefs.h. */
22571#include <tk.h>
22572_ACEOF
22573if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22574 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22575 ac_status=$?
22576 grep -v '^ *+' conftest.er1 >conftest.err
22577 rm -f conftest.er1
22578 cat conftest.err >&5
22579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22580 (exit $ac_status); } >/dev/null; then
22581 if test -s conftest.err; then
22582 ac_cpp_err=$ac_c_preproc_warn_flag
22583 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22584 else
22585 ac_cpp_err=
22586 fi
22587else
22588 ac_cpp_err=yes
3fc11d3e 22589fi
bec39cab
AC
22590if test -z "$ac_cpp_err"; then
22591 ac_header_preproc=yes
22592else
22593 echo "$as_me: failed program was:" >&5
22594sed 's/^/| /' conftest.$ac_ext >&5
22595
22596 ac_header_preproc=no
22597fi
22598rm -f conftest.err conftest.$ac_ext
b4e70030
JB
22599echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22600echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
22601
22602# So? What about this header?
22603case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22604 yes:no: )
22605 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
22606echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22607 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
22608echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
22609 ac_header_preproc=yes
22610 ;;
22611 no:yes:* )
22612 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
22613echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
22614 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
22615echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
22616 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
22617echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
22618 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
22619echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
22620 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
22621echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
22622 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
22623echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
22624 (
22625 cat <<\_ASBOX
22626## ------------------------------------------ ##
22627## Report this to the AC_PACKAGE_NAME lists. ##
22628## ------------------------------------------ ##
22629_ASBOX
22630 ) |
22631 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
22632 ;;
22633esac
b4e70030
JB
22634echo "$as_me:$LINENO: checking for tk.h" >&5
22635echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
bec39cab
AC
22636if test "${ac_cv_header_tk_h+set}" = set; then
22637 echo $ECHO_N "(cached) $ECHO_C" >&6
22638else
22639 ac_cv_header_tk_h=$ac_header_preproc
22640fi
b4e70030
JB
22641echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
22642echo "${ECHO_T}$ac_cv_header_tk_h" >&6
bec39cab 22643
3fc11d3e 22644fi
bec39cab 22645if test $ac_cv_header_tk_h = yes; then
3fc11d3e
JM
22646 ac_cv_c_tkh=installed
22647else
bec39cab 22648 ac_cv_c_tkh=""
3fc11d3e
JM
22649fi
22650
bec39cab 22651
3fc11d3e
JM
22652fi
22653
22654fi
22655
22656if test x"${ac_cv_c_tkh}" != x ; then
22657 no_tk=""
22658 if test x"${ac_cv_c_tkh}" = x"installed" ; then
b4e70030
JB
22659 echo "$as_me:$LINENO: result: is installed" >&5
22660echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
22661 TKHDIR=""
22662 else
b4e70030
JB
22663 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
22664echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
3fc11d3e
JM
22665 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
22666 TKHDIR="-I${ac_cv_c_tkh}"
22667 fi
22668else
22669 TKHDIR="# no Tk directory found"
bec39cab
AC
22670 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
22671echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
3fc11d3e
JM
22672 no_tk=true
22673fi
22674
22675
22676
bec39cab 22677
b4e70030
JB
22678echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
22679echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
22680if test x"${ac_cv_c_itclh}" = x ; then
22681 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
22682 if test -f $i/generic/itcl.h ; then
22683 ac_cv_c_itclh=`(cd $i/generic; pwd)`
22684 break
22685 fi
22686 done
22687fi
22688if test x"${ac_cv_c_itclh}" = x ; then
22689 ITCLHDIR="# no Itcl private headers found"
bec39cab
AC
22690 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
22691echo "$as_me: error: Can't find Itcl private headers" >&2;}
22692 { (exit 1); exit 1; }; }
3fc11d3e
JM
22693fi
22694if test x"${ac_cv_c_itclh}" != x ; then
22695 ITCLHDIR="-I${ac_cv_c_itclh}"
22696fi
22697# should always be here
22698# ITCLLIB="../itcl/itcl/unix/libitcl.a"
22699
22700#AC_SUBST(ITCLLIB)
22701
bec39cab 22702
b4e70030
JB
22703echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
22704echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
22705if test x"${ac_cv_c_itkh}" = x ; then
22706 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
22707 if test -f $i/generic/itk.h ; then
22708 ac_cv_c_itkh=`(cd $i/generic; pwd)`
22709 break
22710 fi
22711 done
22712fi
22713if test x"${ac_cv_c_itkh}" = x ; then
22714 ITKHDIR="# no Itk private headers found"
bec39cab
AC
22715 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
22716echo "$as_me: error: Can't find Itk private headers" >&2;}
22717 { (exit 1); exit 1; }; }
3fc11d3e
JM
22718fi
22719if test x"${ac_cv_c_itkh}" != x ; then
22720 ITKHDIR="-I${ac_cv_c_itkh}"
22721fi
22722# should always be here
22723# ITKLIB="../itcl/itk/unix/libitk.a"
22724
22725#AC_SUBST(ITKLIB)
22726
3fc11d3e 22727
dd2504ab
JM
22728
22729 # now look for Tk library stuff
22730
d91670b9 22731 tkdir="../tk/${configdir}/"
dd2504ab
JM
22732
22733 TK_DEPS="${tkdir}${TK_LIB_FILE}"
22734
3fc11d3e
JM
22735 # now look for Itcl library stuff
22736
bec39cab 22737
3fc11d3e
JM
22738#
22739# Ok, lets find the itcl configuration
bec39cab 22740# First, look for one uninstalled.
3fc11d3e
JM
22741# the alternative search directory is invoked by --with-itclconfig
22742#
22743
22744if test x"${no_itcl}" = x ; then
22745 # we reset no_itcl in case something fails here
22746 no_itcl=true
bec39cab 22747
b4e70030 22748# Check whether --with-itclconfig or --without-itclconfig was given.
3fc11d3e 22749if test "${with_itclconfig+set}" = set; then
b4e70030
JB
22750 withval="$with_itclconfig"
22751 with_itclconfig=${withval}
22752fi;
22753 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
22754echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
bec39cab
AC
22755 if test "${ac_cv_c_itclconfig+set}" = set; then
22756 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 22757else
bec39cab 22758
3fc11d3e
JM
22759
22760 # First check to see if --with-itclconfig was specified.
22761 if test x"${with_itclconfig}" != x ; then
22762 if test -f "${with_itclconfig}/itclConfig.sh" ; then
22763 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
22764 else
bec39cab
AC
22765 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
22766echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
22767 { (exit 1); exit 1; }; }
3fc11d3e
JM
22768 fi
22769 fi
22770
22771 # then check for a private Itcl library
22772 if test x"${ac_cv_c_itclconfig}" = x ; then
22773 for i in \
22774 ../itcl/itcl \
22775 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
22776 ../../itcl \
22777 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
22778 ../../../itcl \
22779 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
22780 if test -f "$i/itclConfig.sh" ; then
22781 ac_cv_c_itclconfig=`(cd $i; pwd)`
22782 break
22783 fi
22784 done
22785 fi
22786 # check in a few common install locations
22787 if test x"${ac_cv_c_itclconfig}" = x ; then
22788 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22789 if test -f "$i/itclConfig.sh" ; then
22790 ac_cv_c_itclconfig=`(cd $i; pwd)`
22791 break
22792 fi
22793 done
22794 fi
22795 # check in a few other private locations
22796 if test x"${ac_cv_c_itclconfig}" = x ; then
22797 for i in \
22798 ${srcdir}/../itcl/itcl \
22799 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
22800 if test -f "$i/itclConfig.sh" ; then
22801 ac_cv_c_itclconfig=`(cd $i; pwd)`
22802 break
22803 fi
22804 done
22805 fi
bec39cab 22806
3fc11d3e
JM
22807fi
22808
22809 if test x"${ac_cv_c_itclconfig}" = x ; then
22810 ITCLCONFIG="# no Itcl configs found"
bec39cab
AC
22811 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
22812echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
3fc11d3e
JM
22813 else
22814 no_itcl=
22815 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
b4e70030
JB
22816 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
22817echo "${ECHO_T}found $ITCLCONFIG" >&6
3fc11d3e
JM
22818 fi
22819fi
22820
22821 if test -z "${no_itcl}"; then
bec39cab 22822
3fc11d3e
JM
22823 if test -f "$ITCLCONFIG" ; then
22824 . $ITCLCONFIG
22825 fi
22826
3fc11d3e 22827
3fc11d3e
JM
22828
22829
bec39cab
AC
22830
22831
22832
22833
22834
22835
22836
3fc11d3e
JM
22837
22838 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
b381d62d 22839 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
3fc11d3e
JM
22840 fi
22841
bec39cab 22842
3fc11d3e 22843 # now look for Itk library stuff
bec39cab 22844
3fc11d3e
JM
22845#
22846# Ok, lets find the itk configuration
bec39cab 22847# First, look for one uninstalled.
3fc11d3e
JM
22848# the alternative search directory is invoked by --with-itkconfig
22849#
22850
22851if test x"${no_itk}" = x ; then
22852 # we reset no_itk in case something fails here
22853 no_itk=true
bec39cab 22854
b4e70030 22855# Check whether --with-itkconfig or --without-itkconfig was given.
3fc11d3e 22856if test "${with_itkconfig+set}" = set; then
b4e70030
JB
22857 withval="$with_itkconfig"
22858 with_itkconfig=${withval}
22859fi;
22860 echo "$as_me:$LINENO: checking for Itk configuration" >&5
22861echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
bec39cab
AC
22862 if test "${ac_cv_c_itkconfig+set}" = set; then
22863 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 22864else
bec39cab 22865
3fc11d3e
JM
22866
22867 # First check to see if --with-itkconfig was specified.
22868 if test x"${with_itkconfig}" != x ; then
22869 if test -f "${with_itkconfig}/itkConfig.sh" ; then
22870 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
22871 else
bec39cab
AC
22872 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
22873echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
22874 { (exit 1); exit 1; }; }
3fc11d3e
JM
22875 fi
22876 fi
22877
22878 # then check for a private Itk library
22879 if test x"${ac_cv_c_itkconfig}" = x ; then
22880 for i in \
22881 ../itcl/itk \
22882 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
22883 ../../itk \
22884 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
22885 ../../../itk \
22886 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
22887 if test -f "$i/itkConfig.sh" ; then
22888 ac_cv_c_itkconfig=`(cd $i; pwd)`
22889 break
22890 fi
22891 done
22892 fi
22893 # check in a few common install locations
22894 if test x"${ac_cv_c_itkconfig}" = x ; then
22895 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22896 if test -f "$i/itkConfig.sh" ; then
22897 ac_cv_c_itkconfig=`(cd $i; pwd)`
22898 break
22899 fi
22900 done
22901 fi
22902 # check in a few other private locations
22903 if test x"${ac_cv_c_itkconfig}" = x ; then
22904 for i in \
22905 ${srcdir}/../itcl/itk \
22906 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
22907 if test -f "$i/itkConfig.sh" ; then
22908 ac_cv_c_itkconfig=`(cd $i; pwd)`
22909 break
22910 fi
22911 done
22912 fi
bec39cab 22913
3fc11d3e
JM
22914fi
22915
22916 if test x"${ac_cv_c_itkconfig}" = x ; then
22917 ITKCONFIG="# no Itk configs found"
bec39cab
AC
22918 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
22919echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
3fc11d3e
JM
22920 else
22921 no_itk=
22922 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
b4e70030
JB
22923 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
22924echo "${ECHO_T}found $ITKCONFIG" >&6
3fc11d3e
JM
22925 fi
22926fi
22927
22928
bec39cab
AC
22929 if test -z "${no_itcl}"; then
22930
22931 if test -f "$ITKCONFIG" ; then
22932 . $ITKCONFIG
22933 fi
22934
22935
22936
22937
22938
22939
3fc11d3e 22940
3fc11d3e 22941
3fc11d3e
JM
22942
22943
3fc11d3e
JM
22944
22945
3fc11d3e 22946 ITKLIB="${ITK_BUILD_LIB_SPEC}"
b381d62d 22947 ITK_DEPS="${ITK_LIB_FULL_PATH}"
3fc11d3e
JM
22948 fi
22949
4226a5a5 22950 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
3fc11d3e
JM
22951
22952 # Include some libraries that Tcl and Tk want.
b2a1bd4f 22953 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
3fc11d3e
JM
22954 # Yes, the ordering seems wrong here. But it isn't.
22955 # TK_LIBS is the list of libraries that need to be linked
22956 # after Tcl/Tk. Note that this isn't put into LIBS. If it
22957 # were in LIBS then any link tests after this point would
22958 # try to include things like `$(LIBGUI)', which wouldn't work.
22959 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
4226a5a5
FN
22960
22961 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
22962 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
22963 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
33f8ca73
AC
22964 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
22965 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
22966 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
22967 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
3fc11d3e
JM
22968
22969 if test x$gdb_cv_os_cygwin = xyes; then
22970 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
22971 WIN32LDAPP="-Wl,--subsystem,console"
22972 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
22973 fi
22974 fi
22975 fi
ffc6a242 22976
b4e70030
JB
22977
22978
22979subdirs="$subdirs gdbtk"
3ace7edb 22980
3fc11d3e
JM
22981fi
22982
22983
22984
22985
22986
22987
22988
22989
22990
22991
22992
22993
22994
dd2504ab 22995
b4e70030
JB
22996echo "$as_me:$LINENO: checking for X" >&5
22997echo $ECHO_N "checking for X... $ECHO_C" >&6
bec39cab 22998
c906108c 22999
b4e70030 23000# Check whether --with-x or --without-x was given.
c906108c 23001if test "${with_x+set}" = set; then
b4e70030 23002 withval="$with_x"
c906108c 23003
b4e70030 23004fi;
c906108c
SS
23005# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23006if test "x$with_x" = xno; then
23007 # The user explicitly disabled X.
23008 have_x=disabled
23009else
23010 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
23011 # Both variables are already set.
23012 have_x=yes
23013 else
bec39cab
AC
23014 if test "${ac_cv_have_x+set}" = set; then
23015 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
23016else
23017 # One or both of the vars are not set, and there is no cached value.
bec39cab 23018ac_x_includes=no ac_x_libraries=no
b4e70030 23019rm -fr conftest.dir
bec39cab
AC
23020if mkdir conftest.dir; then
23021 cd conftest.dir
c906108c 23022 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
bec39cab 23023 cat >Imakefile <<'_ACEOF'
c906108c
SS
23024acfindx:
23025 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
bec39cab 23026_ACEOF
b4e70030 23027 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
c906108c
SS
23028 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23029 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
23030 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23031 for ac_extension in a so sl; do
23032 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
bec39cab
AC
23033 test -f $ac_im_libdir/libX11.$ac_extension; then
23034 ac_im_usrlibdir=$ac_im_libdir; break
c906108c
SS
23035 fi
23036 done
23037 # Screen out bogus values from the imake configuration. They are
23038 # bogus both because they are the default anyway, and because
23039 # using them would break gcc on systems where it needs fixed includes.
bec39cab 23040 case $ac_im_incroot in
b4e70030 23041 /usr/include) ;;
bec39cab 23042 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
c906108c 23043 esac
bec39cab 23044 case $ac_im_usrlibdir in
c906108c 23045 /usr/lib | /lib) ;;
bec39cab 23046 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
c906108c
SS
23047 esac
23048 fi
23049 cd ..
b4e70030 23050 rm -fr conftest.dir
c906108c
SS
23051fi
23052
bec39cab
AC
23053# Standard set of common directories for X headers.
23054# Check X11 before X11Rn because it is often a symlink to the current release.
23055ac_x_header_dirs='
23056/usr/X11/include
23057/usr/X11R6/include
23058/usr/X11R5/include
23059/usr/X11R4/include
23060
23061/usr/include/X11
23062/usr/include/X11R6
23063/usr/include/X11R5
23064/usr/include/X11R4
23065
23066/usr/local/X11/include
23067/usr/local/X11R6/include
23068/usr/local/X11R5/include
23069/usr/local/X11R4/include
23070
23071/usr/local/include/X11
23072/usr/local/include/X11R6
23073/usr/local/include/X11R5
23074/usr/local/include/X11R4
23075
23076/usr/X386/include
23077/usr/x386/include
23078/usr/XFree86/include/X11
23079
23080/usr/include
23081/usr/local/include
23082/usr/unsupported/include
23083/usr/athena/include
23084/usr/local/x11r5/include
23085/usr/lpp/Xamples/include
23086
23087/usr/openwin/include
23088/usr/openwin/share/include'
23089
23090if test "$ac_x_includes" = no; then
59f80f10 23091 # Guess where to find include files, by looking for Intrinsic.h.
c906108c 23092 # First, try using that file with no special directory specified.
bec39cab
AC
23093 cat >conftest.$ac_ext <<_ACEOF
23094/* confdefs.h. */
23095_ACEOF
23096cat confdefs.h >>conftest.$ac_ext
23097cat >>conftest.$ac_ext <<_ACEOF
23098/* end confdefs.h. */
59f80f10 23099#include <X11/Intrinsic.h>
bec39cab
AC
23100_ACEOF
23101if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23103 ac_status=$?
23104 grep -v '^ *+' conftest.er1 >conftest.err
23105 rm -f conftest.er1
23106 cat conftest.err >&5
23107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23108 (exit $ac_status); } >/dev/null; then
23109 if test -s conftest.err; then
23110 ac_cpp_err=$ac_c_preproc_warn_flag
23111 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23112 else
23113 ac_cpp_err=
23114 fi
23115else
23116 ac_cpp_err=yes
23117fi
23118if test -z "$ac_cpp_err"; then
c906108c
SS
23119 # We can compile using X headers with no special include directory.
23120ac_x_includes=
23121else
bec39cab
AC
23122 echo "$as_me: failed program was:" >&5
23123sed 's/^/| /' conftest.$ac_ext >&5
23124
23125 for ac_dir in $ac_x_header_dirs; do
59f80f10 23126 if test -r "$ac_dir/X11/Intrinsic.h"; then
bec39cab
AC
23127 ac_x_includes=$ac_dir
23128 break
23129 fi
23130done
c906108c 23131fi
bec39cab
AC
23132rm -f conftest.err conftest.$ac_ext
23133fi # $ac_x_includes = no
c906108c 23134
bec39cab 23135if test "$ac_x_libraries" = no; then
c906108c 23136 # Check for the libraries.
c906108c
SS
23137 # See if we find them without any special options.
23138 # Don't add to $LIBS permanently.
bec39cab 23139 ac_save_LIBS=$LIBS
4e8d927d 23140 LIBS="-lXt $LIBS"
bec39cab
AC
23141 cat >conftest.$ac_ext <<_ACEOF
23142/* confdefs.h. */
23143_ACEOF
23144cat confdefs.h >>conftest.$ac_ext
23145cat >>conftest.$ac_ext <<_ACEOF
23146/* end confdefs.h. */
59f80f10 23147#include <X11/Intrinsic.h>
bec39cab
AC
23148int
23149main ()
23150{
59f80f10 23151XtMalloc (0)
bec39cab
AC
23152 ;
23153 return 0;
23154}
23155_ACEOF
23156rm -f conftest.$ac_objext conftest$ac_exeext
23157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23158 (eval $ac_link) 2>conftest.er1
23159 ac_status=$?
23160 grep -v '^ *+' conftest.er1 >conftest.err
23161 rm -f conftest.er1
23162 cat conftest.err >&5
23163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23164 (exit $ac_status); } &&
b4e70030
JB
23165 { ac_try='test -z "$ac_c_werror_flag"
23166 || test ! -s conftest.err'
bec39cab
AC
23167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23168 (eval $ac_try) 2>&5
23169 ac_status=$?
23170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23171 (exit $ac_status); }; } &&
23172 { ac_try='test -s conftest$ac_exeext'
23173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23174 (eval $ac_try) 2>&5
23175 ac_status=$?
23176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177 (exit $ac_status); }; }; then
23178 LIBS=$ac_save_LIBS
c906108c
SS
23179# We can link X programs with no special library path.
23180ac_x_libraries=
23181else
bec39cab
AC
23182 echo "$as_me: failed program was:" >&5
23183sed 's/^/| /' conftest.$ac_ext >&5
23184
b4e70030 23185LIBS=$ac_save_LIBS
bec39cab 23186for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
c906108c 23187do
bec39cab 23188 # Don't even attempt the hair of trying to link an X program!
c906108c 23189 for ac_extension in a so sl; do
b4e70030 23190 if test -r $ac_dir/libXt.$ac_extension; then
c906108c
SS
23191 ac_x_libraries=$ac_dir
23192 break 2
23193 fi
23194 done
23195done
23196fi
bec39cab
AC
23197rm -f conftest.err conftest.$ac_objext \
23198 conftest$ac_exeext conftest.$ac_ext
23199fi # $ac_x_libraries = no
c906108c 23200
bec39cab 23201if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
c906108c
SS
23202 # Didn't find X anywhere. Cache the known absence of X.
23203 ac_cv_have_x="have_x=no"
23204else
23205 # Record where we found X for the cache.
23206 ac_cv_have_x="have_x=yes \
bec39cab 23207 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
c906108c
SS
23208fi
23209fi
bec39cab 23210
c906108c
SS
23211 fi
23212 eval "$ac_cv_have_x"
23213fi # $with_x != no
23214
23215if test "$have_x" != yes; then
b4e70030
JB
23216 echo "$as_me:$LINENO: result: $have_x" >&5
23217echo "${ECHO_T}$have_x" >&6
c906108c
SS
23218 no_x=yes
23219else
23220 # If each of the values was on the command line, it overrides each guess.
23221 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23222 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23223 # Update the cache value to reflect the command line values.
23224 ac_cv_have_x="have_x=yes \
23225 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
b4e70030
JB
23226 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
23227echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
c906108c
SS
23228fi
23229
23230
9cc52bde
MK
23231# Check whether we should enable the TUI, but only do so if we really
23232# can.
23233if test x"$enable_tui" = xyes; then
23234 if test -d $srcdir/tui; then
23235 if test "$ac_cv_search_waddstr" != no; then
23236 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
23237 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
23238 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
23239 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
23240 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
23241 CONFIG_ALL="${CONFIG_ALL} all-tui"
23242 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
23243 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
23244 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
23245 else
bec39cab
AC
23246 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
23247echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9cc52bde
MK
23248 fi
23249 fi
23250fi
23251
bec39cab
AC
23252# Unlike the sim directory, whether a simulator is linked is controlled by
23253# presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
7a292a7a
SS
23254# This code just checks for a few cases where we'd like to ignore those
23255# definitions, even when they're present in the '.mt' file. These cases
23256# are when --disable-sim is specified, or if the simulator directory is
6c5cfe5b 23257# not part of the source tree.
7a292a7a 23258#
b4e70030 23259# Check whether --enable-sim or --disable-sim was given.
7a292a7a 23260if test "${enable_sim+set}" = set; then
b4e70030
JB
23261 enableval="$enable_sim"
23262 echo "enable_sim = $enable_sim";
7a292a7a
SS
23263 echo "enableval = ${enableval}";
23264 case "${enableval}" in
23265 yes) ignore_sim=false ;;
23266 no) ignore_sim=true ;;
23267 *) ignore_sim=false ;;
23268 esac
23269else
23270 ignore_sim=false
b4e70030 23271fi;
7a292a7a
SS
23272
23273if test ! -d "${srcdir}/../sim"; then
23274 ignore_sim=true
23275fi
23276
23277if test "${ignore_sim}" = "true"; then
23278 IGNORE_SIM="SIM="
23279 IGNORE_SIM_OBS="SIM_OBS="
23280else
23281 IGNORE_SIM=""
23282 IGNORE_SIM_OBS=""
60ca704f
SE
23283
23284cat >>confdefs.h <<\_ACEOF
7a292a7a 23285#define WITH_SIM 1
bec39cab 23286_ACEOF
7a292a7a
SS
23287
23288fi
23289
23290
23291
c906108c
SS
23292
23293
23294
23295
23296
23297
dfcd3bfb 23298
e56ac5c3
AC
23299
23300
b3a90332
AC
23301
23302
c35f4ffc 23303# List of host floatformats.
bec39cab
AC
23304
23305cat >>confdefs.h <<_ACEOF
c35f4ffc 23306#define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
bec39cab 23307_ACEOF
c35f4ffc 23308
bec39cab
AC
23309
23310cat >>confdefs.h <<_ACEOF
c35f4ffc 23311#define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
bec39cab
AC
23312_ACEOF
23313
c35f4ffc 23314
bec39cab 23315cat >>confdefs.h <<_ACEOF
c35f4ffc 23316#define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
bec39cab 23317_ACEOF
c35f4ffc
AC
23318
23319
c906108c
SS
23320# target_subdir is used by the testsuite to find the target libraries.
23321target_subdir=
23322if test "${host}" != "${target}"; then
23323 target_subdir="${target_alias}/"
23324fi
23325
23326
23327frags=
771b4502 23328if test "${gdb_native}" = "yes"; then
0dad8a66
MK
23329 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
23330 if test ! -f ${host_makefile_frag}; then
bec39cab
AC
23331 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
23332echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
23333 { (exit 1); exit 1; }; }
0dad8a66
MK
23334 fi
23335 frags="$frags $host_makefile_frag"
23336else
23337 host_makefile_frag=/dev/null
c906108c 23338fi
c906108c
SS
23339
23340target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
23341if test ! -f ${target_makefile_frag}; then
bec39cab
AC
23342 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
23343echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
23344 { (exit 1); exit 1; }; }
c906108c
SS
23345fi
23346frags="$frags $target_makefile_frag"
23347
23348
23349
23350
23351
23352hostfile=`sed -n '
23353s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
23354' ${host_makefile_frag}`
23355
23356targetfile=`sed -n '
b523a1fd 23357s/^[ ]*DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
c906108c
SS
23358' ${target_makefile_frag}`
23359
771b4502 23360if test "${gdb_native}" = "yes"; then
a85f51e7
DJ
23361# We pick this up from the host configuration file (.mh) because we
23362# do not have a native configuration Makefile fragment.
c906108c
SS
23363nativefile=`sed -n '
23364s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
23365' ${host_makefile_frag}`
c906108c
SS
23366fi
23367
23368
b00a8037 23369if test x"${gdb_osabi}" != x ; then
bec39cab
AC
23370
23371cat >>confdefs.h <<_ACEOF
b00a8037 23372#define GDB_OSABI_DEFAULT $gdb_osabi
bec39cab 23373_ACEOF
b00a8037
DJ
23374
23375fi
23376
8dcde887 23377# Enable multi-ice-gdb-server.
b4e70030 23378# Check whether --enable-multi-ice or --disable-multi-ice was given.
8dcde887 23379if test "${enable_multi_ice+set}" = set; then
b4e70030
JB
23380 enableval="$enable_multi_ice"
23381 case $enableval in
8dcde887
MK
23382 yes | no)
23383 ;;
bec39cab
AC
23384 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
23385echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
23386 { (exit 1); exit 1; }; } ;;
8dcde887 23387 esac
b4e70030 23388fi;
4e8d927d 23389if test "x$enable_multi_ice" = xyes; then
b4e70030
JB
23390
23391
23392subdirs="$subdirs multi-ice"
3ace7edb 23393
a85f51e7
DJ
23394fi
23395
a13e2c95
UW
23396# We only build gdbserver automatically in a native configuration.
23397if test "$gdb_native" = "yes"; then
b4e70030
JB
23398 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
23399echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
8dcde887 23400 if test "x$build_gdbserver" = xyes; then
b4e70030
JB
23401 echo "$as_me:$LINENO: result: yes" >&5
23402echo "${ECHO_T}yes" >&6
23403
23404
23405subdirs="$subdirs gdbserver"
3ace7edb 23406
8dcde887 23407 else
b4e70030
JB
23408 echo "$as_me:$LINENO: result: no" >&5
23409echo "${ECHO_T}no" >&6
8dcde887
MK
23410 fi
23411fi
23412
2c0fc042
AC
23413# If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
23414# nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
23415# to an empty version.
c906108c
SS
23416
23417files=
23418links=
5a2402b8 23419
c906108c 23420rm -f xm.h
5a2402b8 23421xm_h=""
c906108c 23422if test "${hostfile}" != ""; then
5a2402b8 23423 xm_h=xm.h
0f475e27
AC
23424 case "${hostfile}" in
23425 xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;;
23426 * ) GDB_XM_FILE="${hostfile}"
23427 esac
5a2402b8
AC
23428 files="${files} ${GDB_XM_FILE}"
23429 links="${links} xm.h"
60ca704f
SE
23430
23431cat >>confdefs.h <<_ACEOF
b78960be 23432#define GDB_XM_FILE "${GDB_XM_FILE}"
bec39cab 23433_ACEOF
5a2402b8 23434
c906108c 23435fi
5a2402b8
AC
23436
23437
c906108c 23438rm -f tm.h
5a2402b8 23439tm_h=""
c906108c 23440if test "${targetfile}" != ""; then
5a2402b8 23441 tm_h=tm.h
0f475e27 23442 case "${targetfile}" in
b8c4aece 23443 tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;;
0f475e27
AC
23444 * ) GDB_TM_FILE="${targetfile}"
23445 esac
5a2402b8
AC
23446 files="${files} ${GDB_TM_FILE}"
23447 links="${links} tm.h"
60ca704f
SE
23448
23449cat >>confdefs.h <<_ACEOF
b78960be 23450#define GDB_TM_FILE "${GDB_TM_FILE}"
bec39cab 23451_ACEOF
5a2402b8 23452
c906108c 23453fi
5a2402b8
AC
23454
23455
c906108c 23456rm -f nm.h
5a2402b8 23457nm_h=""
c906108c 23458if test "${nativefile}" != ""; then
5a2402b8 23459 nm_h=nm.h
0f475e27
AC
23460 case "${nativefile}" in
23461 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
23462 * ) GDB_NM_FILE="${nativefile}"
23463 esac
5a2402b8
AC
23464 files="${files} ${GDB_NM_FILE}"
23465 links="${links} nm.h"
60ca704f
SE
23466
23467cat >>confdefs.h <<_ACEOF
b78960be 23468#define GDB_NM_FILE "${GDB_NM_FILE}"
bec39cab 23469_ACEOF
5a2402b8 23470
c906108c 23471fi
5a2402b8
AC
23472
23473
bec39cab
AC
23474ac_sources="$files"
23475ac_dests="$links"
23476while test -n "$ac_sources"; do
23477 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
23478 set $ac_sources; ac_source=$1; shift; ac_sources=$*
23479 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
23480done
b4e70030 23481 ac_config_links="$ac_config_links $ac_config_links_1"
c906108c
SS
23482
23483
c906108c
SS
23484
23485
c906108c 23486
c906108c 23487
bec39cab
AC
23488cat >>confdefs.h <<\_ACEOF
23489#define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
23490_ACEOF
c906108c 23491
234b45d4 23492
234b45d4
KB
23493
23494
23495
b4e70030 23496# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
234b45d4 23497if test "${with_libiconv_prefix+set}" = set; then
b4e70030
JB
23498 withval="$with_libiconv_prefix"
23499
234b45d4
KB
23500 for dir in `echo "$withval" | tr : ' '`; do
23501 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
23502 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
23503 done
234b45d4 23504
b4e70030 23505fi;
234b45d4 23506
b4e70030
JB
23507 echo "$as_me:$LINENO: checking for iconv" >&5
23508echo $ECHO_N "checking for iconv... $ECHO_C" >&6
bec39cab
AC
23509if test "${am_cv_func_iconv+set}" = set; then
23510 echo $ECHO_N "(cached) $ECHO_C" >&6
234b45d4 23511else
bec39cab 23512
234b45d4
KB
23513 am_cv_func_iconv="no, consider installing GNU libiconv"
23514 am_cv_lib_iconv=no
bec39cab
AC
23515 cat >conftest.$ac_ext <<_ACEOF
23516/* confdefs.h. */
23517_ACEOF
23518cat confdefs.h >>conftest.$ac_ext
23519cat >>conftest.$ac_ext <<_ACEOF
23520/* end confdefs.h. */
234b45d4
KB
23521#include <stdlib.h>
23522#include <iconv.h>
bec39cab
AC
23523int
23524main ()
23525{
234b45d4
KB
23526iconv_t cd = iconv_open("","");
23527 iconv(cd,NULL,NULL,NULL,NULL);
23528 iconv_close(cd);
bec39cab
AC
23529 ;
23530 return 0;
23531}
23532_ACEOF
23533rm -f conftest.$ac_objext conftest$ac_exeext
23534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23535 (eval $ac_link) 2>conftest.er1
23536 ac_status=$?
23537 grep -v '^ *+' conftest.er1 >conftest.err
23538 rm -f conftest.er1
23539 cat conftest.err >&5
23540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23541 (exit $ac_status); } &&
b4e70030
JB
23542 { ac_try='test -z "$ac_c_werror_flag"
23543 || test ! -s conftest.err'
bec39cab
AC
23544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23545 (eval $ac_try) 2>&5
23546 ac_status=$?
23547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23548 (exit $ac_status); }; } &&
23549 { ac_try='test -s conftest$ac_exeext'
23550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23551 (eval $ac_try) 2>&5
23552 ac_status=$?
23553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23554 (exit $ac_status); }; }; then
234b45d4
KB
23555 am_cv_func_iconv=yes
23556else
bec39cab
AC
23557 echo "$as_me: failed program was:" >&5
23558sed 's/^/| /' conftest.$ac_ext >&5
23559
234b45d4 23560fi
bec39cab
AC
23561rm -f conftest.err conftest.$ac_objext \
23562 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
23563 if test "$am_cv_func_iconv" != yes; then
23564 am_save_LIBS="$LIBS"
23565 LIBS="$LIBS -liconv"
bec39cab
AC
23566 cat >conftest.$ac_ext <<_ACEOF
23567/* confdefs.h. */
23568_ACEOF
23569cat confdefs.h >>conftest.$ac_ext
23570cat >>conftest.$ac_ext <<_ACEOF
23571/* end confdefs.h. */
234b45d4
KB
23572#include <stdlib.h>
23573#include <iconv.h>
bec39cab
AC
23574int
23575main ()
23576{
234b45d4
KB
23577iconv_t cd = iconv_open("","");
23578 iconv(cd,NULL,NULL,NULL,NULL);
23579 iconv_close(cd);
bec39cab
AC
23580 ;
23581 return 0;
23582}
23583_ACEOF
23584rm -f conftest.$ac_objext conftest$ac_exeext
23585if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23586 (eval $ac_link) 2>conftest.er1
23587 ac_status=$?
23588 grep -v '^ *+' conftest.er1 >conftest.err
23589 rm -f conftest.er1
23590 cat conftest.err >&5
23591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23592 (exit $ac_status); } &&
b4e70030
JB
23593 { ac_try='test -z "$ac_c_werror_flag"
23594 || test ! -s conftest.err'
bec39cab
AC
23595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23596 (eval $ac_try) 2>&5
23597 ac_status=$?
23598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23599 (exit $ac_status); }; } &&
23600 { ac_try='test -s conftest$ac_exeext'
23601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23602 (eval $ac_try) 2>&5
23603 ac_status=$?
23604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23605 (exit $ac_status); }; }; then
234b45d4
KB
23606 am_cv_lib_iconv=yes
23607 am_cv_func_iconv=yes
23608else
bec39cab
AC
23609 echo "$as_me: failed program was:" >&5
23610sed 's/^/| /' conftest.$ac_ext >&5
23611
234b45d4 23612fi
bec39cab
AC
23613rm -f conftest.err conftest.$ac_objext \
23614 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
23615 LIBS="$am_save_LIBS"
23616 fi
bec39cab
AC
23617
23618fi
b4e70030
JB
23619echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
23620echo "${ECHO_T}$am_cv_func_iconv" >&6
bec39cab
AC
23621 if test "$am_cv_func_iconv" = yes; then
23622
23623cat >>confdefs.h <<\_ACEOF
23624#define HAVE_ICONV 1
23625_ACEOF
23626
b4e70030
JB
23627 echo "$as_me:$LINENO: checking for iconv declaration" >&5
23628echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
bec39cab
AC
23629 if test "${am_cv_proto_iconv+set}" = set; then
23630 echo $ECHO_N "(cached) $ECHO_C" >&6
23631else
23632
23633 cat >conftest.$ac_ext <<_ACEOF
23634/* confdefs.h. */
23635_ACEOF
23636cat confdefs.h >>conftest.$ac_ext
23637cat >>conftest.$ac_ext <<_ACEOF
23638/* end confdefs.h. */
23639
23640#include <stdlib.h>
23641#include <iconv.h>
23642extern
23643#ifdef __cplusplus
23644"C"
23645#endif
23646#if defined(__STDC__) || defined(__cplusplus)
23647size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
23648#else
23649size_t iconv();
23650#endif
23651
23652int
23653main ()
23654{
23655
23656 ;
23657 return 0;
23658}
23659_ACEOF
23660rm -f conftest.$ac_objext
23661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23662 (eval $ac_compile) 2>conftest.er1
23663 ac_status=$?
23664 grep -v '^ *+' conftest.er1 >conftest.err
23665 rm -f conftest.er1
23666 cat conftest.err >&5
23667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23668 (exit $ac_status); } &&
b4e70030
JB
23669 { ac_try='test -z "$ac_c_werror_flag"
23670 || test ! -s conftest.err'
bec39cab
AC
23671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23672 (eval $ac_try) 2>&5
23673 ac_status=$?
23674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23675 (exit $ac_status); }; } &&
23676 { ac_try='test -s conftest.$ac_objext'
23677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23678 (eval $ac_try) 2>&5
23679 ac_status=$?
23680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23681 (exit $ac_status); }; }; then
23682 am_cv_proto_iconv_arg1=""
23683else
23684 echo "$as_me: failed program was:" >&5
23685sed 's/^/| /' conftest.$ac_ext >&5
23686
b4e70030 23687am_cv_proto_iconv_arg1="const"
bec39cab
AC
23688fi
23689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23690 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);"
23691fi
23692
23693 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
b4e70030 23694 echo "$as_me:$LINENO: result: ${ac_t:-
bec39cab
AC
23695 }$am_cv_proto_iconv" >&5
23696echo "${ECHO_T}${ac_t:-
b4e70030 23697 }$am_cv_proto_iconv" >&6
bec39cab
AC
23698
23699cat >>confdefs.h <<_ACEOF
23700#define ICONV_CONST $am_cv_proto_iconv_arg1
23701_ACEOF
23702
23703 fi
23704 LIBICONV=
23705 if test "$am_cv_lib_iconv" = yes; then
23706 LIBICONV="-liconv"
23707 fi
23708
23709
23710
b4e70030
JB
23711 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
23712 ac_config_commands="$ac_config_commands default"
bec39cab
AC
23713cat >confcache <<\_ACEOF
23714# This file is a shell script that caches the results of configure
23715# tests run on this system so they can be shared between configure
23716# scripts and configure runs, see configure's option --config-cache.
23717# It is not useful on other systems. If it contains results you don't
23718# want to keep, you may remove or edit it.
23719#
23720# config.status only pays attention to the cache file if you give it
23721# the --recheck option to rerun configure.
23722#
23723# `ac_cv_env_foo' variables (set or unset) will be overridden when
23724# loading this file, other *unset* `ac_cv_foo' will be assigned the
23725# following values.
23726
23727_ACEOF
23728
23729# The following way of writing the cache mishandles newlines in values,
23730# but we know of no workaround that is simple, portable, and efficient.
b4e70030 23731# So, don't put newlines in cache variables' values.
bec39cab
AC
23732# Ultrix sh set writes to stderr and can't be redirected directly,
23733# and sets the high bit in the cache file unless we assign to the vars.
b4e70030 23734{
bec39cab 23735 (set) 2>&1 |
b4e70030
JB
23736 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23737 *ac_space=\ *)
bec39cab
AC
23738 # `set' does not quote correctly, so add quotes (double-quote
23739 # substitution turns \\\\ into \\, and sed turns \\ into \).
23740 sed -n \
23741 "s/'/'\\\\''/g;
23742 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
b4e70030 23743 ;;
bec39cab
AC
23744 *)
23745 # `set' quotes correctly as required by POSIX, so do not add quotes.
b4e70030
JB
23746 sed -n \
23747 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
bec39cab 23748 ;;
b4e70030
JB
23749 esac;
23750} |
bec39cab
AC
23751 sed '
23752 t clear
b4e70030 23753 : clear
bec39cab
AC
23754 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23755 t end
b4e70030
JB
23756 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23757 : end' >>confcache
bec39cab
AC
23758if diff $cache_file confcache >/dev/null 2>&1; then :; else
23759 if test -w $cache_file; then
b4e70030 23760 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
bec39cab
AC
23761 cat confcache >$cache_file
23762 else
b4e70030 23763 echo "not updating unwritable cache $cache_file"
bec39cab
AC
23764 fi
23765fi
23766rm -f confcache
23767
23768test "x$prefix" = xNONE && prefix=$ac_default_prefix
23769# Let make expand exec_prefix.
23770test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23771
b4e70030
JB
23772# VPATH may cause trouble with some makes, so we remove $(srcdir),
23773# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23774# trailing colons and then remove the whole line if VPATH becomes empty
23775# (actually we leave an empty line to preserve line numbers).
23776if test "x$srcdir" = x.; then
23777 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23778s/:*\$(srcdir):*/:/;
23779s/:*\${srcdir}:*/:/;
23780s/:*@srcdir@:*/:/;
23781s/^\([^=]*=[ ]*\):*/\1/;
23782s/:*$//;
23783s/^[^=]*=[ ]*$//;
23784}'
23785fi
23786
bec39cab
AC
23787DEFS=-DHAVE_CONFIG_H
23788
23789ac_libobjs=
23790ac_ltlibobjs=
23791for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23792 # 1. Remove the extension, and $U if already installed.
b4e70030
JB
23793 ac_i=`echo "$ac_i" |
23794 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23795 # 2. Add them.
23796 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23797 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
bec39cab
AC
23798done
23799LIBOBJS=$ac_libobjs
23800
23801LTLIBOBJS=$ac_ltlibobjs
23802
23803
85981d60
AC
23804if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23805 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23806Usually this means the macro was only invoked conditionally." >&5
23807echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23808Usually this means the macro was only invoked conditionally." >&2;}
23809 { (exit 1); exit 1; }; }
23810fi
bec39cab
AC
23811
23812: ${CONFIG_STATUS=./config.status}
23813ac_clean_files_save=$ac_clean_files
23814ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23815{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23816echo "$as_me: creating $CONFIG_STATUS" >&6;}
23817cat >$CONFIG_STATUS <<_ACEOF
23818#! $SHELL
23819# Generated by $as_me.
23820# Run this file to recreate the current configuration.
23821# Compiler output produced by configure, useful for debugging
23822# configure, is in config.log if it exists.
23823
23824debug=false
23825ac_cs_recheck=false
23826ac_cs_silent=false
23827SHELL=\${CONFIG_SHELL-$SHELL}
23828_ACEOF
23829
23830cat >>$CONFIG_STATUS <<\_ACEOF
23831## --------------------- ##
23832## M4sh Initialization. ##
23833## --------------------- ##
23834
23835# Be Bourne compatible
23836if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23837 emulate sh
23838 NULLCMD=:
23839 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23840 # is contrary to our usage. Disable this feature.
23841 alias -g '${1+"$@"}'='"$@"'
b4e70030
JB
23842elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23843 set -o posix
bec39cab
AC
23844fi
23845DUALCASE=1; export DUALCASE # for MKS sh
23846
23847# Support unset when possible.
23848if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23849 as_unset=unset
23850else
23851 as_unset=false
23852fi
23853
23854
23855# Work around bugs in pre-3.0 UWIN ksh.
b4e70030 23856$as_unset ENV MAIL MAILPATH
bec39cab
AC
23857PS1='$ '
23858PS2='> '
23859PS4='+ '
23860
23861# NLS nuisances.
23862for as_var in \
23863 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23864 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23865 LC_TELEPHONE LC_TIME
23866do
23867 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23868 eval $as_var=C; export $as_var
23869 else
b4e70030 23870 $as_unset $as_var
bec39cab
AC
23871 fi
23872done
23873
23874# Required to use basename.
b4e70030 23875if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
23876 as_expr=expr
23877else
23878 as_expr=false
23879fi
23880
b4e70030 23881if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
bec39cab
AC
23882 as_basename=basename
23883else
23884 as_basename=false
23885fi
23886
23887
23888# Name of the executable.
b4e70030 23889as_me=`$as_basename "$0" ||
bec39cab
AC
23890$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23891 X"$0" : 'X\(//\)$' \| \
b4e70030
JB
23892 X"$0" : 'X\(/\)$' \| \
23893 . : '\(.\)' 2>/dev/null ||
bec39cab 23894echo X/"$0" |
b4e70030
JB
23895 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23896 /^X\/\(\/\/\)$/{ s//\1/; q; }
23897 /^X\/\(\/\).*/{ s//\1/; q; }
23898 s/.*/./; q'`
bec39cab 23899
b4e70030
JB
23900
23901# PATH needs CR, and LINENO needs CR and PATH.
23902# Avoid depending upon Character Ranges.
23903as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23904as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23905as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23906as_cr_digits='0123456789'
23907as_cr_alnum=$as_cr_Letters$as_cr_digits
23908
23909# The user is always right.
23910if test "${PATH_SEPARATOR+set}" != set; then
23911 echo "#! /bin/sh" >conf$$.sh
23912 echo "exit 0" >>conf$$.sh
23913 chmod +x conf$$.sh
23914 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23915 PATH_SEPARATOR=';'
23916 else
23917 PATH_SEPARATOR=:
23918 fi
23919 rm -f conf$$.sh
23920fi
bec39cab
AC
23921
23922
b4e70030
JB
23923 as_lineno_1=$LINENO
23924 as_lineno_2=$LINENO
23925 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23926 test "x$as_lineno_1" != "x$as_lineno_2" &&
23927 test "x$as_lineno_3" = "x$as_lineno_2" || {
23928 # Find who we are. Look in the path if we contain no path at all
23929 # relative or not.
23930 case $0 in
23931 *[\\/]* ) as_myself=$0 ;;
23932 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23933for as_dir in $PATH
23934do
23935 IFS=$as_save_IFS
23936 test -z "$as_dir" && as_dir=.
23937 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23938done
bec39cab 23939
b4e70030
JB
23940 ;;
23941 esac
23942 # We did not find ourselves, most probably we were run as `sh COMMAND'
23943 # in which case we are not to be found in the path.
23944 if test "x$as_myself" = x; then
23945 as_myself=$0
23946 fi
23947 if test ! -f "$as_myself"; then
23948 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23949echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23950 { (exit 1); exit 1; }; }
23951 fi
23952 case $CONFIG_SHELL in
23953 '')
23954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23955for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23956do
23957 IFS=$as_save_IFS
23958 test -z "$as_dir" && as_dir=.
23959 for as_base in sh bash ksh sh5; do
23960 case $as_dir in
23961 /*)
23962 if ("$as_dir/$as_base" -c '
bec39cab
AC
23963 as_lineno_1=$LINENO
23964 as_lineno_2=$LINENO
b4e70030 23965 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
bec39cab 23966 test "x$as_lineno_1" != "x$as_lineno_2" &&
b4e70030
JB
23967 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23968 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23969 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23970 CONFIG_SHELL=$as_dir/$as_base
23971 export CONFIG_SHELL
23972 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23973 fi;;
23974 esac
23975 done
23976done
23977;;
23978 esac
bec39cab
AC
23979
23980 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23981 # uniformly replaced by the line number. The first 'sed' inserts a
b4e70030
JB
23982 # line-number line before each line; the second 'sed' does the real
23983 # work. The second script uses 'N' to pair each line-number line
23984 # with the numbered line, and appends trailing '-' during
23985 # substitution so that $LINENO is not a special case at line end.
bec39cab 23986 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
b4e70030
JB
23987 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23988 sed '=' <$as_myself |
bec39cab
AC
23989 sed '
23990 N
b4e70030
JB
23991 s,$,-,
23992 : loop
23993 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
bec39cab 23994 t loop
b4e70030
JB
23995 s,-$,,
23996 s,^['$as_cr_digits']*\n,,
bec39cab 23997 ' >$as_me.lineno &&
b4e70030
JB
23998 chmod +x $as_me.lineno ||
23999 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24000echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
bec39cab
AC
24001 { (exit 1); exit 1; }; }
24002
24003 # Don't try to exec as it changes $[0], causing all sort of problems
24004 # (the dirname of $[0] is not the place where we might find the
b4e70030
JB
24005 # original and so on. Autoconf is especially sensible to this).
24006 . ./$as_me.lineno
bec39cab
AC
24007 # Exit status is that of the last command.
24008 exit
24009}
24010
24011
b4e70030
JB
24012case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24013 *c*,-n*) ECHO_N= ECHO_C='
24014' ECHO_T=' ' ;;
24015 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24016 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
bec39cab
AC
24017esac
24018
b4e70030 24019if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
24020 as_expr=expr
24021else
24022 as_expr=false
24023fi
24024
24025rm -f conf$$ conf$$.exe conf$$.file
24026echo >conf$$.file
24027if ln -s conf$$.file conf$$ 2>/dev/null; then
b4e70030
JB
24028 # We could just check for DJGPP; but this test a) works b) is more generic
24029 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24030 if test -f conf$$.exe; then
24031 # Don't use ln at all; we don't have any links
bec39cab 24032 as_ln_s='cp -p'
b4e70030
JB
24033 else
24034 as_ln_s='ln -s'
24035 fi
bec39cab
AC
24036elif ln conf$$.file conf$$ 2>/dev/null; then
24037 as_ln_s=ln
24038else
24039 as_ln_s='cp -p'
24040fi
b4e70030 24041rm -f conf$$ conf$$.exe conf$$.file
bec39cab
AC
24042
24043if mkdir -p . 2>/dev/null; then
24044 as_mkdir_p=:
24045else
24046 test -d ./-p && rmdir ./-p
24047 as_mkdir_p=false
24048fi
24049
b4e70030 24050as_executable_p="test -f"
bec39cab
AC
24051
24052# Sed expression to map a string onto a valid CPP name.
24053as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24054
24055# Sed expression to map a string onto a valid variable name.
24056as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24057
24058
b4e70030
JB
24059# IFS
24060# We need space, tab and new line, in precisely that order.
24061as_nl='
24062'
24063IFS=" $as_nl"
24064
24065# CDPATH.
24066$as_unset CDPATH
24067
bec39cab
AC
24068exec 6>&1
24069
b4e70030 24070# Open the log real soon, to keep \$[0] and so on meaningful, and to
bec39cab 24071# report actual input values of CONFIG_FILES etc. instead of their
b4e70030
JB
24072# values after options handling. Logging --version etc. is OK.
24073exec 5>>config.log
24074{
24075 echo
24076 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24077## Running $as_me. ##
24078_ASBOX
24079} >&5
24080cat >&5 <<_CSEOF
24081
bec39cab 24082This file was extended by $as_me, which was
b4e70030 24083generated by GNU Autoconf 2.59. Invocation command line was
bec39cab
AC
24084
24085 CONFIG_FILES = $CONFIG_FILES
24086 CONFIG_HEADERS = $CONFIG_HEADERS
24087 CONFIG_LINKS = $CONFIG_LINKS
24088 CONFIG_COMMANDS = $CONFIG_COMMANDS
24089 $ $0 $@
24090
b4e70030
JB
24091_CSEOF
24092echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24093echo >&5
bec39cab
AC
24094_ACEOF
24095
24096# Files that config.status was made for.
b4e70030
JB
24097if test -n "$ac_config_files"; then
24098 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24099fi
234b45d4 24100
b4e70030
JB
24101if test -n "$ac_config_headers"; then
24102 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24103fi
24104
24105if test -n "$ac_config_links"; then
24106 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24107fi
24108
24109if test -n "$ac_config_commands"; then
24110 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24111fi
234b45d4 24112
bec39cab 24113cat >>$CONFIG_STATUS <<\_ACEOF
b4e70030 24114
bec39cab
AC
24115ac_cs_usage="\
24116\`$as_me' instantiates files from templates according to the
24117current configuration.
234b45d4 24118
bec39cab 24119Usage: $0 [OPTIONS] [FILE]...
234b45d4 24120
bec39cab
AC
24121 -h, --help print this help, then exit
24122 -V, --version print version number, then exit
24123 -q, --quiet do not print progress messages
24124 -d, --debug don't remove temporary files
24125 --recheck update $as_me by reconfiguring in the same conditions
24126 --file=FILE[:TEMPLATE]
24127 instantiate the configuration file FILE
24128 --header=FILE[:TEMPLATE]
24129 instantiate the configuration header FILE
234b45d4 24130
bec39cab
AC
24131Configuration files:
24132$config_files
234b45d4 24133
bec39cab
AC
24134Configuration headers:
24135$config_headers
234b45d4 24136
bec39cab
AC
24137Configuration links:
24138$config_links
234b45d4 24139
bec39cab
AC
24140Configuration commands:
24141$config_commands
24142
24143Report bugs to <bug-autoconf@gnu.org>."
4e8d927d 24144_ACEOF
b4e70030 24145
bec39cab
AC
24146cat >>$CONFIG_STATUS <<_ACEOF
24147ac_cs_version="\\
24148config.status
b4e70030 24149configured by $0, generated by GNU Autoconf 2.59,
bec39cab
AC
24150 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24151
b4e70030 24152Copyright (C) 2003 Free Software Foundation, Inc.
bec39cab
AC
24153This config.status script is free software; the Free Software Foundation
24154gives unlimited permission to copy, distribute and modify it."
b4e70030
JB
24155srcdir=$srcdir
24156INSTALL="$INSTALL"
bec39cab
AC
24157_ACEOF
24158
24159cat >>$CONFIG_STATUS <<\_ACEOF
24160# If no file are specified by the user, then we need to provide default
24161# value. By we need to know if files were specified by the user.
24162ac_need_defaults=:
24163while test $# != 0
24164do
24165 case $1 in
24166 --*=*)
b4e70030
JB
24167 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24168 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
bec39cab 24169 ac_shift=:
c906108c 24170 ;;
b4e70030 24171 -*)
bec39cab
AC
24172 ac_option=$1
24173 ac_optarg=$2
24174 ac_shift=shift
c906108c 24175 ;;
b4e70030
JB
24176 *) # This is not an option, so the user has probably given explicit
24177 # arguments.
24178 ac_option=$1
24179 ac_need_defaults=false;;
bec39cab 24180 esac
c906108c 24181
bec39cab
AC
24182 case $ac_option in
24183 # Handling of the options.
b4e70030
JB
24184_ACEOF
24185cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
24186 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24187 ac_cs_recheck=: ;;
b4e70030
JB
24188 --version | --vers* | -V )
24189 echo "$ac_cs_version"; exit 0 ;;
24190 --he | --h)
24191 # Conflict between --help and --header
24192 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24193Try \`$0 --help' for more information." >&5
24194echo "$as_me: error: ambiguous option: $1
24195Try \`$0 --help' for more information." >&2;}
24196 { (exit 1); exit 1; }; };;
24197 --help | --hel | -h )
24198 echo "$ac_cs_usage"; exit 0 ;;
24199 --debug | --d* | -d )
bec39cab
AC
24200 debug=: ;;
24201 --file | --fil | --fi | --f )
24202 $ac_shift
24203 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24204 ac_need_defaults=false;;
24205 --header | --heade | --head | --hea )
24206 $ac_shift
24207 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24208 ac_need_defaults=false;;
24209 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24210 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24211 ac_cs_silent=: ;;
c906108c 24212
bec39cab 24213 # This is an error.
b4e70030
JB
24214 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24215Try \`$0 --help' for more information." >&5
24216echo "$as_me: error: unrecognized option: $1
24217Try \`$0 --help' for more information." >&2;}
bec39cab 24218 { (exit 1); exit 1; }; } ;;
c906108c 24219
b4e70030 24220 *) ac_config_targets="$ac_config_targets $1" ;;
c906108c 24221
bec39cab
AC
24222 esac
24223 shift
24224done
c906108c 24225
bec39cab 24226ac_configure_extra_args=
c906108c 24227
bec39cab
AC
24228if $ac_cs_silent; then
24229 exec 6>/dev/null
24230 ac_configure_extra_args="$ac_configure_extra_args --silent"
24231fi
c906108c 24232
bec39cab
AC
24233_ACEOF
24234cat >>$CONFIG_STATUS <<_ACEOF
24235if \$ac_cs_recheck; then
b4e70030
JB
24236 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24237 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
bec39cab
AC
24238fi
24239
24240_ACEOF
24241
24242cat >>$CONFIG_STATUS <<_ACEOF
c906108c 24243#
b4e70030 24244# INIT-COMMANDS section.
c906108c 24245#
c906108c 24246
b4e70030 24247
4e8d927d
DJ
24248GCC="$GCC"
24249CC="$CC"
24250acx_cv_header_stdint="$acx_cv_header_stdint"
24251acx_cv_type_int8_t="$acx_cv_type_int8_t"
24252acx_cv_type_int16_t="$acx_cv_type_int16_t"
24253acx_cv_type_int32_t="$acx_cv_type_int32_t"
24254acx_cv_type_int64_t="$acx_cv_type_int64_t"
24255acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
24256ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
24257ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
24258ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
24259ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
24260ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
24261ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
24262ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
24263ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
24264
bec39cab
AC
24265
24266gdb_host_cpu=$gdb_host_cpu
24267gdb_target_cpu=$gdb_target_cpu
24268nativefile=$nativefile
24269
24270
24271_ACEOF
24272
4e8d927d 24273
b4e70030
JB
24274
24275cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab 24276for ac_config_target in $ac_config_targets
c906108c 24277do
b4e70030
JB
24278 case "$ac_config_target" in
24279 # Handling of arguments.
24280 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24281 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
24282 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
24283 "gdb_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;;
24284 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24285 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
bec39cab
AC
24286 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24287echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24288 { (exit 1); exit 1; }; };;
c906108c
SS
24289 esac
24290done
24291
bec39cab
AC
24292# If the user did not use the arguments to specify the items to instantiate,
24293# then the envvar interface is used. Set only those that are not.
24294# We use the long form for the default assignment because of an extremely
24295# bizarre bug on SunOS 4.1.3.
24296if $ac_need_defaults; then
24297 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24298 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24299 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
24300 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24301fi
24302
b4e70030
JB
24303# Have a temporary directory for convenience. Make it in the build tree
24304# simply because there is no reason to put it here, and in addition,
24305# creating and moving files from /tmp can sometimes cause problems.
24306# Create a temporary directory, and hook for its removal unless debugging.
24307$debug ||
24308{
24309 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24310 trap '{ (exit 1); exit 1; }' 1 2 13 15
24311}
4e8d927d 24312
b4e70030 24313# Create a (secure) tmp directory for tmp files.
4e8d927d 24314
b4e70030
JB
24315{
24316 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24317 test -n "$tmp" && test -d "$tmp"
24318} ||
24319{
24320 tmp=./confstat$$-$RANDOM
24321 (umask 077 && mkdir $tmp)
24322} ||
24323{
24324 echo "$me: cannot create a temporary directory in ." >&2
24325 { (exit 1); exit 1; }
24326}
4e8d927d 24327
b4e70030 24328_ACEOF
4e8d927d 24329
b4e70030 24330cat >>$CONFIG_STATUS <<_ACEOF
4e8d927d 24331
b4e70030
JB
24332#
24333# CONFIG_FILES section.
24334#
4e8d927d 24335
b4e70030
JB
24336# No need to generate the scripts if there are no CONFIG_FILES.
24337# This happens for instance when ./config.status config.h
24338if test -n "\$CONFIG_FILES"; then
24339 # Protect against being on the right side of a sed subst in config.status.
24340 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24341 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24342s,@SHELL@,$SHELL,;t t
24343s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24344s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24345s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24346s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24347s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24348s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24349s,@exec_prefix@,$exec_prefix,;t t
24350s,@prefix@,$prefix,;t t
24351s,@program_transform_name@,$program_transform_name,;t t
24352s,@bindir@,$bindir,;t t
24353s,@sbindir@,$sbindir,;t t
24354s,@libexecdir@,$libexecdir,;t t
24355s,@datadir@,$datadir,;t t
24356s,@sysconfdir@,$sysconfdir,;t t
24357s,@sharedstatedir@,$sharedstatedir,;t t
24358s,@localstatedir@,$localstatedir,;t t
24359s,@libdir@,$libdir,;t t
24360s,@includedir@,$includedir,;t t
24361s,@oldincludedir@,$oldincludedir,;t t
24362s,@infodir@,$infodir,;t t
24363s,@mandir@,$mandir,;t t
24364s,@build_alias@,$build_alias,;t t
24365s,@host_alias@,$host_alias,;t t
24366s,@target_alias@,$target_alias,;t t
24367s,@DEFS@,$DEFS,;t t
24368s,@ECHO_C@,$ECHO_C,;t t
24369s,@ECHO_N@,$ECHO_N,;t t
24370s,@ECHO_T@,$ECHO_T,;t t
24371s,@LIBS@,$LIBS,;t t
24372s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
24373s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
24374s,@MAINT@,$MAINT,;t t
24375s,@CC@,$CC,;t t
24376s,@CFLAGS@,$CFLAGS,;t t
24377s,@LDFLAGS@,$LDFLAGS,;t t
24378s,@CPPFLAGS@,$CPPFLAGS,;t t
24379s,@ac_ct_CC@,$ac_ct_CC,;t t
24380s,@EXEEXT@,$EXEEXT,;t t
24381s,@OBJEXT@,$OBJEXT,;t t
24382s,@CPP@,$CPP,;t t
24383s,@EGREP@,$EGREP,;t t
24384s,@build@,$build,;t t
24385s,@build_cpu@,$build_cpu,;t t
24386s,@build_vendor@,$build_vendor,;t t
24387s,@build_os@,$build_os,;t t
24388s,@host@,$host,;t t
24389s,@host_cpu@,$host_cpu,;t t
24390s,@host_vendor@,$host_vendor,;t t
24391s,@host_os@,$host_os,;t t
24392s,@target@,$target,;t t
24393s,@target_cpu@,$target_cpu,;t t
24394s,@target_vendor@,$target_vendor,;t t
24395s,@target_os@,$target_os,;t t
b4e70030 24396s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
24397s,@LIBINTL@,$LIBINTL,;t t
24398s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
24399s,@INCINTL@,$INCINTL,;t t
b4e70030 24400s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
24401s,@GMSGFMT@,$GMSGFMT,;t t
24402s,@POSUB@,$POSUB,;t t
b4e70030 24403s,@CATALOGS@,$CATALOGS,;t t
b4e70030 24404s,@DATADIRNAME@,$DATADIRNAME,;t t
b4e70030 24405s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
24406s,@GENCAT@,$GENCAT,;t t
24407s,@CATOBJEXT@,$CATOBJEXT,;t t
b4e70030
JB
24408s,@localedir@,$localedir,;t t
24409s,@PACKAGE@,$PACKAGE,;t t
24410s,@subdirs@,$subdirs,;t t
24411s,@AWK@,$AWK,;t t
24412s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24413s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24414s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24415s,@LN_S@,$LN_S,;t t
20e95c23
DJ
24416s,@RANLIB@,$RANLIB,;t t
24417s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
b4e70030
JB
24418s,@YACC@,$YACC,;t t
24419s,@AR@,$AR,;t t
24420s,@ac_ct_AR@,$ac_ct_AR,;t t
24421s,@DLLTOOL@,$DLLTOOL,;t t
24422s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
24423s,@WINDRES@,$WINDRES,;t t
24424s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
24425s,@MIG@,$MIG,;t t
24426s,@ac_ct_MIG@,$ac_ct_MIG,;t t
6a30b0a5
AS
24427s,@READLINE@,$READLINE,;t t
24428s,@READLINE_DEPS@,$READLINE_DEPS,;t t
24429s,@READLINE_CFLAGS@,$READLINE_CFLAGS,;t t
3841debe
DJ
24430s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
24431s,@LIBEXPAT@,$LIBEXPAT,;t t
24432s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
20e95c23 24433s,@ALLOCA@,$ALLOCA,;t t
b4e70030
JB
24434s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
24435s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
24436s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
24437s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
24438s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
24439s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
24440s,@WIN32LIBS@,$WIN32LIBS,;t t
24441s,@LIBGUI@,$LIBGUI,;t t
24442s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
24443s,@WIN32LDAPP@,$WIN32LDAPP,;t t
24444s,@TCL_VERSION@,$TCL_VERSION,;t t
24445s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
24446s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
24447s,@TCL_CC@,$TCL_CC,;t t
24448s,@TCL_DEFS@,$TCL_DEFS,;t t
24449s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
24450s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
24451s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
24452s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
24453s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
24454s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
24455s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
24456s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
24457s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
24458s,@TCL_RANLIB@,$TCL_RANLIB,;t t
24459s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
24460s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
24461s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
24462s,@TK_VERSION@,$TK_VERSION,;t t
24463s,@TK_DEFS@,$TK_DEFS,;t t
24464s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
24465s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
24466s,@TK_XLIBSW@,$TK_XLIBSW,;t t
24467s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
24468s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
24469s,@TCLHDIR@,$TCLHDIR,;t t
24470s,@TKHDIR@,$TKHDIR,;t t
24471s,@ITCLHDIR@,$ITCLHDIR,;t t
24472s,@ITKHDIR@,$ITKHDIR,;t t
24473s,@ITCL_VERSION@,$ITCL_VERSION,;t t
24474s,@ITCL_DEFS@,$ITCL_DEFS,;t t
24475s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
24476s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
24477s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
24478s,@ITK_VERSION@,$ITK_VERSION,;t t
24479s,@ITK_DEFS@,$ITK_DEFS,;t t
24480s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
24481s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
24482s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
24483s,@X_CFLAGS@,$X_CFLAGS,;t t
24484s,@X_LDFLAGS@,$X_LDFLAGS,;t t
24485s,@X_LIBS@,$X_LIBS,;t t
24486s,@TCL_DEPS@,$TCL_DEPS,;t t
24487s,@TK_DEPS@,$TK_DEPS,;t t
24488s,@ITCLLIB@,$ITCLLIB,;t t
24489s,@ITCL_DEPS@,$ITCL_DEPS,;t t
24490s,@ITKLIB@,$ITKLIB,;t t
24491s,@ITK_DEPS@,$ITK_DEPS,;t t
24492s,@GDBTKLIBS@,$GDBTKLIBS,;t t
24493s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
24494s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
24495s,@IGNORE_SIM@,$IGNORE_SIM,;t t
24496s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t
24497s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
24498s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
24499s,@CONFIG_OBS@,$CONFIG_OBS,;t t
24500s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
24501s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
24502s,@CONFIG_ALL@,$CONFIG_ALL,;t t
24503s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
24504s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
24505s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
24506s,@target_subdir@,$target_subdir,;t t
24507s,@frags@,$frags,;t t
24508s,@xm_h@,$xm_h,;t t
24509s,@tm_h@,$tm_h,;t t
24510s,@nm_h@,$nm_h,;t t
24511s,@LIBICONV@,$LIBICONV,;t t
24512s,@LIBOBJS@,$LIBOBJS,;t t
24513s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24514/@host_makefile_frag@/r $host_makefile_frag
24515s,@host_makefile_frag@,,;t t
24516/@target_makefile_frag@/r $target_makefile_frag
24517s,@target_makefile_frag@,,;t t
24518CEOF
24519
24520_ACEOF
24521
24522 cat >>$CONFIG_STATUS <<\_ACEOF
24523 # Split the substitutions into bite-sized pieces for seds with
24524 # small command number limits, like on Digital OSF/1 and HP-UX.
24525 ac_max_sed_lines=48
24526 ac_sed_frag=1 # Number of current file.
24527 ac_beg=1 # First line for current file.
24528 ac_end=$ac_max_sed_lines # Line after last line for current file.
24529 ac_more_lines=:
24530 ac_sed_cmds=
24531 while $ac_more_lines; do
24532 if test $ac_beg -gt 1; then
24533 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24534 else
24535 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4e8d927d 24536 fi
b4e70030
JB
24537 if test ! -s $tmp/subs.frag; then
24538 ac_more_lines=false
24539 else
24540 # The purpose of the label and of the branching condition is to
24541 # speed up the sed processing (if there are no `@' at all, there
24542 # is no need to browse any of the substitutions).
24543 # These are the two extra sed commands mentioned above.
24544 (echo ':t
24545 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24546 if test -z "$ac_sed_cmds"; then
24547 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24548 else
24549 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24550 fi
24551 ac_sed_frag=`expr $ac_sed_frag + 1`
24552 ac_beg=$ac_end
24553 ac_end=`expr $ac_end + $ac_max_sed_lines`
24554 fi
24555 done
24556 if test -z "$ac_sed_cmds"; then
24557 ac_sed_cmds=cat
24558 fi
24559fi # test -n "$CONFIG_FILES"
4e8d927d 24560
b4e70030
JB
24561_ACEOF
24562cat >>$CONFIG_STATUS <<\_ACEOF
24563for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24564 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24565 case $ac_file in
24566 - | *:- | *:-:* ) # input from stdin
24567 cat >$tmp/stdin
24568 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24569 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24570 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24571 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24572 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
24573 esac
24574
b4e70030
JB
24575 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24576 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
bec39cab
AC
24577$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24578 X"$ac_file" : 'X\(//\)[^/]' \| \
24579 X"$ac_file" : 'X\(//\)$' \| \
b4e70030
JB
24580 X"$ac_file" : 'X\(/\)' \| \
24581 . : '\(.\)' 2>/dev/null ||
bec39cab 24582echo X"$ac_file" |
b4e70030
JB
24583 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24584 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24585 /^X\(\/\/\)$/{ s//\1/; q; }
24586 /^X\(\/\).*/{ s//\1/; q; }
24587 s/.*/./; q'`
24588 { if $as_mkdir_p; then
24589 mkdir -p "$ac_dir"
24590 else
24591 as_dir="$ac_dir"
bec39cab 24592 as_dirs=
b4e70030
JB
24593 while test ! -d "$as_dir"; do
24594 as_dirs="$as_dir $as_dirs"
24595 as_dir=`(dirname "$as_dir") 2>/dev/null ||
bec39cab
AC
24596$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24597 X"$as_dir" : 'X\(//\)[^/]' \| \
24598 X"$as_dir" : 'X\(//\)$' \| \
b4e70030
JB
24599 X"$as_dir" : 'X\(/\)' \| \
24600 . : '\(.\)' 2>/dev/null ||
bec39cab 24601echo X"$as_dir" |
b4e70030
JB
24602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24603 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24604 /^X\(\/\/\)$/{ s//\1/; q; }
24605 /^X\(\/\).*/{ s//\1/; q; }
24606 s/.*/./; q'`
bec39cab 24607 done
b4e70030
JB
24608 test ! -n "$as_dirs" || mkdir $as_dirs
24609 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24610echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
bec39cab 24611 { (exit 1); exit 1; }; }; }
b4e70030 24612
bec39cab
AC
24613 ac_builddir=.
24614
b4e70030 24615if test "$ac_dir" != .; then
bec39cab 24616 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
24617 # A "../" for each directory in $ac_dir_suffix.
24618 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24619else
24620 ac_dir_suffix= ac_top_builddir=
24621fi
bec39cab
AC
24622
24623case $srcdir in
b4e70030 24624 .) # No --srcdir option. We are building in place.
bec39cab 24625 ac_srcdir=.
b4e70030
JB
24626 if test -z "$ac_top_builddir"; then
24627 ac_top_srcdir=.
24628 else
24629 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24630 fi ;;
24631 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 24632 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
24633 ac_top_srcdir=$srcdir ;;
24634 *) # Relative path.
24635 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24636 ac_top_srcdir=$ac_top_builddir$srcdir ;;
bec39cab
AC
24637esac
24638
b4e70030
JB
24639# Do not use `cd foo && pwd` to compute absolute paths, because
24640# the directories may not exist.
24641case `pwd` in
24642.) ac_abs_builddir="$ac_dir";;
24643*)
24644 case "$ac_dir" in
24645 .) ac_abs_builddir=`pwd`;;
24646 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24647 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24648 esac;;
24649esac
24650case $ac_abs_builddir in
24651.) ac_abs_top_builddir=${ac_top_builddir}.;;
24652*)
24653 case ${ac_top_builddir}. in
24654 .) ac_abs_top_builddir=$ac_abs_builddir;;
24655 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24656 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24657 esac;;
24658esac
24659case $ac_abs_builddir in
24660.) ac_abs_srcdir=$ac_srcdir;;
24661*)
24662 case $ac_srcdir in
24663 .) ac_abs_srcdir=$ac_abs_builddir;;
24664 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24665 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24666 esac;;
24667esac
24668case $ac_abs_builddir in
24669.) ac_abs_top_srcdir=$ac_top_srcdir;;
24670*)
24671 case $ac_top_srcdir in
24672 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24673 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24674 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24675 esac;;
24676esac
c906108c 24677
c906108c 24678
bec39cab
AC
24679 case $INSTALL in
24680 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
b4e70030 24681 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c906108c 24682 esac
121ce6e5 24683
b4e70030
JB
24684 if test x"$ac_file" != x-; then
24685 { echo "$as_me:$LINENO: creating $ac_file" >&5
24686echo "$as_me: creating $ac_file" >&6;}
24687 rm -f "$ac_file"
24688 fi
24689 # Let's still pretend it is `configure' which instantiates (i.e., don't
24690 # use $as_me), people would be surprised to read:
24691 # /* config.h. Generated by config.status. */
24692 if test x"$ac_file" = x-; then
24693 configure_input=
24694 else
24695 configure_input="$ac_file. "
24696 fi
24697 configure_input=$configure_input"Generated from `echo $ac_file_in |
24698 sed 's,.*/,,'` by configure."
24699
24700 # First look for the input files in the build tree, otherwise in the
24701 # src tree.
24702 ac_file_inputs=`IFS=:
24703 for f in $ac_file_in; do
24704 case $f in
24705 -) echo $tmp/stdin ;;
24706 [\\/$]*)
24707 # Absolute (can't be DOS-style, as IFS=:)
24708 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24709echo "$as_me: error: cannot find input file: $f" >&2;}
24710 { (exit 1); exit 1; }; }
24711 echo "$f";;
24712 *) # Relative
24713 if test -f "$f"; then
24714 # Build tree
24715 echo "$f"
24716 elif test -f "$srcdir/$f"; then
24717 # Source tree
24718 echo "$srcdir/$f"
24719 else
24720 # /dev/null tree
24721 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24722echo "$as_me: error: cannot find input file: $f" >&2;}
24723 { (exit 1); exit 1; }; }
24724 fi;;
24725 esac
24726 done` || { (exit 1); exit 1; }
4e8d927d 24727_ACEOF
bec39cab
AC
24728cat >>$CONFIG_STATUS <<_ACEOF
24729 sed "$ac_vpsub
24730$extrasub
24731_ACEOF
24732cat >>$CONFIG_STATUS <<\_ACEOF
24733:t
24734/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
b4e70030
JB
24735s,@configure_input@,$configure_input,;t t
24736s,@srcdir@,$ac_srcdir,;t t
24737s,@abs_srcdir@,$ac_abs_srcdir,;t t
24738s,@top_srcdir@,$ac_top_srcdir,;t t
24739s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24740s,@builddir@,$ac_builddir,;t t
24741s,@abs_builddir@,$ac_abs_builddir,;t t
24742s,@top_builddir@,$ac_top_builddir,;t t
24743s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24744s,@INSTALL@,$ac_INSTALL,;t t
24745" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24746 rm -f $tmp/stdin
24747 if test x"$ac_file" != x-; then
24748 mv $tmp/out $ac_file
24749 else
24750 cat $tmp/out
24751 rm -f $tmp/out
24752 fi
24753
24754done
24755_ACEOF
24756cat >>$CONFIG_STATUS <<\_ACEOF
24757
24758#
24759# CONFIG_HEADER section.
24760#
24761
24762# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24763# NAME is the cpp macro being defined and VALUE is the value it is being given.
24764#
24765# ac_d sets the value in "#define NAME VALUE" lines.
24766ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24767ac_dB='[ ].*$,\1#\2'
24768ac_dC=' '
24769ac_dD=',;t'
24770# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24771ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24772ac_uB='$,\1#\2define\3'
24773ac_uC=' '
24774ac_uD=',;t'
24775
24776for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24777 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
bec39cab 24778 case $ac_file in
b4e70030
JB
24779 - | *:- | *:-:* ) # input from stdin
24780 cat >$tmp/stdin
24781 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24782 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24783 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24784 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24785 * ) ac_file_in=$ac_file.in ;;
c906108c 24786 esac
b4e70030
JB
24787
24788 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24789echo "$as_me: creating $ac_file" >&6;}
24790
24791 # First look for the input files in the build tree, otherwise in the
24792 # src tree.
24793 ac_file_inputs=`IFS=:
24794 for f in $ac_file_in; do
24795 case $f in
24796 -) echo $tmp/stdin ;;
24797 [\\/$]*)
24798 # Absolute (can't be DOS-style, as IFS=:)
24799 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24800echo "$as_me: error: cannot find input file: $f" >&2;}
24801 { (exit 1); exit 1; }; }
24802 # Do quote $f, to prevent DOS paths from being IFS'd.
24803 echo "$f";;
24804 *) # Relative
24805 if test -f "$f"; then
24806 # Build tree
24807 echo "$f"
24808 elif test -f "$srcdir/$f"; then
24809 # Source tree
24810 echo "$srcdir/$f"
24811 else
24812 # /dev/null tree
24813 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24814echo "$as_me: error: cannot find input file: $f" >&2;}
24815 { (exit 1); exit 1; }; }
24816 fi;;
24817 esac
24818 done` || { (exit 1); exit 1; }
24819 # Remove the trailing spaces.
24820 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24821
24822_ACEOF
24823
24824# Transform confdefs.h into two sed scripts, `conftest.defines' and
24825# `conftest.undefs', that substitutes the proper values into
24826# config.h.in to produce config.h. The first handles `#define'
24827# templates, and the second `#undef' templates.
24828# And first: Protect against being on the right side of a sed subst in
24829# config.status. Protect against being in an unquoted here document
24830# in config.status.
24831rm -f conftest.defines conftest.undefs
24832# Using a here document instead of a string reduces the quoting nightmare.
24833# Putting comments in sed scripts is not portable.
24834#
24835# `end' is used to avoid that the second main sed command (meant for
24836# 0-ary CPP macros) applies to n-ary macro definitions.
24837# See the Autoconf documentation for `clear'.
24838cat >confdef2sed.sed <<\_ACEOF
24839s/[\\&,]/\\&/g
24840s,[\\$`],\\&,g
24841t clear
24842: clear
24843s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24844t end
24845s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24846: end
24847_ACEOF
24848# If some macros were called several times there might be several times
24849# the same #defines, which is useless. Nevertheless, we may not want to
24850# sort them, since we want the *last* AC-DEFINE to be honored.
24851uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24852sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24853rm -f confdef2sed.sed
24854
24855# This sed command replaces #undef with comments. This is necessary, for
c906108c
SS
24856# example, in the case of _POSIX_SOURCE, which is predefined and required
24857# on some systems where configure will not decide to define it.
b4e70030
JB
24858cat >>conftest.undefs <<\_ACEOF
24859s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24860_ACEOF
24861
24862# Break up conftest.defines because some shells have a limit on the size
24863# of here documents, and old seds have small limits too (100 cmds).
24864echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24865echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24866echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24867echo ' :' >>$CONFIG_STATUS
24868rm -f conftest.tail
24869while grep . conftest.defines >/dev/null
bec39cab 24870do
b4e70030
JB
24871 # Write a limited-size here document to $tmp/defines.sed.
24872 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24873 # Speed up: don't consider the non `#define' lines.
24874 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24875 # Work around the forget-to-reset-the-flag bug.
24876 echo 't clr' >>$CONFIG_STATUS
24877 echo ': clr' >>$CONFIG_STATUS
24878 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
bec39cab 24879 echo 'CEOF
b4e70030
JB
24880 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24881 rm -f $tmp/in
24882 mv $tmp/out $tmp/in
24883' >>$CONFIG_STATUS
24884 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
bec39cab
AC
24885 rm -f conftest.defines
24886 mv conftest.tail conftest.defines
24887done
b4e70030
JB
24888rm -f conftest.defines
24889echo ' fi # grep' >>$CONFIG_STATUS
24890echo >>$CONFIG_STATUS
24891
24892# Break up conftest.undefs because some shells have a limit on the size
24893# of here documents, and old seds have small limits too (100 cmds).
24894echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24895rm -f conftest.tail
24896while grep . conftest.undefs >/dev/null
24897do
24898 # Write a limited-size here document to $tmp/undefs.sed.
24899 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24900 # Speed up: don't consider the non `#undef'
24901 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24902 # Work around the forget-to-reset-the-flag bug.
24903 echo 't clr' >>$CONFIG_STATUS
24904 echo ': clr' >>$CONFIG_STATUS
24905 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24906 echo 'CEOF
24907 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24908 rm -f $tmp/in
24909 mv $tmp/out $tmp/in
24910' >>$CONFIG_STATUS
24911 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24912 rm -f conftest.undefs
24913 mv conftest.tail conftest.undefs
24914done
24915rm -f conftest.undefs
bec39cab
AC
24916
24917cat >>$CONFIG_STATUS <<\_ACEOF
b4e70030
JB
24918 # Let's still pretend it is `configure' which instantiates (i.e., don't
24919 # use $as_me), people would be surprised to read:
24920 # /* config.h. Generated by config.status. */
24921 if test x"$ac_file" = x-; then
24922 echo "/* Generated by configure. */" >$tmp/config.h
24923 else
24924 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24925 fi
24926 cat $tmp/in >>$tmp/config.h
24927 rm -f $tmp/in
bec39cab 24928 if test x"$ac_file" != x-; then
b4e70030 24929 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
bec39cab
AC
24930 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24931echo "$as_me: $ac_file is unchanged" >&6;}
24932 else
b4e70030
JB
24933 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24934$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24935 X"$ac_file" : 'X\(//\)[^/]' \| \
24936 X"$ac_file" : 'X\(//\)$' \| \
24937 X"$ac_file" : 'X\(/\)' \| \
24938 . : '\(.\)' 2>/dev/null ||
24939echo X"$ac_file" |
24940 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24941 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24942 /^X\(\/\/\)$/{ s//\1/; q; }
24943 /^X\(\/\).*/{ s//\1/; q; }
24944 s/.*/./; q'`
24945 { if $as_mkdir_p; then
24946 mkdir -p "$ac_dir"
24947 else
24948 as_dir="$ac_dir"
24949 as_dirs=
24950 while test ! -d "$as_dir"; do
24951 as_dirs="$as_dir $as_dirs"
24952 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24953$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24954 X"$as_dir" : 'X\(//\)[^/]' \| \
24955 X"$as_dir" : 'X\(//\)$' \| \
24956 X"$as_dir" : 'X\(/\)' \| \
24957 . : '\(.\)' 2>/dev/null ||
24958echo X"$as_dir" |
24959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24960 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24961 /^X\(\/\/\)$/{ s//\1/; q; }
24962 /^X\(\/\).*/{ s//\1/; q; }
24963 s/.*/./; q'`
24964 done
24965 test ! -n "$as_dirs" || mkdir $as_dirs
24966 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24967echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24968 { (exit 1); exit 1; }; }; }
24969
bec39cab 24970 rm -f $ac_file
b4e70030 24971 mv $tmp/config.h $ac_file
bec39cab
AC
24972 fi
24973 else
b4e70030
JB
24974 cat $tmp/config.h
24975 rm -f $tmp/config.h
bec39cab 24976 fi
b4e70030
JB
24977done
24978_ACEOF
24979cat >>$CONFIG_STATUS <<\_ACEOF
24980
24981#
24982# CONFIG_LINKS section.
24983#
24984
24985for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
24986 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24987 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
c906108c 24988
b4e70030
JB
24989 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
24990echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
c906108c
SS
24991
24992 if test ! -r $srcdir/$ac_source; then
bec39cab
AC
24993 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
24994echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
24995 { (exit 1); exit 1; }; }
c906108c 24996 fi
b4e70030
JB
24997 rm -f $ac_dest
24998
24999 # Make relative symlinks.
25000 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25001$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25002 X"$ac_dest" : 'X\(//\)[^/]' \| \
25003 X"$ac_dest" : 'X\(//\)$' \| \
25004 X"$ac_dest" : 'X\(/\)' \| \
25005 . : '\(.\)' 2>/dev/null ||
25006echo X"$ac_dest" |
25007 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25008 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25009 /^X\(\/\/\)$/{ s//\1/; q; }
25010 /^X\(\/\).*/{ s//\1/; q; }
25011 s/.*/./; q'`
25012 { if $as_mkdir_p; then
25013 mkdir -p "$ac_dest_dir"
25014 else
25015 as_dir="$ac_dest_dir"
25016 as_dirs=
25017 while test ! -d "$as_dir"; do
25018 as_dirs="$as_dir $as_dirs"
25019 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25020$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25021 X"$as_dir" : 'X\(//\)[^/]' \| \
25022 X"$as_dir" : 'X\(//\)$' \| \
25023 X"$as_dir" : 'X\(/\)' \| \
25024 . : '\(.\)' 2>/dev/null ||
25025echo X"$as_dir" |
25026 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25027 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25028 /^X\(\/\/\)$/{ s//\1/; q; }
25029 /^X\(\/\).*/{ s//\1/; q; }
25030 s/.*/./; q'`
25031 done
25032 test ! -n "$as_dirs" || mkdir $as_dirs
25033 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25034echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25035 { (exit 1); exit 1; }; }; }
25036
25037 ac_builddir=.
25038
25039if test "$ac_dest_dir" != .; then
25040 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25041 # A "../" for each directory in $ac_dir_suffix.
25042 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25043else
25044 ac_dir_suffix= ac_top_builddir=
25045fi
25046
25047case $srcdir in
25048 .) # No --srcdir option. We are building in place.
25049 ac_srcdir=.
25050 if test -z "$ac_top_builddir"; then
25051 ac_top_srcdir=.
25052 else
25053 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25054 fi ;;
25055 [\\/]* | ?:[\\/]* ) # Absolute path.
25056 ac_srcdir=$srcdir$ac_dir_suffix;
25057 ac_top_srcdir=$srcdir ;;
25058 *) # Relative path.
25059 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25060 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25061esac
25062
25063# Do not use `cd foo && pwd` to compute absolute paths, because
25064# the directories may not exist.
25065case `pwd` in
25066.) ac_abs_builddir="$ac_dest_dir";;
25067*)
25068 case "$ac_dest_dir" in
25069 .) ac_abs_builddir=`pwd`;;
25070 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25071 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25072 esac;;
25073esac
25074case $ac_abs_builddir in
25075.) ac_abs_top_builddir=${ac_top_builddir}.;;
25076*)
25077 case ${ac_top_builddir}. in
25078 .) ac_abs_top_builddir=$ac_abs_builddir;;
25079 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25080 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25081 esac;;
25082esac
25083case $ac_abs_builddir in
25084.) ac_abs_srcdir=$ac_srcdir;;
25085*)
25086 case $ac_srcdir in
25087 .) ac_abs_srcdir=$ac_abs_builddir;;
25088 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25089 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25090 esac;;
25091esac
25092case $ac_abs_builddir in
25093.) ac_abs_top_srcdir=$ac_top_srcdir;;
25094*)
25095 case $ac_top_srcdir in
25096 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25097 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25098 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25099 esac;;
25100esac
25101
bec39cab
AC
25102
25103 case $srcdir in
25104 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
b4e70030 25105 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
c906108c 25106 esac
b4e70030
JB
25107
25108 # Try a symlink, then a hard link, then a copy.
25109 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
25110 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
25111 cp -p $srcdir/$ac_source $ac_dest ||
25112 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
25113echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
bec39cab 25114 { (exit 1); exit 1; }; }
b4e70030
JB
25115done
25116_ACEOF
25117cat >>$CONFIG_STATUS <<\_ACEOF
25118
25119#
25120# CONFIG_COMMANDS section.
25121#
25122for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25123 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25124 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25125 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25126$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25127 X"$ac_dest" : 'X\(//\)[^/]' \| \
25128 X"$ac_dest" : 'X\(//\)$' \| \
25129 X"$ac_dest" : 'X\(/\)' \| \
25130 . : '\(.\)' 2>/dev/null ||
25131echo X"$ac_dest" |
25132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25133 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25134 /^X\(\/\/\)$/{ s//\1/; q; }
25135 /^X\(\/\).*/{ s//\1/; q; }
25136 s/.*/./; q'`
25137 { if $as_mkdir_p; then
25138 mkdir -p "$ac_dir"
25139 else
25140 as_dir="$ac_dir"
25141 as_dirs=
25142 while test ! -d "$as_dir"; do
25143 as_dirs="$as_dir $as_dirs"
25144 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25145$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25146 X"$as_dir" : 'X\(//\)[^/]' \| \
25147 X"$as_dir" : 'X\(//\)$' \| \
25148 X"$as_dir" : 'X\(/\)' \| \
25149 . : '\(.\)' 2>/dev/null ||
25150echo X"$as_dir" |
25151 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25152 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25153 /^X\(\/\/\)$/{ s//\1/; q; }
25154 /^X\(\/\).*/{ s//\1/; q; }
25155 s/.*/./; q'`
25156 done
25157 test ! -n "$as_dirs" || mkdir $as_dirs
25158 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25159echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25160 { (exit 1); exit 1; }; }; }
25161
25162 ac_builddir=.
25163
25164if test "$ac_dir" != .; then
25165 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25166 # A "../" for each directory in $ac_dir_suffix.
25167 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25168else
25169 ac_dir_suffix= ac_top_builddir=
25170fi
25171
25172case $srcdir in
25173 .) # No --srcdir option. We are building in place.
25174 ac_srcdir=.
25175 if test -z "$ac_top_builddir"; then
25176 ac_top_srcdir=.
25177 else
25178 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25179 fi ;;
25180 [\\/]* | ?:[\\/]* ) # Absolute path.
25181 ac_srcdir=$srcdir$ac_dir_suffix;
25182 ac_top_srcdir=$srcdir ;;
25183 *) # Relative path.
25184 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25185 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25186esac
25187
25188# Do not use `cd foo && pwd` to compute absolute paths, because
25189# the directories may not exist.
25190case `pwd` in
25191.) ac_abs_builddir="$ac_dir";;
25192*)
25193 case "$ac_dir" in
25194 .) ac_abs_builddir=`pwd`;;
25195 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25196 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25197 esac;;
25198esac
25199case $ac_abs_builddir in
25200.) ac_abs_top_builddir=${ac_top_builddir}.;;
25201*)
25202 case ${ac_top_builddir}. in
25203 .) ac_abs_top_builddir=$ac_abs_builddir;;
25204 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25205 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25206 esac;;
25207esac
25208case $ac_abs_builddir in
25209.) ac_abs_srcdir=$ac_srcdir;;
25210*)
25211 case $ac_srcdir in
25212 .) ac_abs_srcdir=$ac_abs_builddir;;
25213 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25214 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25215 esac;;
25216esac
25217case $ac_abs_builddir in
25218.) ac_abs_top_srcdir=$ac_top_srcdir;;
25219*)
25220 case $ac_top_srcdir in
25221 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25222 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25223 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25224 esac;;
25225esac
bec39cab 25226
bec39cab 25227
b4e70030
JB
25228 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25229echo "$as_me: executing $ac_dest commands" >&6;}
25230 case $ac_dest in
25231 gdb_stdint.h )
4e8d927d
DJ
25232if test "$GCC" = yes; then
25233 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
25234else
25235 echo "/* generated for $CC */" > tmp-stdint.h
25236fi
25237
25238sed 's/^ *//' >> tmp-stdint.h <<EOF
25239
25240 #ifndef GCC_GENERATED_STDINT_H
25241 #define GCC_GENERATED_STDINT_H 1
25242
25243 #include <sys/types.h>
25244EOF
25245
25246if test "$acx_cv_header_stdint" != stdint.h; then
25247 echo "#include <stddef.h>" >> tmp-stdint.h
25248fi
25249if test "$acx_cv_header_stdint" != stddef.h; then
25250 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
25251fi
25252
25253sed 's/^ *//' >> tmp-stdint.h <<EOF
25254 /* glibc uses these symbols as guards to prevent redefinitions. */
25255 #ifdef __int8_t_defined
25256 #define _INT8_T
25257 #define _INT16_T
25258 #define _INT32_T
25259 #endif
25260 #ifdef __uint32_t_defined
25261 #define _UINT32_T
25262 #endif
25263
25264EOF
25265
25266# ----------------- done header, emit basic int types -------------
25267if test "$acx_cv_header_stdint" = stddef.h; then
25268 sed 's/^ *//' >> tmp-stdint.h <<EOF
25269
25270 #ifndef _UINT8_T
25271 #define _UINT8_T
07abfebf
RS
25272 #ifndef __uint8_t_defined
25273 #define __uint8_t_defined
4e8d927d
DJ
25274 typedef unsigned $acx_cv_type_int8_t uint8_t;
25275 #endif
07abfebf 25276 #endif
4e8d927d
DJ
25277
25278 #ifndef _UINT16_T
25279 #define _UINT16_T
07abfebf
RS
25280 #ifndef __uint16_t_defined
25281 #define __uint16_t_defined
4e8d927d
DJ
25282 typedef unsigned $acx_cv_type_int16_t uint16_t;
25283 #endif
07abfebf 25284 #endif
4e8d927d
DJ
25285
25286 #ifndef _UINT32_T
25287 #define _UINT32_T
07abfebf
RS
25288 #ifndef __uint32_t_defined
25289 #define __uint32_t_defined
4e8d927d
DJ
25290 typedef unsigned $acx_cv_type_int32_t uint32_t;
25291 #endif
07abfebf 25292 #endif
4e8d927d
DJ
25293
25294 #ifndef _INT8_T
25295 #define _INT8_T
07abfebf
RS
25296 #ifndef __int8_t_defined
25297 #define __int8_t_defined
4e8d927d
DJ
25298 typedef $acx_cv_type_int8_t int8_t;
25299 #endif
07abfebf 25300 #endif
4e8d927d
DJ
25301
25302 #ifndef _INT16_T
25303 #define _INT16_T
07abfebf
RS
25304 #ifndef __int16_t_defined
25305 #define __int16_t_defined
4e8d927d
DJ
25306 typedef $acx_cv_type_int16_t int16_t;
25307 #endif
07abfebf 25308 #endif
4e8d927d
DJ
25309
25310 #ifndef _INT32_T
25311 #define _INT32_T
07abfebf
RS
25312 #ifndef __int32_t_defined
25313 #define __int32_t_defined
4e8d927d
DJ
25314 typedef $acx_cv_type_int32_t int32_t;
25315 #endif
07abfebf 25316 #endif
4e8d927d
DJ
25317EOF
25318elif test "$ac_cv_type_u_int32_t" = yes; then
25319 sed 's/^ *//' >> tmp-stdint.h <<EOF
25320
25321 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
25322 #ifndef _INT8_T
25323 #define _INT8_T
25324 #endif
25325 #ifndef _INT16_T
25326 #define _INT16_T
25327 #endif
25328 #ifndef _INT32_T
25329 #define _INT32_T
25330 #endif
25331
25332 #ifndef _UINT8_T
25333 #define _UINT8_T
07abfebf
RS
25334 #ifndef __uint8_t_defined
25335 #define __uint8_t_defined
4e8d927d
DJ
25336 typedef u_int8_t uint8_t;
25337 #endif
07abfebf 25338 #endif
4e8d927d
DJ
25339
25340 #ifndef _UINT16_T
25341 #define _UINT16_T
07abfebf
RS
25342 #ifndef __uint16_t_defined
25343 #define __uint16_t_defined
4e8d927d
DJ
25344 typedef u_int16_t uint16_t;
25345 #endif
07abfebf 25346 #endif
4e8d927d
DJ
25347
25348 #ifndef _UINT32_T
25349 #define _UINT32_T
07abfebf
RS
25350 #ifndef __uint32_t_defined
25351 #define __uint32_t_defined
4e8d927d
DJ
25352 typedef u_int32_t uint32_t;
25353 #endif
07abfebf 25354 #endif
4e8d927d
DJ
25355EOF
25356else
25357 sed 's/^ *//' >> tmp-stdint.h <<EOF
25358
25359 /* Some systems have guard macros to prevent redefinitions, define them. */
25360 #ifndef _INT8_T
25361 #define _INT8_T
25362 #endif
25363 #ifndef _INT16_T
25364 #define _INT16_T
25365 #endif
25366 #ifndef _INT32_T
25367 #define _INT32_T
25368 #endif
25369 #ifndef _UINT8_T
25370 #define _UINT8_T
25371 #endif
25372 #ifndef _UINT16_T
25373 #define _UINT16_T
25374 #endif
25375 #ifndef _UINT32_T
25376 #define _UINT32_T
25377 #endif
25378EOF
25379fi
25380
25381# ------------- done basic int types, emit int64_t types ------------
25382if test "$ac_cv_type_uint64_t" = yes; then
25383 sed 's/^ *//' >> tmp-stdint.h <<EOF
25384
25385 /* system headers have good uint64_t and int64_t */
25386 #ifndef _INT64_T
25387 #define _INT64_T
25388 #endif
25389 #ifndef _UINT64_T
25390 #define _UINT64_T
25391 #endif
25392EOF
25393elif test "$ac_cv_type_u_int64_t" = yes; then
25394 sed 's/^ *//' >> tmp-stdint.h <<EOF
25395
25396 /* system headers have an u_int64_t (and int64_t) */
25397 #ifndef _INT64_T
25398 #define _INT64_T
25399 #endif
25400 #ifndef _UINT64_T
25401 #define _UINT64_T
07abfebf
RS
25402 #ifndef __uint64_t_defined
25403 #define __uint64_t_defined
4e8d927d
DJ
25404 typedef u_int64_t uint64_t;
25405 #endif
07abfebf 25406 #endif
4e8d927d
DJ
25407EOF
25408elif test -n "$acx_cv_type_int64_t"; then
25409 sed 's/^ *//' >> tmp-stdint.h <<EOF
25410
25411 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
25412 #ifndef _INT64_T
25413 #define _INT64_T
25414 typedef $acx_cv_type_int64_t int64_t;
25415 #endif
25416 #ifndef _UINT64_T
25417 #define _UINT64_T
07abfebf
RS
25418 #ifndef __uint64_t_defined
25419 #define __uint64_t_defined
4e8d927d
DJ
25420 typedef unsigned $acx_cv_type_int64_t uint64_t;
25421 #endif
07abfebf 25422 #endif
4e8d927d
DJ
25423EOF
25424else
25425 sed 's/^ *//' >> tmp-stdint.h <<EOF
25426
25427 /* some common heuristics for int64_t, using compiler-specific tests */
25428 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
25429 #ifndef _INT64_T
25430 #define _INT64_T
07abfebf 25431 #ifndef __int64_t_defined
4e8d927d
DJ
25432 typedef long long int64_t;
25433 #endif
07abfebf 25434 #endif
4e8d927d
DJ
25435 #ifndef _UINT64_T
25436 #define _UINT64_T
25437 typedef unsigned long long uint64_t;
25438 #endif
25439
25440 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
25441 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
25442 does not implement __extension__. But that compiler doesn't define
25443 __GNUC_MINOR__. */
25444 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
25445 # define __extension__
25446 # endif
25447
25448 # ifndef _INT64_T
25449 # define _INT64_T
25450 __extension__ typedef long long int64_t;
25451 # endif
25452 # ifndef _UINT64_T
25453 # define _UINT64_T
25454 __extension__ typedef unsigned long long uint64_t;
25455 # endif
25456
25457 #elif !defined __STRICT_ANSI__
25458 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
25459
25460 # ifndef _INT64_T
25461 # define _INT64_T
25462 typedef __int64 int64_t;
25463 # endif
25464 # ifndef _UINT64_T
25465 # define _UINT64_T
25466 typedef unsigned __int64 uint64_t;
25467 # endif
25468 # endif /* compiler */
25469
25470 #endif /* ANSI version */
25471EOF
25472fi
25473
25474# ------------- done int64_t types, emit intptr types ------------
25475if test "$ac_cv_type_uintptr_t" != yes; then
25476 sed 's/^ *//' >> tmp-stdint.h <<EOF
25477
25478 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
07abfebf 25479 #ifndef __uintptr_t_defined
4e8d927d 25480 typedef u$acx_cv_type_intptr_t uintptr_t;
07abfebf
RS
25481 #endif
25482 #ifndef __intptr_t_defined
4e8d927d 25483 typedef $acx_cv_type_intptr_t intptr_t;
07abfebf 25484 #endif
4e8d927d
DJ
25485EOF
25486fi
25487
25488# ------------- done intptr types, emit int_least types ------------
25489if test "$ac_cv_type_int_least32_t" != yes; then
25490 sed 's/^ *//' >> tmp-stdint.h <<EOF
25491
25492 /* Define int_least types */
25493 typedef int8_t int_least8_t;
25494 typedef int16_t int_least16_t;
25495 typedef int32_t int_least32_t;
25496 #ifdef _INT64_T
25497 typedef int64_t int_least64_t;
25498 #endif
25499
25500 typedef uint8_t uint_least8_t;
25501 typedef uint16_t uint_least16_t;
25502 typedef uint32_t uint_least32_t;
25503 #ifdef _UINT64_T
25504 typedef uint64_t uint_least64_t;
25505 #endif
25506EOF
25507fi
25508
25509# ------------- done intptr types, emit int_fast types ------------
25510if test "$ac_cv_type_int_fast32_t" != yes; then
25511 sed 's/^ *//' >> tmp-stdint.h <<EOF
25512
25513 /* Define int_fast types. short is often slow */
25514 typedef int8_t int_fast8_t;
25515 typedef int int_fast16_t;
25516 typedef int32_t int_fast32_t;
25517 #ifdef _INT64_T
25518 typedef int64_t int_fast64_t;
25519 #endif
25520
25521 typedef uint8_t uint_fast8_t;
25522 typedef unsigned int uint_fast16_t;
25523 typedef uint32_t uint_fast32_t;
25524 #ifdef _UINT64_T
25525 typedef uint64_t uint_fast64_t;
25526 #endif
25527EOF
25528fi
25529
25530if test "$ac_cv_type_uintmax_t" != yes; then
25531 sed 's/^ *//' >> tmp-stdint.h <<EOF
25532
25533 /* Define intmax based on what we found */
25534 #ifdef _INT64_T
25535 typedef int64_t intmax_t;
25536 #else
25537 typedef long intmax_t;
25538 #endif
25539 #ifdef _UINT64_T
25540 typedef uint64_t uintmax_t;
25541 #else
25542 typedef unsigned long uintmax_t;
25543 #endif
25544EOF
25545fi
25546
25547sed 's/^ *//' >> tmp-stdint.h <<EOF
25548
25549 #endif /* GCC_GENERATED_STDINT_H */
25550EOF
25551
25552if test -r gdb_stdint.h && cmp -s tmp-stdint.h gdb_stdint.h; then
25553 rm -f tmp-stdint.h
25554else
25555 mv -f tmp-stdint.h gdb_stdint.h
bec39cab
AC
25556fi
25557
4e8d927d 25558 ;;
b4e70030 25559 default )
c906108c 25560
2c0fc042 25561sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
c906108c
SS
25562/^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
25563/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
25564mv -f Makefile.tmp Makefile
25565
2acceee2 25566
c906108c
SS
25567case x$CONFIG_HEADERS in
25568xconfig.h:config.in)
25569echo > stamp-h ;;
25570esac
bec39cab
AC
25571 ;;
25572 esac
b4e70030
JB
25573done
25574_ACEOF
c906108c 25575
b4e70030 25576cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
25577
25578{ (exit 0); exit 0; }
25579_ACEOF
c906108c 25580chmod +x $CONFIG_STATUS
bec39cab
AC
25581ac_clean_files=$ac_clean_files_save
25582
25583
25584# configure is writing to config.log, and then calls config.status.
25585# config.status does its own redirection, appending to config.log.
25586# Unfortunately, on DOS this fails, as config.log is still kept open
25587# by configure, so config.status won't be able to write to it; its
25588# output is simply discarded. So we exec the FD to /dev/null,
25589# effectively closing config.log, so it can be properly (re)opened and
25590# appended to by config.status. When coming back to configure, we
25591# need to make the FD available again.
25592if test "$no_create" != yes; then
25593 ac_cs_success=:
25594 ac_config_status_args=
25595 test "$silent" = yes &&
25596 ac_config_status_args="$ac_config_status_args --quiet"
25597 exec 5>/dev/null
25598 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25599 exec 5>>config.log
25600 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25601 # would make configure fail if this is the last instruction.
25602 $ac_cs_success || { (exit 1); exit 1; }
25603fi
c906108c 25604
bec39cab
AC
25605#
25606# CONFIG_SUBDIRS section.
25607#
c906108c
SS
25608if test "$no_recursion" != yes; then
25609
25610 # Remove --cache-file and --srcdir arguments so they do not pile up.
25611 ac_sub_configure_args=
25612 ac_prev=
b4e70030 25613 for ac_arg in $ac_configure_args; do
c906108c
SS
25614 if test -n "$ac_prev"; then
25615 ac_prev=
25616 continue
25617 fi
bec39cab 25618 case $ac_arg in
c906108c
SS
25619 -cache-file | --cache-file | --cache-fil | --cache-fi \
25620 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25621 ac_prev=cache_file ;;
25622 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
bec39cab
AC
25623 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25624 | --c=*)
25625 ;;
25626 --config-cache | -C)
c906108c
SS
25627 ;;
25628 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25629 ac_prev=srcdir ;;
25630 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25631 ;;
bec39cab
AC
25632 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25633 ac_prev=prefix ;;
25634 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25635 ;;
b4e70030 25636 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
c906108c
SS
25637 esac
25638 done
25639
bec39cab
AC
25640 # Always prepend --prefix to ensure using the same prefix
25641 # in subdir configurations.
25642 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25643
b4e70030 25644 ac_popdir=`pwd`
bec39cab 25645 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
c906108c
SS
25646
25647 # Do not complain, so a configure script can configure whichever
25648 # parts of a large source tree are present.
bec39cab 25649 test -d $srcdir/$ac_dir || continue
c906108c 25650
b4e70030
JB
25651 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25652echo "$as_me: configuring in $ac_dir" >&6;}
25653 { if $as_mkdir_p; then
25654 mkdir -p "$ac_dir"
25655 else
25656 as_dir="$ac_dir"
bec39cab 25657 as_dirs=
b4e70030
JB
25658 while test ! -d "$as_dir"; do
25659 as_dirs="$as_dir $as_dirs"
25660 as_dir=`(dirname "$as_dir") 2>/dev/null ||
bec39cab
AC
25661$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25662 X"$as_dir" : 'X\(//\)[^/]' \| \
25663 X"$as_dir" : 'X\(//\)$' \| \
b4e70030
JB
25664 X"$as_dir" : 'X\(/\)' \| \
25665 . : '\(.\)' 2>/dev/null ||
bec39cab 25666echo X"$as_dir" |
b4e70030
JB
25667 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25668 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25669 /^X\(\/\/\)$/{ s//\1/; q; }
25670 /^X\(\/\).*/{ s//\1/; q; }
25671 s/.*/./; q'`
bec39cab 25672 done
b4e70030
JB
25673 test ! -n "$as_dirs" || mkdir $as_dirs
25674 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25675echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
bec39cab 25676 { (exit 1); exit 1; }; }; }
b4e70030 25677
bec39cab
AC
25678 ac_builddir=.
25679
b4e70030 25680if test "$ac_dir" != .; then
bec39cab 25681 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
25682 # A "../" for each directory in $ac_dir_suffix.
25683 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25684else
25685 ac_dir_suffix= ac_top_builddir=
25686fi
bec39cab
AC
25687
25688case $srcdir in
b4e70030 25689 .) # No --srcdir option. We are building in place.
bec39cab 25690 ac_srcdir=.
b4e70030
JB
25691 if test -z "$ac_top_builddir"; then
25692 ac_top_srcdir=.
25693 else
25694 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25695 fi ;;
25696 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 25697 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
25698 ac_top_srcdir=$srcdir ;;
25699 *) # Relative path.
25700 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25701 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25702esac
25703
25704# Do not use `cd foo && pwd` to compute absolute paths, because
25705# the directories may not exist.
25706case `pwd` in
25707.) ac_abs_builddir="$ac_dir";;
25708*)
25709 case "$ac_dir" in
25710 .) ac_abs_builddir=`pwd`;;
25711 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25712 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25713 esac;;
25714esac
25715case $ac_abs_builddir in
25716.) ac_abs_top_builddir=${ac_top_builddir}.;;
25717*)
25718 case ${ac_top_builddir}. in
25719 .) ac_abs_top_builddir=$ac_abs_builddir;;
25720 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25721 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25722 esac;;
25723esac
25724case $ac_abs_builddir in
25725.) ac_abs_srcdir=$ac_srcdir;;
25726*)
25727 case $ac_srcdir in
25728 .) ac_abs_srcdir=$ac_abs_builddir;;
25729 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25730 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25731 esac;;
25732esac
25733case $ac_abs_builddir in
25734.) ac_abs_top_srcdir=$ac_top_srcdir;;
25735*)
25736 case $ac_top_srcdir in
25737 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25738 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25739 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25740 esac;;
bec39cab 25741esac
c906108c 25742
c906108c 25743
b4e70030 25744 cd $ac_dir
c906108c
SS
25745
25746 # Check for guested configure; otherwise get Cygnus style configure.
bec39cab
AC
25747 if test -f $ac_srcdir/configure.gnu; then
25748 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25749 elif test -f $ac_srcdir/configure; then
25750 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25751 elif test -f $ac_srcdir/configure.in; then
c906108c
SS
25752 ac_sub_configure=$ac_configure
25753 else
bec39cab
AC
25754 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25755echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
c906108c
SS
25756 ac_sub_configure=
25757 fi
25758
25759 # The recursion is here.
25760 if test -n "$ac_sub_configure"; then
c906108c 25761 # Make the cache file name correct relative to the subdirectory.
bec39cab
AC
25762 case $cache_file in
25763 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
b4e70030
JB
25764 *) # Relative path.
25765 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
c906108c 25766 esac
c906108c 25767
bec39cab
AC
25768 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25769echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
c906108c 25770 # The eval makes quoting arguments work.
b4e70030
JB
25771 eval $ac_sub_configure $ac_sub_configure_args \
25772 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
bec39cab
AC
25773 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25774echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25775 { (exit 1); exit 1; }; }
c906108c
SS
25776 fi
25777
b4e70030 25778 cd $ac_popdir
c906108c
SS
25779 done
25780fi
25781
25782
25783exit 0
This page took 2.016617 seconds and 4 git commands to generate.