ld/
[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"
3841debe 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 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
3841debe
DJ
880 --with-gnu-ld assume the C compiler uses GNU ld default=no
881 --with-libexpat-prefix[=DIR] search for libexpat in DIR/include and DIR/lib
882 --without-libexpat-prefix don't search for libexpat in includedir and libdir
bec39cab
AC
883 --without-included-regex don't use included regex; this is the default
884 on systems with version 2 of the GNU C library
885 (use with caution on other system)
886 --with-sysroot=DIR Search for usr/lib et al within DIR.
887 --with-tclconfig=DIR Directory containing tcl configuration (tclConfig.sh)
888 --with-tkconfig=DIR Directory containing tk configuration (tkConfig.sh)
889 --with-tclinclude=DIR Directory where tcl private headers are
890 --with-tkinclude=DIR Directory where tk private headers are
891 --with-itclconfig Directory containing itcl configuration (itclConfig.sh)
892 --with-itkconfig Directory containing itk configuration (itkConfig.sh)
893 --with-x use the X Window System
894 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
895
896Some influential environment variables:
897 CC C compiler command
898 CFLAGS C compiler flags
899 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
900 nonstandard directory <lib dir>
b4e70030
JB
901 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
902 headers in a nonstandard directory <include dir>
bec39cab
AC
903 CPP C preprocessor
904
905Use these variables to override the choices made by `configure' or to help
906it to find libraries and programs with nonstandard names/locations.
907
908_ACEOF
909fi
910
911if test "$ac_init_help" = "recursive"; then
912 # If there are subdirs, report their specific --help.
b4e70030 913 ac_popdir=`pwd`
bec39cab
AC
914 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
915 test -d $ac_dir || continue
916 ac_builddir=.
917
b4e70030 918if test "$ac_dir" != .; then
bec39cab 919 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
920 # A "../" for each directory in $ac_dir_suffix.
921 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
922else
923 ac_dir_suffix= ac_top_builddir=
924fi
bec39cab
AC
925
926case $srcdir in
b4e70030 927 .) # No --srcdir option. We are building in place.
bec39cab 928 ac_srcdir=.
b4e70030
JB
929 if test -z "$ac_top_builddir"; then
930 ac_top_srcdir=.
931 else
932 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
933 fi ;;
934 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 935 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
936 ac_top_srcdir=$srcdir ;;
937 *) # Relative path.
938 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
939 ac_top_srcdir=$ac_top_builddir$srcdir ;;
940esac
941
942# Do not use `cd foo && pwd` to compute absolute paths, because
943# the directories may not exist.
944case `pwd` in
945.) ac_abs_builddir="$ac_dir";;
946*)
947 case "$ac_dir" in
948 .) ac_abs_builddir=`pwd`;;
949 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
950 *) ac_abs_builddir=`pwd`/"$ac_dir";;
951 esac;;
952esac
953case $ac_abs_builddir in
954.) ac_abs_top_builddir=${ac_top_builddir}.;;
955*)
956 case ${ac_top_builddir}. in
957 .) ac_abs_top_builddir=$ac_abs_builddir;;
958 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
959 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
960 esac;;
961esac
962case $ac_abs_builddir in
963.) ac_abs_srcdir=$ac_srcdir;;
964*)
965 case $ac_srcdir in
966 .) ac_abs_srcdir=$ac_abs_builddir;;
967 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
968 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
969 esac;;
970esac
971case $ac_abs_builddir in
972.) ac_abs_top_srcdir=$ac_top_srcdir;;
973*)
974 case $ac_top_srcdir in
975 .) ac_abs_top_srcdir=$ac_abs_builddir;;
976 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
977 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
978 esac;;
bec39cab
AC
979esac
980
b4e70030
JB
981 cd $ac_dir
982 # Check for guested configure; otherwise get Cygnus style configure.
bec39cab 983 if test -f $ac_srcdir/configure.gnu; then
b4e70030 984 echo
bec39cab
AC
985 $SHELL $ac_srcdir/configure.gnu --help=recursive
986 elif test -f $ac_srcdir/configure; then
b4e70030 987 echo
bec39cab 988 $SHELL $ac_srcdir/configure --help=recursive
b4e70030
JB
989 elif test -f $ac_srcdir/configure.ac ||
990 test -f $ac_srcdir/configure.in; then
991 echo
992 $ac_configure --help
3ace7edb 993 else
bec39cab 994 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
b4e70030
JB
995 fi
996 cd $ac_popdir
bec39cab
AC
997 done
998fi
999
b4e70030 1000test -n "$ac_init_help" && exit 0
bec39cab
AC
1001if $ac_init_version; then
1002 cat <<\_ACEOF
1003
b4e70030 1004Copyright (C) 2003 Free Software Foundation, Inc.
bec39cab
AC
1005This configure script is free software; the Free Software Foundation
1006gives unlimited permission to copy, distribute and modify it.
1007_ACEOF
b4e70030 1008 exit 0
bec39cab 1009fi
b4e70030
JB
1010exec 5>config.log
1011cat >&5 <<_ACEOF
bec39cab
AC
1012This file contains any messages produced by compilers while
1013running configure, to aid debugging if configure makes a mistake.
1014
1015It was created by $as_me, which was
b4e70030 1016generated by GNU Autoconf 2.59. Invocation command line was
bec39cab
AC
1017
1018 $ $0 $@
1019
1020_ACEOF
1021{
1022cat <<_ASUNAME
1023## --------- ##
1024## Platform. ##
1025## --------- ##
1026
1027hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1028uname -m = `(uname -m) 2>/dev/null || echo unknown`
1029uname -r = `(uname -r) 2>/dev/null || echo unknown`
1030uname -s = `(uname -s) 2>/dev/null || echo unknown`
1031uname -v = `(uname -v) 2>/dev/null || echo unknown`
1032
1033/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1034/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1035
1036/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1037/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1038/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
b4e70030 1039hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
bec39cab
AC
1040/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1041/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1042/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1043
1044_ASUNAME
1045
1046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1047for as_dir in $PATH
1048do
1049 IFS=$as_save_IFS
1050 test -z "$as_dir" && as_dir=.
1051 echo "PATH: $as_dir"
1052done
1053
1054} >&5
1055
1056cat >&5 <<_ACEOF
1057
1058
1059## ----------- ##
1060## Core tests. ##
1061## ----------- ##
1062
1063_ACEOF
1064
1065
1066# Keep a trace of the command line.
1067# Strip out --no-create and --no-recursion so they do not pile up.
1068# Strip out --silent because we don't want to record it for future runs.
1069# Also quote any args containing shell meta-characters.
1070# Make two passes to allow for proper duplicate-argument suppression.
1071ac_configure_args=
1072ac_configure_args0=
1073ac_configure_args1=
1074ac_sep=
1075ac_must_keep_next=false
1076for ac_pass in 1 2
1077do
1078 for ac_arg
1079 do
1080 case $ac_arg in
1081 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1082 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1083 | -silent | --silent | --silen | --sile | --sil)
1084 continue ;;
b4e70030 1085 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
bec39cab
AC
1086 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1087 esac
1088 case $ac_pass in
1089 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1090 2)
1091 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1092 if test $ac_must_keep_next = true; then
1093 ac_must_keep_next=false # Got value, back to normal.
1094 else
1095 case $ac_arg in
1096 *=* | --config-cache | -C | -disable-* | --disable-* \
1097 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1098 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1099 | -with-* | --with-* | -without-* | --without-* | --x)
1100 case "$ac_configure_args0 " in
1101 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1102 esac
1103 ;;
1104 -* ) ac_must_keep_next=true ;;
1105 esac
1106 fi
1107 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1108 # Get rid of the leading space.
1109 ac_sep=" "
1110 ;;
1111 esac
1112 done
1113done
1114$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1115$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1116
1117# When interrupted or exit'd, cleanup temporary files, and complete
1118# config.log. We remove comments because anyway the quotes in there
1119# would cause problems or look ugly.
b4e70030
JB
1120# WARNING: Be sure not to use single quotes in there, as some shells,
1121# such as our DU 5.0 friend, will then `close' the trap.
bec39cab
AC
1122trap 'exit_status=$?
1123 # Save into config.log some information that might help in debugging.
1124 {
1125 echo
1126
1127 cat <<\_ASBOX
1128## ---------------- ##
1129## Cache variables. ##
1130## ---------------- ##
1131_ASBOX
1132 echo
1133 # The following way of writing the cache mishandles newlines in values,
b4e70030 1134{
bec39cab 1135 (set) 2>&1 |
b4e70030
JB
1136 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1137 *ac_space=\ *)
bec39cab 1138 sed -n \
b4e70030
JB
1139 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1140 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1141 ;;
bec39cab 1142 *)
b4e70030
JB
1143 sed -n \
1144 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
bec39cab 1145 ;;
b4e70030
JB
1146 esac;
1147}
bec39cab
AC
1148 echo
1149
1150 cat <<\_ASBOX
1151## ----------------- ##
1152## Output variables. ##
1153## ----------------- ##
1154_ASBOX
1155 echo
1156 for ac_var in $ac_subst_vars
1157 do
b4e70030
JB
1158 eval ac_val=$`echo $ac_var`
1159 echo "$ac_var='"'"'$ac_val'"'"'"
bec39cab
AC
1160 done | sort
1161 echo
1162
1163 if test -n "$ac_subst_files"; then
1164 cat <<\_ASBOX
b4e70030
JB
1165## ------------- ##
1166## Output files. ##
1167## ------------- ##
bec39cab
AC
1168_ASBOX
1169 echo
1170 for ac_var in $ac_subst_files
1171 do
b4e70030
JB
1172 eval ac_val=$`echo $ac_var`
1173 echo "$ac_var='"'"'$ac_val'"'"'"
bec39cab
AC
1174 done | sort
1175 echo
1176 fi
1177
1178 if test -s confdefs.h; then
1179 cat <<\_ASBOX
1180## ----------- ##
1181## confdefs.h. ##
1182## ----------- ##
1183_ASBOX
1184 echo
b4e70030 1185 sed "/^$/d" confdefs.h | sort
bec39cab 1186 echo
3ace7edb 1187 fi
bec39cab
AC
1188 test "$ac_signal" != 0 &&
1189 echo "$as_me: caught signal $ac_signal"
1190 echo "$as_me: exit $exit_status"
1191 } >&5
b4e70030
JB
1192 rm -f core *.core &&
1193 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
bec39cab 1194 exit $exit_status
b4e70030 1195 ' 0
bec39cab
AC
1196for ac_signal in 1 2 13 15; do
1197 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1198done
1199ac_signal=0
1200
1201# confdefs.h avoids OS command line length limits that DEFS can exceed.
b4e70030
JB
1202rm -rf conftest* confdefs.h
1203# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1204echo >confdefs.h
bec39cab
AC
1205
1206# Predefined preprocessor variables.
1207
1208cat >>confdefs.h <<_ACEOF
1209#define PACKAGE_NAME "$PACKAGE_NAME"
1210_ACEOF
1211
1212
1213cat >>confdefs.h <<_ACEOF
1214#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1215_ACEOF
1216
1217
1218cat >>confdefs.h <<_ACEOF
1219#define PACKAGE_VERSION "$PACKAGE_VERSION"
1220_ACEOF
1221
1222
1223cat >>confdefs.h <<_ACEOF
1224#define PACKAGE_STRING "$PACKAGE_STRING"
1225_ACEOF
1226
1227
1228cat >>confdefs.h <<_ACEOF
1229#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1230_ACEOF
1231
1232
1233# Let the site file select an alternate cache file if it wants to.
1234# Prefer explicitly selected file to automatically selected ones.
b4e70030
JB
1235if test -z "$CONFIG_SITE"; then
1236 if test "x$prefix" != xNONE; then
1237 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1238 else
1239 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1240 fi
c906108c 1241fi
b4e70030 1242for ac_site_file in $CONFIG_SITE; do
c906108c 1243 if test -r "$ac_site_file"; then
bec39cab
AC
1244 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1245echo "$as_me: loading site script $ac_site_file" >&6;}
1246 sed 's/^/| /' "$ac_site_file" >&5
c906108c
SS
1247 . "$ac_site_file"
1248 fi
1249done
1250
1251if test -r "$cache_file"; then
bec39cab
AC
1252 # Some versions of bash will fail to source /dev/null (special
1253 # files actually), so we avoid doing that.
1254 if test -f "$cache_file"; then
1255 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1256echo "$as_me: loading cache $cache_file" >&6;}
1257 case $cache_file in
1258 [\\/]* | ?:[\\/]* ) . $cache_file;;
1259 *) . ./$cache_file;;
1260 esac
1261 fi
c906108c 1262else
bec39cab
AC
1263 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1264echo "$as_me: creating cache $cache_file" >&6;}
1265 >$cache_file
1266fi
1267
1268# Check that the precious variables saved in the cache have kept the same
1269# value.
1270ac_cache_corrupted=false
b4e70030
JB
1271for ac_var in `(set) 2>&1 |
1272 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
bec39cab
AC
1273 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1274 eval ac_new_set=\$ac_env_${ac_var}_set
b4e70030
JB
1275 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1276 eval ac_new_val="\$ac_env_${ac_var}_value"
bec39cab
AC
1277 case $ac_old_set,$ac_new_set in
1278 set,)
1279 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1280echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1281 ac_cache_corrupted=: ;;
1282 ,set)
1283 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1284echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1285 ac_cache_corrupted=: ;;
1286 ,);;
1287 *)
1288 if test "x$ac_old_val" != "x$ac_new_val"; then
1289 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1290echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1291 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1292echo "$as_me: former value: $ac_old_val" >&2;}
1293 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1294echo "$as_me: current value: $ac_new_val" >&2;}
1295 ac_cache_corrupted=:
1296 fi;;
1297 esac
1298 # Pass precious variables to config.status.
1299 if test "$ac_new_set" = set; then
1300 case $ac_new_val in
b4e70030
JB
1301 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1302 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
bec39cab
AC
1303 *) ac_arg=$ac_var=$ac_new_val ;;
1304 esac
1305 case " $ac_configure_args " in
1306 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1307 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1308 esac
1309 fi
1310done
1311if $ac_cache_corrupted; then
1312 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1313echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1314 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1315echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1316 { (exit 1); exit 1; }; }
c906108c
SS
1317fi
1318
b4e70030
JB
1319ac_ext=c
1320ac_cpp='$CPP $CPPFLAGS'
1321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1323ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c
SS
1324
1325
bec39cab
AC
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
bec39cab 1342
b4e70030
JB
1343 ac_config_headers="$ac_config_headers config.h:config.in"
1344
1345echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1346echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1347 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
413ccac7 1348if test "${enable_maintainer_mode+set}" = set; then
b4e70030
JB
1349 enableval="$enable_maintainer_mode"
1350 USE_MAINTAINER_MODE=$enableval
413ccac7
AC
1351else
1352 USE_MAINTAINER_MODE=no
b4e70030
JB
1353fi;
1354 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1355echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
413ccac7 1356
413ccac7
AC
1357
1358if test $USE_MAINTAINER_MODE = yes; then
1359 MAINTAINER_MODE_TRUE=
1360 MAINTAINER_MODE_FALSE='#'
1361else
1362 MAINTAINER_MODE_TRUE='#'
1363 MAINTAINER_MODE_FALSE=
1364fi
85981d60 1365
413ccac7 1366 MAINT=$MAINTAINER_MODE_TRUE
413ccac7 1367
c906108c 1368
bec39cab
AC
1369
1370ac_ext=c
1371ac_cpp='$CPP $CPPFLAGS'
1372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1374ac_compiler_gnu=$ac_cv_c_compiler_gnu
1375if test -n "$ac_tool_prefix"; then
1376 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1377set dummy ${ac_tool_prefix}gcc; ac_word=$2
b4e70030
JB
1378echo "$as_me:$LINENO: checking for $ac_word" >&5
1379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1380if test "${ac_cv_prog_CC+set}" = set; then
1381 echo $ECHO_N "(cached) $ECHO_C" >&6
1382else
1383 if test -n "$CC"; then
1384 ac_cv_prog_CC="$CC" # Let the user override the test.
1385else
1386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1387for as_dir in $PATH
1388do
1389 IFS=$as_save_IFS
1390 test -z "$as_dir" && as_dir=.
1391 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1393 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1395 break 2
1396 fi
1397done
1398done
1399
1400fi
1401fi
1402CC=$ac_cv_prog_CC
1403if test -n "$CC"; then
b4e70030
JB
1404 echo "$as_me:$LINENO: result: $CC" >&5
1405echo "${ECHO_T}$CC" >&6
bec39cab 1406else
b4e70030
JB
1407 echo "$as_me:$LINENO: result: no" >&5
1408echo "${ECHO_T}no" >&6
bec39cab
AC
1409fi
1410
1411fi
1412if test -z "$ac_cv_prog_CC"; then
1413 ac_ct_CC=$CC
1414 # Extract the first word of "gcc", so it can be a program name with args.
c906108c 1415set dummy gcc; ac_word=$2
b4e70030
JB
1416echo "$as_me:$LINENO: checking for $ac_word" >&5
1417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1418if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1419 echo $ECHO_N "(cached) $ECHO_C" >&6
1420else
1421 if test -n "$ac_ct_CC"; then
1422 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1423else
1424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1425for as_dir in $PATH
1426do
1427 IFS=$as_save_IFS
1428 test -z "$as_dir" && as_dir=.
1429 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1431 ac_cv_prog_ac_ct_CC="gcc"
1432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1433 break 2
1434 fi
1435done
1436done
1437
1438fi
1439fi
1440ac_ct_CC=$ac_cv_prog_ac_ct_CC
1441if test -n "$ac_ct_CC"; then
b4e70030
JB
1442 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1443echo "${ECHO_T}$ac_ct_CC" >&6
bec39cab 1444else
b4e70030
JB
1445 echo "$as_me:$LINENO: result: no" >&5
1446echo "${ECHO_T}no" >&6
bec39cab
AC
1447fi
1448
b4e70030 1449 CC=$ac_ct_CC
bec39cab
AC
1450else
1451 CC="$ac_cv_prog_CC"
1452fi
1453
1454if test -z "$CC"; then
b4e70030
JB
1455 if test -n "$ac_tool_prefix"; then
1456 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
bec39cab 1457set dummy ${ac_tool_prefix}cc; ac_word=$2
b4e70030
JB
1458echo "$as_me:$LINENO: checking for $ac_word" >&5
1459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1460if test "${ac_cv_prog_CC+set}" = set; then
1461 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1462else
1463 if test -n "$CC"; then
1464 ac_cv_prog_CC="$CC" # Let the user override the test.
1465else
bec39cab
AC
1466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1467for as_dir in $PATH
1468do
1469 IFS=$as_save_IFS
1470 test -z "$as_dir" && as_dir=.
1471 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1473 ac_cv_prog_CC="${ac_tool_prefix}cc"
1474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1475 break 2
1476 fi
1477done
1478done
1479
c906108c
SS
1480fi
1481fi
bec39cab 1482CC=$ac_cv_prog_CC
c906108c 1483if test -n "$CC"; then
b4e70030
JB
1484 echo "$as_me:$LINENO: result: $CC" >&5
1485echo "${ECHO_T}$CC" >&6
c906108c 1486else
b4e70030
JB
1487 echo "$as_me:$LINENO: result: no" >&5
1488echo "${ECHO_T}no" >&6
c906108c
SS
1489fi
1490
b4e70030
JB
1491fi
1492if test -z "$ac_cv_prog_CC"; then
1493 ac_ct_CC=$CC
1494 # Extract the first word of "cc", so it can be a program name with args.
1495set dummy cc; ac_word=$2
1496echo "$as_me:$LINENO: checking for $ac_word" >&5
1497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1498if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1499 echo $ECHO_N "(cached) $ECHO_C" >&6
1500else
1501 if test -n "$ac_ct_CC"; then
1502 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1503else
1504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1505for as_dir in $PATH
1506do
1507 IFS=$as_save_IFS
1508 test -z "$as_dir" && as_dir=.
1509 for ac_exec_ext in '' $ac_executable_extensions; do
1510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1511 ac_cv_prog_ac_ct_CC="cc"
1512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1513 break 2
4e8d927d 1514 fi
b4e70030
JB
1515done
1516done
1517
1518fi
1519fi
1520ac_ct_CC=$ac_cv_prog_ac_ct_CC
1521if test -n "$ac_ct_CC"; then
1522 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1523echo "${ECHO_T}$ac_ct_CC" >&6
1524else
1525 echo "$as_me:$LINENO: result: no" >&5
1526echo "${ECHO_T}no" >&6
1527fi
1528
1529 CC=$ac_ct_CC
1530else
1531 CC="$ac_cv_prog_CC"
1532fi
1533
bec39cab 1534fi
c906108c
SS
1535if test -z "$CC"; then
1536 # Extract the first word of "cc", so it can be a program name with args.
1537set dummy cc; ac_word=$2
b4e70030
JB
1538echo "$as_me:$LINENO: checking for $ac_word" >&5
1539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1540if test "${ac_cv_prog_CC+set}" = set; then
1541 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1542else
1543 if test -n "$CC"; then
1544 ac_cv_prog_CC="$CC" # Let the user override the test.
1545else
c906108c 1546 ac_prog_rejected=no
bec39cab
AC
1547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1548for as_dir in $PATH
1549do
1550 IFS=$as_save_IFS
1551 test -z "$as_dir" && as_dir=.
1552 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1554 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1555 ac_prog_rejected=yes
1556 continue
1557 fi
1558 ac_cv_prog_CC="cc"
1559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1560 break 2
1561 fi
1562done
1563done
1564
c906108c
SS
1565if test $ac_prog_rejected = yes; then
1566 # We found a bogon in the path, so make sure we never use it.
1567 set dummy $ac_cv_prog_CC
1568 shift
bec39cab 1569 if test $# != 0; then
c906108c
SS
1570 # We chose a different compiler from the bogus one.
1571 # However, it has the same basename, so the bogon will be chosen
1572 # first if we set CC to just the basename; use the full file name.
1573 shift
bec39cab 1574 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
c906108c
SS
1575 fi
1576fi
1577fi
1578fi
bec39cab 1579CC=$ac_cv_prog_CC
c906108c 1580if test -n "$CC"; then
b4e70030
JB
1581 echo "$as_me:$LINENO: result: $CC" >&5
1582echo "${ECHO_T}$CC" >&6
c906108c 1583else
b4e70030
JB
1584 echo "$as_me:$LINENO: result: no" >&5
1585echo "${ECHO_T}no" >&6
c906108c
SS
1586fi
1587
bec39cab
AC
1588fi
1589if test -z "$CC"; then
1590 if test -n "$ac_tool_prefix"; then
b4e70030 1591 for ac_prog in cl
bec39cab
AC
1592 do
1593 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1594set dummy $ac_tool_prefix$ac_prog; ac_word=$2
b4e70030
JB
1595echo "$as_me:$LINENO: checking for $ac_word" >&5
1596echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1597if test "${ac_cv_prog_CC+set}" = set; then
1598 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
1599else
1600 if test -n "$CC"; then
1601 ac_cv_prog_CC="$CC" # Let the user override the test.
1602else
bec39cab
AC
1603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1604for as_dir in $PATH
1605do
1606 IFS=$as_save_IFS
1607 test -z "$as_dir" && as_dir=.
1608 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1610 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1612 break 2
1613 fi
1614done
1615done
1616
c906108c
SS
1617fi
1618fi
bec39cab 1619CC=$ac_cv_prog_CC
c906108c 1620if test -n "$CC"; then
b4e70030
JB
1621 echo "$as_me:$LINENO: result: $CC" >&5
1622echo "${ECHO_T}$CC" >&6
c906108c 1623else
b4e70030
JB
1624 echo "$as_me:$LINENO: result: no" >&5
1625echo "${ECHO_T}no" >&6
c906108c 1626fi
bec39cab
AC
1627
1628 test -n "$CC" && break
1629 done
1630fi
1631if test -z "$CC"; then
1632 ac_ct_CC=$CC
b4e70030 1633 for ac_prog in cl
bec39cab
AC
1634do
1635 # Extract the first word of "$ac_prog", so it can be a program name with args.
1636set dummy $ac_prog; ac_word=$2
b4e70030
JB
1637echo "$as_me:$LINENO: checking for $ac_word" >&5
1638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
1639if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1640 echo $ECHO_N "(cached) $ECHO_C" >&6
1641else
1642 if test -n "$ac_ct_CC"; then
1643 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1644else
1645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646for as_dir in $PATH
1647do
1648 IFS=$as_save_IFS
1649 test -z "$as_dir" && as_dir=.
1650 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 1651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
1652 ac_cv_prog_ac_ct_CC="$ac_prog"
1653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1654 break 2
c906108c 1655 fi
bec39cab
AC
1656done
1657done
1658
1659fi
1660fi
1661ac_ct_CC=$ac_cv_prog_ac_ct_CC
1662if test -n "$ac_ct_CC"; then
b4e70030
JB
1663 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1664echo "${ECHO_T}$ac_ct_CC" >&6
bec39cab 1665else
b4e70030
JB
1666 echo "$as_me:$LINENO: result: no" >&5
1667echo "${ECHO_T}no" >&6
c906108c
SS
1668fi
1669
bec39cab
AC
1670 test -n "$ac_ct_CC" && break
1671done
c906108c 1672
b4e70030 1673 CC=$ac_ct_CC
bec39cab
AC
1674fi
1675
1676fi
1677
1678
1679test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1680See \`config.log' for more details." >&5
1681echo "$as_me: error: no acceptable C compiler found in \$PATH
1682See \`config.log' for more details." >&2;}
1683 { (exit 1); exit 1; }; }
1684
1685# Provide some information about the compiler.
b4e70030
JB
1686echo "$as_me:$LINENO:" \
1687 "checking for C compiler version" >&5
bec39cab 1688ac_compiler=`set X $ac_compile; echo $2`
b4e70030
JB
1689{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1690 (eval $ac_compiler --version </dev/null >&5) 2>&5
bec39cab
AC
1691 ac_status=$?
1692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1693 (exit $ac_status); }
b4e70030
JB
1694{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1695 (eval $ac_compiler -v </dev/null >&5) 2>&5
bec39cab
AC
1696 ac_status=$?
1697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1698 (exit $ac_status); }
b4e70030
JB
1699{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1700 (eval $ac_compiler -V </dev/null >&5) 2>&5
bec39cab
AC
1701 ac_status=$?
1702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1703 (exit $ac_status); }
1704
1705cat >conftest.$ac_ext <<_ACEOF
1706/* confdefs.h. */
1707_ACEOF
1708cat confdefs.h >>conftest.$ac_ext
1709cat >>conftest.$ac_ext <<_ACEOF
1710/* end confdefs.h. */
1711
1712int
1713main ()
1714{
1715
1716 ;
1717 return 0;
1718}
1719_ACEOF
1720ac_clean_files_save=$ac_clean_files
b4e70030 1721ac_clean_files="$ac_clean_files a.out a.exe b.out"
bec39cab
AC
1722# Try to create an executable without -o first, disregard a.out.
1723# It will help us diagnose broken compilers, and finding out an intuition
1724# of exeext.
b4e70030
JB
1725echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1726echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
bec39cab
AC
1727ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1728if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1729 (eval $ac_link_default) 2>&5
1730 ac_status=$?
1731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1732 (exit $ac_status); }; then
b4e70030
JB
1733 # Find the output, starting from the most likely. This scheme is
1734# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1735# resort.
1736
1737# Be careful to initialize this variable, since it used to be cached.
1738# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1739ac_cv_exeext=
1740# b.out is created by i960 compilers.
1741for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
bec39cab
AC
1742do
1743 test -f "$ac_file" || continue
1744 case $ac_file in
b4e70030
JB
1745 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1746 ;;
1747 conftest.$ac_ext )
1748 # This is the source file.
1749 ;;
1750 [ab].out )
1751 # We found the default executable, but exeext='' is most
1752 # certainly right.
1753 break;;
1754 *.* )
1755 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1756 # FIXME: I believe we export ac_cv_exeext for Libtool,
1757 # but it would be cool to find out if it's true. Does anybody
1758 # maintain Libtool? --akim.
1759 export ac_cv_exeext
1760 break;;
1761 * )
1762 break;;
bec39cab
AC
1763 esac
1764done
1765else
1766 echo "$as_me: failed program was:" >&5
1767sed 's/^/| /' conftest.$ac_ext >&5
1768
1769{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1770See \`config.log' for more details." >&5
1771echo "$as_me: error: C compiler cannot create executables
1772See \`config.log' for more details." >&2;}
1773 { (exit 77); exit 77; }; }
1774fi
1775
b4e70030
JB
1776ac_exeext=$ac_cv_exeext
1777echo "$as_me:$LINENO: result: $ac_file" >&5
1778echo "${ECHO_T}$ac_file" >&6
1779
1780# Check the compiler produces executables we can run. If not, either
bec39cab 1781# the compiler is broken, or we cross compile.
b4e70030
JB
1782echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1783echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
bec39cab
AC
1784# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1785# If not cross compiling, check that we can run a simple program.
1786if test "$cross_compiling" != yes; then
1787 if { ac_try='./$ac_file'
1788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1789 (eval $ac_try) 2>&5
1790 ac_status=$?
1791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1792 (exit $ac_status); }; }; then
1793 cross_compiling=no
c906108c 1794 else
bec39cab
AC
1795 if test "$cross_compiling" = maybe; then
1796 cross_compiling=yes
1797 else
1798 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1799If you meant to cross compile, use \`--host'.
1800See \`config.log' for more details." >&5
1801echo "$as_me: error: cannot run C compiled programs.
1802If you meant to cross compile, use \`--host'.
1803See \`config.log' for more details." >&2;}
1804 { (exit 1); exit 1; }; }
1805 fi
c906108c 1806 fi
bec39cab 1807fi
b4e70030
JB
1808echo "$as_me:$LINENO: result: yes" >&5
1809echo "${ECHO_T}yes" >&6
bec39cab 1810
b4e70030
JB
1811rm -f a.out a.exe conftest$ac_cv_exeext b.out
1812ac_clean_files=$ac_clean_files_save
1813# Check the compiler produces executables we can run. If not, either
1814# the compiler is broken, or we cross compile.
1815echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1816echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1817echo "$as_me:$LINENO: result: $cross_compiling" >&5
1818echo "${ECHO_T}$cross_compiling" >&6
4e8d927d 1819
b4e70030
JB
1820echo "$as_me:$LINENO: checking for suffix of executables" >&5
1821echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
bec39cab
AC
1823 (eval $ac_link) 2>&5
1824 ac_status=$?
1825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1826 (exit $ac_status); }; then
b4e70030
JB
1827 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1828# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1829# work properly (i.e., refer to `conftest.exe'), while it won't with
1830# `rm'.
1831for ac_file in conftest.exe conftest conftest.*; do
1832 test -f "$ac_file" || continue
1833 case $ac_file in
1834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1835 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1836 export ac_cv_exeext
1837 break;;
1838 * ) break;;
1839 esac
1840done
c906108c 1841else
bec39cab
AC
1842 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1843See \`config.log' for more details." >&5
1844echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1845See \`config.log' for more details." >&2;}
1846 { (exit 1); exit 1; }; }
c906108c 1847fi
c906108c 1848
b4e70030
JB
1849rm -f conftest$ac_cv_exeext
1850echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1851echo "${ECHO_T}$ac_cv_exeext" >&6
c906108c 1852
b4e70030 1853rm -f conftest.$ac_ext
bec39cab
AC
1854EXEEXT=$ac_cv_exeext
1855ac_exeext=$EXEEXT
b4e70030
JB
1856echo "$as_me:$LINENO: checking for suffix of object files" >&5
1857echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
bec39cab
AC
1858if test "${ac_cv_objext+set}" = set; then
1859 echo $ECHO_N "(cached) $ECHO_C" >&6
1860else
b4e70030
JB
1861 cat >conftest.$ac_ext <<_ACEOF
1862/* confdefs.h. */
1863_ACEOF
1864cat confdefs.h >>conftest.$ac_ext
1865cat >>conftest.$ac_ext <<_ACEOF
1866/* end confdefs.h. */
1867
1868int
1869main ()
1870{
1871
1872 ;
1873 return 0;
1874}
1875_ACEOF
1876rm -f conftest.o conftest.obj
bec39cab
AC
1877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1878 (eval $ac_compile) 2>&5
1879 ac_status=$?
1880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1881 (exit $ac_status); }; then
b4e70030 1882 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
bec39cab 1883 case $ac_file in
b4e70030 1884 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
bec39cab
AC
1885 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1886 break;;
1887 esac
1888done
c906108c 1889else
bec39cab
AC
1890 echo "$as_me: failed program was:" >&5
1891sed 's/^/| /' conftest.$ac_ext >&5
1892
1893{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1894See \`config.log' for more details." >&5
1895echo "$as_me: error: cannot compute suffix of object files: cannot compile
1896See \`config.log' for more details." >&2;}
1897 { (exit 1); exit 1; }; }
c906108c
SS
1898fi
1899
b4e70030 1900rm -f conftest.$ac_cv_objext conftest.$ac_ext
bec39cab 1901fi
b4e70030
JB
1902echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1903echo "${ECHO_T}$ac_cv_objext" >&6
bec39cab
AC
1904OBJEXT=$ac_cv_objext
1905ac_objext=$OBJEXT
b4e70030
JB
1906echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1907echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
bec39cab
AC
1908if test "${ac_cv_c_compiler_gnu+set}" = set; then
1909 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 1910else
bec39cab
AC
1911 cat >conftest.$ac_ext <<_ACEOF
1912/* confdefs.h. */
1913_ACEOF
1914cat confdefs.h >>conftest.$ac_ext
1915cat >>conftest.$ac_ext <<_ACEOF
1916/* end confdefs.h. */
1917
1918int
1919main ()
1920{
1921#ifndef __GNUC__
1922 choke me
1923#endif
1924
1925 ;
1926 return 0;
1927}
1928_ACEOF
1929rm -f conftest.$ac_objext
1930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1931 (eval $ac_compile) 2>conftest.er1
1932 ac_status=$?
1933 grep -v '^ *+' conftest.er1 >conftest.err
1934 rm -f conftest.er1
1935 cat conftest.err >&5
1936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1937 (exit $ac_status); } &&
b4e70030
JB
1938 { ac_try='test -z "$ac_c_werror_flag"
1939 || test ! -s conftest.err'
bec39cab
AC
1940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1941 (eval $ac_try) 2>&5
1942 ac_status=$?
1943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944 (exit $ac_status); }; } &&
1945 { ac_try='test -s conftest.$ac_objext'
1946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1947 (eval $ac_try) 2>&5
1948 ac_status=$?
1949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1950 (exit $ac_status); }; }; then
1951 ac_compiler_gnu=yes
1952else
1953 echo "$as_me: failed program was:" >&5
1954sed 's/^/| /' conftest.$ac_ext >&5
1955
b4e70030 1956ac_compiler_gnu=no
bec39cab
AC
1957fi
1958rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1959ac_cv_c_compiler_gnu=$ac_compiler_gnu
1960
1961fi
b4e70030
JB
1962echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1963echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
bec39cab
AC
1964GCC=`test $ac_compiler_gnu = yes && echo yes`
1965ac_test_CFLAGS=${CFLAGS+set}
1966ac_save_CFLAGS=$CFLAGS
b4e70030
JB
1967CFLAGS="-g"
1968echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1969echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
bec39cab
AC
1970if test "${ac_cv_prog_cc_g+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1972else
b4e70030 1973 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
1974/* confdefs.h. */
1975_ACEOF
1976cat confdefs.h >>conftest.$ac_ext
1977cat >>conftest.$ac_ext <<_ACEOF
1978/* end confdefs.h. */
1979
1980int
1981main ()
1982{
1983
1984 ;
1985 return 0;
1986}
1987_ACEOF
1988rm -f conftest.$ac_objext
1989if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1990 (eval $ac_compile) 2>conftest.er1
1991 ac_status=$?
1992 grep -v '^ *+' conftest.er1 >conftest.err
1993 rm -f conftest.er1
1994 cat conftest.err >&5
1995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996 (exit $ac_status); } &&
b4e70030
JB
1997 { ac_try='test -z "$ac_c_werror_flag"
1998 || test ! -s conftest.err'
bec39cab
AC
1999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2000 (eval $ac_try) 2>&5
2001 ac_status=$?
2002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003 (exit $ac_status); }; } &&
2004 { ac_try='test -s conftest.$ac_objext'
2005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2006 (eval $ac_try) 2>&5
2007 ac_status=$?
2008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2009 (exit $ac_status); }; }; then
c906108c
SS
2010 ac_cv_prog_cc_g=yes
2011else
bec39cab
AC
2012 echo "$as_me: failed program was:" >&5
2013sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2014
b4e70030 2015ac_cv_prog_cc_g=no
4e8d927d 2016fi
bec39cab
AC
2017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2018fi
b4e70030
JB
2019echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2020echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
c906108c 2021if test "$ac_test_CFLAGS" = set; then
bec39cab 2022 CFLAGS=$ac_save_CFLAGS
c906108c
SS
2023elif test $ac_cv_prog_cc_g = yes; then
2024 if test "$GCC" = yes; then
2025 CFLAGS="-g -O2"
2026 else
2027 CFLAGS="-g"
2028 fi
2029else
2030 if test "$GCC" = yes; then
2031 CFLAGS="-O2"
2032 else
2033 CFLAGS=
2034 fi
2035fi
b4e70030
JB
2036echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2037echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2038if test "${ac_cv_prog_cc_stdc+set}" = set; then
bec39cab
AC
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
2040else
b4e70030 2041 ac_cv_prog_cc_stdc=no
bec39cab
AC
2042ac_save_CC=$CC
2043cat >conftest.$ac_ext <<_ACEOF
2044/* confdefs.h. */
2045_ACEOF
2046cat confdefs.h >>conftest.$ac_ext
2047cat >>conftest.$ac_ext <<_ACEOF
2048/* end confdefs.h. */
c906108c
SS
2049#include <stdarg.h>
2050#include <stdio.h>
2051#include <sys/types.h>
2052#include <sys/stat.h>
2053/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2054struct buf { int x; };
2055FILE * (*rcsopen) (struct buf *, struct stat *, int);
2056static char *e (p, i)
2057 char **p;
2058 int i;
2059{
2060 return p[i];
2061}
2062static char *f (char * (*g) (char **, int), char **p, ...)
2063{
2064 char *s;
2065 va_list v;
2066 va_start (v,p);
2067 s = g (p, va_arg (v,int));
2068 va_end (v);
2069 return s;
2070}
bec39cab
AC
2071
2072/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2073 function prototypes and stuff, but not '\xHH' hex character constants.
2074 These don't provoke an error unfortunately, instead are silently treated
b4e70030 2075 as 'x'. The following induces an error, until -std1 is added to get
bec39cab
AC
2076 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2077 array size at least. It's necessary to write '\x00'==0 to get something
b4e70030 2078 that's true only with -std1. */
bec39cab
AC
2079int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2080
c906108c
SS
2081int test (int i, double x);
2082struct s1 {int (*f) (int a);};
2083struct s2 {int (*f) (double a);};
2084int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2085int argc;
2086char **argv;
bec39cab
AC
2087int
2088main ()
2089{
c906108c 2090return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
bec39cab
AC
2091 ;
2092 return 0;
2093}
2094_ACEOF
b4e70030
JB
2095# Don't try gcc -ansi; that turns off useful extensions and
2096# breaks some systems' header files.
2097# AIX -qlanglvl=ansi
2098# Ultrix and OSF/1 -std1
2099# HP-UX 10.20 and later -Ae
2100# HP-UX older versions -Aa -D_HPUX_SOURCE
2101# SVR4 -Xc -D__EXTENSIONS__
2102for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
bec39cab
AC
2103do
2104 CC="$ac_save_CC $ac_arg"
2105 rm -f conftest.$ac_objext
2106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2107 (eval $ac_compile) 2>conftest.er1
2108 ac_status=$?
2109 grep -v '^ *+' conftest.er1 >conftest.err
2110 rm -f conftest.er1
2111 cat conftest.err >&5
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); } &&
b4e70030
JB
2114 { ac_try='test -z "$ac_c_werror_flag"
2115 || test ! -s conftest.err'
bec39cab
AC
2116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2117 (eval $ac_try) 2>&5
2118 ac_status=$?
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }; } &&
2121 { ac_try='test -s conftest.$ac_objext'
2122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2123 (eval $ac_try) 2>&5
2124 ac_status=$?
2125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126 (exit $ac_status); }; }; then
b4e70030
JB
2127 ac_cv_prog_cc_stdc=$ac_arg
2128break
c906108c 2129else
bec39cab
AC
2130 echo "$as_me: failed program was:" >&5
2131sed 's/^/| /' conftest.$ac_ext >&5
2132
c906108c 2133fi
bec39cab 2134rm -f conftest.err conftest.$ac_objext
c906108c 2135done
b4e70030 2136rm -f conftest.$ac_ext conftest.$ac_objext
bec39cab 2137CC=$ac_save_CC
c906108c
SS
2138
2139fi
b4e70030
JB
2140
2141case "x$ac_cv_prog_cc_stdc" in
2142 x|xno)
2143 echo "$as_me:$LINENO: result: none needed" >&5
2144echo "${ECHO_T}none needed" >&6 ;;
bec39cab 2145 *)
b4e70030
JB
2146 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2147echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2148 CC="$CC $ac_cv_prog_cc_stdc" ;;
c906108c
SS
2149esac
2150
b4e70030
JB
2151# Some people use a C++ compiler to compile C. Since we use `exit',
2152# in C++ we need to declare it. In case someone uses the same compiler
2153# for both compiling C and C++ we need to have the C++ compiler decide
2154# the declaration of exit, since it's the most demanding environment.
2155cat >conftest.$ac_ext <<_ACEOF
2156#ifndef __cplusplus
2157 choke me
2158#endif
2159_ACEOF
2160rm -f conftest.$ac_objext
2161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2162 (eval $ac_compile) 2>conftest.er1
2163 ac_status=$?
2164 grep -v '^ *+' conftest.er1 >conftest.err
2165 rm -f conftest.er1
2166 cat conftest.err >&5
2167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168 (exit $ac_status); } &&
2169 { ac_try='test -z "$ac_c_werror_flag"
2170 || test ! -s conftest.err'
2171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2172 (eval $ac_try) 2>&5
2173 ac_status=$?
2174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175 (exit $ac_status); }; } &&
2176 { ac_try='test -s conftest.$ac_objext'
2177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2178 (eval $ac_try) 2>&5
2179 ac_status=$?
2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181 (exit $ac_status); }; }; then
2182 for ac_declaration in \
2183 '' \
2184 'extern "C" void std::exit (int) throw (); using std::exit;' \
2185 'extern "C" void std::exit (int); using std::exit;' \
2186 'extern "C" void exit (int) throw ();' \
2187 'extern "C" void exit (int);' \
2188 'void exit (int);'
2189do
2190 cat >conftest.$ac_ext <<_ACEOF
2191/* confdefs.h. */
2192_ACEOF
2193cat confdefs.h >>conftest.$ac_ext
2194cat >>conftest.$ac_ext <<_ACEOF
2195/* end confdefs.h. */
2196$ac_declaration
2197#include <stdlib.h>
2198int
2199main ()
2200{
2201exit (42);
2202 ;
2203 return 0;
2204}
2205_ACEOF
2206rm -f conftest.$ac_objext
2207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2208 (eval $ac_compile) 2>conftest.er1
2209 ac_status=$?
2210 grep -v '^ *+' conftest.er1 >conftest.err
2211 rm -f conftest.er1
2212 cat conftest.err >&5
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); } &&
2215 { ac_try='test -z "$ac_c_werror_flag"
2216 || test ! -s conftest.err'
2217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2218 (eval $ac_try) 2>&5
2219 ac_status=$?
2220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221 (exit $ac_status); }; } &&
2222 { ac_try='test -s conftest.$ac_objext'
2223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2224 (eval $ac_try) 2>&5
2225 ac_status=$?
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); }; }; then
2228 :
2229else
2230 echo "$as_me: failed program was:" >&5
2231sed 's/^/| /' conftest.$ac_ext >&5
2232
2233continue
2234fi
2235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2236 cat >conftest.$ac_ext <<_ACEOF
2237/* confdefs.h. */
2238_ACEOF
2239cat confdefs.h >>conftest.$ac_ext
2240cat >>conftest.$ac_ext <<_ACEOF
2241/* end confdefs.h. */
2242$ac_declaration
2243int
2244main ()
2245{
2246exit (42);
2247 ;
2248 return 0;
2249}
2250_ACEOF
2251rm -f conftest.$ac_objext
2252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2253 (eval $ac_compile) 2>conftest.er1
2254 ac_status=$?
2255 grep -v '^ *+' conftest.er1 >conftest.err
2256 rm -f conftest.er1
2257 cat conftest.err >&5
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); } &&
2260 { ac_try='test -z "$ac_c_werror_flag"
2261 || test ! -s conftest.err'
2262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2263 (eval $ac_try) 2>&5
2264 ac_status=$?
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }; } &&
2267 { ac_try='test -s conftest.$ac_objext'
2268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269 (eval $ac_try) 2>&5
2270 ac_status=$?
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }; }; then
2273 break
2274else
2275 echo "$as_me: failed program was:" >&5
2276sed 's/^/| /' conftest.$ac_ext >&5
2277
2278fi
2279rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2280done
2281rm -f conftest*
2282if test -n "$ac_declaration"; then
2283 echo '#ifdef __cplusplus' >>confdefs.h
2284 echo $ac_declaration >>confdefs.h
2285 echo '#endif' >>confdefs.h
2286fi
2287
2288else
2289 echo "$as_me: failed program was:" >&5
2290sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2291
b4e70030
JB
2292fi
2293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab
AC
2294ac_ext=c
2295ac_cpp='$CPP $CPPFLAGS'
2296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2298ac_compiler_gnu=$ac_cv_c_compiler_gnu
c906108c 2299
60ca704f 2300
bec39cab
AC
2301cat >>confdefs.h <<\_ACEOF
2302#define _GNU_SOURCE 1
2303_ACEOF
c906108c
SS
2304
2305
8bb2c122 2306
bec39cab
AC
2307ac_ext=c
2308ac_cpp='$CPP $CPPFLAGS'
2309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2311ac_compiler_gnu=$ac_cv_c_compiler_gnu
b4e70030
JB
2312echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2313echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
bec39cab
AC
2314# On Suns, sometimes $CPP names a directory.
2315if test -n "$CPP" && test -d "$CPP"; then
2316 CPP=
8bb2c122 2317fi
bec39cab
AC
2318if test -z "$CPP"; then
2319 if test "${ac_cv_prog_CPP+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2321else
2322 # Double quotes because CPP needs to be expanded
2323 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2324 do
2325 ac_preproc_ok=false
2326for ac_c_preproc_warn_flag in '' yes
2327do
2328 # Use a header file that comes with gcc, so configuring glibc
2329 # with a fresh cross-compiler works.
2330 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2331 # <limits.h> exists even on freestanding compilers.
2332 # On the NeXT, cc -E runs the code through the compiler's parser,
2333 # not just through cpp. "Syntax error" is here to catch this case.
2334 cat >conftest.$ac_ext <<_ACEOF
2335/* confdefs.h. */
2336_ACEOF
2337cat confdefs.h >>conftest.$ac_ext
2338cat >>conftest.$ac_ext <<_ACEOF
2339/* end confdefs.h. */
2340#ifdef __STDC__
2341# include <limits.h>
2342#else
2343# include <assert.h>
2344#endif
2345 Syntax error
2346_ACEOF
2347if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2349 ac_status=$?
2350 grep -v '^ *+' conftest.er1 >conftest.err
2351 rm -f conftest.er1
2352 cat conftest.err >&5
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); } >/dev/null; then
2355 if test -s conftest.err; then
2356 ac_cpp_err=$ac_c_preproc_warn_flag
2357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2358 else
2359 ac_cpp_err=
2360 fi
8bb2c122 2361else
bec39cab 2362 ac_cpp_err=yes
8bb2c122 2363fi
bec39cab
AC
2364if test -z "$ac_cpp_err"; then
2365 :
8bb2c122 2366else
bec39cab
AC
2367 echo "$as_me: failed program was:" >&5
2368sed 's/^/| /' conftest.$ac_ext >&5
2369
2370 # Broken: fails on valid input.
2371continue
2372fi
2373rm -f conftest.err conftest.$ac_ext
2374
b4e70030 2375 # OK, works on sane cases. Now check whether non-existent headers
bec39cab
AC
2376 # can be detected and how.
2377 cat >conftest.$ac_ext <<_ACEOF
2378/* confdefs.h. */
2379_ACEOF
2380cat confdefs.h >>conftest.$ac_ext
2381cat >>conftest.$ac_ext <<_ACEOF
2382/* end confdefs.h. */
2383#include <ac_nonexistent.h>
2384_ACEOF
2385if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2386 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2387 ac_status=$?
2388 grep -v '^ *+' conftest.er1 >conftest.err
2389 rm -f conftest.er1
2390 cat conftest.err >&5
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); } >/dev/null; then
2393 if test -s conftest.err; then
2394 ac_cpp_err=$ac_c_preproc_warn_flag
2395 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2396 else
2397 ac_cpp_err=
2398 fi
8bb2c122 2399else
bec39cab 2400 ac_cpp_err=yes
8bb2c122 2401fi
bec39cab
AC
2402if test -z "$ac_cpp_err"; then
2403 # Broken: success on invalid input.
2404continue
8bb2c122 2405else
bec39cab
AC
2406 echo "$as_me: failed program was:" >&5
2407sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 2408
bec39cab
AC
2409 # Passes both tests.
2410ac_preproc_ok=:
2411break
8bb2c122 2412fi
bec39cab 2413rm -f conftest.err conftest.$ac_ext
8bb2c122 2414
bec39cab
AC
2415done
2416# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2417rm -f conftest.err conftest.$ac_ext
2418if $ac_preproc_ok; then
2419 break
2420fi
8bb2c122 2421
bec39cab
AC
2422 done
2423 ac_cv_prog_CPP=$CPP
ddc9cd0f 2424
c906108c 2425fi
bec39cab
AC
2426 CPP=$ac_cv_prog_CPP
2427else
2428 ac_cv_prog_CPP=$CPP
c906108c 2429fi
b4e70030
JB
2430echo "$as_me:$LINENO: result: $CPP" >&5
2431echo "${ECHO_T}$CPP" >&6
bec39cab
AC
2432ac_preproc_ok=false
2433for ac_c_preproc_warn_flag in '' yes
2434do
2435 # Use a header file that comes with gcc, so configuring glibc
2436 # with a fresh cross-compiler works.
2437 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2438 # <limits.h> exists even on freestanding compilers.
2439 # On the NeXT, cc -E runs the code through the compiler's parser,
2440 # not just through cpp. "Syntax error" is here to catch this case.
2441 cat >conftest.$ac_ext <<_ACEOF
2442/* confdefs.h. */
2443_ACEOF
2444cat confdefs.h >>conftest.$ac_ext
2445cat >>conftest.$ac_ext <<_ACEOF
2446/* end confdefs.h. */
2447#ifdef __STDC__
2448# include <limits.h>
2449#else
2450# include <assert.h>
2451#endif
2452 Syntax error
2453_ACEOF
2454if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2455 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2456 ac_status=$?
2457 grep -v '^ *+' conftest.er1 >conftest.err
2458 rm -f conftest.er1
2459 cat conftest.err >&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); } >/dev/null; then
2462 if test -s conftest.err; then
2463 ac_cpp_err=$ac_c_preproc_warn_flag
2464 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2465 else
2466 ac_cpp_err=
2467 fi
c906108c 2468else
bec39cab 2469 ac_cpp_err=yes
c906108c 2470fi
bec39cab
AC
2471if test -z "$ac_cpp_err"; then
2472 :
c906108c 2473else
bec39cab
AC
2474 echo "$as_me: failed program was:" >&5
2475sed 's/^/| /' conftest.$ac_ext >&5
2476
2477 # Broken: fails on valid input.
2478continue
2479fi
2480rm -f conftest.err conftest.$ac_ext
2481
b4e70030 2482 # OK, works on sane cases. Now check whether non-existent headers
bec39cab
AC
2483 # can be detected and how.
2484 cat >conftest.$ac_ext <<_ACEOF
2485/* confdefs.h. */
2486_ACEOF
2487cat confdefs.h >>conftest.$ac_ext
2488cat >>conftest.$ac_ext <<_ACEOF
2489/* end confdefs.h. */
2490#include <ac_nonexistent.h>
2491_ACEOF
2492if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2493 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2494 ac_status=$?
2495 grep -v '^ *+' conftest.er1 >conftest.err
2496 rm -f conftest.er1
2497 cat conftest.err >&5
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); } >/dev/null; then
2500 if test -s conftest.err; then
2501 ac_cpp_err=$ac_c_preproc_warn_flag
2502 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2503 else
2504 ac_cpp_err=
2505 fi
c906108c 2506else
bec39cab 2507 ac_cpp_err=yes
c906108c 2508fi
bec39cab
AC
2509if test -z "$ac_cpp_err"; then
2510 # Broken: success on invalid input.
2511continue
c906108c 2512else
bec39cab
AC
2513 echo "$as_me: failed program was:" >&5
2514sed 's/^/| /' conftest.$ac_ext >&5
c906108c 2515
bec39cab
AC
2516 # Passes both tests.
2517ac_preproc_ok=:
2518break
c906108c 2519fi
bec39cab 2520rm -f conftest.err conftest.$ac_ext
c906108c 2521
bec39cab
AC
2522done
2523# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2524rm -f conftest.err conftest.$ac_ext
2525if $ac_preproc_ok; then
c906108c
SS
2526 :
2527else
bec39cab
AC
2528 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2529See \`config.log' for more details." >&5
2530echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2531See \`config.log' for more details." >&2;}
2532 { (exit 1); exit 1; }; }
c906108c 2533fi
c906108c 2534
bec39cab
AC
2535ac_ext=c
2536ac_cpp='$CPP $CPPFLAGS'
2537ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2538ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2539ac_compiler_gnu=$ac_cv_c_compiler_gnu
2540
2541
b4e70030
JB
2542echo "$as_me:$LINENO: checking for egrep" >&5
2543echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2544if test "${ac_cv_prog_egrep+set}" = set; then
4e8d927d
DJ
2545 echo $ECHO_N "(cached) $ECHO_C" >&6
2546else
b4e70030
JB
2547 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2548 then ac_cv_prog_egrep='grep -E'
2549 else ac_cv_prog_egrep='egrep'
bec39cab 2550 fi
4e8d927d 2551fi
b4e70030
JB
2552echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2553echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2554 EGREP=$ac_cv_prog_egrep
c906108c 2555
bec39cab
AC
2556
2557
b4e70030
JB
2558echo "$as_me:$LINENO: checking for AIX" >&5
2559echo $ECHO_N "checking for AIX... $ECHO_C" >&6
bec39cab
AC
2560cat >conftest.$ac_ext <<_ACEOF
2561/* confdefs.h. */
2562_ACEOF
2563cat confdefs.h >>conftest.$ac_ext
2564cat >>conftest.$ac_ext <<_ACEOF
2565/* end confdefs.h. */
2566#ifdef _AIX
2567 yes
2568#endif
2569
2570_ACEOF
c906108c 2571if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 2572 $EGREP "yes" >/dev/null 2>&1; then
b4e70030
JB
2573 echo "$as_me:$LINENO: result: yes" >&5
2574echo "${ECHO_T}yes" >&6
bec39cab
AC
2575cat >>confdefs.h <<\_ACEOF
2576#define _ALL_SOURCE 1
2577_ACEOF
2578
c906108c 2579else
b4e70030
JB
2580 echo "$as_me:$LINENO: result: no" >&5
2581echo "${ECHO_T}no" >&6
c906108c
SS
2582fi
2583rm -f conftest*
2584
c906108c 2585
b4e70030
JB
2586echo "$as_me:$LINENO: checking for library containing strerror" >&5
2587echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
bec39cab
AC
2588if test "${ac_cv_search_strerror+set}" = set; then
2589 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2590else
bec39cab 2591 ac_func_search_save_LIBS=$LIBS
b4e70030 2592ac_cv_search_strerror=no
bec39cab
AC
2593cat >conftest.$ac_ext <<_ACEOF
2594/* confdefs.h. */
2595_ACEOF
2596cat confdefs.h >>conftest.$ac_ext
2597cat >>conftest.$ac_ext <<_ACEOF
2598/* end confdefs.h. */
c906108c 2599
b4e70030 2600/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
2601#ifdef __cplusplus
2602extern "C"
2603#endif
b4e70030
JB
2604/* We use char because int might match the return type of a gcc2
2605 builtin and then its argument prototype would still apply. */
bec39cab
AC
2606char strerror ();
2607int
2608main ()
2609{
b4e70030 2610strerror ();
bec39cab
AC
2611 ;
2612 return 0;
2613}
2614_ACEOF
b4e70030 2615rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
2616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2617 (eval $ac_link) 2>conftest.er1
2618 ac_status=$?
2619 grep -v '^ *+' conftest.er1 >conftest.err
2620 rm -f conftest.er1
2621 cat conftest.err >&5
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); } &&
b4e70030
JB
2624 { ac_try='test -z "$ac_c_werror_flag"
2625 || test ! -s conftest.err'
bec39cab
AC
2626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627 (eval $ac_try) 2>&5
2628 ac_status=$?
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); }; } &&
2631 { ac_try='test -s conftest$ac_exeext'
2632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633 (eval $ac_try) 2>&5
2634 ac_status=$?
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); }; }; then
b4e70030 2637 ac_cv_search_strerror="none required"
c906108c 2638else
bec39cab
AC
2639 echo "$as_me: failed program was:" >&5
2640sed 's/^/| /' conftest.$ac_ext >&5
c906108c
SS
2641
2642fi
bec39cab 2643rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
2644 conftest$ac_exeext conftest.$ac_ext
2645if test "$ac_cv_search_strerror" = no; then
2646 for ac_lib in cposix; do
2647 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
2648 cat >conftest.$ac_ext <<_ACEOF
2649/* confdefs.h. */
2650_ACEOF
2651cat confdefs.h >>conftest.$ac_ext
2652cat >>conftest.$ac_ext <<_ACEOF
2653/* end confdefs.h. */
2654
2655/* Override any gcc2 internal prototype to avoid an error. */
2656#ifdef __cplusplus
2657extern "C"
2658#endif
2659/* We use char because int might match the return type of a gcc2
2660 builtin and then its argument prototype would still apply. */
2661char strerror ();
2662int
2663main ()
2664{
2665strerror ();
2666 ;
2667 return 0;
2668}
2669_ACEOF
2670rm -f conftest.$ac_objext conftest$ac_exeext
2671if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2672 (eval $ac_link) 2>conftest.er1
2673 ac_status=$?
2674 grep -v '^ *+' conftest.er1 >conftest.err
2675 rm -f conftest.er1
2676 cat conftest.err >&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); } &&
2679 { ac_try='test -z "$ac_c_werror_flag"
2680 || test ! -s conftest.err'
2681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2682 (eval $ac_try) 2>&5
2683 ac_status=$?
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }; } &&
2686 { ac_try='test -s conftest$ac_exeext'
2687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688 (eval $ac_try) 2>&5
2689 ac_status=$?
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }; }; then
2692 ac_cv_search_strerror="-l$ac_lib"
2693break
4e8d927d 2694else
b4e70030
JB
2695 echo "$as_me: failed program was:" >&5
2696sed 's/^/| /' conftest.$ac_ext >&5
2697
2698fi
2699rm -f conftest.err conftest.$ac_objext \
2700 conftest$ac_exeext conftest.$ac_ext
2701 done
c906108c 2702fi
bec39cab 2703LIBS=$ac_func_search_save_LIBS
c906108c 2704fi
b4e70030
JB
2705echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
2706echo "${ECHO_T}$ac_cv_search_strerror" >&6
2707if test "$ac_cv_search_strerror" != no; then
2708 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
bec39cab 2709
c906108c
SS
2710fi
2711
c906108c 2712
c906108c 2713
bec39cab 2714
b4e70030
JB
2715echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2716echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
bec39cab
AC
2717if test "${am_cv_prog_cc_stdc+set}" = set; then
2718 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 2719else
bec39cab
AC
2720 am_cv_prog_cc_stdc=no
2721ac_save_CC="$CC"
2722# Don't try gcc -ansi; that turns off useful extensions and
2723# breaks some systems' header files.
2724# AIX -qlanglvl=ansi
2725# Ultrix and OSF/1 -std1
2726# HP-UX 10.20 and later -Ae
2727# HP-UX older versions -Aa -D_HPUX_SOURCE
2728# SVR4 -Xc -D__EXTENSIONS__
2729for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2730do
2731 CC="$ac_save_CC $ac_arg"
2732 cat >conftest.$ac_ext <<_ACEOF
2733/* confdefs.h. */
2734_ACEOF
2735cat confdefs.h >>conftest.$ac_ext
2736cat >>conftest.$ac_ext <<_ACEOF
2737/* end confdefs.h. */
2738#include <stdarg.h>
2739#include <stdio.h>
2740#include <sys/types.h>
2741#include <sys/stat.h>
2742/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2743struct buf { int x; };
2744FILE * (*rcsopen) (struct buf *, struct stat *, int);
2745static char *e (p, i)
2746 char **p;
2747 int i;
2748{
2749 return p[i];
2750}
2751static char *f (char * (*g) (char **, int), char **p, ...)
2752{
2753 char *s;
2754 va_list v;
2755 va_start (v,p);
2756 s = g (p, va_arg (v,int));
2757 va_end (v);
2758 return s;
2759}
2760int test (int i, double x);
2761struct s1 {int (*f) (int a);};
2762struct s2 {int (*f) (double a);};
2763int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2764int argc;
2765char **argv;
c906108c 2766
bec39cab
AC
2767int
2768main ()
2769{
c906108c 2770
bec39cab 2771return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
c906108c 2772
bec39cab
AC
2773 ;
2774 return 0;
2775}
2776_ACEOF
2777rm -f conftest.$ac_objext
2778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2779 (eval $ac_compile) 2>conftest.er1
2780 ac_status=$?
2781 grep -v '^ *+' conftest.er1 >conftest.err
2782 rm -f conftest.er1
2783 cat conftest.err >&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); } &&
b4e70030
JB
2786 { ac_try='test -z "$ac_c_werror_flag"
2787 || test ! -s conftest.err'
bec39cab
AC
2788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789 (eval $ac_try) 2>&5
2790 ac_status=$?
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; } &&
2793 { ac_try='test -s conftest.$ac_objext'
2794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795 (eval $ac_try) 2>&5
2796 ac_status=$?
2797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2798 (exit $ac_status); }; }; then
2799 am_cv_prog_cc_stdc="$ac_arg"; break
c906108c 2800else
bec39cab
AC
2801 echo "$as_me: failed program was:" >&5
2802sed 's/^/| /' conftest.$ac_ext >&5
c906108c
SS
2803
2804fi
bec39cab
AC
2805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2806done
2807CC="$ac_save_CC"
c906108c
SS
2808
2809fi
2810
bec39cab 2811if test -z "$am_cv_prog_cc_stdc"; then
b4e70030
JB
2812 echo "$as_me:$LINENO: result: none needed" >&5
2813echo "${ECHO_T}none needed" >&6
c906108c 2814else
b4e70030
JB
2815 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2816echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
c906108c 2817fi
bec39cab
AC
2818case "x$am_cv_prog_cc_stdc" in
2819 x|xno) ;;
2820 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2821esac
c906108c 2822
c906108c 2823
bec39cab
AC
2824ac_aux_dir=
2825for ac_dir in `cd $srcdir;pwd`/.. $srcdir/`cd $srcdir;pwd`/..; do
2826 if test -f $ac_dir/install-sh; then
2827 ac_aux_dir=$ac_dir
2828 ac_install_sh="$ac_aux_dir/install-sh -c"
2829 break
2830 elif test -f $ac_dir/install.sh; then
2831 ac_aux_dir=$ac_dir
2832 ac_install_sh="$ac_aux_dir/install.sh -c"
2833 break
2834 elif test -f $ac_dir/shtool; then
2835 ac_aux_dir=$ac_dir
2836 ac_install_sh="$ac_aux_dir/shtool install -c"
2837 break
2838 fi
2839done
2840if test -z "$ac_aux_dir"; then
2841 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&5
2842echo "$as_me: error: cannot find install-sh or install.sh in \`cd $srcdir;pwd\`/.. $srcdir/\`cd $srcdir;pwd\`/.." >&2;}
2843 { (exit 1); exit 1; }; }
c906108c 2844fi
bec39cab
AC
2845ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2846ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2847ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
c906108c 2848
bec39cab
AC
2849# Make sure we can run config.sub.
2850$ac_config_sub sun4 >/dev/null 2>&1 ||
2851 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2852echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2853 { (exit 1); exit 1; }; }
2854
b4e70030
JB
2855echo "$as_me:$LINENO: checking build system type" >&5
2856echo $ECHO_N "checking build system type... $ECHO_C" >&6
bec39cab
AC
2857if test "${ac_cv_build+set}" = set; then
2858 echo $ECHO_N "(cached) $ECHO_C" >&6
2859else
b4e70030
JB
2860 ac_cv_build_alias=$build_alias
2861test -z "$ac_cv_build_alias" &&
2862 ac_cv_build_alias=`$ac_config_guess`
2863test -z "$ac_cv_build_alias" &&
bec39cab
AC
2864 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2865echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2866 { (exit 1); exit 1; }; }
b4e70030
JB
2867ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2868 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2869echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
bec39cab
AC
2870 { (exit 1); exit 1; }; }
2871
2872fi
b4e70030
JB
2873echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2874echo "${ECHO_T}$ac_cv_build" >&6
bec39cab 2875build=$ac_cv_build
b4e70030
JB
2876build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2877build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2878build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
bec39cab
AC
2879
2880
b4e70030
JB
2881echo "$as_me:$LINENO: checking host system type" >&5
2882echo $ECHO_N "checking host system type... $ECHO_C" >&6
bec39cab
AC
2883if test "${ac_cv_host+set}" = set; then
2884 echo $ECHO_N "(cached) $ECHO_C" >&6
2885else
b4e70030
JB
2886 ac_cv_host_alias=$host_alias
2887test -z "$ac_cv_host_alias" &&
2888 ac_cv_host_alias=$ac_cv_build_alias
2889ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2890 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2891echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
bec39cab
AC
2892 { (exit 1); exit 1; }; }
2893
2894fi
b4e70030
JB
2895echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2896echo "${ECHO_T}$ac_cv_host" >&6
bec39cab 2897host=$ac_cv_host
b4e70030
JB
2898host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2899host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2900host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
bec39cab
AC
2901
2902
b4e70030
JB
2903echo "$as_me:$LINENO: checking target system type" >&5
2904echo $ECHO_N "checking target system type... $ECHO_C" >&6
bec39cab
AC
2905if test "${ac_cv_target+set}" = set; then
2906 echo $ECHO_N "(cached) $ECHO_C" >&6
2907else
b4e70030
JB
2908 ac_cv_target_alias=$target_alias
2909test "x$ac_cv_target_alias" = "x" &&
2910 ac_cv_target_alias=$ac_cv_host_alias
2911ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
2912 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
2913echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
bec39cab
AC
2914 { (exit 1); exit 1; }; }
2915
2916fi
b4e70030
JB
2917echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2918echo "${ECHO_T}$ac_cv_target" >&6
bec39cab 2919target=$ac_cv_target
b4e70030
JB
2920target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2921target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2922target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
c906108c 2923
c906108c 2924
bec39cab
AC
2925# The aliases save the names the user supplied, while $host etc.
2926# will get canonicalized.
2927test -n "$target_alias" &&
2928 test "$program_prefix$program_suffix$program_transform_name" = \
2929 NONENONEs,x,x, &&
2930 program_prefix=${target_alias}-
c906108c 2931
c906108c 2932
bec39cab
AC
2933CONFIG_OBS=
2934CONFIG_DEPS=
2935CONFIG_SRCS=
2936ENABLE_CFLAGS=
c906108c 2937
bec39cab
AC
2938CONFIG_ALL=
2939CONFIG_CLEAN=
2940CONFIG_INSTALL=
2941CONFIG_UNINSTALL=
2942
20e95c23
DJ
2943# If we haven't got the data from the intl directory,
2944# assume NLS is disabled.
2945USE_NLS=no
2946LIBINTL=
2947LIBINTL_DEP=
2948INCINTL=
2949XGETTEXT=
2950GMSGFMT=
2951POSUB=
3841debe
DJ
2952
2953if test -f ../intl/config.intl; then
2954 . ../intl/config.intl
20e95c23
DJ
2955fi
2956echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2957echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
2958if test x"$USE_NLS" != xyes; then
b4e70030
JB
2959 echo "$as_me:$LINENO: result: no" >&5
2960echo "${ECHO_T}no" >&6
c906108c 2961else
20e95c23
DJ
2962 echo "$as_me:$LINENO: result: yes" >&5
2963echo "${ECHO_T}yes" >&6
c906108c 2964
20e95c23
DJ
2965cat >>confdefs.h <<\_ACEOF
2966#define ENABLE_NLS 1
bec39cab 2967_ACEOF
c906108c 2968
c906108c 2969
20e95c23
DJ
2970 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
2971echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
2972 # Look for .po and .gmo files in the source directory.
2973 CATALOGS=
2974 XLINGUAS=
2975 for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do
2976 # If there aren't any .gmo files the shell will give us the
2977 # literal string "../path/to/srcdir/po/*.gmo" which has to be
2978 # weeded out.
2979 case "$cat" in *\**)
2980 continue;;
2981 esac
2982 # The quadruple backslash is collapsed to a double backslash
2983 # by the backticks, then collapsed again by the double quotes,
2984 # leaving us with one backslash in the sed expression (right
2985 # before the dot that mustn't act as a wildcard).
2986 cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"`
2987 lang=`echo $cat | sed -e "s!\\\\.gmo!!"`
2988 # The user is allowed to set LINGUAS to a list of languages to
2989 # install catalogs for. If it's empty that means "all of them."
2990 if test "x$LINGUAS" = x; then
2991 CATALOGS="$CATALOGS $cat"
2992 XLINGUAS="$XLINGUAS $lang"
2993 else
2994 case "$LINGUAS" in *$lang*)
2995 CATALOGS="$CATALOGS $cat"
2996 XLINGUAS="$XLINGUAS $lang"
2997 ;;
2998 esac
2999 fi
3000 done
3001 LINGUAS="$XLINGUAS"
3002 echo "$as_me:$LINENO: result: $LINGUAS" >&5
3003echo "${ECHO_T}$LINGUAS" >&6
c906108c 3004
c906108c 3005
20e95c23 3006 DATADIRNAME=share
c906108c 3007
20e95c23 3008 INSTOBJEXT=.mo
c906108c 3009
20e95c23
DJ
3010 GENCAT=gencat
3011
3012 CATOBJEXT=.gmo
3013
3014fi
3015
3016localedir='${datadir}/locale'
c906108c 3017
bec39cab 3018
20e95c23 3019if test x"$USE_NLS" = xyes; then
bec39cab
AC
3020 CONFIG_ALL="$CONFIG_ALL all-po"
3021 CONFIG_CLEAN="$CONFIG_CLEAN clean-po"
3022 CONFIG_INSTALL="$CONFIG_INSTALL install-po"
3023 CONFIG_UNINSTALL="$CONFIG_UNINSTALL uninstall-po"
3024fi
3025
3026PACKAGE=gdb
3027
3028cat >>confdefs.h <<_ACEOF
3029#define PACKAGE "$PACKAGE"
3030_ACEOF
3031
3032
3033
3034debugdir=${libdir}/debug
3035
3036
b4e70030 3037# Check whether --with-separate-debug-dir or --without-separate-debug-dir was given.
bec39cab 3038if test "${with_separate_debug_dir+set}" = set; then
b4e70030
JB
3039 withval="$with_separate_debug_dir"
3040 debugdir="${withval}"
3041fi;
bec39cab
AC
3042
3043
3044 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
3045 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3046 ac_define_dir=`eval echo $debugdir`
3047 ac_define_dir=`eval echo $ac_define_dir`
3048
3049cat >>confdefs.h <<_ACEOF
3050#define DEBUGDIR "$ac_define_dir"
3051_ACEOF
3052
3053
3054#AC_DEFINE_UNQUOTED(DEBUGDIR, "$debugdir"),
3055
aa28a74e
DJ
3056if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
3057 if test "x$prefix" = xNONE; then
3058 test_prefix=/usr/local
3059 else
3060 test_prefix=$prefix
3061 fi
3062else
3063 test_prefix=$exec_prefix
3064fi
3065case ${debugdir} in
3066"${test_prefix}"|"${test_prefix}/"*|\
3067'${exec_prefix}'|'${exec_prefix}/'*)
3068
3069cat >>confdefs.h <<\_ACEOF
3070#define DEBUGDIR_RELOCATABLE 1
3071_ACEOF
3072
3073 ;;
3074esac
3075
b4e70030
JB
3076
3077
bec39cab
AC
3078subdirs="$subdirs doc testsuite"
3079
3080
121ce6e5
DJ
3081# Provide defaults for some variables set by the per-host and per-target
3082# configuration.
3083gdb_host_obs=posix-hdep.o
3084
771b4502
UW
3085if test "${target}" = "${host}"; then
3086 gdb_native=yes
3087else
3088 gdb_native=no
3089fi
3090
bec39cab
AC
3091. $srcdir/configure.host
3092
3093. $srcdir/configure.tgt
3094
3095# Fetch the default architecture and default target vector from BFD.
3096targ=$target; . $srcdir/../bfd/config.bfd
3097
3098# We only want the first architecture, so strip off the others if
3099# there is more than one.
3100targ_archs=`echo $targ_archs | sed 's/ .*//'`
3101
3102if test "x$targ_archs" != x; then
3103
3104cat >>confdefs.h <<_ACEOF
3105#define DEFAULT_BFD_ARCH $targ_archs
3106_ACEOF
3107
3108fi
3109if test "x$targ_defvec" != x; then
3110
3111cat >>confdefs.h <<_ACEOF
3112#define DEFAULT_BFD_VEC $targ_defvec
3113_ACEOF
3114
3115fi
3116
3117test "$program_prefix" != NONE &&
b4e70030 3118 program_transform_name="s,^,$program_prefix,;$program_transform_name"
bec39cab
AC
3119# Use a double $ so make ignores it.
3120test "$program_suffix" != NONE &&
b4e70030 3121 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
bec39cab
AC
3122# Double any \ or $. echo might interpret backslashes.
3123# By default was `s,x,x', remove it if useless.
3124cat <<\_ACEOF >conftest.sed
3125s/[\\$]/&&/g;s/;s,x,x,$//
3126_ACEOF
3127program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
b4e70030 3128rm conftest.sed
bec39cab
AC
3129
3130
3131# The CLI cannot be disabled yet, but may be in the future.
3132
3133# Enable CLI.
b4e70030 3134# Check whether --enable-gdbcli or --disable-gdbcli was given.
bec39cab 3135if test "${enable_gdbcli+set}" = set; then
b4e70030
JB
3136 enableval="$enable_gdbcli"
3137 case $enableval in
bec39cab
AC
3138 yes)
3139 ;;
3140 no)
3141 { { echo "$as_me:$LINENO: error: the command-line interface cannot be disabled yet" >&5
3142echo "$as_me: error: the command-line interface cannot be disabled yet" >&2;}
3143 { (exit 1); exit 1; }; } ;;
3144 *)
3145 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbcli" >&5
3146echo "$as_me: error: bad value $enableval for --enable-gdbcli" >&2;}
3147 { (exit 1); exit 1; }; } ;;
3148 esac
3149else
3150 enable_gdbcli=yes
b4e70030 3151fi;
bec39cab
AC
3152if test x"$enable_gdbcli" = xyes; then
3153 if test -d $srcdir/cli; then
3154 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_CLI_OBS)"
3155 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_CLI_DEPS)"
3156 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_CLI_SRCS)"
3157 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_CLI_CFLAGS)"
3158 fi
3159fi
3160
3161# Enable MI.
b4e70030 3162# Check whether --enable-gdbmi or --disable-gdbmi was given.
bec39cab 3163if test "${enable_gdbmi+set}" = set; then
b4e70030
JB
3164 enableval="$enable_gdbmi"
3165 case $enableval in
bec39cab
AC
3166 yes | no)
3167 ;;
3168 *)
3169 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbmi" >&5
3170echo "$as_me: error: bad value $enableval for --enable-gdbmi" >&2;}
3171 { (exit 1); exit 1; }; } ;;
3172 esac
3173else
3174 enable_gdbmi=yes
b4e70030 3175fi;
bec39cab
AC
3176if test x"$enable_gdbmi" = xyes; then
3177 if test -d $srcdir/mi; then
3178 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_MI_OBS)"
3179 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_MI_DEPS)"
3180 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_MI_SRCS)"
3181 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_MI_CFLAGS)"
3182 fi
3183fi
3184
3185# Enable TUI.
b4e70030 3186# Check whether --enable-tui or --disable-tui was given.
bec39cab 3187if test "${enable_tui+set}" = set; then
b4e70030
JB
3188 enableval="$enable_tui"
3189 case $enableval in
bec39cab
AC
3190 yes | no)
3191 ;;
3192 *)
3193 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-tui" >&5
3194echo "$as_me: error: bad value $enableval for --enable-tui" >&2;}
3195 { (exit 1); exit 1; }; } ;;
3196 esac
3197else
3198 enable_tui=yes
b4e70030 3199fi;
bec39cab
AC
3200
3201# Enable gdbtk.
b4e70030 3202# Check whether --enable-gdbtk or --disable-gdbtk was given.
bec39cab 3203if test "${enable_gdbtk+set}" = set; then
b4e70030
JB
3204 enableval="$enable_gdbtk"
3205 case $enableval in
bec39cab
AC
3206 yes | no)
3207 ;;
3208 *)
3209 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-gdbtk" >&5
3210echo "$as_me: error: bad value $enableval for --enable-gdbtk" >&2;}
3211 { (exit 1); exit 1; }; } ;;
3212 esac
3213else
04ac69aa 3214 if test -d $srcdir/gdbtk -a -d $srcdir/../itcl; then
bec39cab
AC
3215 enable_gdbtk=yes
3216 else
3217 enable_gdbtk=no
3218 fi
b4e70030 3219fi;
bec39cab
AC
3220# We unconditionally disable gdbtk tests on selected platforms.
3221case $host_os in
3222 go32* | windows*)
3223 { echo "$as_me:$LINENO: WARNING: gdbtk isn't supported on $host; disabling" >&5
3224echo "$as_me: WARNING: gdbtk isn't supported on $host; disabling" >&2;}
3225 enable_gdbtk=no ;;
3226esac
3227
3228# Libunwind support.
20e95c23
DJ
3229echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3230echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3231if test "${ac_cv_header_stdc+set}" = set; then
3232 echo $ECHO_N "(cached) $ECHO_C" >&6
3233else
3234 cat >conftest.$ac_ext <<_ACEOF
3235/* confdefs.h. */
3236_ACEOF
3237cat confdefs.h >>conftest.$ac_ext
3238cat >>conftest.$ac_ext <<_ACEOF
3239/* end confdefs.h. */
3240#include <stdlib.h>
3241#include <stdarg.h>
3242#include <string.h>
3243#include <float.h>
3244
3245int
3246main ()
3247{
3248
3249 ;
3250 return 0;
3251}
3252_ACEOF
3253rm -f conftest.$ac_objext
3254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3255 (eval $ac_compile) 2>conftest.er1
3256 ac_status=$?
3257 grep -v '^ *+' conftest.er1 >conftest.err
3258 rm -f conftest.er1
3259 cat conftest.err >&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); } &&
3262 { ac_try='test -z "$ac_c_werror_flag"
3263 || test ! -s conftest.err'
3264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3265 (eval $ac_try) 2>&5
3266 ac_status=$?
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }; } &&
3269 { ac_try='test -s conftest.$ac_objext'
3270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3271 (eval $ac_try) 2>&5
3272 ac_status=$?
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); }; }; then
3275 ac_cv_header_stdc=yes
3276else
3277 echo "$as_me: failed program was:" >&5
3278sed 's/^/| /' conftest.$ac_ext >&5
3279
3280ac_cv_header_stdc=no
3281fi
3282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3283
3284if test $ac_cv_header_stdc = yes; then
3285 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3286 cat >conftest.$ac_ext <<_ACEOF
3287/* confdefs.h. */
3288_ACEOF
3289cat confdefs.h >>conftest.$ac_ext
3290cat >>conftest.$ac_ext <<_ACEOF
3291/* end confdefs.h. */
3292#include <string.h>
3293
3294_ACEOF
3295if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3296 $EGREP "memchr" >/dev/null 2>&1; then
3297 :
3298else
3299 ac_cv_header_stdc=no
3300fi
3301rm -f conftest*
3302
3303fi
3304
3305if test $ac_cv_header_stdc = yes; then
3306 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3307 cat >conftest.$ac_ext <<_ACEOF
3308/* confdefs.h. */
3309_ACEOF
3310cat confdefs.h >>conftest.$ac_ext
3311cat >>conftest.$ac_ext <<_ACEOF
3312/* end confdefs.h. */
3313#include <stdlib.h>
3314
3315_ACEOF
3316if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3317 $EGREP "free" >/dev/null 2>&1; then
3318 :
3319else
3320 ac_cv_header_stdc=no
3321fi
3322rm -f conftest*
3323
3324fi
3325
3326if test $ac_cv_header_stdc = yes; then
3327 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3328 if test "$cross_compiling" = yes; then
3329 :
3330else
3331 cat >conftest.$ac_ext <<_ACEOF
3332/* confdefs.h. */
3333_ACEOF
3334cat confdefs.h >>conftest.$ac_ext
3335cat >>conftest.$ac_ext <<_ACEOF
3336/* end confdefs.h. */
3337#include <ctype.h>
3338#if ((' ' & 0x0FF) == 0x020)
3339# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3340# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3341#else
3342# define ISLOWER(c) \
3343 (('a' <= (c) && (c) <= 'i') \
3344 || ('j' <= (c) && (c) <= 'r') \
3345 || ('s' <= (c) && (c) <= 'z'))
3346# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3347#endif
3348
3349#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3350int
3351main ()
3352{
3353 int i;
3354 for (i = 0; i < 256; i++)
3355 if (XOR (islower (i), ISLOWER (i))
3356 || toupper (i) != TOUPPER (i))
3357 exit(2);
3358 exit (0);
3359}
3360_ACEOF
3361rm -f conftest$ac_exeext
3362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3363 (eval $ac_link) 2>&5
3364 ac_status=$?
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3368 (eval $ac_try) 2>&5
3369 ac_status=$?
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }; }; then
3372 :
3373else
3374 echo "$as_me: program exited with status $ac_status" >&5
3375echo "$as_me: failed program was:" >&5
3376sed 's/^/| /' conftest.$ac_ext >&5
3377
3378( exit $ac_status )
3379ac_cv_header_stdc=no
3380fi
3381rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3382fi
3383fi
3384fi
3385echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3386echo "${ECHO_T}$ac_cv_header_stdc" >&6
3387if test $ac_cv_header_stdc = yes; then
3388
3389cat >>confdefs.h <<\_ACEOF
3390#define STDC_HEADERS 1
3391_ACEOF
3392
3393fi
3394
3395# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3406 inttypes.h stdint.h unistd.h
3407do
3408as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3409echo "$as_me:$LINENO: checking for $ac_header" >&5
3410echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3411if eval "test \"\${$as_ac_Header+set}\" = set"; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3413else
3414 cat >conftest.$ac_ext <<_ACEOF
3415/* confdefs.h. */
3416_ACEOF
3417cat confdefs.h >>conftest.$ac_ext
3418cat >>conftest.$ac_ext <<_ACEOF
3419/* end confdefs.h. */
3420$ac_includes_default
3421
3422#include <$ac_header>
3423_ACEOF
3424rm -f conftest.$ac_objext
3425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3426 (eval $ac_compile) 2>conftest.er1
3427 ac_status=$?
3428 grep -v '^ *+' conftest.er1 >conftest.err
3429 rm -f conftest.er1
3430 cat conftest.err >&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); } &&
3433 { ac_try='test -z "$ac_c_werror_flag"
3434 || test ! -s conftest.err'
3435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436 (eval $ac_try) 2>&5
3437 ac_status=$?
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); }; } &&
3440 { ac_try='test -s conftest.$ac_objext'
3441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3442 (eval $ac_try) 2>&5
3443 ac_status=$?
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); }; }; then
3446 eval "$as_ac_Header=yes"
3447else
3448 echo "$as_me: failed program was:" >&5
3449sed 's/^/| /' conftest.$ac_ext >&5
3450
3451eval "$as_ac_Header=no"
3452fi
3453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3454fi
3455echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3456echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3457if test `eval echo '${'$as_ac_Header'}'` = yes; then
3458 cat >>confdefs.h <<_ACEOF
3459#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3460_ACEOF
3461
3462fi
3463
3464done
3465
3466
bec39cab 3467
b4e70030 3468# Check whether --with-libunwind or --without-libunwind was given.
bec39cab 3469if test "${with_libunwind+set}" = set; then
b4e70030
JB
3470 withval="$with_libunwind"
3471 case "${withval}" in
bec39cab
AC
3472 yes) enable_libunwind=yes ;;
3473 no) enable_libunwind=no ;;
3474 *) { { echo "$as_me:$LINENO: error: bad value ${withval} for GDB with-libunwind option" >&5
3475echo "$as_me: error: bad value ${withval} for GDB with-libunwind option" >&2;}
3476 { (exit 1); exit 1; }; } ;;
3477esac
3478else
3479
3480
3481for ac_header in libunwind.h
3482do
3483as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
3484if eval "test \"\${$as_ac_Header+set}\" = set"; then
3485 echo "$as_me:$LINENO: checking for $ac_header" >&5
3486echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3487if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3489fi
b4e70030
JB
3490echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3491echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3492else
3493 # Is the header compilable?
b4e70030
JB
3494echo "$as_me:$LINENO: checking $ac_header usability" >&5
3495echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
3496cat >conftest.$ac_ext <<_ACEOF
3497/* confdefs.h. */
3498_ACEOF
3499cat confdefs.h >>conftest.$ac_ext
3500cat >>conftest.$ac_ext <<_ACEOF
3501/* end confdefs.h. */
3502$ac_includes_default
3503#include <$ac_header>
3504_ACEOF
3505rm -f conftest.$ac_objext
3506if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3507 (eval $ac_compile) 2>conftest.er1
3508 ac_status=$?
3509 grep -v '^ *+' conftest.er1 >conftest.err
3510 rm -f conftest.er1
3511 cat conftest.err >&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); } &&
b4e70030
JB
3514 { ac_try='test -z "$ac_c_werror_flag"
3515 || test ! -s conftest.err'
bec39cab
AC
3516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517 (eval $ac_try) 2>&5
3518 ac_status=$?
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); }; } &&
3521 { ac_try='test -s conftest.$ac_objext'
3522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3523 (eval $ac_try) 2>&5
3524 ac_status=$?
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); }; }; then
3527 ac_header_compiler=yes
3528else
3529 echo "$as_me: failed program was:" >&5
3530sed 's/^/| /' conftest.$ac_ext >&5
3531
b4e70030 3532ac_header_compiler=no
bec39cab
AC
3533fi
3534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
3535echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3536echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
3537
3538# Is the header present?
b4e70030
JB
3539echo "$as_me:$LINENO: checking $ac_header presence" >&5
3540echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
3541cat >conftest.$ac_ext <<_ACEOF
3542/* confdefs.h. */
3543_ACEOF
3544cat confdefs.h >>conftest.$ac_ext
3545cat >>conftest.$ac_ext <<_ACEOF
3546/* end confdefs.h. */
3547#include <$ac_header>
3548_ACEOF
3549if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3550 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3551 ac_status=$?
3552 grep -v '^ *+' conftest.er1 >conftest.err
3553 rm -f conftest.er1
3554 cat conftest.err >&5
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); } >/dev/null; then
3557 if test -s conftest.err; then
3558 ac_cpp_err=$ac_c_preproc_warn_flag
3559 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3560 else
3561 ac_cpp_err=
3562 fi
3563else
3564 ac_cpp_err=yes
3565fi
3566if test -z "$ac_cpp_err"; then
3567 ac_header_preproc=yes
3568else
3569 echo "$as_me: failed program was:" >&5
3570sed 's/^/| /' conftest.$ac_ext >&5
3571
3572 ac_header_preproc=no
3573fi
3574rm -f conftest.err conftest.$ac_ext
b4e70030
JB
3575echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3576echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
3577
3578# So? What about this header?
3579case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3580 yes:no: )
3581 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3582echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3584echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3585 ac_header_preproc=yes
3586 ;;
3587 no:yes:* )
3588 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3589echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3590 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3591echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3592 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3593echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3594 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3595echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3597echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3598 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3599echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
3600 (
3601 cat <<\_ASBOX
3602## ------------------------------------------ ##
3603## Report this to the AC_PACKAGE_NAME lists. ##
3604## ------------------------------------------ ##
3605_ASBOX
3606 ) |
3607 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
3608 ;;
3609esac
b4e70030
JB
3610echo "$as_me:$LINENO: checking for $ac_header" >&5
3611echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3612if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3613 echo $ECHO_N "(cached) $ECHO_C" >&6
3614else
3615 eval "$as_ac_Header=\$ac_header_preproc"
3616fi
b4e70030
JB
3617echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3618echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3619
3620fi
3621if test `eval echo '${'$as_ac_Header'}'` = yes; then
3622 cat >>confdefs.h <<_ACEOF
3623#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3624_ACEOF
3625
3626fi
3627
3628done
3629
3630
3631for ac_header in libunwind-ia64.h
3632do
3633as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
3634if eval "test \"\${$as_ac_Header+set}\" = set"; then
3635 echo "$as_me:$LINENO: checking for $ac_header" >&5
3636echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3637if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3638 echo $ECHO_N "(cached) $ECHO_C" >&6
3639fi
b4e70030
JB
3640echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3641echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3642else
3643 # Is the header compilable?
b4e70030
JB
3644echo "$as_me:$LINENO: checking $ac_header usability" >&5
3645echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
3646cat >conftest.$ac_ext <<_ACEOF
3647/* confdefs.h. */
3648_ACEOF
3649cat confdefs.h >>conftest.$ac_ext
3650cat >>conftest.$ac_ext <<_ACEOF
3651/* end confdefs.h. */
3652$ac_includes_default
3653#include <$ac_header>
3654_ACEOF
3655rm -f conftest.$ac_objext
3656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3657 (eval $ac_compile) 2>conftest.er1
3658 ac_status=$?
3659 grep -v '^ *+' conftest.er1 >conftest.err
3660 rm -f conftest.er1
3661 cat conftest.err >&5
3662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); } &&
b4e70030
JB
3664 { ac_try='test -z "$ac_c_werror_flag"
3665 || test ! -s conftest.err'
bec39cab
AC
3666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3667 (eval $ac_try) 2>&5
3668 ac_status=$?
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); }; } &&
3671 { ac_try='test -s conftest.$ac_objext'
3672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3673 (eval $ac_try) 2>&5
3674 ac_status=$?
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); }; }; then
3677 ac_header_compiler=yes
3678else
3679 echo "$as_me: failed program was:" >&5
3680sed 's/^/| /' conftest.$ac_ext >&5
3681
b4e70030 3682ac_header_compiler=no
bec39cab
AC
3683fi
3684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
3685echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3686echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
3687
3688# Is the header present?
b4e70030
JB
3689echo "$as_me:$LINENO: checking $ac_header presence" >&5
3690echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
3691cat >conftest.$ac_ext <<_ACEOF
3692/* confdefs.h. */
3693_ACEOF
3694cat confdefs.h >>conftest.$ac_ext
3695cat >>conftest.$ac_ext <<_ACEOF
3696/* end confdefs.h. */
3697#include <$ac_header>
3698_ACEOF
3699if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3700 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3701 ac_status=$?
3702 grep -v '^ *+' conftest.er1 >conftest.err
3703 rm -f conftest.er1
3704 cat conftest.err >&5
3705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706 (exit $ac_status); } >/dev/null; then
3707 if test -s conftest.err; then
3708 ac_cpp_err=$ac_c_preproc_warn_flag
3709 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3710 else
3711 ac_cpp_err=
3712 fi
3713else
3714 ac_cpp_err=yes
3715fi
3716if test -z "$ac_cpp_err"; then
3717 ac_header_preproc=yes
3718else
3719 echo "$as_me: failed program was:" >&5
3720sed 's/^/| /' conftest.$ac_ext >&5
3721
3722 ac_header_preproc=no
3723fi
3724rm -f conftest.err conftest.$ac_ext
b4e70030
JB
3725echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3726echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
3727
3728# So? What about this header?
3729case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3730 yes:no: )
3731 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3732echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3734echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3735 ac_header_preproc=yes
3736 ;;
3737 no:yes:* )
3738 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3739echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3740 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3741echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3742 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3743echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3744 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3745echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3747echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3748 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3749echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
3750 (
3751 cat <<\_ASBOX
3752## ------------------------------------------ ##
3753## Report this to the AC_PACKAGE_NAME lists. ##
3754## ------------------------------------------ ##
3755_ASBOX
3756 ) |
3757 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
3758 ;;
3759esac
b4e70030
JB
3760echo "$as_me:$LINENO: checking for $ac_header" >&5
3761echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3762if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3763 echo $ECHO_N "(cached) $ECHO_C" >&6
3764else
3765 eval "$as_ac_Header=\$ac_header_preproc"
3766fi
b4e70030
JB
3767echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3768echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3769
3770fi
3771if test `eval echo '${'$as_ac_Header'}'` = yes; then
3772 cat >>confdefs.h <<_ACEOF
3773#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3774_ACEOF
3775
3776fi
3777
3778done
3779
3780 if test x"$ac_cv_header_libunwind_h" = xyes -a x"$ac_cv_header_libunwind_ia64_h" = xyes; then
3781 enable_libunwind=yes;
3782 fi
3783
b4e70030 3784fi;
bec39cab
AC
3785
3786if test x"$enable_libunwind" = xyes; then
3787
3788for ac_header in libunwind.h
3789do
3790as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
3791if eval "test \"\${$as_ac_Header+set}\" = set"; then
3792 echo "$as_me:$LINENO: checking for $ac_header" >&5
3793echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3794if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3795 echo $ECHO_N "(cached) $ECHO_C" >&6
3796fi
b4e70030
JB
3797echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3798echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3799else
3800 # Is the header compilable?
b4e70030
JB
3801echo "$as_me:$LINENO: checking $ac_header usability" >&5
3802echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
3803cat >conftest.$ac_ext <<_ACEOF
3804/* confdefs.h. */
3805_ACEOF
3806cat confdefs.h >>conftest.$ac_ext
3807cat >>conftest.$ac_ext <<_ACEOF
3808/* end confdefs.h. */
3809$ac_includes_default
3810#include <$ac_header>
3811_ACEOF
3812rm -f conftest.$ac_objext
3813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3814 (eval $ac_compile) 2>conftest.er1
3815 ac_status=$?
3816 grep -v '^ *+' conftest.er1 >conftest.err
3817 rm -f conftest.er1
3818 cat conftest.err >&5
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); } &&
b4e70030
JB
3821 { ac_try='test -z "$ac_c_werror_flag"
3822 || test ! -s conftest.err'
bec39cab
AC
3823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3824 (eval $ac_try) 2>&5
3825 ac_status=$?
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); }; } &&
3828 { ac_try='test -s conftest.$ac_objext'
3829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3830 (eval $ac_try) 2>&5
3831 ac_status=$?
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); }; }; then
3834 ac_header_compiler=yes
3835else
3836 echo "$as_me: failed program was:" >&5
3837sed 's/^/| /' conftest.$ac_ext >&5
3838
b4e70030 3839ac_header_compiler=no
bec39cab
AC
3840fi
3841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
3842echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3843echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
3844
3845# Is the header present?
b4e70030
JB
3846echo "$as_me:$LINENO: checking $ac_header presence" >&5
3847echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
3848cat >conftest.$ac_ext <<_ACEOF
3849/* confdefs.h. */
3850_ACEOF
3851cat confdefs.h >>conftest.$ac_ext
3852cat >>conftest.$ac_ext <<_ACEOF
3853/* end confdefs.h. */
3854#include <$ac_header>
3855_ACEOF
3856if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3857 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3858 ac_status=$?
3859 grep -v '^ *+' conftest.er1 >conftest.err
3860 rm -f conftest.er1
3861 cat conftest.err >&5
3862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863 (exit $ac_status); } >/dev/null; then
3864 if test -s conftest.err; then
3865 ac_cpp_err=$ac_c_preproc_warn_flag
3866 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3867 else
3868 ac_cpp_err=
3869 fi
3870else
3871 ac_cpp_err=yes
3872fi
3873if test -z "$ac_cpp_err"; then
3874 ac_header_preproc=yes
3875else
3876 echo "$as_me: failed program was:" >&5
3877sed 's/^/| /' conftest.$ac_ext >&5
3878
3879 ac_header_preproc=no
3880fi
3881rm -f conftest.err conftest.$ac_ext
b4e70030
JB
3882echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3883echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
3884
3885# So? What about this header?
3886case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3887 yes:no: )
3888 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3889echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3891echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3892 ac_header_preproc=yes
3893 ;;
3894 no:yes:* )
3895 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3896echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3897 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3898echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3899 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3900echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3901 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3902echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3904echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3905 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3906echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
3907 (
3908 cat <<\_ASBOX
3909## ------------------------------------------ ##
3910## Report this to the AC_PACKAGE_NAME lists. ##
3911## ------------------------------------------ ##
3912_ASBOX
3913 ) |
3914 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
3915 ;;
3916esac
b4e70030
JB
3917echo "$as_me:$LINENO: checking for $ac_header" >&5
3918echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3919if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3921else
3922 eval "$as_ac_Header=\$ac_header_preproc"
3923fi
b4e70030
JB
3924echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3925echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3926
3927fi
3928if test `eval echo '${'$as_ac_Header'}'` = yes; then
3929 cat >>confdefs.h <<_ACEOF
3930#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3931_ACEOF
3932
3933fi
3934
3935done
3936
3937
3938for ac_header in libunwind-ia64.h
3939do
3940as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
3941if eval "test \"\${$as_ac_Header+set}\" = set"; then
3942 echo "$as_me:$LINENO: checking for $ac_header" >&5
3943echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3944if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
3945 echo $ECHO_N "(cached) $ECHO_C" >&6
3946fi
b4e70030
JB
3947echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3948echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
3949else
3950 # Is the header compilable?
b4e70030
JB
3951echo "$as_me:$LINENO: checking $ac_header usability" >&5
3952echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
3953cat >conftest.$ac_ext <<_ACEOF
3954/* confdefs.h. */
3955_ACEOF
3956cat confdefs.h >>conftest.$ac_ext
3957cat >>conftest.$ac_ext <<_ACEOF
3958/* end confdefs.h. */
3959$ac_includes_default
3960#include <$ac_header>
3961_ACEOF
3962rm -f conftest.$ac_objext
3963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3964 (eval $ac_compile) 2>conftest.er1
3965 ac_status=$?
3966 grep -v '^ *+' conftest.er1 >conftest.err
3967 rm -f conftest.er1
3968 cat conftest.err >&5
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); } &&
b4e70030
JB
3971 { ac_try='test -z "$ac_c_werror_flag"
3972 || test ! -s conftest.err'
bec39cab
AC
3973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3974 (eval $ac_try) 2>&5
3975 ac_status=$?
3976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 (exit $ac_status); }; } &&
3978 { ac_try='test -s conftest.$ac_objext'
3979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3980 (eval $ac_try) 2>&5
3981 ac_status=$?
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); }; }; then
3984 ac_header_compiler=yes
3985else
3986 echo "$as_me: failed program was:" >&5
3987sed 's/^/| /' conftest.$ac_ext >&5
3988
b4e70030 3989ac_header_compiler=no
bec39cab
AC
3990fi
3991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
3992echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3993echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
3994
3995# Is the header present?
b4e70030
JB
3996echo "$as_me:$LINENO: checking $ac_header presence" >&5
3997echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
3998cat >conftest.$ac_ext <<_ACEOF
3999/* confdefs.h. */
4000_ACEOF
4001cat confdefs.h >>conftest.$ac_ext
4002cat >>conftest.$ac_ext <<_ACEOF
4003/* end confdefs.h. */
4004#include <$ac_header>
4005_ACEOF
4006if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4007 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4008 ac_status=$?
4009 grep -v '^ *+' conftest.er1 >conftest.err
4010 rm -f conftest.er1
4011 cat conftest.err >&5
4012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4013 (exit $ac_status); } >/dev/null; then
4014 if test -s conftest.err; then
4015 ac_cpp_err=$ac_c_preproc_warn_flag
4016 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4017 else
4018 ac_cpp_err=
4019 fi
4020else
4021 ac_cpp_err=yes
4022fi
4023if test -z "$ac_cpp_err"; then
4024 ac_header_preproc=yes
4025else
4026 echo "$as_me: failed program was:" >&5
4027sed 's/^/| /' conftest.$ac_ext >&5
4028
4029 ac_header_preproc=no
4030fi
4031rm -f conftest.err conftest.$ac_ext
b4e70030
JB
4032echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4033echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
4034
4035# So? What about this header?
4036case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4037 yes:no: )
4038 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4039echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4041echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4042 ac_header_preproc=yes
4043 ;;
4044 no:yes:* )
4045 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4046echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4047 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4048echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4049 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4050echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4051 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4052echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4054echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4055 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4056echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
4057 (
4058 cat <<\_ASBOX
4059## ------------------------------------------ ##
4060## Report this to the AC_PACKAGE_NAME lists. ##
4061## ------------------------------------------ ##
4062_ASBOX
4063 ) |
4064 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
4065 ;;
4066esac
b4e70030
JB
4067echo "$as_me:$LINENO: checking for $ac_header" >&5
4068echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4069if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
4070 echo $ECHO_N "(cached) $ECHO_C" >&6
4071else
4072 eval "$as_ac_Header=\$ac_header_preproc"
4073fi
b4e70030
JB
4074echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4075echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
4076
4077fi
4078if test `eval echo '${'$as_ac_Header'}'` = yes; then
4079 cat >>confdefs.h <<_ACEOF
4080#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4081_ACEOF
4082
4083fi
4084
4085done
4086
60ca704f
SE
4087
4088cat >>confdefs.h <<\_ACEOF
bec39cab
AC
4089#define HAVE_LIBUNWIND 1
4090_ACEOF
4091
4092 CONFIG_OBS="$CONFIG_OBS libunwind-frame.o"
4093 CONFIG_DEPS="$CONFIG_DEPS libunwind-frame.o"
4094 CONFIG_SRCS="$CONFIG_SRCS libunwind-frame.c"
4095fi
4096
4097# Profiling support.
b4e70030 4098# Check whether --enable-profiling or --disable-profiling was given.
bec39cab 4099if test "${enable_profiling+set}" = set; then
b4e70030
JB
4100 enableval="$enable_profiling"
4101 case $enableval in
bec39cab
AC
4102 yes | no)
4103 ;;
4104 *)
4105 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profile" >&5
4106echo "$as_me: error: bad value $enableval for --enable-profile" >&2;}
4107 { (exit 1); exit 1; }; } ;;
4108 esac
4109else
4110 enable_profiling=no
b4e70030 4111fi;
bec39cab
AC
4112
4113
4114
4115for ac_func in monstartup _mcleanup
4116do
4117as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
4118echo "$as_me:$LINENO: checking for $ac_func" >&5
4119echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4120if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
4121 echo $ECHO_N "(cached) $ECHO_C" >&6
4122else
4123 cat >conftest.$ac_ext <<_ACEOF
4124/* confdefs.h. */
4125_ACEOF
4126cat confdefs.h >>conftest.$ac_ext
4127cat >>conftest.$ac_ext <<_ACEOF
4128/* end confdefs.h. */
4129/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4131#define $ac_func innocuous_$ac_func
4132
4133/* System header to define __stub macros and hopefully few prototypes,
4134 which can conflict with char $ac_func (); below.
4135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4136 <limits.h> exists even on freestanding compilers. */
4137
4138#ifdef __STDC__
4139# include <limits.h>
4140#else
4141# include <assert.h>
4142#endif
4143
4144#undef $ac_func
4145
b4e70030 4146/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
4147#ifdef __cplusplus
4148extern "C"
b4e70030 4149{
bec39cab 4150#endif
b4e70030
JB
4151/* We use char because int might match the return type of a gcc2
4152 builtin and then its argument prototype would still apply. */
bec39cab
AC
4153char $ac_func ();
4154/* The GNU C library defines this for functions which it implements
4155 to always fail with ENOSYS. Some functions are actually named
4156 something starting with __ and the normal name is an alias. */
b4e70030 4157#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
bec39cab 4158choke me
b4e70030
JB
4159#else
4160char (*f) () = $ac_func;
4161#endif
4162#ifdef __cplusplus
4163}
bec39cab
AC
4164#endif
4165
4166int
4167main ()
4168{
b4e70030 4169return f != $ac_func;
bec39cab
AC
4170 ;
4171 return 0;
4172}
4173_ACEOF
4174rm -f conftest.$ac_objext conftest$ac_exeext
4175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4176 (eval $ac_link) 2>conftest.er1
4177 ac_status=$?
4178 grep -v '^ *+' conftest.er1 >conftest.err
4179 rm -f conftest.er1
4180 cat conftest.err >&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); } &&
b4e70030
JB
4183 { ac_try='test -z "$ac_c_werror_flag"
4184 || test ! -s conftest.err'
bec39cab
AC
4185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4186 (eval $ac_try) 2>&5
4187 ac_status=$?
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; } &&
4190 { ac_try='test -s conftest$ac_exeext'
4191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4192 (eval $ac_try) 2>&5
4193 ac_status=$?
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195 (exit $ac_status); }; }; then
4196 eval "$as_ac_var=yes"
4197else
4198 echo "$as_me: failed program was:" >&5
4199sed 's/^/| /' conftest.$ac_ext >&5
4200
b4e70030 4201eval "$as_ac_var=no"
bec39cab
AC
4202fi
4203rm -f conftest.err conftest.$ac_objext \
4204 conftest$ac_exeext conftest.$ac_ext
4205fi
b4e70030
JB
4206echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4207echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
4208if test `eval echo '${'$as_ac_var'}'` = yes; then
4209 cat >>confdefs.h <<_ACEOF
4210#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4211_ACEOF
4212
4213fi
4214done
4215
b4e70030
JB
4216echo "$as_me:$LINENO: checking for _etext" >&5
4217echo $ECHO_N "checking for _etext... $ECHO_C" >&6
bec39cab
AC
4218if test "${ac_cv_var__etext+set}" = set; then
4219 echo $ECHO_N "(cached) $ECHO_C" >&6
4220else
4221 cat >conftest.$ac_ext <<_ACEOF
4222/* confdefs.h. */
4223_ACEOF
4224cat confdefs.h >>conftest.$ac_ext
4225cat >>conftest.$ac_ext <<_ACEOF
4226/* end confdefs.h. */
4227#include <stdlib.h>
4228extern char _etext;
4229
4230int
4231main ()
4232{
4233free (&_etext);
4234 ;
4235 return 0;
4236}
4237_ACEOF
4238rm -f conftest.$ac_objext conftest$ac_exeext
4239if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4240 (eval $ac_link) 2>conftest.er1
4241 ac_status=$?
4242 grep -v '^ *+' conftest.er1 >conftest.err
4243 rm -f conftest.er1
4244 cat conftest.err >&5
4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246 (exit $ac_status); } &&
b4e70030
JB
4247 { ac_try='test -z "$ac_c_werror_flag"
4248 || test ! -s conftest.err'
bec39cab
AC
4249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4250 (eval $ac_try) 2>&5
4251 ac_status=$?
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); }; } &&
4254 { ac_try='test -s conftest$ac_exeext'
4255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4256 (eval $ac_try) 2>&5
4257 ac_status=$?
4258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259 (exit $ac_status); }; }; then
4260 ac_cv_var__etext=yes
4261else
4262 echo "$as_me: failed program was:" >&5
4263sed 's/^/| /' conftest.$ac_ext >&5
4264
b4e70030 4265ac_cv_var__etext=no
bec39cab
AC
4266fi
4267rm -f conftest.err conftest.$ac_objext \
4268 conftest$ac_exeext conftest.$ac_ext
4269fi
b4e70030
JB
4270echo "$as_me:$LINENO: result: $ac_cv_var__etext" >&5
4271echo "${ECHO_T}$ac_cv_var__etext" >&6
bec39cab
AC
4272if test $ac_cv_var__etext = yes; then
4273
4274cat >>confdefs.h <<\_ACEOF
4275#define HAVE__ETEXT 1
4276_ACEOF
4277
4278fi
4279if test "$enable_profiling" = yes ; then
4280 if test $ac_cv_func_monstartup = no || test $ac_cv_func__mcleanup = no; then
4281 { { echo "$as_me:$LINENO: error: --enable-profiling requires monstartup and _mcleanup" >&5
4282echo "$as_me: error: --enable-profiling requires monstartup and _mcleanup" >&2;}
4283 { (exit 1); exit 1; }; }
4284 fi
4285 PROFILE_CFLAGS=-pg
4286 OLD_CFLAGS="$CFLAGS"
4287 CFLAGS="$CFLAGS $PROFILE_CFLAGS"
4288
b4e70030
JB
4289 echo "$as_me:$LINENO: checking whether $CC supports -pg" >&5
4290echo $ECHO_N "checking whether $CC supports -pg... $ECHO_C" >&6
bec39cab
AC
4291if test "${ac_cv_cc_supports_pg+set}" = set; then
4292 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4293else
bec39cab
AC
4294 cat >conftest.$ac_ext <<_ACEOF
4295/* confdefs.h. */
4296_ACEOF
4297cat confdefs.h >>conftest.$ac_ext
4298cat >>conftest.$ac_ext <<_ACEOF
4299/* end confdefs.h. */
4300
4301int
4302main ()
4303{
4304int x;
4305 ;
4306 return 0;
4307}
4308_ACEOF
4309rm -f conftest.$ac_objext
4310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4311 (eval $ac_compile) 2>conftest.er1
4312 ac_status=$?
4313 grep -v '^ *+' conftest.er1 >conftest.err
4314 rm -f conftest.er1
4315 cat conftest.err >&5
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); } &&
b4e70030
JB
4318 { ac_try='test -z "$ac_c_werror_flag"
4319 || test ! -s conftest.err'
bec39cab
AC
4320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4321 (eval $ac_try) 2>&5
4322 ac_status=$?
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); }; } &&
4325 { ac_try='test -s conftest.$ac_objext'
4326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4327 (eval $ac_try) 2>&5
4328 ac_status=$?
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); }; }; then
4331 ac_cv_cc_supports_pg=yes
4332else
4333 echo "$as_me: failed program was:" >&5
4334sed 's/^/| /' conftest.$ac_ext >&5
4335
b4e70030 4336ac_cv_cc_supports_pg=no
bec39cab
AC
4337fi
4338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4339fi
b4e70030
JB
4340echo "$as_me:$LINENO: result: $ac_cv_cc_supports_pg" >&5
4341echo "${ECHO_T}$ac_cv_cc_supports_pg" >&6
bec39cab
AC
4342
4343 if test $ac_cv_cc_supports_pg = no; then
4344 { { echo "$as_me:$LINENO: error: --enable-profiling requires a compiler which supports -pg" >&5
4345echo "$as_me: error: --enable-profiling requires a compiler which supports -pg" >&2;}
4346 { (exit 1); exit 1; }; }
4347 fi
4348
4349 CFLAGS="$OLD_CFLAGS"
4350fi
4351
4352# --------------------- #
4353# Checks for programs. #
4354# --------------------- #
4355
4356for ac_prog in gawk mawk nawk awk
4357do
4358 # Extract the first word of "$ac_prog", so it can be a program name with args.
4359set dummy $ac_prog; ac_word=$2
b4e70030
JB
4360echo "$as_me:$LINENO: checking for $ac_word" >&5
4361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4362if test "${ac_cv_prog_AWK+set}" = set; then
4363 echo $ECHO_N "(cached) $ECHO_C" >&6
4364else
4365 if test -n "$AWK"; then
4366 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4367else
4368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369for as_dir in $PATH
4370do
4371 IFS=$as_save_IFS
4372 test -z "$as_dir" && as_dir=.
4373 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4375 ac_cv_prog_AWK="$ac_prog"
4376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4377 break 2
4378 fi
4379done
4380done
4381
4382fi
4383fi
4384AWK=$ac_cv_prog_AWK
4385if test -n "$AWK"; then
b4e70030
JB
4386 echo "$as_me:$LINENO: result: $AWK" >&5
4387echo "${ECHO_T}$AWK" >&6
bec39cab 4388else
b4e70030
JB
4389 echo "$as_me:$LINENO: result: no" >&5
4390echo "${ECHO_T}no" >&6
bec39cab
AC
4391fi
4392
4393 test -n "$AWK" && break
4394done
4395
4396# Find a good install program. We prefer a C program (faster),
4397# so one script is as good as another. But avoid the broken or
4398# incompatible versions:
4399# SysV /etc/install, /usr/sbin/install
4400# SunOS /usr/etc/install
4401# IRIX /sbin/install
4402# AIX /bin/install
4403# AmigaOS /C/install, which installs bootblocks on floppy discs
4404# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4405# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4406# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4407# OS/2's system install, which has a completely different semantic
4408# ./install, which can be erroneously created by make from ./install.sh.
b4e70030
JB
4409echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4410echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
bec39cab
AC
4411if test -z "$INSTALL"; then
4412if test "${ac_cv_path_install+set}" = set; then
4413 echo $ECHO_N "(cached) $ECHO_C" >&6
4414else
4415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416for as_dir in $PATH
4417do
4418 IFS=$as_save_IFS
4419 test -z "$as_dir" && as_dir=.
4420 # Account for people who put trailing slashes in PATH elements.
4421case $as_dir/ in
4422 ./ | .// | /cC/* | \
4423 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4424 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4425 /usr/ucb/* ) ;;
c906108c 4426 *)
bec39cab
AC
4427 # OSF1 and SCO ODT 3.0 have their own names for install.
4428 # Don't use installbsd from OSF since it installs stuff as root
4429 # by default.
4430 for ac_prog in ginstall scoinst install; do
4431 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4432 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
bec39cab
AC
4433 if test $ac_prog = install &&
4434 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4435 # AIX install. It has an incompatible calling convention.
4436 :
4437 elif test $ac_prog = install &&
4438 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4439 # program-specific install script used by HP pwplus--don't use.
4440 :
4441 else
4442 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4443 break 3
4444 fi
4445 fi
4446 done
4447 done
4448 ;;
c906108c 4449esac
bec39cab
AC
4450done
4451
4452
4453fi
4454 if test "${ac_cv_path_install+set}" = set; then
4455 INSTALL=$ac_cv_path_install
4456 else
b4e70030
JB
4457 # As a last resort, use the slow shell script. We don't cache a
4458 # path for INSTALL within a source directory, because that will
bec39cab 4459 # break other packages using the cache if that directory is
b4e70030 4460 # removed, or if the path is relative.
bec39cab
AC
4461 INSTALL=$ac_install_sh
4462 fi
4463fi
b4e70030
JB
4464echo "$as_me:$LINENO: result: $INSTALL" >&5
4465echo "${ECHO_T}$INSTALL" >&6
bec39cab
AC
4466
4467# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4468# It thinks the first close brace ends the variable substitution.
4469test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4470
4471test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4472
4473test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4474
b4e70030
JB
4475echo "$as_me:$LINENO: checking whether ln -s works" >&5
4476echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
bec39cab
AC
4477LN_S=$as_ln_s
4478if test "$LN_S" = "ln -s"; then
b4e70030
JB
4479 echo "$as_me:$LINENO: result: yes" >&5
4480echo "${ECHO_T}yes" >&6
bec39cab 4481else
b4e70030
JB
4482 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4483echo "${ECHO_T}no, using $LN_S" >&6
bec39cab
AC
4484fi
4485
4486if test -n "$ac_tool_prefix"; then
4487 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4488set dummy ${ac_tool_prefix}ranlib; ac_word=$2
b4e70030
JB
4489echo "$as_me:$LINENO: checking for $ac_word" >&5
4490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4491if test "${ac_cv_prog_RANLIB+set}" = set; then
4492 echo $ECHO_N "(cached) $ECHO_C" >&6
4493else
4494 if test -n "$RANLIB"; then
4495 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4496else
4497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4498for as_dir in $PATH
4499do
4500 IFS=$as_save_IFS
4501 test -z "$as_dir" && as_dir=.
4502 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4504 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4506 break 2
4507 fi
4508done
4509done
4510
4511fi
4512fi
4513RANLIB=$ac_cv_prog_RANLIB
4514if test -n "$RANLIB"; then
b4e70030
JB
4515 echo "$as_me:$LINENO: result: $RANLIB" >&5
4516echo "${ECHO_T}$RANLIB" >&6
bec39cab 4517else
b4e70030
JB
4518 echo "$as_me:$LINENO: result: no" >&5
4519echo "${ECHO_T}no" >&6
bec39cab
AC
4520fi
4521
4522fi
4523if test -z "$ac_cv_prog_RANLIB"; then
4524 ac_ct_RANLIB=$RANLIB
4525 # Extract the first word of "ranlib", so it can be a program name with args.
4526set dummy ranlib; ac_word=$2
b4e70030
JB
4527echo "$as_me:$LINENO: checking for $ac_word" >&5
4528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4529if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4530 echo $ECHO_N "(cached) $ECHO_C" >&6
4531else
4532 if test -n "$ac_ct_RANLIB"; then
4533 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4534else
4535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536for as_dir in $PATH
4537do
4538 IFS=$as_save_IFS
4539 test -z "$as_dir" && as_dir=.
4540 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4542 ac_cv_prog_ac_ct_RANLIB="ranlib"
4543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4544 break 2
4545 fi
4546done
4547done
4548
b4e70030 4549 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
bec39cab
AC
4550fi
4551fi
4552ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4553if test -n "$ac_ct_RANLIB"; then
b4e70030
JB
4554 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4555echo "${ECHO_T}$ac_ct_RANLIB" >&6
bec39cab 4556else
b4e70030
JB
4557 echo "$as_me:$LINENO: result: no" >&5
4558echo "${ECHO_T}no" >&6
bec39cab
AC
4559fi
4560
b4e70030 4561 RANLIB=$ac_ct_RANLIB
bec39cab
AC
4562else
4563 RANLIB="$ac_cv_prog_RANLIB"
4564fi
4565
4566for ac_prog in 'bison -y' byacc
4567do
4568 # Extract the first word of "$ac_prog", so it can be a program name with args.
4569set dummy $ac_prog; ac_word=$2
b4e70030
JB
4570echo "$as_me:$LINENO: checking for $ac_word" >&5
4571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4572if test "${ac_cv_prog_YACC+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
4574else
4575 if test -n "$YACC"; then
4576 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4577else
4578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4579for as_dir in $PATH
4580do
4581 IFS=$as_save_IFS
4582 test -z "$as_dir" && as_dir=.
4583 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4584 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4585 ac_cv_prog_YACC="$ac_prog"
4586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4587 break 2
4588 fi
4589done
4590done
4591
4592fi
4593fi
4594YACC=$ac_cv_prog_YACC
4595if test -n "$YACC"; then
b4e70030
JB
4596 echo "$as_me:$LINENO: result: $YACC" >&5
4597echo "${ECHO_T}$YACC" >&6
bec39cab 4598else
b4e70030
JB
4599 echo "$as_me:$LINENO: result: no" >&5
4600echo "${ECHO_T}no" >&6
bec39cab
AC
4601fi
4602
4603 test -n "$YACC" && break
4604done
4605test -n "$YACC" || YACC="yacc"
4606
4607
4608if test -n "$ac_tool_prefix"; then
4609 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4610set dummy ${ac_tool_prefix}ar; ac_word=$2
b4e70030
JB
4611echo "$as_me:$LINENO: checking for $ac_word" >&5
4612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4613if test "${ac_cv_prog_AR+set}" = set; then
4614 echo $ECHO_N "(cached) $ECHO_C" >&6
4615else
4616 if test -n "$AR"; then
4617 ac_cv_prog_AR="$AR" # Let the user override the test.
4618else
4619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620for as_dir in $PATH
4621do
4622 IFS=$as_save_IFS
4623 test -z "$as_dir" && as_dir=.
4624 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4626 ac_cv_prog_AR="${ac_tool_prefix}ar"
4627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4628 break 2
4629 fi
4630done
4631done
4632
4633fi
4634fi
4635AR=$ac_cv_prog_AR
4636if test -n "$AR"; then
b4e70030
JB
4637 echo "$as_me:$LINENO: result: $AR" >&5
4638echo "${ECHO_T}$AR" >&6
bec39cab 4639else
b4e70030
JB
4640 echo "$as_me:$LINENO: result: no" >&5
4641echo "${ECHO_T}no" >&6
bec39cab
AC
4642fi
4643
4644fi
4645if test -z "$ac_cv_prog_AR"; then
4646 ac_ct_AR=$AR
4647 # Extract the first word of "ar", so it can be a program name with args.
4648set dummy ar; ac_word=$2
b4e70030
JB
4649echo "$as_me:$LINENO: checking for $ac_word" >&5
4650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4651if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4652 echo $ECHO_N "(cached) $ECHO_C" >&6
4653else
4654 if test -n "$ac_ct_AR"; then
4655 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4656else
4657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658for as_dir in $PATH
4659do
4660 IFS=$as_save_IFS
4661 test -z "$as_dir" && as_dir=.
4662 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4664 ac_cv_prog_ac_ct_AR="ar"
4665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4666 break 2
4667 fi
4668done
4669done
4670
4671fi
4672fi
4673ac_ct_AR=$ac_cv_prog_ac_ct_AR
4674if test -n "$ac_ct_AR"; then
b4e70030
JB
4675 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4676echo "${ECHO_T}$ac_ct_AR" >&6
bec39cab 4677else
b4e70030
JB
4678 echo "$as_me:$LINENO: result: no" >&5
4679echo "${ECHO_T}no" >&6
bec39cab
AC
4680fi
4681
b4e70030 4682 AR=$ac_ct_AR
bec39cab
AC
4683else
4684 AR="$ac_cv_prog_AR"
4685fi
4686
4687if test -n "$ac_tool_prefix"; then
4688 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4689set dummy ${ac_tool_prefix}dlltool; ac_word=$2
b4e70030
JB
4690echo "$as_me:$LINENO: checking for $ac_word" >&5
4691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4692if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4693 echo $ECHO_N "(cached) $ECHO_C" >&6
4694else
4695 if test -n "$DLLTOOL"; then
4696 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4697else
4698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4699for as_dir in $PATH
4700do
4701 IFS=$as_save_IFS
4702 test -z "$as_dir" && as_dir=.
4703 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4705 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4707 break 2
4708 fi
4709done
4710done
4711
4712fi
4713fi
4714DLLTOOL=$ac_cv_prog_DLLTOOL
4715if test -n "$DLLTOOL"; then
b4e70030
JB
4716 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4717echo "${ECHO_T}$DLLTOOL" >&6
bec39cab 4718else
b4e70030
JB
4719 echo "$as_me:$LINENO: result: no" >&5
4720echo "${ECHO_T}no" >&6
bec39cab
AC
4721fi
4722
4723fi
4724if test -z "$ac_cv_prog_DLLTOOL"; then
4725 ac_ct_DLLTOOL=$DLLTOOL
4726 # Extract the first word of "dlltool", so it can be a program name with args.
4727set dummy dlltool; ac_word=$2
b4e70030
JB
4728echo "$as_me:$LINENO: checking for $ac_word" >&5
4729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4730if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4731 echo $ECHO_N "(cached) $ECHO_C" >&6
4732else
4733 if test -n "$ac_ct_DLLTOOL"; then
4734 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4735else
4736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737for as_dir in $PATH
4738do
4739 IFS=$as_save_IFS
4740 test -z "$as_dir" && as_dir=.
4741 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4742 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4743 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4745 break 2
4746 fi
4747done
4748done
4749
4750fi
4751fi
4752ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4753if test -n "$ac_ct_DLLTOOL"; then
b4e70030
JB
4754 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4755echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
bec39cab 4756else
b4e70030
JB
4757 echo "$as_me:$LINENO: result: no" >&5
4758echo "${ECHO_T}no" >&6
bec39cab
AC
4759fi
4760
b4e70030 4761 DLLTOOL=$ac_ct_DLLTOOL
bec39cab
AC
4762else
4763 DLLTOOL="$ac_cv_prog_DLLTOOL"
4764fi
4765
4766if test -n "$ac_tool_prefix"; then
4767 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4768set dummy ${ac_tool_prefix}windres; ac_word=$2
b4e70030
JB
4769echo "$as_me:$LINENO: checking for $ac_word" >&5
4770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4771if test "${ac_cv_prog_WINDRES+set}" = set; then
4772 echo $ECHO_N "(cached) $ECHO_C" >&6
4773else
4774 if test -n "$WINDRES"; then
4775 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4776else
4777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778for as_dir in $PATH
4779do
4780 IFS=$as_save_IFS
4781 test -z "$as_dir" && as_dir=.
4782 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4784 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4786 break 2
4787 fi
4788done
4789done
4790
4791fi
4792fi
4793WINDRES=$ac_cv_prog_WINDRES
4794if test -n "$WINDRES"; then
b4e70030
JB
4795 echo "$as_me:$LINENO: result: $WINDRES" >&5
4796echo "${ECHO_T}$WINDRES" >&6
bec39cab 4797else
b4e70030
JB
4798 echo "$as_me:$LINENO: result: no" >&5
4799echo "${ECHO_T}no" >&6
bec39cab
AC
4800fi
4801
4802fi
4803if test -z "$ac_cv_prog_WINDRES"; then
4804 ac_ct_WINDRES=$WINDRES
4805 # Extract the first word of "windres", so it can be a program name with args.
4806set dummy windres; ac_word=$2
b4e70030
JB
4807echo "$as_me:$LINENO: checking for $ac_word" >&5
4808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4809if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4810 echo $ECHO_N "(cached) $ECHO_C" >&6
4811else
4812 if test -n "$ac_ct_WINDRES"; then
4813 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4814else
4815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816for as_dir in $PATH
4817do
4818 IFS=$as_save_IFS
4819 test -z "$as_dir" && as_dir=.
4820 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4822 ac_cv_prog_ac_ct_WINDRES="windres"
4823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4824 break 2
4825 fi
4826done
4827done
4828
4829fi
4830fi
4831ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4832if test -n "$ac_ct_WINDRES"; then
b4e70030
JB
4833 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4834echo "${ECHO_T}$ac_ct_WINDRES" >&6
bec39cab 4835else
b4e70030
JB
4836 echo "$as_me:$LINENO: result: no" >&5
4837echo "${ECHO_T}no" >&6
c906108c 4838fi
bec39cab 4839
b4e70030 4840 WINDRES=$ac_ct_WINDRES
c906108c 4841else
bec39cab 4842 WINDRES="$ac_cv_prog_WINDRES"
c906108c
SS
4843fi
4844
bec39cab
AC
4845
4846# Needed for GNU/Hurd.
4847if test -n "$ac_tool_prefix"; then
4848 # Extract the first word of "${ac_tool_prefix}mig", so it can be a program name with args.
4849set dummy ${ac_tool_prefix}mig; ac_word=$2
b4e70030
JB
4850echo "$as_me:$LINENO: checking for $ac_word" >&5
4851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4852if test "${ac_cv_prog_MIG+set}" = set; then
4853 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 4854else
bec39cab
AC
4855 if test -n "$MIG"; then
4856 ac_cv_prog_MIG="$MIG" # Let the user override the test.
4857else
4858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859for as_dir in $PATH
4860do
4861 IFS=$as_save_IFS
4862 test -z "$as_dir" && as_dir=.
4863 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4865 ac_cv_prog_MIG="${ac_tool_prefix}mig"
4866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4867 break 2
4868 fi
4869done
4870done
4871
c906108c 4872fi
bec39cab
AC
4873fi
4874MIG=$ac_cv_prog_MIG
4875if test -n "$MIG"; then
b4e70030
JB
4876 echo "$as_me:$LINENO: result: $MIG" >&5
4877echo "${ECHO_T}$MIG" >&6
c906108c 4878else
b4e70030
JB
4879 echo "$as_me:$LINENO: result: no" >&5
4880echo "${ECHO_T}no" >&6
c906108c
SS
4881fi
4882
bec39cab
AC
4883fi
4884if test -z "$ac_cv_prog_MIG"; then
4885 ac_ct_MIG=$MIG
4886 # Extract the first word of "mig", so it can be a program name with args.
4887set dummy mig; ac_word=$2
b4e70030
JB
4888echo "$as_me:$LINENO: checking for $ac_word" >&5
4889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
bec39cab
AC
4890if test "${ac_cv_prog_ac_ct_MIG+set}" = set; then
4891 echo $ECHO_N "(cached) $ECHO_C" >&6
4892else
4893 if test -n "$ac_ct_MIG"; then
4894 ac_cv_prog_ac_ct_MIG="$ac_ct_MIG" # Let the user override the test.
4895else
4896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897for as_dir in $PATH
4898do
4899 IFS=$as_save_IFS
4900 test -z "$as_dir" && as_dir=.
4901 for ac_exec_ext in '' $ac_executable_extensions; do
b4e70030 4902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
bec39cab
AC
4903 ac_cv_prog_ac_ct_MIG="mig"
4904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4905 break 2
4906 fi
4907done
4908done
c906108c 4909
bec39cab
AC
4910fi
4911fi
4912ac_ct_MIG=$ac_cv_prog_ac_ct_MIG
4913if test -n "$ac_ct_MIG"; then
b4e70030
JB
4914 echo "$as_me:$LINENO: result: $ac_ct_MIG" >&5
4915echo "${ECHO_T}$ac_ct_MIG" >&6
bec39cab 4916else
b4e70030
JB
4917 echo "$as_me:$LINENO: result: no" >&5
4918echo "${ECHO_T}no" >&6
bec39cab 4919fi
c906108c 4920
b4e70030 4921 MIG=$ac_ct_MIG
bec39cab
AC
4922else
4923 MIG="$ac_cv_prog_MIG"
4924fi
c906108c 4925
c906108c 4926
bec39cab
AC
4927# ---------------------- #
4928# Checks for libraries. #
4929# ---------------------- #
c906108c 4930
bec39cab 4931# We might need to link with -lm; most simulators need it.
c906108c 4932
b4e70030
JB
4933echo "$as_me:$LINENO: checking for main in -lm" >&5
4934echo $ECHO_N "checking for main in -lm... $ECHO_C" >&6
bec39cab
AC
4935if test "${ac_cv_lib_m_main+set}" = set; then
4936 echo $ECHO_N "(cached) $ECHO_C" >&6
4937else
4938 ac_check_lib_save_LIBS=$LIBS
4939LIBS="-lm $LIBS"
4940cat >conftest.$ac_ext <<_ACEOF
4941/* confdefs.h. */
4942_ACEOF
4943cat confdefs.h >>conftest.$ac_ext
4944cat >>conftest.$ac_ext <<_ACEOF
4945/* end confdefs.h. */
c906108c 4946
c906108c 4947
bec39cab
AC
4948int
4949main ()
4950{
b4e70030 4951main ();
bec39cab
AC
4952 ;
4953 return 0;
4954}
4955_ACEOF
4956rm -f conftest.$ac_objext conftest$ac_exeext
4957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4958 (eval $ac_link) 2>conftest.er1
4959 ac_status=$?
4960 grep -v '^ *+' conftest.er1 >conftest.err
4961 rm -f conftest.er1
4962 cat conftest.err >&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); } &&
b4e70030
JB
4965 { ac_try='test -z "$ac_c_werror_flag"
4966 || test ! -s conftest.err'
bec39cab
AC
4967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4968 (eval $ac_try) 2>&5
4969 ac_status=$?
4970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971 (exit $ac_status); }; } &&
4972 { ac_try='test -s conftest$ac_exeext'
4973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4974 (eval $ac_try) 2>&5
4975 ac_status=$?
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); }; }; then
4978 ac_cv_lib_m_main=yes
4979else
4980 echo "$as_me: failed program was:" >&5
4981sed 's/^/| /' conftest.$ac_ext >&5
4982
b4e70030 4983ac_cv_lib_m_main=no
bec39cab
AC
4984fi
4985rm -f conftest.err conftest.$ac_objext \
4986 conftest$ac_exeext conftest.$ac_ext
4987LIBS=$ac_check_lib_save_LIBS
4988fi
b4e70030
JB
4989echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
4990echo "${ECHO_T}$ac_cv_lib_m_main" >&6
bec39cab
AC
4991if test $ac_cv_lib_m_main = yes; then
4992 cat >>confdefs.h <<_ACEOF
4993#define HAVE_LIBM 1
4994_ACEOF
4995
4996 LIBS="-lm $LIBS"
c906108c 4997
c906108c 4998fi
bec39cab
AC
4999
5000
5001# We need to link with -lw to get `wctype' on Solaris before Solaris
5002# 2.6. Solaris 2.6 and beyond have this function in libc, and have a
5003# libw that some versions of the GNU linker cannot hanle (GNU ld 2.9.1
5004# is known to have this problem). Therefore we avoid libw if we can.
b4e70030
JB
5005echo "$as_me:$LINENO: checking for wctype" >&5
5006echo $ECHO_N "checking for wctype... $ECHO_C" >&6
bec39cab
AC
5007if test "${ac_cv_func_wctype+set}" = set; then
5008 echo $ECHO_N "(cached) $ECHO_C" >&6
5009else
5010 cat >conftest.$ac_ext <<_ACEOF
5011/* confdefs.h. */
5012_ACEOF
5013cat confdefs.h >>conftest.$ac_ext
5014cat >>conftest.$ac_ext <<_ACEOF
5015/* end confdefs.h. */
5016/* Define wctype to an innocuous variant, in case <limits.h> declares wctype.
5017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5018#define wctype innocuous_wctype
5019
5020/* System header to define __stub macros and hopefully few prototypes,
5021 which can conflict with char wctype (); below.
5022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5023 <limits.h> exists even on freestanding compilers. */
5024
5025#ifdef __STDC__
5026# include <limits.h>
5027#else
5028# include <assert.h>
5029#endif
5030
5031#undef wctype
5032
b4e70030 5033/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5034#ifdef __cplusplus
5035extern "C"
b4e70030 5036{
bec39cab 5037#endif
b4e70030
JB
5038/* We use char because int might match the return type of a gcc2
5039 builtin and then its argument prototype would still apply. */
bec39cab
AC
5040char wctype ();
5041/* The GNU C library defines this for functions which it implements
5042 to always fail with ENOSYS. Some functions are actually named
5043 something starting with __ and the normal name is an alias. */
b4e70030 5044#if defined (__stub_wctype) || defined (__stub___wctype)
bec39cab 5045choke me
b4e70030
JB
5046#else
5047char (*f) () = wctype;
5048#endif
5049#ifdef __cplusplus
5050}
bec39cab
AC
5051#endif
5052
5053int
5054main ()
5055{
b4e70030 5056return f != wctype;
bec39cab
AC
5057 ;
5058 return 0;
5059}
5060_ACEOF
5061rm -f conftest.$ac_objext conftest$ac_exeext
5062if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5063 (eval $ac_link) 2>conftest.er1
5064 ac_status=$?
5065 grep -v '^ *+' conftest.er1 >conftest.err
5066 rm -f conftest.er1
5067 cat conftest.err >&5
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); } &&
b4e70030
JB
5070 { ac_try='test -z "$ac_c_werror_flag"
5071 || test ! -s conftest.err'
bec39cab
AC
5072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5073 (eval $ac_try) 2>&5
5074 ac_status=$?
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); }; } &&
5077 { ac_try='test -s conftest$ac_exeext'
5078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5079 (eval $ac_try) 2>&5
5080 ac_status=$?
5081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5082 (exit $ac_status); }; }; then
5083 ac_cv_func_wctype=yes
5084else
5085 echo "$as_me: failed program was:" >&5
5086sed 's/^/| /' conftest.$ac_ext >&5
5087
b4e70030 5088ac_cv_func_wctype=no
bec39cab
AC
5089fi
5090rm -f conftest.err conftest.$ac_objext \
5091 conftest$ac_exeext conftest.$ac_ext
5092fi
b4e70030
JB
5093echo "$as_me:$LINENO: result: $ac_cv_func_wctype" >&5
5094echo "${ECHO_T}$ac_cv_func_wctype" >&6
bec39cab
AC
5095if test $ac_cv_func_wctype = yes; then
5096 :
c906108c 5097else
c906108c 5098
b4e70030
JB
5099echo "$as_me:$LINENO: checking for wctype in -lw" >&5
5100echo $ECHO_N "checking for wctype in -lw... $ECHO_C" >&6
bec39cab
AC
5101if test "${ac_cv_lib_w_wctype+set}" = set; then
5102 echo $ECHO_N "(cached) $ECHO_C" >&6
5103else
5104 ac_check_lib_save_LIBS=$LIBS
5105LIBS="-lw $LIBS"
5106cat >conftest.$ac_ext <<_ACEOF
5107/* confdefs.h. */
5108_ACEOF
5109cat confdefs.h >>conftest.$ac_ext
5110cat >>conftest.$ac_ext <<_ACEOF
5111/* end confdefs.h. */
c906108c 5112
b4e70030 5113/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5114#ifdef __cplusplus
5115extern "C"
5116#endif
b4e70030
JB
5117/* We use char because int might match the return type of a gcc2
5118 builtin and then its argument prototype would still apply. */
bec39cab
AC
5119char wctype ();
5120int
5121main ()
5122{
b4e70030 5123wctype ();
bec39cab
AC
5124 ;
5125 return 0;
5126}
5127_ACEOF
5128rm -f conftest.$ac_objext conftest$ac_exeext
5129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5130 (eval $ac_link) 2>conftest.er1
5131 ac_status=$?
5132 grep -v '^ *+' conftest.er1 >conftest.err
5133 rm -f conftest.er1
5134 cat conftest.err >&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); } &&
b4e70030
JB
5137 { ac_try='test -z "$ac_c_werror_flag"
5138 || test ! -s conftest.err'
bec39cab
AC
5139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5140 (eval $ac_try) 2>&5
5141 ac_status=$?
5142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5143 (exit $ac_status); }; } &&
5144 { ac_try='test -s conftest$ac_exeext'
5145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5146 (eval $ac_try) 2>&5
5147 ac_status=$?
5148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149 (exit $ac_status); }; }; then
5150 ac_cv_lib_w_wctype=yes
5151else
5152 echo "$as_me: failed program was:" >&5
5153sed 's/^/| /' conftest.$ac_ext >&5
5154
b4e70030 5155ac_cv_lib_w_wctype=no
bec39cab
AC
5156fi
5157rm -f conftest.err conftest.$ac_objext \
5158 conftest$ac_exeext conftest.$ac_ext
5159LIBS=$ac_check_lib_save_LIBS
5160fi
b4e70030
JB
5161echo "$as_me:$LINENO: result: $ac_cv_lib_w_wctype" >&5
5162echo "${ECHO_T}$ac_cv_lib_w_wctype" >&6
bec39cab
AC
5163if test $ac_cv_lib_w_wctype = yes; then
5164 cat >>confdefs.h <<_ACEOF
5165#define HAVE_LIBW 1
5166_ACEOF
c906108c 5167
bec39cab 5168 LIBS="-lw $LIBS"
c906108c 5169
bec39cab 5170fi
c906108c 5171
bec39cab 5172fi
c906108c 5173
ddc9cd0f 5174
bec39cab 5175# Some systems (e.g. Solaris) have `gethostbyname' in libnsl.
b4e70030
JB
5176echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
5177echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6
bec39cab
AC
5178if test "${ac_cv_search_gethostbyname+set}" = set; then
5179 echo $ECHO_N "(cached) $ECHO_C" >&6
5180else
5181 ac_func_search_save_LIBS=$LIBS
b4e70030 5182ac_cv_search_gethostbyname=no
bec39cab
AC
5183cat >conftest.$ac_ext <<_ACEOF
5184/* confdefs.h. */
5185_ACEOF
5186cat confdefs.h >>conftest.$ac_ext
5187cat >>conftest.$ac_ext <<_ACEOF
5188/* end confdefs.h. */
ddc9cd0f 5189
b4e70030 5190/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5191#ifdef __cplusplus
5192extern "C"
5193#endif
b4e70030
JB
5194/* We use char because int might match the return type of a gcc2
5195 builtin and then its argument prototype would still apply. */
bec39cab
AC
5196char gethostbyname ();
5197int
5198main ()
5199{
b4e70030 5200gethostbyname ();
bec39cab
AC
5201 ;
5202 return 0;
5203}
5204_ACEOF
b4e70030 5205rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
5206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5207 (eval $ac_link) 2>conftest.er1
5208 ac_status=$?
5209 grep -v '^ *+' conftest.er1 >conftest.err
5210 rm -f conftest.er1
5211 cat conftest.err >&5
5212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5213 (exit $ac_status); } &&
b4e70030
JB
5214 { ac_try='test -z "$ac_c_werror_flag"
5215 || test ! -s conftest.err'
bec39cab
AC
5216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5217 (eval $ac_try) 2>&5
5218 ac_status=$?
5219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220 (exit $ac_status); }; } &&
5221 { ac_try='test -s conftest$ac_exeext'
5222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5223 (eval $ac_try) 2>&5
5224 ac_status=$?
5225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226 (exit $ac_status); }; }; then
b4e70030 5227 ac_cv_search_gethostbyname="none required"
bec39cab
AC
5228else
5229 echo "$as_me: failed program was:" >&5
5230sed 's/^/| /' conftest.$ac_ext >&5
ddc9cd0f 5231
bec39cab
AC
5232fi
5233rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
5234 conftest$ac_exeext conftest.$ac_ext
5235if test "$ac_cv_search_gethostbyname" = no; then
5236 for ac_lib in nsl; do
5237 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5238 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
5239/* confdefs.h. */
5240_ACEOF
5241cat confdefs.h >>conftest.$ac_ext
5242cat >>conftest.$ac_ext <<_ACEOF
5243/* end confdefs.h. */
ddc9cd0f 5244
b4e70030 5245/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5246#ifdef __cplusplus
5247extern "C"
5248#endif
b4e70030
JB
5249/* We use char because int might match the return type of a gcc2
5250 builtin and then its argument prototype would still apply. */
5251char gethostbyname ();
bec39cab
AC
5252int
5253main ()
5254{
b4e70030 5255gethostbyname ();
bec39cab
AC
5256 ;
5257 return 0;
5258}
5259_ACEOF
b4e70030 5260rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
5261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5262 (eval $ac_link) 2>conftest.er1
5263 ac_status=$?
5264 grep -v '^ *+' conftest.er1 >conftest.err
5265 rm -f conftest.er1
5266 cat conftest.err >&5
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); } &&
b4e70030
JB
5269 { ac_try='test -z "$ac_c_werror_flag"
5270 || test ! -s conftest.err'
bec39cab
AC
5271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5272 (eval $ac_try) 2>&5
5273 ac_status=$?
5274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275 (exit $ac_status); }; } &&
5276 { ac_try='test -s conftest$ac_exeext'
5277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5278 (eval $ac_try) 2>&5
5279 ac_status=$?
5280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5281 (exit $ac_status); }; }; then
b4e70030
JB
5282 ac_cv_search_gethostbyname="-l$ac_lib"
5283break
bec39cab
AC
5284else
5285 echo "$as_me: failed program was:" >&5
5286sed 's/^/| /' conftest.$ac_ext >&5
5287
5288fi
5289rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
5290 conftest$ac_exeext conftest.$ac_ext
5291 done
bec39cab
AC
5292fi
5293LIBS=$ac_func_search_save_LIBS
5294fi
b4e70030
JB
5295echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
5296echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6
5297if test "$ac_cv_search_gethostbyname" != no; then
5298 test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS"
96baa820 5299
bec39cab 5300fi
96baa820 5301
c906108c 5302
b4e70030
JB
5303# Some systems (e.g. Solaris) have `socketpair' in libsocket.
5304echo "$as_me:$LINENO: checking for library containing socketpair" >&5
5305echo $ECHO_N "checking for library containing socketpair... $ECHO_C" >&6
5306if test "${ac_cv_search_socketpair+set}" = set; then
5307 echo $ECHO_N "(cached) $ECHO_C" >&6
5308else
5309 ac_func_search_save_LIBS=$LIBS
5310ac_cv_search_socketpair=no
5311cat >conftest.$ac_ext <<_ACEOF
5312/* confdefs.h. */
5313_ACEOF
5314cat confdefs.h >>conftest.$ac_ext
5315cat >>conftest.$ac_ext <<_ACEOF
5316/* end confdefs.h. */
5317
5318/* Override any gcc2 internal prototype to avoid an error. */
5319#ifdef __cplusplus
5320extern "C"
5321#endif
5322/* We use char because int might match the return type of a gcc2
5323 builtin and then its argument prototype would still apply. */
5324char socketpair ();
5325int
5326main ()
5327{
5328socketpair ();
5329 ;
5330 return 0;
5331}
5332_ACEOF
5333rm -f conftest.$ac_objext conftest$ac_exeext
5334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5335 (eval $ac_link) 2>conftest.er1
5336 ac_status=$?
5337 grep -v '^ *+' conftest.er1 >conftest.err
5338 rm -f conftest.er1
5339 cat conftest.err >&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); } &&
5342 { ac_try='test -z "$ac_c_werror_flag"
5343 || test ! -s conftest.err'
5344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345 (eval $ac_try) 2>&5
5346 ac_status=$?
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); }; } &&
5349 { ac_try='test -s conftest$ac_exeext'
5350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5351 (eval $ac_try) 2>&5
5352 ac_status=$?
5353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); }; }; then
5355 ac_cv_search_socketpair="none required"
5356else
5357 echo "$as_me: failed program was:" >&5
5358sed 's/^/| /' conftest.$ac_ext >&5
5359
5360fi
5361rm -f conftest.err conftest.$ac_objext \
5362 conftest$ac_exeext conftest.$ac_ext
5363if test "$ac_cv_search_socketpair" = no; then
5364 for ac_lib in socket; do
5365 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5366 cat >conftest.$ac_ext <<_ACEOF
5367/* confdefs.h. */
5368_ACEOF
5369cat confdefs.h >>conftest.$ac_ext
5370cat >>conftest.$ac_ext <<_ACEOF
5371/* end confdefs.h. */
5372
5373/* Override any gcc2 internal prototype to avoid an error. */
5374#ifdef __cplusplus
5375extern "C"
5376#endif
5377/* We use char because int might match the return type of a gcc2
5378 builtin and then its argument prototype would still apply. */
5379char socketpair ();
5380int
5381main ()
5382{
5383socketpair ();
5384 ;
5385 return 0;
5386}
5387_ACEOF
5388rm -f conftest.$ac_objext conftest$ac_exeext
5389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5390 (eval $ac_link) 2>conftest.er1
5391 ac_status=$?
5392 grep -v '^ *+' conftest.er1 >conftest.err
5393 rm -f conftest.er1
5394 cat conftest.err >&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); } &&
5397 { ac_try='test -z "$ac_c_werror_flag"
5398 || test ! -s conftest.err'
5399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5400 (eval $ac_try) 2>&5
5401 ac_status=$?
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); }; } &&
5404 { ac_try='test -s conftest$ac_exeext'
5405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5406 (eval $ac_try) 2>&5
5407 ac_status=$?
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); }; }; then
5410 ac_cv_search_socketpair="-l$ac_lib"
5411break
5412else
5413 echo "$as_me: failed program was:" >&5
5414sed 's/^/| /' conftest.$ac_ext >&5
5415
5416fi
5417rm -f conftest.err conftest.$ac_objext \
5418 conftest$ac_exeext conftest.$ac_ext
5419 done
5420fi
5421LIBS=$ac_func_search_save_LIBS
5422fi
5423echo "$as_me:$LINENO: result: $ac_cv_search_socketpair" >&5
5424echo "${ECHO_T}$ac_cv_search_socketpair" >&6
5425if test "$ac_cv_search_socketpair" != no; then
5426 test "$ac_cv_search_socketpair" = "none required" || LIBS="$ac_cv_search_socketpair $LIBS"
5427
5428fi
5429
5430
5431# For the TUI, we need enhanced curses functionality.
bec39cab
AC
5432#
5433# FIXME: kettenis/20040905: We prefer ncurses over the vendor-supplied
5434# curses library because the latter might not provide all the
5435# functionality we need. However, this leads to problems on systems
5436# where the linker searches /usr/local/lib, but the compiler doesn't
5437# search /usr/local/include, if ncurses is installed in /usr/local. A
5438# default installation of ncurses on alpha*-dec-osf* will lead to such
5439# a situation.
b4e70030
JB
5440echo "$as_me:$LINENO: checking for library containing waddstr" >&5
5441echo $ECHO_N "checking for library containing waddstr... $ECHO_C" >&6
bec39cab
AC
5442if test "${ac_cv_search_waddstr+set}" = set; then
5443 echo $ECHO_N "(cached) $ECHO_C" >&6
5444else
5445 ac_func_search_save_LIBS=$LIBS
b4e70030 5446ac_cv_search_waddstr=no
bec39cab
AC
5447cat >conftest.$ac_ext <<_ACEOF
5448/* confdefs.h. */
5449_ACEOF
5450cat confdefs.h >>conftest.$ac_ext
5451cat >>conftest.$ac_ext <<_ACEOF
5452/* end confdefs.h. */
c906108c 5453
b4e70030 5454/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5455#ifdef __cplusplus
5456extern "C"
5457#endif
b4e70030
JB
5458/* We use char because int might match the return type of a gcc2
5459 builtin and then its argument prototype would still apply. */
bec39cab
AC
5460char waddstr ();
5461int
5462main ()
5463{
b4e70030 5464waddstr ();
bec39cab
AC
5465 ;
5466 return 0;
5467}
5468_ACEOF
b4e70030 5469rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
5470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5471 (eval $ac_link) 2>conftest.er1
5472 ac_status=$?
5473 grep -v '^ *+' conftest.er1 >conftest.err
5474 rm -f conftest.er1
5475 cat conftest.err >&5
5476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477 (exit $ac_status); } &&
b4e70030
JB
5478 { ac_try='test -z "$ac_c_werror_flag"
5479 || test ! -s conftest.err'
bec39cab
AC
5480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5481 (eval $ac_try) 2>&5
5482 ac_status=$?
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); }; } &&
5485 { ac_try='test -s conftest$ac_exeext'
5486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5487 (eval $ac_try) 2>&5
5488 ac_status=$?
5489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5490 (exit $ac_status); }; }; then
b4e70030 5491 ac_cv_search_waddstr="none required"
bec39cab
AC
5492else
5493 echo "$as_me: failed program was:" >&5
5494sed 's/^/| /' conftest.$ac_ext >&5
1ba607ad
AC
5495
5496fi
bec39cab 5497rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
5498 conftest$ac_exeext conftest.$ac_ext
5499if test "$ac_cv_search_waddstr" = no; then
5500 for ac_lib in ncurses cursesX curses; do
5501 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5502 cat >conftest.$ac_ext <<_ACEOF
5503/* confdefs.h. */
5504_ACEOF
5505cat confdefs.h >>conftest.$ac_ext
5506cat >>conftest.$ac_ext <<_ACEOF
5507/* end confdefs.h. */
5508
5509/* Override any gcc2 internal prototype to avoid an error. */
5510#ifdef __cplusplus
5511extern "C"
5512#endif
5513/* We use char because int might match the return type of a gcc2
5514 builtin and then its argument prototype would still apply. */
5515char waddstr ();
5516int
5517main ()
5518{
5519waddstr ();
5520 ;
5521 return 0;
5522}
5523_ACEOF
5524rm -f conftest.$ac_objext conftest$ac_exeext
5525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5526 (eval $ac_link) 2>conftest.er1
5527 ac_status=$?
5528 grep -v '^ *+' conftest.er1 >conftest.err
5529 rm -f conftest.er1
5530 cat conftest.err >&5
5531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5532 (exit $ac_status); } &&
5533 { ac_try='test -z "$ac_c_werror_flag"
5534 || test ! -s conftest.err'
5535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5536 (eval $ac_try) 2>&5
5537 ac_status=$?
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); }; } &&
5540 { ac_try='test -s conftest$ac_exeext'
5541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5542 (eval $ac_try) 2>&5
5543 ac_status=$?
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); }; }; then
5546 ac_cv_search_waddstr="-l$ac_lib"
5547break
4e8d927d 5548else
b4e70030
JB
5549 echo "$as_me: failed program was:" >&5
5550sed 's/^/| /' conftest.$ac_ext >&5
5551
5552fi
5553rm -f conftest.err conftest.$ac_objext \
5554 conftest$ac_exeext conftest.$ac_ext
5555 done
1ba607ad 5556fi
bec39cab
AC
5557LIBS=$ac_func_search_save_LIBS
5558fi
b4e70030
JB
5559echo "$as_me:$LINENO: result: $ac_cv_search_waddstr" >&5
5560echo "${ECHO_T}$ac_cv_search_waddstr" >&6
5561if test "$ac_cv_search_waddstr" != no; then
5562 test "$ac_cv_search_waddstr" = "none required" || LIBS="$ac_cv_search_waddstr $LIBS"
c906108c 5563
8bb2c122 5564fi
8bb2c122 5565
8bb2c122 5566
bec39cab
AC
5567# Since GDB uses Readline, we need termcap functionality. In many
5568# cases this will be provided by the curses library, but some systems
5569# have a seperate termcap library, or no curses library at all.
8bb2c122 5570
bec39cab
AC
5571case $host_os in
5572 cygwin*)
5573 if test -d $srcdir/libtermcap; then
5574 LIBS="../libtermcap/libtermcap.a $LIBS"
5575 ac_cv_search_tgetent="../libtermcap/libtermcap.a"
5576 fi ;;
5577 go32* | *djgpp*)
5578 ac_cv_search_tgetent="none required"
5579 ;;
7ef34f2c
MM
5580 *mingw32*)
5581 ac_cv_search_tgetent="none required"
5582 CONFIG_OBS="$CONFIG_OBS win32-termcap.o"
5583 ;;
bec39cab 5584esac
627af7ea 5585
bec39cab 5586# These are the libraries checked by Readline.
b4e70030
JB
5587echo "$as_me:$LINENO: checking for library containing tgetent" >&5
5588echo $ECHO_N "checking for library containing tgetent... $ECHO_C" >&6
bec39cab
AC
5589if test "${ac_cv_search_tgetent+set}" = set; then
5590 echo $ECHO_N "(cached) $ECHO_C" >&6
5591else
5592 ac_func_search_save_LIBS=$LIBS
b4e70030 5593ac_cv_search_tgetent=no
bec39cab
AC
5594cat >conftest.$ac_ext <<_ACEOF
5595/* confdefs.h. */
5596_ACEOF
5597cat confdefs.h >>conftest.$ac_ext
5598cat >>conftest.$ac_ext <<_ACEOF
5599/* end confdefs.h. */
5600
b4e70030 5601/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
5602#ifdef __cplusplus
5603extern "C"
5604#endif
b4e70030
JB
5605/* We use char because int might match the return type of a gcc2
5606 builtin and then its argument prototype would still apply. */
bec39cab
AC
5607char tgetent ();
5608int
5609main ()
5610{
b4e70030 5611tgetent ();
bec39cab
AC
5612 ;
5613 return 0;
5614}
5615_ACEOF
b4e70030 5616rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
5617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5618 (eval $ac_link) 2>conftest.er1
5619 ac_status=$?
5620 grep -v '^ *+' conftest.er1 >conftest.err
5621 rm -f conftest.er1
5622 cat conftest.err >&5
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); } &&
b4e70030
JB
5625 { ac_try='test -z "$ac_c_werror_flag"
5626 || test ! -s conftest.err'
bec39cab
AC
5627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5628 (eval $ac_try) 2>&5
5629 ac_status=$?
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); }; } &&
5632 { ac_try='test -s conftest$ac_exeext'
5633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5634 (eval $ac_try) 2>&5
5635 ac_status=$?
5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); }; }; then
b4e70030 5638 ac_cv_search_tgetent="none required"
627af7ea 5639else
bec39cab
AC
5640 echo "$as_me: failed program was:" >&5
5641sed 's/^/| /' conftest.$ac_ext >&5
627af7ea 5642
627af7ea 5643fi
bec39cab 5644rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
5645 conftest$ac_exeext conftest.$ac_ext
5646if test "$ac_cv_search_tgetent" = no; then
5647 for ac_lib in termcap tinfo curses ncurses; do
5648 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5649 cat >conftest.$ac_ext <<_ACEOF
5650/* confdefs.h. */
5651_ACEOF
5652cat confdefs.h >>conftest.$ac_ext
5653cat >>conftest.$ac_ext <<_ACEOF
5654/* end confdefs.h. */
5655
5656/* Override any gcc2 internal prototype to avoid an error. */
5657#ifdef __cplusplus
5658extern "C"
5659#endif
5660/* We use char because int might match the return type of a gcc2
5661 builtin and then its argument prototype would still apply. */
5662char tgetent ();
5663int
5664main ()
5665{
5666tgetent ();
5667 ;
5668 return 0;
5669}
5670_ACEOF
5671rm -f conftest.$ac_objext conftest$ac_exeext
5672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5673 (eval $ac_link) 2>conftest.er1
5674 ac_status=$?
5675 grep -v '^ *+' conftest.er1 >conftest.err
5676 rm -f conftest.er1
5677 cat conftest.err >&5
5678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679 (exit $ac_status); } &&
5680 { ac_try='test -z "$ac_c_werror_flag"
5681 || test ! -s conftest.err'
5682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5683 (eval $ac_try) 2>&5
5684 ac_status=$?
5685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686 (exit $ac_status); }; } &&
5687 { ac_try='test -s conftest$ac_exeext'
5688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5689 (eval $ac_try) 2>&5
5690 ac_status=$?
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); }; }; then
5693 ac_cv_search_tgetent="-l$ac_lib"
5694break
4e8d927d 5695else
b4e70030
JB
5696 echo "$as_me: failed program was:" >&5
5697sed 's/^/| /' conftest.$ac_ext >&5
5698
5699fi
5700rm -f conftest.err conftest.$ac_objext \
5701 conftest$ac_exeext conftest.$ac_ext
5702 done
bec39cab
AC
5703fi
5704LIBS=$ac_func_search_save_LIBS
5705fi
b4e70030
JB
5706echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
5707echo "${ECHO_T}$ac_cv_search_tgetent" >&6
5708if test "$ac_cv_search_tgetent" != no; then
5709 test "$ac_cv_search_tgetent" = "none required" || LIBS="$ac_cv_search_tgetent $LIBS"
627af7ea 5710
06825bd1
MK
5711fi
5712
06825bd1 5713
bec39cab
AC
5714if test "$ac_cv_search_tgetent" = no; then
5715 { { echo "$as_me:$LINENO: error: no termcap library found" >&5
5716echo "$as_me: error: no termcap library found" >&2;}
5717 { (exit 1); exit 1; }; }
8ee53726
MK
5718fi
5719
3841debe
DJ
5720
5721 if test "X$prefix" = "XNONE"; then
5722 acl_final_prefix="$ac_default_prefix"
5723 else
5724 acl_final_prefix="$prefix"
5725 fi
5726 if test "X$exec_prefix" = "XNONE"; then
5727 acl_final_exec_prefix='${prefix}'
5728 else
5729 acl_final_exec_prefix="$exec_prefix"
5730 fi
5731 acl_save_prefix="$prefix"
5732 prefix="$acl_final_prefix"
5733 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5734 prefix="$acl_save_prefix"
5735
5736
5737# Check whether --with-gnu-ld or --without-gnu-ld was given.
5738if test "${with_gnu_ld+set}" = set; then
5739 withval="$with_gnu_ld"
5740 test "$withval" = no || with_gnu_ld=yes
5741else
5742 with_gnu_ld=no
5743fi;
5744# Prepare PATH_SEPARATOR.
5745# The user is always right.
5746if test "${PATH_SEPARATOR+set}" != set; then
5747 echo "#! /bin/sh" >conf$$.sh
5748 echo "exit 0" >>conf$$.sh
5749 chmod +x conf$$.sh
5750 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5751 PATH_SEPARATOR=';'
5752 else
5753 PATH_SEPARATOR=:
5754 fi
5755 rm -f conf$$.sh
5756fi
5757ac_prog=ld
5758if test "$GCC" = yes; then
5759 # Check if gcc -print-prog-name=ld gives a path.
5760 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5761echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5762 case $host in
5763 *-*-mingw*)
5764 # gcc leaves a trailing carriage return which upsets mingw
5765 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5766 *)
5767 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5768 esac
5769 case $ac_prog in
5770 # Accept absolute paths.
5771 [\\/]* | [A-Za-z]:[\\/]*)
5772 re_direlt='/[^/][^/]*/\.\./'
5773 # Canonicalize the path of ld
5774 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5775 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5776 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5777 done
5778 test -z "$LD" && LD="$ac_prog"
5779 ;;
5780 "")
5781 # If it fails, then pretend we aren't using GCC.
5782 ac_prog=ld
5783 ;;
5784 *)
5785 # If it is relative, then search for the first ld in PATH.
5786 with_gnu_ld=unknown
5787 ;;
5788 esac
5789elif test "$with_gnu_ld" = yes; then
5790 echo "$as_me:$LINENO: checking for GNU ld" >&5
5791echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5792else
5793 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5794echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5795fi
5796if test "${acl_cv_path_LD+set}" = set; then
5797 echo $ECHO_N "(cached) $ECHO_C" >&6
5798else
5799 if test -z "$LD"; then
5800 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5801 for ac_dir in $PATH; do
5802 test -z "$ac_dir" && ac_dir=.
5803 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5804 acl_cv_path_LD="$ac_dir/$ac_prog"
5805 # Check to see if the program is GNU ld. I'd rather use --version,
5806 # but apparently some GNU ld's only accept -v.
5807 # Break only if it was the GNU/non-GNU ld that we prefer.
5808 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5809 test "$with_gnu_ld" != no && break
5810 else
5811 test "$with_gnu_ld" != yes && break
5812 fi
5813 fi
5814 done
5815 IFS="$ac_save_ifs"
5816else
5817 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5818fi
5819fi
5820
5821LD="$acl_cv_path_LD"
5822if test -n "$LD"; then
5823 echo "$as_me:$LINENO: result: $LD" >&5
5824echo "${ECHO_T}$LD" >&6
5825else
5826 echo "$as_me:$LINENO: result: no" >&5
5827echo "${ECHO_T}no" >&6
5828fi
5829test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5830echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5831 { (exit 1); exit 1; }; }
5832echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5833echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5834if test "${acl_cv_prog_gnu_ld+set}" = set; then
5835 echo $ECHO_N "(cached) $ECHO_C" >&6
5836else
5837 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5838if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5839 acl_cv_prog_gnu_ld=yes
5840else
5841 acl_cv_prog_gnu_ld=no
5842fi
5843fi
5844echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5845echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5846with_gnu_ld=$acl_cv_prog_gnu_ld
5847
5848
5849
5850 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5851echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5852if test "${acl_cv_rpath+set}" = set; then
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
5854else
5855
5856 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5857 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5858 . ./conftest.sh
5859 rm -f ./conftest.sh
5860 acl_cv_rpath=done
5861
5862fi
5863echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5864echo "${ECHO_T}$acl_cv_rpath" >&6
5865 wl="$acl_cv_wl"
5866 libext="$acl_cv_libext"
5867 shlibext="$acl_cv_shlibext"
5868 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5869 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5870 hardcode_direct="$acl_cv_hardcode_direct"
5871 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5872 # Check whether --enable-rpath or --disable-rpath was given.
5873if test "${enable_rpath+set}" = set; then
5874 enableval="$enable_rpath"
5875 :
5876else
5877 enable_rpath=yes
5878fi;
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888 use_additional=yes
5889
5890 acl_save_prefix="$prefix"
5891 prefix="$acl_final_prefix"
5892 acl_save_exec_prefix="$exec_prefix"
5893 exec_prefix="$acl_final_exec_prefix"
5894
5895 eval additional_includedir=\"$includedir\"
5896 eval additional_libdir=\"$libdir\"
5897
5898 exec_prefix="$acl_save_exec_prefix"
5899 prefix="$acl_save_prefix"
5900
5901
5902# Check whether --with-libexpat-prefix or --without-libexpat-prefix was given.
5903if test "${with_libexpat_prefix+set}" = set; then
5904 withval="$with_libexpat_prefix"
5905
5906 if test "X$withval" = "Xno"; then
5907 use_additional=no
5908 else
5909 if test "X$withval" = "X"; then
5910
5911 acl_save_prefix="$prefix"
5912 prefix="$acl_final_prefix"
5913 acl_save_exec_prefix="$exec_prefix"
5914 exec_prefix="$acl_final_exec_prefix"
5915
5916 eval additional_includedir=\"$includedir\"
5917 eval additional_libdir=\"$libdir\"
5918
5919 exec_prefix="$acl_save_exec_prefix"
5920 prefix="$acl_save_prefix"
5921
5922 else
5923 additional_includedir="$withval/include"
5924 additional_libdir="$withval/lib"
5925 fi
5926 fi
5927
5928fi;
5929 LIBEXPAT=
5930 LTLIBEXPAT=
5931 INCEXPAT=
5932 rpathdirs=
5933 ltrpathdirs=
5934 names_already_handled=
5935 names_next_round='expat '
5936 while test -n "$names_next_round"; do
5937 names_this_round="$names_next_round"
5938 names_next_round=
5939 for name in $names_this_round; do
5940 already_handled=
5941 for n in $names_already_handled; do
5942 if test "$n" = "$name"; then
5943 already_handled=yes
5944 break
5945 fi
5946 done
5947 if test -z "$already_handled"; then
5948 names_already_handled="$names_already_handled $name"
5949 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5950 eval value=\"\$HAVE_LIB$uppername\"
5951 if test -n "$value"; then
5952 if test "$value" = yes; then
5953 eval value=\"\$LIB$uppername\"
5954 test -z "$value" || LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$value"
5955 eval value=\"\$LTLIB$uppername\"
5956 test -z "$value" || LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$value"
5957 else
5958 :
5959 fi
5960 else
5961 found_dir=
5962 found_la=
5963 found_so=
5964 found_a=
5965 if test $use_additional = yes; then
5966 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5967 found_dir="$additional_libdir"
5968 found_so="$additional_libdir/lib$name.$shlibext"
5969 if test -f "$additional_libdir/lib$name.la"; then
5970 found_la="$additional_libdir/lib$name.la"
5971 fi
5972 else
5973 if test -f "$additional_libdir/lib$name.$libext"; then
5974 found_dir="$additional_libdir"
5975 found_a="$additional_libdir/lib$name.$libext"
5976 if test -f "$additional_libdir/lib$name.la"; then
5977 found_la="$additional_libdir/lib$name.la"
5978 fi
5979 fi
5980 fi
5981 fi
5982 if test "X$found_dir" = "X"; then
5983 for x in $LDFLAGS $LTLIBEXPAT; do
5984
5985 acl_save_prefix="$prefix"
5986 prefix="$acl_final_prefix"
5987 acl_save_exec_prefix="$exec_prefix"
5988 exec_prefix="$acl_final_exec_prefix"
5989 eval x=\"$x\"
5990 exec_prefix="$acl_save_exec_prefix"
5991 prefix="$acl_save_prefix"
5992
5993 case "$x" in
5994 -L*)
5995 dir=`echo "X$x" | sed -e 's/^X-L//'`
5996 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5997 found_dir="$dir"
5998 found_so="$dir/lib$name.$shlibext"
5999 if test -f "$dir/lib$name.la"; then
6000 found_la="$dir/lib$name.la"
6001 fi
6002 else
6003 if test -f "$dir/lib$name.$libext"; then
6004 found_dir="$dir"
6005 found_a="$dir/lib$name.$libext"
6006 if test -f "$dir/lib$name.la"; then
6007 found_la="$dir/lib$name.la"
6008 fi
6009 fi
6010 fi
6011 ;;
6012 esac
6013 if test "X$found_dir" != "X"; then
6014 break
6015 fi
6016 done
6017 fi
6018 if test "X$found_dir" != "X"; then
6019 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$found_dir -l$name"
6020 if test "X$found_so" != "X"; then
6021 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6022 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6023 else
6024 haveit=
6025 for x in $ltrpathdirs; do
6026 if test "X$x" = "X$found_dir"; then
6027 haveit=yes
6028 break
6029 fi
6030 done
6031 if test -z "$haveit"; then
6032 ltrpathdirs="$ltrpathdirs $found_dir"
6033 fi
6034 if test "$hardcode_direct" = yes; then
6035 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6036 else
6037 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6038 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6039 haveit=
6040 for x in $rpathdirs; do
6041 if test "X$x" = "X$found_dir"; then
6042 haveit=yes
6043 break
6044 fi
6045 done
6046 if test -z "$haveit"; then
6047 rpathdirs="$rpathdirs $found_dir"
6048 fi
6049 else
6050 haveit=
6051 for x in $LDFLAGS $LIBEXPAT; do
6052
6053 acl_save_prefix="$prefix"
6054 prefix="$acl_final_prefix"
6055 acl_save_exec_prefix="$exec_prefix"
6056 exec_prefix="$acl_final_exec_prefix"
6057 eval x=\"$x\"
6058 exec_prefix="$acl_save_exec_prefix"
6059 prefix="$acl_save_prefix"
6060
6061 if test "X$x" = "X-L$found_dir"; then
6062 haveit=yes
6063 break
6064 fi
6065 done
6066 if test -z "$haveit"; then
6067 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir"
6068 fi
6069 if test "$hardcode_minus_L" != no; then
6070 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_so"
6071 else
6072 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
6073 fi
6074 fi
6075 fi
6076 fi
6077 else
6078 if test "X$found_a" != "X"; then
6079 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$found_a"
6080 else
6081 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$found_dir -l$name"
6082 fi
6083 fi
6084 additional_includedir=
6085 case "$found_dir" in
6086 */lib | */lib/)
6087 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6088 additional_includedir="$basedir/include"
6089 ;;
6090 esac
6091 if test "X$additional_includedir" != "X"; then
6092 if test "X$additional_includedir" != "X/usr/include"; then
6093 haveit=
6094 if test "X$additional_includedir" = "X/usr/local/include"; then
6095 if test -n "$GCC"; then
6096 case $host_os in
6097 linux*) haveit=yes;;
6098 esac
6099 fi
6100 fi
6101 if test -z "$haveit"; then
6102 for x in $CPPFLAGS $INCEXPAT; do
6103
6104 acl_save_prefix="$prefix"
6105 prefix="$acl_final_prefix"
6106 acl_save_exec_prefix="$exec_prefix"
6107 exec_prefix="$acl_final_exec_prefix"
6108 eval x=\"$x\"
6109 exec_prefix="$acl_save_exec_prefix"
6110 prefix="$acl_save_prefix"
6111
6112 if test "X$x" = "X-I$additional_includedir"; then
6113 haveit=yes
6114 break
6115 fi
6116 done
6117 if test -z "$haveit"; then
6118 if test -d "$additional_includedir"; then
6119 INCEXPAT="${INCEXPAT}${INCEXPAT:+ }-I$additional_includedir"
6120 fi
6121 fi
6122 fi
6123 fi
6124 fi
6125 if test -n "$found_la"; then
6126 save_libdir="$libdir"
6127 case "$found_la" in
6128 */* | *\\*) . "$found_la" ;;
6129 *) . "./$found_la" ;;
6130 esac
6131 libdir="$save_libdir"
6132 for dep in $dependency_libs; do
6133 case "$dep" in
6134 -L*)
6135 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6136 if test "X$additional_libdir" != "X/usr/lib"; then
6137 haveit=
6138 if test "X$additional_libdir" = "X/usr/local/lib"; then
6139 if test -n "$GCC"; then
6140 case $host_os in
6141 linux*) haveit=yes;;
6142 esac
6143 fi
6144 fi
6145 if test -z "$haveit"; then
6146 haveit=
6147 for x in $LDFLAGS $LIBEXPAT; do
6148
6149 acl_save_prefix="$prefix"
6150 prefix="$acl_final_prefix"
6151 acl_save_exec_prefix="$exec_prefix"
6152 exec_prefix="$acl_final_exec_prefix"
6153 eval x=\"$x\"
6154 exec_prefix="$acl_save_exec_prefix"
6155 prefix="$acl_save_prefix"
6156
6157 if test "X$x" = "X-L$additional_libdir"; then
6158 haveit=yes
6159 break
6160 fi
6161 done
6162 if test -z "$haveit"; then
6163 if test -d "$additional_libdir"; then
6164 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-L$additional_libdir"
6165 fi
6166 fi
6167 haveit=
6168 for x in $LDFLAGS $LTLIBEXPAT; do
6169
6170 acl_save_prefix="$prefix"
6171 prefix="$acl_final_prefix"
6172 acl_save_exec_prefix="$exec_prefix"
6173 exec_prefix="$acl_final_exec_prefix"
6174 eval x=\"$x\"
6175 exec_prefix="$acl_save_exec_prefix"
6176 prefix="$acl_save_prefix"
6177
6178 if test "X$x" = "X-L$additional_libdir"; then
6179 haveit=yes
6180 break
6181 fi
6182 done
6183 if test -z "$haveit"; then
6184 if test -d "$additional_libdir"; then
6185 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-L$additional_libdir"
6186 fi
6187 fi
6188 fi
6189 fi
6190 ;;
6191 -R*)
6192 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6193 if test "$enable_rpath" != no; then
6194 haveit=
6195 for x in $rpathdirs; do
6196 if test "X$x" = "X$dir"; then
6197 haveit=yes
6198 break
6199 fi
6200 done
6201 if test -z "$haveit"; then
6202 rpathdirs="$rpathdirs $dir"
6203 fi
6204 haveit=
6205 for x in $ltrpathdirs; do
6206 if test "X$x" = "X$dir"; then
6207 haveit=yes
6208 break
6209 fi
6210 done
6211 if test -z "$haveit"; then
6212 ltrpathdirs="$ltrpathdirs $dir"
6213 fi
6214 fi
6215 ;;
6216 -l*)
6217 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6218 ;;
6219 *.la)
6220 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6221 ;;
6222 *)
6223 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$dep"
6224 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }$dep"
6225 ;;
6226 esac
6227 done
6228 fi
6229 else
6230 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }-l$name"
6231 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-l$name"
6232 fi
6233 fi
6234 fi
6235 done
6236 done
6237 if test "X$rpathdirs" != "X"; then
6238 if test -n "$hardcode_libdir_separator"; then
6239 alldirs=
6240 for found_dir in $rpathdirs; do
6241 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6242 done
6243 acl_save_libdir="$libdir"
6244 libdir="$alldirs"
6245 eval flag=\"$hardcode_libdir_flag_spec\"
6246 libdir="$acl_save_libdir"
6247 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
6248 else
6249 for found_dir in $rpathdirs; do
6250 acl_save_libdir="$libdir"
6251 libdir="$found_dir"
6252 eval flag=\"$hardcode_libdir_flag_spec\"
6253 libdir="$acl_save_libdir"
6254 LIBEXPAT="${LIBEXPAT}${LIBEXPAT:+ }$flag"
6255 done
6256 fi
6257 fi
6258 if test "X$ltrpathdirs" != "X"; then
6259 for found_dir in $ltrpathdirs; do
6260 LTLIBEXPAT="${LTLIBEXPAT}${LTLIBEXPAT:+ }-R$found_dir"
6261 done
6262 fi
6263
6264
6265 ac_save_CPPFLAGS="$CPPFLAGS"
6266
6267 for element in $INCEXPAT; do
6268 haveit=
6269 for x in $CPPFLAGS; do
6270
6271 acl_save_prefix="$prefix"
6272 prefix="$acl_final_prefix"
6273 acl_save_exec_prefix="$exec_prefix"
6274 exec_prefix="$acl_final_exec_prefix"
6275 eval x=\"$x\"
6276 exec_prefix="$acl_save_exec_prefix"
6277 prefix="$acl_save_prefix"
6278
6279 if test "X$x" = "X$element"; then
6280 haveit=yes
6281 break
6282 fi
6283 done
6284 if test -z "$haveit"; then
6285 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6286 fi
6287 done
6288
6289
6290 echo "$as_me:$LINENO: checking for libexpat" >&5
6291echo $ECHO_N "checking for libexpat... $ECHO_C" >&6
6292if test "${ac_cv_libexpat+set}" = set; then
6293 echo $ECHO_N "(cached) $ECHO_C" >&6
6294else
6295
6296 ac_save_LIBS="$LIBS"
6297 LIBS="$LIBS $LIBEXPAT"
6298 cat >conftest.$ac_ext <<_ACEOF
6299/* confdefs.h. */
6300_ACEOF
6301cat confdefs.h >>conftest.$ac_ext
6302cat >>conftest.$ac_ext <<_ACEOF
6303/* end confdefs.h. */
6304#include "expat.h"
6305int
6306main ()
6307{
6308XML_Parser p = XML_ParserCreate (0);
6309 ;
6310 return 0;
6311}
6312_ACEOF
6313rm -f conftest.$ac_objext conftest$ac_exeext
6314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6315 (eval $ac_link) 2>conftest.er1
6316 ac_status=$?
6317 grep -v '^ *+' conftest.er1 >conftest.err
6318 rm -f conftest.er1
6319 cat conftest.err >&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); } &&
6322 { ac_try='test -z "$ac_c_werror_flag"
6323 || test ! -s conftest.err'
6324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6325 (eval $ac_try) 2>&5
6326 ac_status=$?
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); }; } &&
6329 { ac_try='test -s conftest$ac_exeext'
6330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6331 (eval $ac_try) 2>&5
6332 ac_status=$?
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); }; }; then
6335 ac_cv_libexpat=yes
6336else
6337 echo "$as_me: failed program was:" >&5
6338sed 's/^/| /' conftest.$ac_ext >&5
6339
6340ac_cv_libexpat=no
6341fi
6342rm -f conftest.err conftest.$ac_objext \
6343 conftest$ac_exeext conftest.$ac_ext
6344 LIBS="$ac_save_LIBS"
6345
6346fi
6347echo "$as_me:$LINENO: result: $ac_cv_libexpat" >&5
6348echo "${ECHO_T}$ac_cv_libexpat" >&6
6349 if test "$ac_cv_libexpat" = yes; then
6350 HAVE_LIBEXPAT=yes
6351
6352cat >>confdefs.h <<\_ACEOF
6353#define HAVE_LIBEXPAT 1
6354_ACEOF
6355
6356 echo "$as_me:$LINENO: checking how to link with libexpat" >&5
6357echo $ECHO_N "checking how to link with libexpat... $ECHO_C" >&6
6358 echo "$as_me:$LINENO: result: $LIBEXPAT" >&5
6359echo "${ECHO_T}$LIBEXPAT" >&6
6360 else
6361 HAVE_LIBEXPAT=no
6362 CPPFLAGS="$ac_save_CPPFLAGS"
6363 LIBEXPAT=
6364 LTLIBEXPAT=
6365 fi
6366
6367
6368
6369
6370
6371
6372if test "$HAVE_LIBEXPAT" != yes; then
6373 { echo "$as_me:$LINENO: WARNING: expat is missing or unusable; some features may be disabled." >&5
6374echo "$as_me: WARNING: expat is missing or unusable; some features may be disabled." >&2;}
ca4ca11e
DJ
6375else
6376 save_LIBS=$LIBS
6377 LIBS="$LIBS $LIBEXPAT"
6378
6379for ac_func in XML_StopParser
6380do
6381as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6382echo "$as_me:$LINENO: checking for $ac_func" >&5
6383echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6384if eval "test \"\${$as_ac_var+set}\" = set"; then
6385 echo $ECHO_N "(cached) $ECHO_C" >&6
6386else
6387 cat >conftest.$ac_ext <<_ACEOF
6388/* confdefs.h. */
6389_ACEOF
6390cat confdefs.h >>conftest.$ac_ext
6391cat >>conftest.$ac_ext <<_ACEOF
6392/* end confdefs.h. */
6393/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6395#define $ac_func innocuous_$ac_func
6396
6397/* System header to define __stub macros and hopefully few prototypes,
6398 which can conflict with char $ac_func (); below.
6399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6400 <limits.h> exists even on freestanding compilers. */
6401
6402#ifdef __STDC__
6403# include <limits.h>
6404#else
6405# include <assert.h>
6406#endif
6407
6408#undef $ac_func
6409
6410/* Override any gcc2 internal prototype to avoid an error. */
6411#ifdef __cplusplus
6412extern "C"
6413{
6414#endif
6415/* We use char because int might match the return type of a gcc2
6416 builtin and then its argument prototype would still apply. */
6417char $ac_func ();
6418/* The GNU C library defines this for functions which it implements
6419 to always fail with ENOSYS. Some functions are actually named
6420 something starting with __ and the normal name is an alias. */
6421#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6422choke me
6423#else
6424char (*f) () = $ac_func;
6425#endif
6426#ifdef __cplusplus
6427}
6428#endif
6429
6430int
6431main ()
6432{
6433return f != $ac_func;
6434 ;
6435 return 0;
6436}
6437_ACEOF
6438rm -f conftest.$ac_objext conftest$ac_exeext
6439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6440 (eval $ac_link) 2>conftest.er1
6441 ac_status=$?
6442 grep -v '^ *+' conftest.er1 >conftest.err
6443 rm -f conftest.er1
6444 cat conftest.err >&5
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); } &&
6447 { ac_try='test -z "$ac_c_werror_flag"
6448 || test ! -s conftest.err'
6449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6450 (eval $ac_try) 2>&5
6451 ac_status=$?
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }; } &&
6454 { ac_try='test -s conftest$ac_exeext'
6455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6456 (eval $ac_try) 2>&5
6457 ac_status=$?
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); }; }; then
6460 eval "$as_ac_var=yes"
6461else
6462 echo "$as_me: failed program was:" >&5
6463sed 's/^/| /' conftest.$ac_ext >&5
6464
6465eval "$as_ac_var=no"
6466fi
6467rm -f conftest.err conftest.$ac_objext \
6468 conftest$ac_exeext conftest.$ac_ext
6469fi
6470echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6471echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6472if test `eval echo '${'$as_ac_var'}'` = yes; then
6473 cat >>confdefs.h <<_ACEOF
6474#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6475_ACEOF
6476
6477fi
6478done
6479
6480 LIBS=$save_LIBS
3841debe
DJ
6481fi
6482
bec39cab
AC
6483# ------------------------- #
6484# Checks for header files. #
6485# ------------------------- #
8ee53726 6486
0e5d83e3 6487
bec39cab
AC
6488
6489
6490
6491
6492ac_header_dirent=no
6493for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6494 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
b4e70030
JB
6495echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6496echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6497if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
6498 echo $ECHO_N "(cached) $ECHO_C" >&6
6499else
6500 cat >conftest.$ac_ext <<_ACEOF
6501/* confdefs.h. */
6502_ACEOF
6503cat confdefs.h >>conftest.$ac_ext
6504cat >>conftest.$ac_ext <<_ACEOF
6505/* end confdefs.h. */
6506#include <sys/types.h>
0e5d83e3 6507#include <$ac_hdr>
bec39cab
AC
6508
6509int
6510main ()
6511{
6512if ((DIR *) 0)
6513return 0;
6514 ;
6515 return 0;
6516}
6517_ACEOF
6518rm -f conftest.$ac_objext
6519if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6520 (eval $ac_compile) 2>conftest.er1
6521 ac_status=$?
6522 grep -v '^ *+' conftest.er1 >conftest.err
6523 rm -f conftest.er1
6524 cat conftest.err >&5
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); } &&
b4e70030
JB
6527 { ac_try='test -z "$ac_c_werror_flag"
6528 || test ! -s conftest.err'
bec39cab
AC
6529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6530 (eval $ac_try) 2>&5
6531 ac_status=$?
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); }; } &&
6534 { ac_try='test -s conftest.$ac_objext'
6535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6536 (eval $ac_try) 2>&5
6537 ac_status=$?
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); }; }; then
6540 eval "$as_ac_Header=yes"
6541else
6542 echo "$as_me: failed program was:" >&5
6543sed 's/^/| /' conftest.$ac_ext >&5
6544
b4e70030 6545eval "$as_ac_Header=no"
bec39cab
AC
6546fi
6547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6548fi
b4e70030
JB
6549echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6550echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
6551if test `eval echo '${'$as_ac_Header'}'` = yes; then
6552 cat >>confdefs.h <<_ACEOF
6553#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6554_ACEOF
6555
6556ac_header_dirent=$ac_hdr; break
0e5d83e3 6557fi
0e5d83e3 6558
bec39cab
AC
6559done
6560# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6561if test $ac_header_dirent = dirent.h; then
b4e70030
JB
6562 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6563echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
bec39cab
AC
6564if test "${ac_cv_search_opendir+set}" = set; then
6565 echo $ECHO_N "(cached) $ECHO_C" >&6
6566else
6567 ac_func_search_save_LIBS=$LIBS
b4e70030 6568ac_cv_search_opendir=no
bec39cab
AC
6569cat >conftest.$ac_ext <<_ACEOF
6570/* confdefs.h. */
6571_ACEOF
6572cat confdefs.h >>conftest.$ac_ext
6573cat >>conftest.$ac_ext <<_ACEOF
6574/* end confdefs.h. */
0e5d83e3 6575
b4e70030 6576/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
6577#ifdef __cplusplus
6578extern "C"
6579#endif
b4e70030
JB
6580/* We use char because int might match the return type of a gcc2
6581 builtin and then its argument prototype would still apply. */
bec39cab
AC
6582char opendir ();
6583int
6584main ()
6585{
b4e70030 6586opendir ();
bec39cab
AC
6587 ;
6588 return 0;
6589}
6590_ACEOF
b4e70030 6591rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
6592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6593 (eval $ac_link) 2>conftest.er1
6594 ac_status=$?
6595 grep -v '^ *+' conftest.er1 >conftest.err
6596 rm -f conftest.er1
6597 cat conftest.err >&5
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); } &&
b4e70030
JB
6600 { ac_try='test -z "$ac_c_werror_flag"
6601 || test ! -s conftest.err'
bec39cab
AC
6602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6603 (eval $ac_try) 2>&5
6604 ac_status=$?
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); }; } &&
6607 { ac_try='test -s conftest$ac_exeext'
6608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6609 (eval $ac_try) 2>&5
6610 ac_status=$?
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); }; }; then
b4e70030 6613 ac_cv_search_opendir="none required"
bec39cab
AC
6614else
6615 echo "$as_me: failed program was:" >&5
6616sed 's/^/| /' conftest.$ac_ext >&5
6617
6618fi
bec39cab 6619rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
6620 conftest$ac_exeext conftest.$ac_ext
6621if test "$ac_cv_search_opendir" = no; then
6622 for ac_lib in dir; do
6623 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6624 cat >conftest.$ac_ext <<_ACEOF
6625/* confdefs.h. */
6626_ACEOF
6627cat confdefs.h >>conftest.$ac_ext
6628cat >>conftest.$ac_ext <<_ACEOF
6629/* end confdefs.h. */
6630
6631/* Override any gcc2 internal prototype to avoid an error. */
6632#ifdef __cplusplus
6633extern "C"
6634#endif
6635/* We use char because int might match the return type of a gcc2
6636 builtin and then its argument prototype would still apply. */
6637char opendir ();
6638int
6639main ()
6640{
6641opendir ();
6642 ;
6643 return 0;
6644}
6645_ACEOF
6646rm -f conftest.$ac_objext conftest$ac_exeext
6647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6648 (eval $ac_link) 2>conftest.er1
6649 ac_status=$?
6650 grep -v '^ *+' conftest.er1 >conftest.err
6651 rm -f conftest.er1
6652 cat conftest.err >&5
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); } &&
6655 { ac_try='test -z "$ac_c_werror_flag"
6656 || test ! -s conftest.err'
6657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6658 (eval $ac_try) 2>&5
6659 ac_status=$?
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); }; } &&
6662 { ac_try='test -s conftest$ac_exeext'
6663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6664 (eval $ac_try) 2>&5
6665 ac_status=$?
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); }; }; then
6668 ac_cv_search_opendir="-l$ac_lib"
6669break
4e8d927d 6670else
b4e70030
JB
6671 echo "$as_me: failed program was:" >&5
6672sed 's/^/| /' conftest.$ac_ext >&5
6673
6674fi
6675rm -f conftest.err conftest.$ac_objext \
6676 conftest$ac_exeext conftest.$ac_ext
6677 done
0e5d83e3 6678fi
bec39cab 6679LIBS=$ac_func_search_save_LIBS
0e5d83e3 6680fi
b4e70030
JB
6681echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6682echo "${ECHO_T}$ac_cv_search_opendir" >&6
6683if test "$ac_cv_search_opendir" != no; then
6684 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
0e5d83e3 6685
0e5d83e3
JJ
6686fi
6687
d28f9cdf 6688else
b4e70030
JB
6689 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6690echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
bec39cab
AC
6691if test "${ac_cv_search_opendir+set}" = set; then
6692 echo $ECHO_N "(cached) $ECHO_C" >&6
6693else
6694 ac_func_search_save_LIBS=$LIBS
b4e70030 6695ac_cv_search_opendir=no
bec39cab
AC
6696cat >conftest.$ac_ext <<_ACEOF
6697/* confdefs.h. */
6698_ACEOF
6699cat confdefs.h >>conftest.$ac_ext
6700cat >>conftest.$ac_ext <<_ACEOF
6701/* end confdefs.h. */
d28f9cdf 6702
b4e70030 6703/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
6704#ifdef __cplusplus
6705extern "C"
d28f9cdf 6706#endif
b4e70030
JB
6707/* We use char because int might match the return type of a gcc2
6708 builtin and then its argument prototype would still apply. */
bec39cab
AC
6709char opendir ();
6710int
6711main ()
6712{
b4e70030 6713opendir ();
bec39cab
AC
6714 ;
6715 return 0;
6716}
6717_ACEOF
b4e70030 6718rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab
AC
6719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6720 (eval $ac_link) 2>conftest.er1
6721 ac_status=$?
6722 grep -v '^ *+' conftest.er1 >conftest.err
6723 rm -f conftest.er1
6724 cat conftest.err >&5
6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); } &&
b4e70030
JB
6727 { ac_try='test -z "$ac_c_werror_flag"
6728 || test ! -s conftest.err'
bec39cab
AC
6729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6730 (eval $ac_try) 2>&5
6731 ac_status=$?
6732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); }; } &&
6734 { ac_try='test -s conftest$ac_exeext'
6735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6736 (eval $ac_try) 2>&5
6737 ac_status=$?
6738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); }; }; then
b4e70030 6740 ac_cv_search_opendir="none required"
d28f9cdf 6741else
bec39cab
AC
6742 echo "$as_me: failed program was:" >&5
6743sed 's/^/| /' conftest.$ac_ext >&5
6744
d28f9cdf 6745fi
bec39cab 6746rm -f conftest.err conftest.$ac_objext \
b4e70030
JB
6747 conftest$ac_exeext conftest.$ac_ext
6748if test "$ac_cv_search_opendir" = no; then
6749 for ac_lib in x; do
6750 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6751 cat >conftest.$ac_ext <<_ACEOF
6752/* confdefs.h. */
6753_ACEOF
6754cat confdefs.h >>conftest.$ac_ext
6755cat >>conftest.$ac_ext <<_ACEOF
6756/* end confdefs.h. */
6757
6758/* Override any gcc2 internal prototype to avoid an error. */
6759#ifdef __cplusplus
6760extern "C"
6761#endif
6762/* We use char because int might match the return type of a gcc2
6763 builtin and then its argument prototype would still apply. */
6764char opendir ();
6765int
6766main ()
6767{
6768opendir ();
6769 ;
6770 return 0;
6771}
6772_ACEOF
6773rm -f conftest.$ac_objext conftest$ac_exeext
6774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6775 (eval $ac_link) 2>conftest.er1
6776 ac_status=$?
6777 grep -v '^ *+' conftest.er1 >conftest.err
6778 rm -f conftest.er1
6779 cat conftest.err >&5
6780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781 (exit $ac_status); } &&
6782 { ac_try='test -z "$ac_c_werror_flag"
6783 || test ! -s conftest.err'
6784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6785 (eval $ac_try) 2>&5
6786 ac_status=$?
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); }; } &&
6789 { ac_try='test -s conftest$ac_exeext'
6790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6791 (eval $ac_try) 2>&5
6792 ac_status=$?
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); }; }; then
6795 ac_cv_search_opendir="-l$ac_lib"
6796break
4e8d927d 6797else
b4e70030
JB
6798 echo "$as_me: failed program was:" >&5
6799sed 's/^/| /' conftest.$ac_ext >&5
6800
6801fi
6802rm -f conftest.err conftest.$ac_objext \
6803 conftest$ac_exeext conftest.$ac_ext
6804 done
bec39cab
AC
6805fi
6806LIBS=$ac_func_search_save_LIBS
d28f9cdf 6807fi
b4e70030
JB
6808echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6809echo "${ECHO_T}$ac_cv_search_opendir" >&6
6810if test "$ac_cv_search_opendir" != no; then
6811 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
d28f9cdf 6812
d28f9cdf
DJ
6813fi
6814
bec39cab 6815fi
b0b1c2c0 6816
b4e70030
JB
6817echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6818echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
bec39cab
AC
6819if test "${ac_cv_header_stat_broken+set}" = set; then
6820 echo $ECHO_N "(cached) $ECHO_C" >&6
b0b1c2c0 6821else
bec39cab
AC
6822 cat >conftest.$ac_ext <<_ACEOF
6823/* confdefs.h. */
6824_ACEOF
6825cat confdefs.h >>conftest.$ac_ext
6826cat >>conftest.$ac_ext <<_ACEOF
6827/* end confdefs.h. */
6828#include <sys/types.h>
6829#include <sys/stat.h>
b0b1c2c0 6830
b4e70030 6831#if defined(S_ISBLK) && defined(S_IFDIR)
bec39cab
AC
6832# if S_ISBLK (S_IFDIR)
6833You lose.
6834# endif
6835#endif
b0b1c2c0 6836
b4e70030 6837#if defined(S_ISBLK) && defined(S_IFCHR)
bec39cab
AC
6838# if S_ISBLK (S_IFCHR)
6839You lose.
6840# endif
6841#endif
d28f9cdf 6842
b4e70030 6843#if defined(S_ISLNK) && defined(S_IFREG)
bec39cab
AC
6844# if S_ISLNK (S_IFREG)
6845You lose.
6846# endif
6847#endif
d28f9cdf 6848
b4e70030 6849#if defined(S_ISSOCK) && defined(S_IFREG)
bec39cab
AC
6850# if S_ISSOCK (S_IFREG)
6851You lose.
6852# endif
6853#endif
6854
6855_ACEOF
6856if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6857 $EGREP "You lose" >/dev/null 2>&1; then
6858 ac_cv_header_stat_broken=yes
d28f9cdf 6859else
bec39cab 6860 ac_cv_header_stat_broken=no
d28f9cdf
DJ
6861fi
6862rm -f conftest*
d28f9cdf 6863
d28f9cdf 6864fi
b4e70030
JB
6865echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6866echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
bec39cab 6867if test $ac_cv_header_stat_broken = yes; then
d28f9cdf 6868
bec39cab
AC
6869cat >>confdefs.h <<\_ACEOF
6870#define STAT_MACROS_BROKEN 1
6871_ACEOF
8bb2c122 6872
7a292a7a 6873fi
bec39cab 6874
b4e70030
JB
6875echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6876echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
bec39cab
AC
6877if test "${ac_cv_header_stdc+set}" = set; then
6878 echo $ECHO_N "(cached) $ECHO_C" >&6
7a292a7a 6879else
bec39cab
AC
6880 cat >conftest.$ac_ext <<_ACEOF
6881/* confdefs.h. */
6882_ACEOF
6883cat confdefs.h >>conftest.$ac_ext
6884cat >>conftest.$ac_ext <<_ACEOF
6885/* end confdefs.h. */
6886#include <stdlib.h>
6887#include <stdarg.h>
6888#include <string.h>
6889#include <float.h>
7a292a7a 6890
bec39cab
AC
6891int
6892main ()
6893{
7a292a7a 6894
bec39cab
AC
6895 ;
6896 return 0;
6897}
6898_ACEOF
6899rm -f conftest.$ac_objext
6900if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6901 (eval $ac_compile) 2>conftest.er1
6902 ac_status=$?
6903 grep -v '^ *+' conftest.er1 >conftest.err
6904 rm -f conftest.er1
6905 cat conftest.err >&5
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); } &&
b4e70030
JB
6908 { ac_try='test -z "$ac_c_werror_flag"
6909 || test ! -s conftest.err'
bec39cab
AC
6910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6911 (eval $ac_try) 2>&5
6912 ac_status=$?
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); }; } &&
6915 { ac_try='test -s conftest.$ac_objext'
6916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6917 (eval $ac_try) 2>&5
6918 ac_status=$?
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); }; }; then
6921 ac_cv_header_stdc=yes
c906108c 6922else
bec39cab
AC
6923 echo "$as_me: failed program was:" >&5
6924sed 's/^/| /' conftest.$ac_ext >&5
c906108c 6925
b4e70030 6926ac_cv_header_stdc=no
c906108c 6927fi
bec39cab 6928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 6929
bec39cab
AC
6930if test $ac_cv_header_stdc = yes; then
6931 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6932 cat >conftest.$ac_ext <<_ACEOF
6933/* confdefs.h. */
6934_ACEOF
6935cat confdefs.h >>conftest.$ac_ext
6936cat >>conftest.$ac_ext <<_ACEOF
6937/* end confdefs.h. */
6938#include <string.h>
c906108c 6939
bec39cab
AC
6940_ACEOF
6941if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6942 $EGREP "memchr" >/dev/null 2>&1; then
6943 :
8bb2c122 6944else
bec39cab 6945 ac_cv_header_stdc=no
8bb2c122 6946fi
bec39cab
AC
6947rm -f conftest*
6948
c906108c
SS
6949fi
6950
bec39cab
AC
6951if test $ac_cv_header_stdc = yes; then
6952 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6953 cat >conftest.$ac_ext <<_ACEOF
6954/* confdefs.h. */
6955_ACEOF
6956cat confdefs.h >>conftest.$ac_ext
6957cat >>conftest.$ac_ext <<_ACEOF
6958/* end confdefs.h. */
6959#include <stdlib.h>
6960
6961_ACEOF
6962if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6963 $EGREP "free" >/dev/null 2>&1; then
6964 :
c906108c 6965else
bec39cab 6966 ac_cv_header_stdc=no
c906108c 6967fi
bec39cab
AC
6968rm -f conftest*
6969
c906108c
SS
6970fi
6971
bec39cab
AC
6972if test $ac_cv_header_stdc = yes; then
6973 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6974 if test "$cross_compiling" = yes; then
6975 :
c906108c 6976else
bec39cab
AC
6977 cat >conftest.$ac_ext <<_ACEOF
6978/* confdefs.h. */
6979_ACEOF
6980cat confdefs.h >>conftest.$ac_ext
6981cat >>conftest.$ac_ext <<_ACEOF
6982/* end confdefs.h. */
6983#include <ctype.h>
6984#if ((' ' & 0x0FF) == 0x020)
6985# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6986# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6987#else
6988# define ISLOWER(c) \
6989 (('a' <= (c) && (c) <= 'i') \
6990 || ('j' <= (c) && (c) <= 'r') \
6991 || ('s' <= (c) && (c) <= 'z'))
6992# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6993#endif
6994
6995#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6996int
6997main ()
6998{
6999 int i;
7000 for (i = 0; i < 256; i++)
7001 if (XOR (islower (i), ISLOWER (i))
7002 || toupper (i) != TOUPPER (i))
b4e70030
JB
7003 exit(2);
7004 exit (0);
bec39cab
AC
7005}
7006_ACEOF
7007rm -f conftest$ac_exeext
7008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7009 (eval $ac_link) 2>&5
7010 ac_status=$?
7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7014 (eval $ac_try) 2>&5
7015 ac_status=$?
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); }; }; then
7018 :
7019else
7020 echo "$as_me: program exited with status $ac_status" >&5
7021echo "$as_me: failed program was:" >&5
7022sed 's/^/| /' conftest.$ac_ext >&5
7023
7024( exit $ac_status )
7025ac_cv_header_stdc=no
c906108c 7026fi
b4e70030 7027rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 7028fi
c906108c 7029fi
bec39cab 7030fi
b4e70030
JB
7031echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7032echo "${ECHO_T}$ac_cv_header_stdc" >&6
bec39cab 7033if test $ac_cv_header_stdc = yes; then
c906108c 7034
bec39cab
AC
7035cat >>confdefs.h <<\_ACEOF
7036#define STDC_HEADERS 1
7037_ACEOF
c906108c 7038
bec39cab 7039fi
8bb2c122 7040
bec39cab 7041
7cb9022a 7042for ac_header in nlist.h
bec39cab
AC
7043do
7044as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7045if eval "test \"\${$as_ac_Header+set}\" = set"; then
7046 echo "$as_me:$LINENO: checking for $ac_header" >&5
7047echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7048if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7049 echo $ECHO_N "(cached) $ECHO_C" >&6
7050fi
b4e70030
JB
7051echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7052echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7053else
7054 # Is the header compilable?
b4e70030
JB
7055echo "$as_me:$LINENO: checking $ac_header usability" >&5
7056echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7057cat >conftest.$ac_ext <<_ACEOF
7058/* confdefs.h. */
7059_ACEOF
7060cat confdefs.h >>conftest.$ac_ext
7061cat >>conftest.$ac_ext <<_ACEOF
7062/* end confdefs.h. */
7063$ac_includes_default
7064#include <$ac_header>
7065_ACEOF
7066rm -f conftest.$ac_objext
7067if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7068 (eval $ac_compile) 2>conftest.er1
7069 ac_status=$?
7070 grep -v '^ *+' conftest.er1 >conftest.err
7071 rm -f conftest.er1
7072 cat conftest.err >&5
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); } &&
b4e70030
JB
7075 { ac_try='test -z "$ac_c_werror_flag"
7076 || test ! -s conftest.err'
bec39cab
AC
7077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7078 (eval $ac_try) 2>&5
7079 ac_status=$?
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); }; } &&
7082 { ac_try='test -s conftest.$ac_objext'
7083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7084 (eval $ac_try) 2>&5
7085 ac_status=$?
7086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7087 (exit $ac_status); }; }; then
7088 ac_header_compiler=yes
7089else
7090 echo "$as_me: failed program was:" >&5
7091sed 's/^/| /' conftest.$ac_ext >&5
7092
b4e70030 7093ac_header_compiler=no
bec39cab
AC
7094fi
7095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7096echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7097echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7098
7099# Is the header present?
b4e70030
JB
7100echo "$as_me:$LINENO: checking $ac_header presence" >&5
7101echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7102cat >conftest.$ac_ext <<_ACEOF
7103/* confdefs.h. */
7104_ACEOF
7105cat confdefs.h >>conftest.$ac_ext
7106cat >>conftest.$ac_ext <<_ACEOF
7107/* end confdefs.h. */
7108#include <$ac_header>
7109_ACEOF
7110if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7112 ac_status=$?
7113 grep -v '^ *+' conftest.er1 >conftest.err
7114 rm -f conftest.er1
7115 cat conftest.err >&5
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } >/dev/null; then
7118 if test -s conftest.err; then
7119 ac_cpp_err=$ac_c_preproc_warn_flag
7120 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7121 else
7122 ac_cpp_err=
7123 fi
c906108c 7124else
bec39cab 7125 ac_cpp_err=yes
c906108c 7126fi
bec39cab
AC
7127if test -z "$ac_cpp_err"; then
7128 ac_header_preproc=yes
c906108c 7129else
bec39cab
AC
7130 echo "$as_me: failed program was:" >&5
7131sed 's/^/| /' conftest.$ac_ext >&5
8bb2c122 7132
bec39cab
AC
7133 ac_header_preproc=no
7134fi
7135rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7136echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7137echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 7138
bec39cab
AC
7139# So? What about this header?
7140case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7141 yes:no: )
7142 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7143echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7145echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7146 ac_header_preproc=yes
7147 ;;
7148 no:yes:* )
7149 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7150echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7151 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7152echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7153 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7154echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7155 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7156echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7158echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7159 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7160echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7161 (
7162 cat <<\_ASBOX
7163## ------------------------------------------ ##
7164## Report this to the AC_PACKAGE_NAME lists. ##
7165## ------------------------------------------ ##
7166_ASBOX
7167 ) |
7168 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7169 ;;
7170esac
b4e70030
JB
7171echo "$as_me:$LINENO: checking for $ac_header" >&5
7172echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7173if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7174 echo $ECHO_N "(cached) $ECHO_C" >&6
95ca63c4 7175else
bec39cab 7176 eval "$as_ac_Header=\$ac_header_preproc"
95ca63c4 7177fi
b4e70030
JB
7178echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7179echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 7180
95ca63c4 7181fi
bec39cab
AC
7182if test `eval echo '${'$as_ac_Header'}'` = yes; then
7183 cat >>confdefs.h <<_ACEOF
7184#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7185_ACEOF
7186
95ca63c4
CF
7187fi
7188
bec39cab 7189done
95ca63c4
CF
7190
7191
7cb9022a 7192for ac_header in link.h
bec39cab
AC
7193do
7194as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7195echo "$as_me:$LINENO: checking for $ac_header" >&5
7196echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7197if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7198 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 7199else
7cb9022a 7200 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
7201/* confdefs.h. */
7202_ACEOF
7203cat confdefs.h >>conftest.$ac_ext
7204cat >>conftest.$ac_ext <<_ACEOF
7205/* end confdefs.h. */
7cb9022a
MK
7206#if HAVE_SYS_TYPES_H
7207# include <sys/types.h>
7208#endif
7209#if HAVE_NLIST_H
7210# include <nlist.h>
7211#endif
7212
7213
bec39cab
AC
7214#include <$ac_header>
7215_ACEOF
7216rm -f conftest.$ac_objext
7217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7218 (eval $ac_compile) 2>conftest.er1
7219 ac_status=$?
7220 grep -v '^ *+' conftest.er1 >conftest.err
7221 rm -f conftest.er1
7222 cat conftest.err >&5
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); } &&
b4e70030
JB
7225 { ac_try='test -z "$ac_c_werror_flag"
7226 || test ! -s conftest.err'
bec39cab
AC
7227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7228 (eval $ac_try) 2>&5
7229 ac_status=$?
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); }; } &&
7232 { ac_try='test -s conftest.$ac_objext'
7233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7234 (eval $ac_try) 2>&5
7235 ac_status=$?
7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); }; }; then
7cb9022a 7238 eval "$as_ac_Header=yes"
bec39cab
AC
7239else
7240 echo "$as_me: failed program was:" >&5
7241sed 's/^/| /' conftest.$ac_ext >&5
7242
b4e70030 7243eval "$as_ac_Header=no"
bec39cab
AC
7244fi
7245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 7246fi
b4e70030
JB
7247echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7248echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7249if test `eval echo '${'$as_ac_Header'}'` = yes; then
7250 cat >>confdefs.h <<_ACEOF
7251#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7252_ACEOF
95ca63c4 7253
bec39cab 7254fi
95ca63c4 7255
bec39cab 7256done
95ca63c4 7257
c906108c 7258
7cb9022a 7259for ac_header in machine/reg.h
bec39cab
AC
7260do
7261as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7262if eval "test \"\${$as_ac_Header+set}\" = set"; then
7263 echo "$as_me:$LINENO: checking for $ac_header" >&5
7264echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7265if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
7267fi
b4e70030
JB
7268echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7269echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7270else
7271 # Is the header compilable?
b4e70030
JB
7272echo "$as_me:$LINENO: checking $ac_header usability" >&5
7273echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7274cat >conftest.$ac_ext <<_ACEOF
7275/* confdefs.h. */
7276_ACEOF
7277cat confdefs.h >>conftest.$ac_ext
7278cat >>conftest.$ac_ext <<_ACEOF
7279/* end confdefs.h. */
7280$ac_includes_default
7281#include <$ac_header>
7282_ACEOF
7283rm -f conftest.$ac_objext
7284if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7285 (eval $ac_compile) 2>conftest.er1
7286 ac_status=$?
7287 grep -v '^ *+' conftest.er1 >conftest.err
7288 rm -f conftest.er1
7289 cat conftest.err >&5
7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); } &&
b4e70030
JB
7292 { ac_try='test -z "$ac_c_werror_flag"
7293 || test ! -s conftest.err'
bec39cab
AC
7294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7295 (eval $ac_try) 2>&5
7296 ac_status=$?
7297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7298 (exit $ac_status); }; } &&
7299 { ac_try='test -s conftest.$ac_objext'
7300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7301 (eval $ac_try) 2>&5
7302 ac_status=$?
7303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7304 (exit $ac_status); }; }; then
7305 ac_header_compiler=yes
7306else
7307 echo "$as_me: failed program was:" >&5
7308sed 's/^/| /' conftest.$ac_ext >&5
7309
b4e70030 7310ac_header_compiler=no
bec39cab
AC
7311fi
7312rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7313echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7314echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7315
7316# Is the header present?
b4e70030
JB
7317echo "$as_me:$LINENO: checking $ac_header presence" >&5
7318echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7319cat >conftest.$ac_ext <<_ACEOF
7320/* confdefs.h. */
7321_ACEOF
7322cat confdefs.h >>conftest.$ac_ext
7323cat >>conftest.$ac_ext <<_ACEOF
7324/* end confdefs.h. */
7325#include <$ac_header>
7326_ACEOF
7327if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7329 ac_status=$?
7330 grep -v '^ *+' conftest.er1 >conftest.err
7331 rm -f conftest.er1
7332 cat conftest.err >&5
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); } >/dev/null; then
7335 if test -s conftest.err; then
7336 ac_cpp_err=$ac_c_preproc_warn_flag
7337 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7338 else
7339 ac_cpp_err=
7340 fi
75c6e08a 7341else
bec39cab 7342 ac_cpp_err=yes
75c6e08a 7343fi
bec39cab
AC
7344if test -z "$ac_cpp_err"; then
7345 ac_header_preproc=yes
7346else
7347 echo "$as_me: failed program was:" >&5
7348sed 's/^/| /' conftest.$ac_ext >&5
7349
7350 ac_header_preproc=no
75c6e08a 7351fi
bec39cab 7352rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7353echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7354echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
7355
7356# So? What about this header?
7357case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7358 yes:no: )
7359 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7360echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7361 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7362echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7363 ac_header_preproc=yes
7364 ;;
7365 no:yes:* )
7366 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7367echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7368 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7369echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7370 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7371echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7372 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7373echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7375echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7376 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7377echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7378 (
7379 cat <<\_ASBOX
7380## ------------------------------------------ ##
7381## Report this to the AC_PACKAGE_NAME lists. ##
7382## ------------------------------------------ ##
7383_ASBOX
7384 ) |
7385 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7386 ;;
7387esac
b4e70030
JB
7388echo "$as_me:$LINENO: checking for $ac_header" >&5
7389echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7390if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7391 echo $ECHO_N "(cached) $ECHO_C" >&6
75c6e08a 7392else
bec39cab
AC
7393 eval "$as_ac_Header=\$ac_header_preproc"
7394fi
b4e70030
JB
7395echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7396echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 7397
75c6e08a 7398fi
bec39cab
AC
7399if test `eval echo '${'$as_ac_Header'}'` = yes; then
7400 cat >>confdefs.h <<_ACEOF
7401#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7402_ACEOF
75c6e08a 7403
bec39cab 7404fi
75c6e08a 7405
bec39cab 7406done
75c6e08a
MK
7407
7408
9a156167 7409
bec39cab
AC
7410for ac_header in poll.h sys/poll.h
7411do
7412as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7413if eval "test \"\${$as_ac_Header+set}\" = set"; then
7414 echo "$as_me:$LINENO: checking for $ac_header" >&5
7415echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7416if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7418fi
b4e70030
JB
7419echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7420echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7421else
7422 # Is the header compilable?
b4e70030
JB
7423echo "$as_me:$LINENO: checking $ac_header usability" >&5
7424echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7425cat >conftest.$ac_ext <<_ACEOF
7426/* confdefs.h. */
7427_ACEOF
7428cat confdefs.h >>conftest.$ac_ext
7429cat >>conftest.$ac_ext <<_ACEOF
7430/* end confdefs.h. */
7431$ac_includes_default
7432#include <$ac_header>
7433_ACEOF
7434rm -f conftest.$ac_objext
7435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7436 (eval $ac_compile) 2>conftest.er1
7437 ac_status=$?
7438 grep -v '^ *+' conftest.er1 >conftest.err
7439 rm -f conftest.er1
7440 cat conftest.err >&5
7441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7442 (exit $ac_status); } &&
b4e70030
JB
7443 { ac_try='test -z "$ac_c_werror_flag"
7444 || test ! -s conftest.err'
bec39cab
AC
7445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7446 (eval $ac_try) 2>&5
7447 ac_status=$?
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); }; } &&
7450 { ac_try='test -s conftest.$ac_objext'
7451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7452 (eval $ac_try) 2>&5
7453 ac_status=$?
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); }; }; then
7456 ac_header_compiler=yes
7457else
7458 echo "$as_me: failed program was:" >&5
7459sed 's/^/| /' conftest.$ac_ext >&5
7460
b4e70030 7461ac_header_compiler=no
bec39cab
AC
7462fi
7463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7464echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7465echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7466
7467# Is the header present?
b4e70030
JB
7468echo "$as_me:$LINENO: checking $ac_header presence" >&5
7469echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7470cat >conftest.$ac_ext <<_ACEOF
7471/* confdefs.h. */
7472_ACEOF
7473cat confdefs.h >>conftest.$ac_ext
7474cat >>conftest.$ac_ext <<_ACEOF
7475/* end confdefs.h. */
7476#include <$ac_header>
7477_ACEOF
7478if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7479 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7480 ac_status=$?
7481 grep -v '^ *+' conftest.er1 >conftest.err
7482 rm -f conftest.er1
7483 cat conftest.err >&5
7484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485 (exit $ac_status); } >/dev/null; then
7486 if test -s conftest.err; then
7487 ac_cpp_err=$ac_c_preproc_warn_flag
7488 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7489 else
7490 ac_cpp_err=
7491 fi
9a156167 7492else
bec39cab 7493 ac_cpp_err=yes
9a156167 7494fi
bec39cab
AC
7495if test -z "$ac_cpp_err"; then
7496 ac_header_preproc=yes
7497else
7498 echo "$as_me: failed program was:" >&5
7499sed 's/^/| /' conftest.$ac_ext >&5
9a156167 7500
bec39cab 7501 ac_header_preproc=no
9a156167 7502fi
bec39cab 7503rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7504echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7505echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 7506
bec39cab
AC
7507# So? What about this header?
7508case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7509 yes:no: )
7510 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7511echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7513echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7514 ac_header_preproc=yes
7515 ;;
7516 no:yes:* )
7517 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7518echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7519 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7520echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7521 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7522echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7523 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7524echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7526echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7527 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7528echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7529 (
7530 cat <<\_ASBOX
7531## ------------------------------------------ ##
7532## Report this to the AC_PACKAGE_NAME lists. ##
7533## ------------------------------------------ ##
7534_ASBOX
7535 ) |
7536 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7537 ;;
7538esac
b4e70030
JB
7539echo "$as_me:$LINENO: checking for $ac_header" >&5
7540echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7541if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7542 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 7543else
bec39cab 7544 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 7545fi
b4e70030
JB
7546echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7547echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167 7548
bec39cab
AC
7549fi
7550if test `eval echo '${'$as_ac_Header'}'` = yes; then
7551 cat >>confdefs.h <<_ACEOF
7552#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7553_ACEOF
9a156167 7554
bec39cab 7555fi
9a156167 7556
bec39cab 7557done
9a156167 7558
9a156167 7559
9a156167 7560
bec39cab
AC
7561
7562for ac_header in proc_service.h thread_db.h gnu/libc-version.h
7563do
7564as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7565if eval "test \"\${$as_ac_Header+set}\" = set"; then
7566 echo "$as_me:$LINENO: checking for $ac_header" >&5
7567echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7568if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7569 echo $ECHO_N "(cached) $ECHO_C" >&6
7570fi
b4e70030
JB
7571echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7572echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7573else
7574 # Is the header compilable?
b4e70030
JB
7575echo "$as_me:$LINENO: checking $ac_header usability" >&5
7576echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7577cat >conftest.$ac_ext <<_ACEOF
7578/* confdefs.h. */
7579_ACEOF
7580cat confdefs.h >>conftest.$ac_ext
7581cat >>conftest.$ac_ext <<_ACEOF
436868fb
DP
7582/* end confdefs.h. */
7583$ac_includes_default
7584#include <$ac_header>
7585_ACEOF
7586rm -f conftest.$ac_objext
7587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7588 (eval $ac_compile) 2>conftest.er1
7589 ac_status=$?
7590 grep -v '^ *+' conftest.er1 >conftest.err
7591 rm -f conftest.er1
7592 cat conftest.err >&5
7593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594 (exit $ac_status); } &&
7595 { ac_try='test -z "$ac_c_werror_flag"
7596 || test ! -s conftest.err'
7597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7598 (eval $ac_try) 2>&5
7599 ac_status=$?
7600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601 (exit $ac_status); }; } &&
7602 { ac_try='test -s conftest.$ac_objext'
7603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7604 (eval $ac_try) 2>&5
7605 ac_status=$?
7606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607 (exit $ac_status); }; }; then
7608 ac_header_compiler=yes
7609else
7610 echo "$as_me: failed program was:" >&5
7611sed 's/^/| /' conftest.$ac_ext >&5
7612
7613ac_header_compiler=no
7614fi
7615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7616echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7617echo "${ECHO_T}$ac_header_compiler" >&6
7618
7619# Is the header present?
7620echo "$as_me:$LINENO: checking $ac_header presence" >&5
7621echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7622cat >conftest.$ac_ext <<_ACEOF
7623/* confdefs.h. */
7624_ACEOF
7625cat confdefs.h >>conftest.$ac_ext
7626cat >>conftest.$ac_ext <<_ACEOF
7627/* end confdefs.h. */
7628#include <$ac_header>
7629_ACEOF
7630if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7631 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7632 ac_status=$?
7633 grep -v '^ *+' conftest.er1 >conftest.err
7634 rm -f conftest.er1
7635 cat conftest.err >&5
7636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637 (exit $ac_status); } >/dev/null; then
7638 if test -s conftest.err; then
7639 ac_cpp_err=$ac_c_preproc_warn_flag
7640 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7641 else
7642 ac_cpp_err=
7643 fi
7644else
7645 ac_cpp_err=yes
7646fi
7647if test -z "$ac_cpp_err"; then
7648 ac_header_preproc=yes
7649else
7650 echo "$as_me: failed program was:" >&5
7651sed 's/^/| /' conftest.$ac_ext >&5
7652
7653 ac_header_preproc=no
7654fi
7655rm -f conftest.err conftest.$ac_ext
7656echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7657echo "${ECHO_T}$ac_header_preproc" >&6
7658
7659# So? What about this header?
7660case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7661 yes:no: )
7662 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7663echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7664 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7665echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7666 ac_header_preproc=yes
7667 ;;
7668 no:yes:* )
7669 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7670echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7671 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7672echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7673 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7674echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7675 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7676echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7677 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7678echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7679 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7680echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7681 (
7682 cat <<\_ASBOX
7683## ------------------------------------------ ##
7684## Report this to the AC_PACKAGE_NAME lists. ##
7685## ------------------------------------------ ##
7686_ASBOX
7687 ) |
7688 sed "s/^/$as_me: WARNING: /" >&2
7689 ;;
7690esac
7691echo "$as_me:$LINENO: checking for $ac_header" >&5
7692echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7693if eval "test \"\${$as_ac_Header+set}\" = set"; then
7694 echo $ECHO_N "(cached) $ECHO_C" >&6
7695else
7696 eval "$as_ac_Header=\$ac_header_preproc"
7697fi
7698echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7699echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7700
7701fi
7702if test `eval echo '${'$as_ac_Header'}'` = yes; then
7703 cat >>confdefs.h <<_ACEOF
7704#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7705_ACEOF
7706
7707fi
7708
7709done
7710
7711
7712for ac_header in signal.h
7713do
7714as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7715if eval "test \"\${$as_ac_Header+set}\" = set"; then
7716 echo "$as_me:$LINENO: checking for $ac_header" >&5
7717echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7718if eval "test \"\${$as_ac_Header+set}\" = set"; then
7719 echo $ECHO_N "(cached) $ECHO_C" >&6
7720fi
7721echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7722echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7723else
7724 # Is the header compilable?
7725echo "$as_me:$LINENO: checking $ac_header usability" >&5
7726echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7727cat >conftest.$ac_ext <<_ACEOF
7728/* confdefs.h. */
7729_ACEOF
7730cat confdefs.h >>conftest.$ac_ext
7731cat >>conftest.$ac_ext <<_ACEOF
bec39cab
AC
7732/* end confdefs.h. */
7733$ac_includes_default
7734#include <$ac_header>
7735_ACEOF
7736rm -f conftest.$ac_objext
7737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7738 (eval $ac_compile) 2>conftest.er1
7739 ac_status=$?
7740 grep -v '^ *+' conftest.er1 >conftest.err
7741 rm -f conftest.er1
7742 cat conftest.err >&5
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); } &&
b4e70030
JB
7745 { ac_try='test -z "$ac_c_werror_flag"
7746 || test ! -s conftest.err'
bec39cab
AC
7747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7748 (eval $ac_try) 2>&5
7749 ac_status=$?
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); }; } &&
7752 { ac_try='test -s conftest.$ac_objext'
7753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7754 (eval $ac_try) 2>&5
7755 ac_status=$?
7756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 (exit $ac_status); }; }; then
7758 ac_header_compiler=yes
7759else
7760 echo "$as_me: failed program was:" >&5
7761sed 's/^/| /' conftest.$ac_ext >&5
7762
b4e70030 7763ac_header_compiler=no
bec39cab
AC
7764fi
7765rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7766echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7767echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7768
7769# Is the header present?
b4e70030
JB
7770echo "$as_me:$LINENO: checking $ac_header presence" >&5
7771echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7772cat >conftest.$ac_ext <<_ACEOF
7773/* confdefs.h. */
7774_ACEOF
7775cat confdefs.h >>conftest.$ac_ext
7776cat >>conftest.$ac_ext <<_ACEOF
7777/* end confdefs.h. */
7778#include <$ac_header>
7779_ACEOF
7780if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7781 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7782 ac_status=$?
7783 grep -v '^ *+' conftest.er1 >conftest.err
7784 rm -f conftest.er1
7785 cat conftest.err >&5
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); } >/dev/null; then
7788 if test -s conftest.err; then
7789 ac_cpp_err=$ac_c_preproc_warn_flag
7790 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7791 else
7792 ac_cpp_err=
7793 fi
9a156167 7794else
bec39cab 7795 ac_cpp_err=yes
9a156167 7796fi
bec39cab
AC
7797if test -z "$ac_cpp_err"; then
7798 ac_header_preproc=yes
7799else
7800 echo "$as_me: failed program was:" >&5
7801sed 's/^/| /' conftest.$ac_ext >&5
9a156167 7802
bec39cab 7803 ac_header_preproc=no
9a156167 7804fi
bec39cab 7805rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7806echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7807echo "${ECHO_T}$ac_header_preproc" >&6
9a156167 7808
bec39cab
AC
7809# So? What about this header?
7810case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7811 yes:no: )
7812 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7813echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7815echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7816 ac_header_preproc=yes
7817 ;;
7818 no:yes:* )
7819 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7820echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7821 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7822echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7823 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7824echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7825 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7826echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7828echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7829 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7830echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7831 (
7832 cat <<\_ASBOX
7833## ------------------------------------------ ##
7834## Report this to the AC_PACKAGE_NAME lists. ##
7835## ------------------------------------------ ##
7836_ASBOX
7837 ) |
7838 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7839 ;;
7840esac
b4e70030
JB
7841echo "$as_me:$LINENO: checking for $ac_header" >&5
7842echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7843if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7844 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 7845else
bec39cab 7846 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 7847fi
b4e70030
JB
7848echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7849echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9a156167
MK
7850
7851fi
bec39cab
AC
7852if test `eval echo '${'$as_ac_Header'}'` = yes; then
7853 cat >>confdefs.h <<_ACEOF
7854#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7855_ACEOF
9a156167 7856
bec39cab
AC
7857fi
7858
7859done
9a156167 7860
c890192f 7861
bec39cab
AC
7862for ac_header in stddef.h
7863do
7864as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
7865if eval "test \"\${$as_ac_Header+set}\" = set"; then
7866 echo "$as_me:$LINENO: checking for $ac_header" >&5
7867echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7868if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
7869 echo $ECHO_N "(cached) $ECHO_C" >&6
7870fi
b4e70030
JB
7871echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7872echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
7873else
7874 # Is the header compilable?
b4e70030
JB
7875echo "$as_me:$LINENO: checking $ac_header usability" >&5
7876echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
7877cat >conftest.$ac_ext <<_ACEOF
7878/* confdefs.h. */
7879_ACEOF
7880cat confdefs.h >>conftest.$ac_ext
7881cat >>conftest.$ac_ext <<_ACEOF
7882/* end confdefs.h. */
7883$ac_includes_default
7884#include <$ac_header>
7885_ACEOF
7886rm -f conftest.$ac_objext
7887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7888 (eval $ac_compile) 2>conftest.er1
7889 ac_status=$?
7890 grep -v '^ *+' conftest.er1 >conftest.err
7891 rm -f conftest.er1
7892 cat conftest.err >&5
7893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7894 (exit $ac_status); } &&
b4e70030
JB
7895 { ac_try='test -z "$ac_c_werror_flag"
7896 || test ! -s conftest.err'
bec39cab
AC
7897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7898 (eval $ac_try) 2>&5
7899 ac_status=$?
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); }; } &&
7902 { ac_try='test -s conftest.$ac_objext'
7903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7904 (eval $ac_try) 2>&5
7905 ac_status=$?
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); }; }; then
7908 ac_header_compiler=yes
7909else
7910 echo "$as_me: failed program was:" >&5
7911sed 's/^/| /' conftest.$ac_ext >&5
7912
b4e70030 7913ac_header_compiler=no
bec39cab
AC
7914fi
7915rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
7916echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7917echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
7918
7919# Is the header present?
b4e70030
JB
7920echo "$as_me:$LINENO: checking $ac_header presence" >&5
7921echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
7922cat >conftest.$ac_ext <<_ACEOF
7923/* confdefs.h. */
7924_ACEOF
7925cat confdefs.h >>conftest.$ac_ext
7926cat >>conftest.$ac_ext <<_ACEOF
7927/* end confdefs.h. */
7928#include <$ac_header>
7929_ACEOF
7930if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7931 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7932 ac_status=$?
7933 grep -v '^ *+' conftest.er1 >conftest.err
7934 rm -f conftest.er1
7935 cat conftest.err >&5
7936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937 (exit $ac_status); } >/dev/null; then
7938 if test -s conftest.err; then
7939 ac_cpp_err=$ac_c_preproc_warn_flag
7940 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7941 else
7942 ac_cpp_err=
7943 fi
c890192f 7944else
bec39cab
AC
7945 ac_cpp_err=yes
7946fi
7947if test -z "$ac_cpp_err"; then
7948 ac_header_preproc=yes
c890192f 7949else
bec39cab
AC
7950 echo "$as_me: failed program was:" >&5
7951sed 's/^/| /' conftest.$ac_ext >&5
7952
7953 ac_header_preproc=no
c890192f 7954fi
bec39cab 7955rm -f conftest.err conftest.$ac_ext
b4e70030
JB
7956echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7957echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
7958
7959# So? What about this header?
7960case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7961 yes:no: )
7962 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7963echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7965echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7966 ac_header_preproc=yes
7967 ;;
7968 no:yes:* )
7969 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7970echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7971 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7972echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7973 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7974echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7975 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7976echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7978echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7979 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7980echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
7981 (
7982 cat <<\_ASBOX
7983## ------------------------------------------ ##
7984## Report this to the AC_PACKAGE_NAME lists. ##
7985## ------------------------------------------ ##
7986_ASBOX
7987 ) |
7988 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
7989 ;;
7990esac
b4e70030
JB
7991echo "$as_me:$LINENO: checking for $ac_header" >&5
7992echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7993if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 7994 echo $ECHO_N "(cached) $ECHO_C" >&6
c890192f 7995else
bec39cab 7996 eval "$as_ac_Header=\$ac_header_preproc"
c890192f 7997fi
b4e70030
JB
7998echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7999echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 8000
c890192f 8001fi
bec39cab
AC
8002if test `eval echo '${'$as_ac_Header'}'` = yes; then
8003 cat >>confdefs.h <<_ACEOF
8004#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8005_ACEOF
c890192f 8006
c890192f
MK
8007fi
8008
bec39cab 8009done
9a156167 8010
bec39cab
AC
8011
8012for ac_header in stdlib.h
8013do
8014as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8015if eval "test \"\${$as_ac_Header+set}\" = set"; then
8016 echo "$as_me:$LINENO: checking for $ac_header" >&5
8017echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8018if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8019 echo $ECHO_N "(cached) $ECHO_C" >&6
8020fi
b4e70030
JB
8021echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8022echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8023else
8024 # Is the header compilable?
b4e70030
JB
8025echo "$as_me:$LINENO: checking $ac_header usability" >&5
8026echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8027cat >conftest.$ac_ext <<_ACEOF
8028/* confdefs.h. */
8029_ACEOF
8030cat confdefs.h >>conftest.$ac_ext
8031cat >>conftest.$ac_ext <<_ACEOF
8032/* end confdefs.h. */
8033$ac_includes_default
8034#include <$ac_header>
8035_ACEOF
8036rm -f conftest.$ac_objext
8037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8038 (eval $ac_compile) 2>conftest.er1
8039 ac_status=$?
8040 grep -v '^ *+' conftest.er1 >conftest.err
8041 rm -f conftest.er1
8042 cat conftest.err >&5
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); } &&
b4e70030
JB
8045 { ac_try='test -z "$ac_c_werror_flag"
8046 || test ! -s conftest.err'
bec39cab
AC
8047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8048 (eval $ac_try) 2>&5
8049 ac_status=$?
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); }; } &&
8052 { ac_try='test -s conftest.$ac_objext'
8053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8054 (eval $ac_try) 2>&5
8055 ac_status=$?
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); }; }; then
8058 ac_header_compiler=yes
8059else
8060 echo "$as_me: failed program was:" >&5
8061sed 's/^/| /' conftest.$ac_ext >&5
8062
b4e70030 8063ac_header_compiler=no
bec39cab
AC
8064fi
8065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8066echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8067echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8068
8069# Is the header present?
b4e70030
JB
8070echo "$as_me:$LINENO: checking $ac_header presence" >&5
8071echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8072cat >conftest.$ac_ext <<_ACEOF
8073/* confdefs.h. */
8074_ACEOF
8075cat confdefs.h >>conftest.$ac_ext
8076cat >>conftest.$ac_ext <<_ACEOF
8077/* end confdefs.h. */
8078#include <$ac_header>
8079_ACEOF
8080if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8082 ac_status=$?
8083 grep -v '^ *+' conftest.er1 >conftest.err
8084 rm -f conftest.er1
8085 cat conftest.err >&5
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); } >/dev/null; then
8088 if test -s conftest.err; then
8089 ac_cpp_err=$ac_c_preproc_warn_flag
8090 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8091 else
8092 ac_cpp_err=
8093 fi
9a156167 8094else
bec39cab
AC
8095 ac_cpp_err=yes
8096fi
8097if test -z "$ac_cpp_err"; then
8098 ac_header_preproc=yes
9a156167 8099else
bec39cab
AC
8100 echo "$as_me: failed program was:" >&5
8101sed 's/^/| /' conftest.$ac_ext >&5
8102
8103 ac_header_preproc=no
9a156167 8104fi
bec39cab 8105rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8106echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8107echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8108
8109# So? What about this header?
8110case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8111 yes:no: )
8112 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8113echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8115echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8116 ac_header_preproc=yes
8117 ;;
8118 no:yes:* )
8119 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8120echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8121 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8122echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8123 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8124echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8125 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8126echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8128echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8129 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8130echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8131 (
8132 cat <<\_ASBOX
8133## ------------------------------------------ ##
8134## Report this to the AC_PACKAGE_NAME lists. ##
8135## ------------------------------------------ ##
8136_ASBOX
8137 ) |
8138 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8139 ;;
8140esac
b4e70030
JB
8141echo "$as_me:$LINENO: checking for $ac_header" >&5
8142echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8143if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8144 echo $ECHO_N "(cached) $ECHO_C" >&6
9a156167 8145else
bec39cab 8146 eval "$as_ac_Header=\$ac_header_preproc"
9a156167 8147fi
b4e70030
JB
8148echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8149echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 8150
9a156167 8151fi
bec39cab
AC
8152if test `eval echo '${'$as_ac_Header'}'` = yes; then
8153 cat >>confdefs.h <<_ACEOF
8154#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8155_ACEOF
9a156167 8156
9a156167
MK
8157fi
8158
bec39cab
AC
8159done
8160
06825bd1 8161
bec39cab
AC
8162for ac_header in stdint.h
8163do
8164as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8165if eval "test \"\${$as_ac_Header+set}\" = set"; then
8166 echo "$as_me:$LINENO: checking for $ac_header" >&5
8167echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8168if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8169 echo $ECHO_N "(cached) $ECHO_C" >&6
8170fi
b4e70030
JB
8171echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8172echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8173else
8174 # Is the header compilable?
b4e70030
JB
8175echo "$as_me:$LINENO: checking $ac_header usability" >&5
8176echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8177cat >conftest.$ac_ext <<_ACEOF
8178/* confdefs.h. */
8179_ACEOF
8180cat confdefs.h >>conftest.$ac_ext
8181cat >>conftest.$ac_ext <<_ACEOF
8182/* end confdefs.h. */
8183$ac_includes_default
8184#include <$ac_header>
8185_ACEOF
8186rm -f conftest.$ac_objext
8187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8188 (eval $ac_compile) 2>conftest.er1
8189 ac_status=$?
8190 grep -v '^ *+' conftest.er1 >conftest.err
8191 rm -f conftest.er1
8192 cat conftest.err >&5
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); } &&
b4e70030
JB
8195 { ac_try='test -z "$ac_c_werror_flag"
8196 || test ! -s conftest.err'
bec39cab
AC
8197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8198 (eval $ac_try) 2>&5
8199 ac_status=$?
8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201 (exit $ac_status); }; } &&
8202 { ac_try='test -s conftest.$ac_objext'
8203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8204 (eval $ac_try) 2>&5
8205 ac_status=$?
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); }; }; then
8208 ac_header_compiler=yes
8209else
8210 echo "$as_me: failed program was:" >&5
8211sed 's/^/| /' conftest.$ac_ext >&5
8212
b4e70030 8213ac_header_compiler=no
bec39cab
AC
8214fi
8215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8216echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8217echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8218
8219# Is the header present?
b4e70030
JB
8220echo "$as_me:$LINENO: checking $ac_header presence" >&5
8221echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8222cat >conftest.$ac_ext <<_ACEOF
8223/* confdefs.h. */
8224_ACEOF
8225cat confdefs.h >>conftest.$ac_ext
8226cat >>conftest.$ac_ext <<_ACEOF
8227/* end confdefs.h. */
8228#include <$ac_header>
8229_ACEOF
8230if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8231 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8232 ac_status=$?
8233 grep -v '^ *+' conftest.er1 >conftest.err
8234 rm -f conftest.er1
8235 cat conftest.err >&5
8236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237 (exit $ac_status); } >/dev/null; then
8238 if test -s conftest.err; then
8239 ac_cpp_err=$ac_c_preproc_warn_flag
8240 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8241 else
8242 ac_cpp_err=
8243 fi
06825bd1 8244else
bec39cab
AC
8245 ac_cpp_err=yes
8246fi
8247if test -z "$ac_cpp_err"; then
8248 ac_header_preproc=yes
06825bd1 8249else
bec39cab
AC
8250 echo "$as_me: failed program was:" >&5
8251sed 's/^/| /' conftest.$ac_ext >&5
8252
8253 ac_header_preproc=no
06825bd1 8254fi
bec39cab 8255rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8256echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8257echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8258
8259# So? What about this header?
8260case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8261 yes:no: )
8262 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8263echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8264 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8265echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8266 ac_header_preproc=yes
8267 ;;
8268 no:yes:* )
8269 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8270echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8271 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8272echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8273 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8274echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8275 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8276echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8278echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8279 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8280echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8281 (
8282 cat <<\_ASBOX
8283## ------------------------------------------ ##
8284## Report this to the AC_PACKAGE_NAME lists. ##
8285## ------------------------------------------ ##
8286_ASBOX
8287 ) |
8288 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8289 ;;
8290esac
b4e70030
JB
8291echo "$as_me:$LINENO: checking for $ac_header" >&5
8292echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8293if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8294 echo $ECHO_N "(cached) $ECHO_C" >&6
06825bd1 8295else
bec39cab 8296 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 8297fi
b4e70030
JB
8298echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8299echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 8300
06825bd1 8301fi
bec39cab
AC
8302if test `eval echo '${'$as_ac_Header'}'` = yes; then
8303 cat >>confdefs.h <<_ACEOF
8304#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8305_ACEOF
06825bd1 8306
06825bd1 8307fi
4f0be353 8308
bec39cab 8309done
4f0be353 8310
06825bd1 8311
06825bd1 8312
bec39cab
AC
8313
8314for ac_header in string.h memory.h strings.h
8315do
8316as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8317if eval "test \"\${$as_ac_Header+set}\" = set"; then
8318 echo "$as_me:$LINENO: checking for $ac_header" >&5
8319echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8320if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8321 echo $ECHO_N "(cached) $ECHO_C" >&6
8322fi
b4e70030
JB
8323echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8324echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8325else
8326 # Is the header compilable?
b4e70030
JB
8327echo "$as_me:$LINENO: checking $ac_header usability" >&5
8328echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8329cat >conftest.$ac_ext <<_ACEOF
8330/* confdefs.h. */
8331_ACEOF
8332cat confdefs.h >>conftest.$ac_ext
8333cat >>conftest.$ac_ext <<_ACEOF
8334/* end confdefs.h. */
8335$ac_includes_default
8336#include <$ac_header>
8337_ACEOF
8338rm -f conftest.$ac_objext
8339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8340 (eval $ac_compile) 2>conftest.er1
8341 ac_status=$?
8342 grep -v '^ *+' conftest.er1 >conftest.err
8343 rm -f conftest.er1
8344 cat conftest.err >&5
8345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8346 (exit $ac_status); } &&
b4e70030
JB
8347 { ac_try='test -z "$ac_c_werror_flag"
8348 || test ! -s conftest.err'
bec39cab
AC
8349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8350 (eval $ac_try) 2>&5
8351 ac_status=$?
8352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353 (exit $ac_status); }; } &&
8354 { ac_try='test -s conftest.$ac_objext'
8355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8356 (eval $ac_try) 2>&5
8357 ac_status=$?
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); }; }; then
8360 ac_header_compiler=yes
8361else
8362 echo "$as_me: failed program was:" >&5
8363sed 's/^/| /' conftest.$ac_ext >&5
8364
b4e70030 8365ac_header_compiler=no
bec39cab
AC
8366fi
8367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8368echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8369echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8370
8371# Is the header present?
b4e70030
JB
8372echo "$as_me:$LINENO: checking $ac_header presence" >&5
8373echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8374cat >conftest.$ac_ext <<_ACEOF
8375/* confdefs.h. */
8376_ACEOF
8377cat confdefs.h >>conftest.$ac_ext
8378cat >>conftest.$ac_ext <<_ACEOF
8379/* end confdefs.h. */
8380#include <$ac_header>
8381_ACEOF
8382if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8383 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8384 ac_status=$?
8385 grep -v '^ *+' conftest.er1 >conftest.err
8386 rm -f conftest.er1
8387 cat conftest.err >&5
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); } >/dev/null; then
8390 if test -s conftest.err; then
8391 ac_cpp_err=$ac_c_preproc_warn_flag
8392 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8393 else
8394 ac_cpp_err=
8395 fi
06825bd1 8396else
bec39cab
AC
8397 ac_cpp_err=yes
8398fi
8399if test -z "$ac_cpp_err"; then
8400 ac_header_preproc=yes
06825bd1 8401else
bec39cab
AC
8402 echo "$as_me: failed program was:" >&5
8403sed 's/^/| /' conftest.$ac_ext >&5
8404
8405 ac_header_preproc=no
06825bd1 8406fi
bec39cab 8407rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8408echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8409echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8410
8411# So? What about this header?
8412case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8413 yes:no: )
8414 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8415echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8417echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8418 ac_header_preproc=yes
8419 ;;
8420 no:yes:* )
8421 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8422echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8423 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8424echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8425 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8426echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8427 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8428echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8430echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8431 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8432echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8433 (
8434 cat <<\_ASBOX
8435## ------------------------------------------ ##
8436## Report this to the AC_PACKAGE_NAME lists. ##
8437## ------------------------------------------ ##
8438_ASBOX
8439 ) |
8440 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8441 ;;
8442esac
b4e70030
JB
8443echo "$as_me:$LINENO: checking for $ac_header" >&5
8444echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8445if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
8447else
8448 eval "$as_ac_Header=\$ac_header_preproc"
06825bd1 8449fi
b4e70030
JB
8450echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8451echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
06825bd1 8452
06825bd1 8453fi
bec39cab
AC
8454if test `eval echo '${'$as_ac_Header'}'` = yes; then
8455 cat >>confdefs.h <<_ACEOF
8456#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8457_ACEOF
06825bd1 8458
06825bd1
MK
8459fi
8460
bec39cab 8461done
5ee754fc 8462
bec39cab
AC
8463
8464for ac_header in sys/fault.h
5ee754fc 8465do
bec39cab 8466as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8467if eval "test \"\${$as_ac_Header+set}\" = set"; then
8468 echo "$as_me:$LINENO: checking for $ac_header" >&5
8469echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8470if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
8472fi
b4e70030
JB
8473echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8474echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8475else
8476 # Is the header compilable?
b4e70030
JB
8477echo "$as_me:$LINENO: checking $ac_header usability" >&5
8478echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8479cat >conftest.$ac_ext <<_ACEOF
8480/* confdefs.h. */
8481_ACEOF
8482cat confdefs.h >>conftest.$ac_ext
8483cat >>conftest.$ac_ext <<_ACEOF
8484/* end confdefs.h. */
8485$ac_includes_default
8486#include <$ac_header>
8487_ACEOF
8488rm -f conftest.$ac_objext
8489if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8490 (eval $ac_compile) 2>conftest.er1
8491 ac_status=$?
8492 grep -v '^ *+' conftest.er1 >conftest.err
8493 rm -f conftest.er1
8494 cat conftest.err >&5
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); } &&
b4e70030
JB
8497 { ac_try='test -z "$ac_c_werror_flag"
8498 || test ! -s conftest.err'
bec39cab
AC
8499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8500 (eval $ac_try) 2>&5
8501 ac_status=$?
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); }; } &&
8504 { ac_try='test -s conftest.$ac_objext'
8505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8506 (eval $ac_try) 2>&5
8507 ac_status=$?
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); }; }; then
8510 ac_header_compiler=yes
8511else
8512 echo "$as_me: failed program was:" >&5
8513sed 's/^/| /' conftest.$ac_ext >&5
8514
b4e70030 8515ac_header_compiler=no
bec39cab
AC
8516fi
8517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8518echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8519echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8520
8521# Is the header present?
b4e70030
JB
8522echo "$as_me:$LINENO: checking $ac_header presence" >&5
8523echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8524cat >conftest.$ac_ext <<_ACEOF
8525/* confdefs.h. */
8526_ACEOF
8527cat confdefs.h >>conftest.$ac_ext
8528cat >>conftest.$ac_ext <<_ACEOF
8529/* end confdefs.h. */
8530#include <$ac_header>
8531_ACEOF
8532if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8533 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8534 ac_status=$?
8535 grep -v '^ *+' conftest.er1 >conftest.err
8536 rm -f conftest.er1
8537 cat conftest.err >&5
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); } >/dev/null; then
8540 if test -s conftest.err; then
8541 ac_cpp_err=$ac_c_preproc_warn_flag
8542 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8543 else
8544 ac_cpp_err=
8545 fi
5ee754fc 8546else
bec39cab 8547 ac_cpp_err=yes
5ee754fc 8548fi
bec39cab
AC
8549if test -z "$ac_cpp_err"; then
8550 ac_header_preproc=yes
8551else
8552 echo "$as_me: failed program was:" >&5
8553sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 8554
bec39cab 8555 ac_header_preproc=no
5ee754fc 8556fi
bec39cab 8557rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8558echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8559echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
8560
8561# So? What about this header?
8562case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8563 yes:no: )
8564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8565echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8567echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8568 ac_header_preproc=yes
8569 ;;
8570 no:yes:* )
8571 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8572echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8573 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8574echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8575 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8576echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8577 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8578echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8580echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8581 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8582echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8583 (
8584 cat <<\_ASBOX
8585## ------------------------------------------ ##
8586## Report this to the AC_PACKAGE_NAME lists. ##
8587## ------------------------------------------ ##
8588_ASBOX
8589 ) |
8590 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8591 ;;
8592esac
b4e70030
JB
8593echo "$as_me:$LINENO: checking for $ac_header" >&5
8594echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8595if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8596 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 8597else
bec39cab 8598 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 8599fi
b4e70030
JB
8600echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8601echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
c906108c 8602
5ee754fc 8603fi
bec39cab
AC
8604if test `eval echo '${'$as_ac_Header'}'` = yes; then
8605 cat >>confdefs.h <<_ACEOF
8606#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8607_ACEOF
c906108c 8608
5ee754fc 8609fi
bec39cab
AC
8610
8611done
8612
8613
8614for ac_header in sys/file.h
8615do
8616as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8617if eval "test \"\${$as_ac_Header+set}\" = set"; then
8618 echo "$as_me:$LINENO: checking for $ac_header" >&5
8619echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8620if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8621 echo $ECHO_N "(cached) $ECHO_C" >&6
8622fi
b4e70030
JB
8623echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8624echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8625else
8626 # Is the header compilable?
b4e70030
JB
8627echo "$as_me:$LINENO: checking $ac_header usability" >&5
8628echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8629cat >conftest.$ac_ext <<_ACEOF
8630/* confdefs.h. */
8631_ACEOF
8632cat confdefs.h >>conftest.$ac_ext
8633cat >>conftest.$ac_ext <<_ACEOF
8634/* end confdefs.h. */
8635$ac_includes_default
8636#include <$ac_header>
8637_ACEOF
8638rm -f conftest.$ac_objext
8639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8640 (eval $ac_compile) 2>conftest.er1
8641 ac_status=$?
8642 grep -v '^ *+' conftest.er1 >conftest.err
8643 rm -f conftest.er1
8644 cat conftest.err >&5
8645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646 (exit $ac_status); } &&
b4e70030
JB
8647 { ac_try='test -z "$ac_c_werror_flag"
8648 || test ! -s conftest.err'
bec39cab
AC
8649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8650 (eval $ac_try) 2>&5
8651 ac_status=$?
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); }; } &&
8654 { ac_try='test -s conftest.$ac_objext'
8655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8656 (eval $ac_try) 2>&5
8657 ac_status=$?
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); }; }; then
8660 ac_header_compiler=yes
8661else
8662 echo "$as_me: failed program was:" >&5
8663sed 's/^/| /' conftest.$ac_ext >&5
8664
b4e70030 8665ac_header_compiler=no
bec39cab
AC
8666fi
8667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8668echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8669echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8670
8671# Is the header present?
b4e70030
JB
8672echo "$as_me:$LINENO: checking $ac_header presence" >&5
8673echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8674cat >conftest.$ac_ext <<_ACEOF
8675/* confdefs.h. */
8676_ACEOF
8677cat confdefs.h >>conftest.$ac_ext
8678cat >>conftest.$ac_ext <<_ACEOF
8679/* end confdefs.h. */
8680#include <$ac_header>
8681_ACEOF
8682if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8683 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8684 ac_status=$?
8685 grep -v '^ *+' conftest.er1 >conftest.err
8686 rm -f conftest.er1
8687 cat conftest.err >&5
8688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); } >/dev/null; then
8690 if test -s conftest.err; then
8691 ac_cpp_err=$ac_c_preproc_warn_flag
8692 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8693 else
8694 ac_cpp_err=
8695 fi
5ee754fc 8696else
bec39cab 8697 ac_cpp_err=yes
5ee754fc 8698fi
bec39cab
AC
8699if test -z "$ac_cpp_err"; then
8700 ac_header_preproc=yes
8701else
8702 echo "$as_me: failed program was:" >&5
8703sed 's/^/| /' conftest.$ac_ext >&5
c906108c 8704
bec39cab 8705 ac_header_preproc=no
5ee754fc 8706fi
bec39cab 8707rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8708echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8709echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 8710
bec39cab
AC
8711# So? What about this header?
8712case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8713 yes:no: )
8714 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8715echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8717echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8718 ac_header_preproc=yes
8719 ;;
8720 no:yes:* )
8721 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8722echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8723 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8724echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8725 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8726echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8727 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8728echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8730echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8731 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8732echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8733 (
8734 cat <<\_ASBOX
8735## ------------------------------------------ ##
8736## Report this to the AC_PACKAGE_NAME lists. ##
8737## ------------------------------------------ ##
8738_ASBOX
8739 ) |
8740 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8741 ;;
8742esac
b4e70030
JB
8743echo "$as_me:$LINENO: checking for $ac_header" >&5
8744echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8745if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8746 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 8747else
bec39cab
AC
8748 eval "$as_ac_Header=\$ac_header_preproc"
8749fi
b4e70030
JB
8750echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8751echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 8752
bec39cab
AC
8753fi
8754if test `eval echo '${'$as_ac_Header'}'` = yes; then
8755 cat >>confdefs.h <<_ACEOF
8756#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8757_ACEOF
5ee754fc 8758
bec39cab 8759fi
5ee754fc 8760
bec39cab 8761done
5ee754fc 8762
5ee754fc 8763
bec39cab
AC
8764for ac_header in sys/filio.h
8765do
8766as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8767if eval "test \"\${$as_ac_Header+set}\" = set"; then
8768 echo "$as_me:$LINENO: checking for $ac_header" >&5
8769echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8770if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8771 echo $ECHO_N "(cached) $ECHO_C" >&6
8772fi
b4e70030
JB
8773echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8774echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8775else
8776 # Is the header compilable?
b4e70030
JB
8777echo "$as_me:$LINENO: checking $ac_header usability" >&5
8778echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8779cat >conftest.$ac_ext <<_ACEOF
8780/* confdefs.h. */
8781_ACEOF
8782cat confdefs.h >>conftest.$ac_ext
8783cat >>conftest.$ac_ext <<_ACEOF
8784/* end confdefs.h. */
8785$ac_includes_default
8786#include <$ac_header>
8787_ACEOF
8788rm -f conftest.$ac_objext
8789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8790 (eval $ac_compile) 2>conftest.er1
8791 ac_status=$?
8792 grep -v '^ *+' conftest.er1 >conftest.err
8793 rm -f conftest.er1
8794 cat conftest.err >&5
8795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796 (exit $ac_status); } &&
b4e70030
JB
8797 { ac_try='test -z "$ac_c_werror_flag"
8798 || test ! -s conftest.err'
bec39cab
AC
8799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8800 (eval $ac_try) 2>&5
8801 ac_status=$?
8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803 (exit $ac_status); }; } &&
8804 { ac_try='test -s conftest.$ac_objext'
8805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8806 (eval $ac_try) 2>&5
8807 ac_status=$?
8808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 (exit $ac_status); }; }; then
8810 ac_header_compiler=yes
8811else
8812 echo "$as_me: failed program was:" >&5
8813sed 's/^/| /' conftest.$ac_ext >&5
8814
b4e70030 8815ac_header_compiler=no
bec39cab
AC
8816fi
8817rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8818echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8819echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8820
8821# Is the header present?
b4e70030
JB
8822echo "$as_me:$LINENO: checking $ac_header presence" >&5
8823echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8824cat >conftest.$ac_ext <<_ACEOF
8825/* confdefs.h. */
8826_ACEOF
8827cat confdefs.h >>conftest.$ac_ext
8828cat >>conftest.$ac_ext <<_ACEOF
8829/* end confdefs.h. */
8830#include <$ac_header>
8831_ACEOF
8832if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8833 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8834 ac_status=$?
8835 grep -v '^ *+' conftest.er1 >conftest.err
8836 rm -f conftest.er1
8837 cat conftest.err >&5
8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839 (exit $ac_status); } >/dev/null; then
8840 if test -s conftest.err; then
8841 ac_cpp_err=$ac_c_preproc_warn_flag
8842 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8843 else
8844 ac_cpp_err=
8845 fi
5ee754fc 8846else
bec39cab 8847 ac_cpp_err=yes
5ee754fc 8848fi
bec39cab
AC
8849if test -z "$ac_cpp_err"; then
8850 ac_header_preproc=yes
8851else
8852 echo "$as_me: failed program was:" >&5
8853sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 8854
bec39cab 8855 ac_header_preproc=no
5ee754fc 8856fi
bec39cab 8857rm -f conftest.err conftest.$ac_ext
b4e70030
JB
8858echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8859echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 8860
bec39cab
AC
8861# So? What about this header?
8862case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8863 yes:no: )
8864 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8865echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8867echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8868 ac_header_preproc=yes
8869 ;;
8870 no:yes:* )
8871 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8872echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8873 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8874echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8875 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8876echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8877 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8878echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8880echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8881 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8882echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
8883 (
8884 cat <<\_ASBOX
8885## ------------------------------------------ ##
8886## Report this to the AC_PACKAGE_NAME lists. ##
8887## ------------------------------------------ ##
8888_ASBOX
8889 ) |
8890 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
8891 ;;
8892esac
b4e70030
JB
8893echo "$as_me:$LINENO: checking for $ac_header" >&5
8894echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8895if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 8896 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 8897else
bec39cab 8898 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 8899fi
b4e70030
JB
8900echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8901echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 8902
5ee754fc 8903fi
bec39cab
AC
8904if test `eval echo '${'$as_ac_Header'}'` = yes; then
8905 cat >>confdefs.h <<_ACEOF
8906#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8907_ACEOF
5ee754fc
MK
8908
8909fi
8910
bec39cab
AC
8911done
8912
8913
8914for ac_header in sys/ioctl.h
8915do
8916as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
8917if eval "test \"\${$as_ac_Header+set}\" = set"; then
8918 echo "$as_me:$LINENO: checking for $ac_header" >&5
8919echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8920if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
8921 echo $ECHO_N "(cached) $ECHO_C" >&6
8922fi
b4e70030
JB
8923echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8924echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
8925else
8926 # Is the header compilable?
b4e70030
JB
8927echo "$as_me:$LINENO: checking $ac_header usability" >&5
8928echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
8929cat >conftest.$ac_ext <<_ACEOF
8930/* confdefs.h. */
8931_ACEOF
8932cat confdefs.h >>conftest.$ac_ext
8933cat >>conftest.$ac_ext <<_ACEOF
8934/* end confdefs.h. */
8935$ac_includes_default
8936#include <$ac_header>
8937_ACEOF
8938rm -f conftest.$ac_objext
8939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8940 (eval $ac_compile) 2>conftest.er1
8941 ac_status=$?
8942 grep -v '^ *+' conftest.er1 >conftest.err
8943 rm -f conftest.er1
8944 cat conftest.err >&5
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); } &&
b4e70030
JB
8947 { ac_try='test -z "$ac_c_werror_flag"
8948 || test ! -s conftest.err'
bec39cab
AC
8949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8950 (eval $ac_try) 2>&5
8951 ac_status=$?
8952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953 (exit $ac_status); }; } &&
8954 { ac_try='test -s conftest.$ac_objext'
8955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8956 (eval $ac_try) 2>&5
8957 ac_status=$?
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); }; }; then
8960 ac_header_compiler=yes
8961else
8962 echo "$as_me: failed program was:" >&5
8963sed 's/^/| /' conftest.$ac_ext >&5
8964
b4e70030 8965ac_header_compiler=no
bec39cab
AC
8966fi
8967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
8968echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8969echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
8970
8971# Is the header present?
b4e70030
JB
8972echo "$as_me:$LINENO: checking $ac_header presence" >&5
8973echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
8974cat >conftest.$ac_ext <<_ACEOF
8975/* confdefs.h. */
8976_ACEOF
8977cat confdefs.h >>conftest.$ac_ext
8978cat >>conftest.$ac_ext <<_ACEOF
8979/* end confdefs.h. */
8980#include <$ac_header>
8981_ACEOF
8982if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8984 ac_status=$?
8985 grep -v '^ *+' conftest.er1 >conftest.err
8986 rm -f conftest.er1
8987 cat conftest.err >&5
8988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989 (exit $ac_status); } >/dev/null; then
8990 if test -s conftest.err; then
8991 ac_cpp_err=$ac_c_preproc_warn_flag
8992 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8993 else
8994 ac_cpp_err=
8995 fi
5ee754fc 8996else
bec39cab 8997 ac_cpp_err=yes
5ee754fc 8998fi
bec39cab
AC
8999if test -z "$ac_cpp_err"; then
9000 ac_header_preproc=yes
9001else
9002 echo "$as_me: failed program was:" >&5
9003sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 9004
bec39cab 9005 ac_header_preproc=no
5ee754fc 9006fi
bec39cab 9007rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9008echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9009echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9010
bec39cab
AC
9011# So? What about this header?
9012case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9013 yes:no: )
9014 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9015echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9017echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9018 ac_header_preproc=yes
9019 ;;
9020 no:yes:* )
9021 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9022echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9023 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9024echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9025 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9026echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9027 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9028echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9030echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9031 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9032echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9033 (
9034 cat <<\_ASBOX
9035## ------------------------------------------ ##
9036## Report this to the AC_PACKAGE_NAME lists. ##
9037## ------------------------------------------ ##
9038_ASBOX
9039 ) |
9040 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9041 ;;
9042esac
b4e70030
JB
9043echo "$as_me:$LINENO: checking for $ac_header" >&5
9044echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9045if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 9046 echo $ECHO_N "(cached) $ECHO_C" >&6
9608ab8b 9047else
bec39cab 9048 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9049fi
b4e70030
JB
9050echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9051echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc
MK
9052
9053fi
bec39cab
AC
9054if test `eval echo '${'$as_ac_Header'}'` = yes; then
9055 cat >>confdefs.h <<_ACEOF
9056#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9057_ACEOF
9058
5ee754fc
MK
9059fi
9060
bec39cab 9061done
5ee754fc 9062
5ee754fc 9063
bec39cab 9064for ac_header in sys/param.h
5ee754fc 9065do
bec39cab 9066as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9067if eval "test \"\${$as_ac_Header+set}\" = set"; then
9068 echo "$as_me:$LINENO: checking for $ac_header" >&5
9069echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9070if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9071 echo $ECHO_N "(cached) $ECHO_C" >&6
9072fi
b4e70030
JB
9073echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9074echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9075else
9076 # Is the header compilable?
b4e70030
JB
9077echo "$as_me:$LINENO: checking $ac_header usability" >&5
9078echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9079cat >conftest.$ac_ext <<_ACEOF
9080/* confdefs.h. */
9081_ACEOF
9082cat confdefs.h >>conftest.$ac_ext
9083cat >>conftest.$ac_ext <<_ACEOF
9084/* end confdefs.h. */
9085$ac_includes_default
9086#include <$ac_header>
9087_ACEOF
9088rm -f conftest.$ac_objext
9089if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9090 (eval $ac_compile) 2>conftest.er1
9091 ac_status=$?
9092 grep -v '^ *+' conftest.er1 >conftest.err
9093 rm -f conftest.er1
9094 cat conftest.err >&5
9095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096 (exit $ac_status); } &&
b4e70030
JB
9097 { ac_try='test -z "$ac_c_werror_flag"
9098 || test ! -s conftest.err'
bec39cab
AC
9099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9100 (eval $ac_try) 2>&5
9101 ac_status=$?
9102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103 (exit $ac_status); }; } &&
9104 { ac_try='test -s conftest.$ac_objext'
9105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9106 (eval $ac_try) 2>&5
9107 ac_status=$?
9108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109 (exit $ac_status); }; }; then
9110 ac_header_compiler=yes
9111else
9112 echo "$as_me: failed program was:" >&5
9113sed 's/^/| /' conftest.$ac_ext >&5
9114
b4e70030 9115ac_header_compiler=no
bec39cab
AC
9116fi
9117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9118echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9119echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9120
9121# Is the header present?
b4e70030
JB
9122echo "$as_me:$LINENO: checking $ac_header presence" >&5
9123echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9124cat >conftest.$ac_ext <<_ACEOF
9125/* confdefs.h. */
9126_ACEOF
9127cat confdefs.h >>conftest.$ac_ext
9128cat >>conftest.$ac_ext <<_ACEOF
9129/* end confdefs.h. */
9130#include <$ac_header>
9131_ACEOF
9132if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9134 ac_status=$?
9135 grep -v '^ *+' conftest.er1 >conftest.err
9136 rm -f conftest.er1
9137 cat conftest.err >&5
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); } >/dev/null; then
9140 if test -s conftest.err; then
9141 ac_cpp_err=$ac_c_preproc_warn_flag
9142 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9143 else
9144 ac_cpp_err=
9145 fi
5ee754fc 9146else
bec39cab 9147 ac_cpp_err=yes
5ee754fc 9148fi
bec39cab
AC
9149if test -z "$ac_cpp_err"; then
9150 ac_header_preproc=yes
9151else
9152 echo "$as_me: failed program was:" >&5
9153sed 's/^/| /' conftest.$ac_ext >&5
5ee754fc 9154
bec39cab 9155 ac_header_preproc=no
5ee754fc 9156fi
bec39cab 9157rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9158echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9159echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
9160
9161# So? What about this header?
9162case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9163 yes:no: )
9164 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9165echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9167echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9168 ac_header_preproc=yes
9169 ;;
9170 no:yes:* )
9171 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9172echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9173 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9174echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9175 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9176echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9177 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9178echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9180echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9181 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9182echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9183 (
9184 cat <<\_ASBOX
9185## ------------------------------------------ ##
9186## Report this to the AC_PACKAGE_NAME lists. ##
9187## ------------------------------------------ ##
9188_ASBOX
9189 ) |
9190 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9191 ;;
9192esac
b4e70030
JB
9193echo "$as_me:$LINENO: checking for $ac_header" >&5
9194echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9195if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 9196 echo $ECHO_N "(cached) $ECHO_C" >&6
5ee754fc 9197else
bec39cab 9198 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9199fi
b4e70030
JB
9200echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9201echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5ee754fc 9202
5ee754fc 9203fi
bec39cab
AC
9204if test `eval echo '${'$as_ac_Header'}'` = yes; then
9205 cat >>confdefs.h <<_ACEOF
9206#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9207_ACEOF
9208
5ee754fc 9209fi
bec39cab 9210
5ee754fc
MK
9211done
9212
bec39cab 9213
7eb368b3
NR
9214for ac_header in sys/resource.h
9215do
9216as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9217if eval "test \"\${$as_ac_Header+set}\" = set"; then
9218 echo "$as_me:$LINENO: checking for $ac_header" >&5
9219echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9220if eval "test \"\${$as_ac_Header+set}\" = set"; then
9221 echo $ECHO_N "(cached) $ECHO_C" >&6
9222fi
9223echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9224echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9225else
9226 # Is the header compilable?
9227echo "$as_me:$LINENO: checking $ac_header usability" >&5
9228echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9229cat >conftest.$ac_ext <<_ACEOF
9230/* confdefs.h. */
9231_ACEOF
9232cat confdefs.h >>conftest.$ac_ext
9233cat >>conftest.$ac_ext <<_ACEOF
9234/* end confdefs.h. */
9235$ac_includes_default
9236#include <$ac_header>
9237_ACEOF
9238rm -f conftest.$ac_objext
9239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9240 (eval $ac_compile) 2>conftest.er1
9241 ac_status=$?
9242 grep -v '^ *+' conftest.er1 >conftest.err
9243 rm -f conftest.er1
9244 cat conftest.err >&5
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 (exit $ac_status); } &&
9247 { ac_try='test -z "$ac_c_werror_flag"
9248 || test ! -s conftest.err'
9249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9250 (eval $ac_try) 2>&5
9251 ac_status=$?
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); }; } &&
9254 { ac_try='test -s conftest.$ac_objext'
9255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9256 (eval $ac_try) 2>&5
9257 ac_status=$?
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); }; }; then
9260 ac_header_compiler=yes
9261else
9262 echo "$as_me: failed program was:" >&5
9263sed 's/^/| /' conftest.$ac_ext >&5
9264
9265ac_header_compiler=no
9266fi
9267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9268echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9269echo "${ECHO_T}$ac_header_compiler" >&6
9270
9271# Is the header present?
9272echo "$as_me:$LINENO: checking $ac_header presence" >&5
9273echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9274cat >conftest.$ac_ext <<_ACEOF
9275/* confdefs.h. */
9276_ACEOF
9277cat confdefs.h >>conftest.$ac_ext
9278cat >>conftest.$ac_ext <<_ACEOF
9279/* end confdefs.h. */
9280#include <$ac_header>
9281_ACEOF
9282if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9283 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9284 ac_status=$?
9285 grep -v '^ *+' conftest.er1 >conftest.err
9286 rm -f conftest.er1
9287 cat conftest.err >&5
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); } >/dev/null; then
9290 if test -s conftest.err; then
9291 ac_cpp_err=$ac_c_preproc_warn_flag
9292 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9293 else
9294 ac_cpp_err=
9295 fi
9296else
9297 ac_cpp_err=yes
9298fi
9299if test -z "$ac_cpp_err"; then
9300 ac_header_preproc=yes
9301else
9302 echo "$as_me: failed program was:" >&5
9303sed 's/^/| /' conftest.$ac_ext >&5
9304
9305 ac_header_preproc=no
9306fi
9307rm -f conftest.err conftest.$ac_ext
9308echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9309echo "${ECHO_T}$ac_header_preproc" >&6
9310
9311# So? What about this header?
9312case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9313 yes:no: )
9314 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9315echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9317echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9318 ac_header_preproc=yes
9319 ;;
9320 no:yes:* )
9321 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9322echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9323 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9324echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9325 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9326echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9327 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9328echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9329 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9330echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9331 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9332echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9333 (
9334 cat <<\_ASBOX
9335## ------------------------------------------ ##
9336## Report this to the AC_PACKAGE_NAME lists. ##
9337## ------------------------------------------ ##
9338_ASBOX
9339 ) |
9340 sed "s/^/$as_me: WARNING: /" >&2
9341 ;;
9342esac
9343echo "$as_me:$LINENO: checking for $ac_header" >&5
9344echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9345if eval "test \"\${$as_ac_Header+set}\" = set"; then
9346 echo $ECHO_N "(cached) $ECHO_C" >&6
9347else
9348 eval "$as_ac_Header=\$ac_header_preproc"
9349fi
9350echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9351echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9352
9353fi
9354if test `eval echo '${'$as_ac_Header'}'` = yes; then
9355 cat >>confdefs.h <<_ACEOF
9356#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9357_ACEOF
9358
9359fi
9360
9361done
9362
9363
bec39cab 9364for ac_header in sys/proc.h
5ee754fc 9365do
bec39cab 9366as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9367echo "$as_me:$LINENO: checking for $ac_header" >&5
9368echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9369if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 9370 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 9371else
7cb9022a 9372 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
9373/* confdefs.h. */
9374_ACEOF
9375cat confdefs.h >>conftest.$ac_ext
9376cat >>conftest.$ac_ext <<_ACEOF
9377/* end confdefs.h. */
7cb9022a
MK
9378#if HAVE_SYS_PARAM_H
9379# include <sys/param.h>
9380#endif
9381
9382
bec39cab
AC
9383#include <$ac_header>
9384_ACEOF
9385rm -f conftest.$ac_objext
9386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9387 (eval $ac_compile) 2>conftest.er1
9388 ac_status=$?
9389 grep -v '^ *+' conftest.er1 >conftest.err
9390 rm -f conftest.er1
9391 cat conftest.err >&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); } &&
b4e70030
JB
9394 { ac_try='test -z "$ac_c_werror_flag"
9395 || test ! -s conftest.err'
bec39cab
AC
9396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9397 (eval $ac_try) 2>&5
9398 ac_status=$?
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); }; } &&
9401 { ac_try='test -s conftest.$ac_objext'
9402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9403 (eval $ac_try) 2>&5
9404 ac_status=$?
9405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); }; }; then
7cb9022a 9407 eval "$as_ac_Header=yes"
bec39cab
AC
9408else
9409 echo "$as_me: failed program was:" >&5
9410sed 's/^/| /' conftest.$ac_ext >&5
9411
b4e70030 9412eval "$as_ac_Header=no"
bec39cab
AC
9413fi
9414rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 9415fi
b4e70030
JB
9416echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9417echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9418if test `eval echo '${'$as_ac_Header'}'` = yes; then
9419 cat >>confdefs.h <<_ACEOF
9420#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9421_ACEOF
9422
5ee754fc 9423fi
bec39cab 9424
5ee754fc
MK
9425done
9426
bec39cab
AC
9427
9428for ac_header in sys/procfs.h
5ee754fc 9429do
bec39cab 9430as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9431if eval "test \"\${$as_ac_Header+set}\" = set"; then
9432 echo "$as_me:$LINENO: checking for $ac_header" >&5
9433echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9434if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9435 echo $ECHO_N "(cached) $ECHO_C" >&6
9436fi
b4e70030
JB
9437echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9438echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9439else
9440 # Is the header compilable?
b4e70030
JB
9441echo "$as_me:$LINENO: checking $ac_header usability" >&5
9442echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9443cat >conftest.$ac_ext <<_ACEOF
9444/* confdefs.h. */
9445_ACEOF
9446cat confdefs.h >>conftest.$ac_ext
9447cat >>conftest.$ac_ext <<_ACEOF
9448/* end confdefs.h. */
9449$ac_includes_default
9450#include <$ac_header>
9451_ACEOF
9452rm -f conftest.$ac_objext
9453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9454 (eval $ac_compile) 2>conftest.er1
9455 ac_status=$?
9456 grep -v '^ *+' conftest.er1 >conftest.err
9457 rm -f conftest.er1
9458 cat conftest.err >&5
9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460 (exit $ac_status); } &&
b4e70030
JB
9461 { ac_try='test -z "$ac_c_werror_flag"
9462 || test ! -s conftest.err'
bec39cab
AC
9463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9464 (eval $ac_try) 2>&5
9465 ac_status=$?
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); }; } &&
9468 { ac_try='test -s conftest.$ac_objext'
9469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9470 (eval $ac_try) 2>&5
9471 ac_status=$?
9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473 (exit $ac_status); }; }; then
9474 ac_header_compiler=yes
9475else
9476 echo "$as_me: failed program was:" >&5
9477sed 's/^/| /' conftest.$ac_ext >&5
9478
b4e70030 9479ac_header_compiler=no
bec39cab
AC
9480fi
9481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9482echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9483echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9484
9485# Is the header present?
b4e70030
JB
9486echo "$as_me:$LINENO: checking $ac_header presence" >&5
9487echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9488cat >conftest.$ac_ext <<_ACEOF
9489/* confdefs.h. */
9490_ACEOF
9491cat confdefs.h >>conftest.$ac_ext
9492cat >>conftest.$ac_ext <<_ACEOF
9493/* end confdefs.h. */
9494#include <$ac_header>
9495_ACEOF
9496if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9498 ac_status=$?
9499 grep -v '^ *+' conftest.er1 >conftest.err
9500 rm -f conftest.er1
9501 cat conftest.err >&5
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); } >/dev/null; then
9504 if test -s conftest.err; then
9505 ac_cpp_err=$ac_c_preproc_warn_flag
9506 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9507 else
9508 ac_cpp_err=
9509 fi
9510else
9511 ac_cpp_err=yes
5ee754fc 9512fi
bec39cab
AC
9513if test -z "$ac_cpp_err"; then
9514 ac_header_preproc=yes
5ee754fc 9515else
bec39cab
AC
9516 echo "$as_me: failed program was:" >&5
9517sed 's/^/| /' conftest.$ac_ext >&5
9518
9519 ac_header_preproc=no
5ee754fc 9520fi
bec39cab 9521rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9522echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9523echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9524
bec39cab
AC
9525# So? What about this header?
9526case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9527 yes:no: )
9528 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9529echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9531echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9532 ac_header_preproc=yes
9533 ;;
9534 no:yes:* )
9535 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9536echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9537 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9538echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9539 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9540echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9541 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9542echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9544echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9545 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9546echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9547 (
9548 cat <<\_ASBOX
9549## ------------------------------------------ ##
9550## Report this to the AC_PACKAGE_NAME lists. ##
9551## ------------------------------------------ ##
9552_ASBOX
9553 ) |
9554 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9555 ;;
9556esac
b4e70030
JB
9557echo "$as_me:$LINENO: checking for $ac_header" >&5
9558echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9559if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9560 echo $ECHO_N "(cached) $ECHO_C" >&6
9561else
9562 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9563fi
b4e70030
JB
9564echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9565echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9566
5ee754fc 9567fi
bec39cab
AC
9568if test `eval echo '${'$as_ac_Header'}'` = yes; then
9569 cat >>confdefs.h <<_ACEOF
9570#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9571_ACEOF
9572
5ee754fc 9573fi
bec39cab 9574
5ee754fc
MK
9575done
9576
bec39cab
AC
9577
9578
9579for ac_header in sys/ptrace.h ptrace.h
5ee754fc 9580do
bec39cab 9581as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9582if eval "test \"\${$as_ac_Header+set}\" = set"; then
9583 echo "$as_me:$LINENO: checking for $ac_header" >&5
9584echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9585if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9586 echo $ECHO_N "(cached) $ECHO_C" >&6
9587fi
b4e70030
JB
9588echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9589echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9590else
9591 # Is the header compilable?
b4e70030
JB
9592echo "$as_me:$LINENO: checking $ac_header usability" >&5
9593echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9594cat >conftest.$ac_ext <<_ACEOF
9595/* confdefs.h. */
9596_ACEOF
9597cat confdefs.h >>conftest.$ac_ext
9598cat >>conftest.$ac_ext <<_ACEOF
9599/* end confdefs.h. */
9600$ac_includes_default
9601#include <$ac_header>
9602_ACEOF
9603rm -f conftest.$ac_objext
9604if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9605 (eval $ac_compile) 2>conftest.er1
9606 ac_status=$?
9607 grep -v '^ *+' conftest.er1 >conftest.err
9608 rm -f conftest.er1
9609 cat conftest.err >&5
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); } &&
b4e70030
JB
9612 { ac_try='test -z "$ac_c_werror_flag"
9613 || test ! -s conftest.err'
bec39cab
AC
9614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9615 (eval $ac_try) 2>&5
9616 ac_status=$?
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); }; } &&
9619 { ac_try='test -s conftest.$ac_objext'
9620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9621 (eval $ac_try) 2>&5
9622 ac_status=$?
9623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624 (exit $ac_status); }; }; then
9625 ac_header_compiler=yes
9626else
9627 echo "$as_me: failed program was:" >&5
9628sed 's/^/| /' conftest.$ac_ext >&5
9629
b4e70030 9630ac_header_compiler=no
bec39cab
AC
9631fi
9632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9633echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9634echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9635
9636# Is the header present?
b4e70030
JB
9637echo "$as_me:$LINENO: checking $ac_header presence" >&5
9638echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9639cat >conftest.$ac_ext <<_ACEOF
9640/* confdefs.h. */
9641_ACEOF
9642cat confdefs.h >>conftest.$ac_ext
9643cat >>conftest.$ac_ext <<_ACEOF
9644/* end confdefs.h. */
9645#include <$ac_header>
9646_ACEOF
9647if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9648 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9649 ac_status=$?
9650 grep -v '^ *+' conftest.er1 >conftest.err
9651 rm -f conftest.er1
9652 cat conftest.err >&5
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654 (exit $ac_status); } >/dev/null; then
9655 if test -s conftest.err; then
9656 ac_cpp_err=$ac_c_preproc_warn_flag
9657 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9658 else
9659 ac_cpp_err=
9660 fi
9661else
9662 ac_cpp_err=yes
5ee754fc 9663fi
bec39cab
AC
9664if test -z "$ac_cpp_err"; then
9665 ac_header_preproc=yes
5ee754fc 9666else
bec39cab
AC
9667 echo "$as_me: failed program was:" >&5
9668sed 's/^/| /' conftest.$ac_ext >&5
9669
9670 ac_header_preproc=no
5ee754fc 9671fi
bec39cab 9672rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9673echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9674echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9675
bec39cab
AC
9676# So? What about this header?
9677case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9678 yes:no: )
9679 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9680echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9682echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9683 ac_header_preproc=yes
9684 ;;
9685 no:yes:* )
9686 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9687echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9688 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9689echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9690 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9691echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9692 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9693echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9695echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9696 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9697echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9698 (
9699 cat <<\_ASBOX
9700## ------------------------------------------ ##
9701## Report this to the AC_PACKAGE_NAME lists. ##
9702## ------------------------------------------ ##
9703_ASBOX
9704 ) |
9705 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9706 ;;
9707esac
b4e70030
JB
9708echo "$as_me:$LINENO: checking for $ac_header" >&5
9709echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9710if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9711 echo $ECHO_N "(cached) $ECHO_C" >&6
9712else
9713 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9714fi
b4e70030
JB
9715echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9716echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9717
5ee754fc 9718fi
bec39cab
AC
9719if test `eval echo '${'$as_ac_Header'}'` = yes; then
9720 cat >>confdefs.h <<_ACEOF
9721#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9722_ACEOF
9723
5ee754fc 9724fi
bec39cab 9725
5ee754fc
MK
9726done
9727
bec39cab
AC
9728
9729
9730for ac_header in sys/reg.h sys/debugreg.h
5ee754fc 9731do
bec39cab 9732as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9733if eval "test \"\${$as_ac_Header+set}\" = set"; then
9734 echo "$as_me:$LINENO: checking for $ac_header" >&5
9735echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9736if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9737 echo $ECHO_N "(cached) $ECHO_C" >&6
9738fi
b4e70030
JB
9739echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9740echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9741else
9742 # Is the header compilable?
b4e70030
JB
9743echo "$as_me:$LINENO: checking $ac_header usability" >&5
9744echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9745cat >conftest.$ac_ext <<_ACEOF
9746/* confdefs.h. */
9747_ACEOF
9748cat confdefs.h >>conftest.$ac_ext
9749cat >>conftest.$ac_ext <<_ACEOF
9750/* end confdefs.h. */
9751$ac_includes_default
9752#include <$ac_header>
9753_ACEOF
9754rm -f conftest.$ac_objext
9755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9756 (eval $ac_compile) 2>conftest.er1
9757 ac_status=$?
9758 grep -v '^ *+' conftest.er1 >conftest.err
9759 rm -f conftest.er1
9760 cat conftest.err >&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); } &&
b4e70030
JB
9763 { ac_try='test -z "$ac_c_werror_flag"
9764 || test ! -s conftest.err'
bec39cab
AC
9765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9766 (eval $ac_try) 2>&5
9767 ac_status=$?
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); }; } &&
9770 { ac_try='test -s conftest.$ac_objext'
9771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9772 (eval $ac_try) 2>&5
9773 ac_status=$?
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); }; }; then
9776 ac_header_compiler=yes
9777else
9778 echo "$as_me: failed program was:" >&5
9779sed 's/^/| /' conftest.$ac_ext >&5
9780
b4e70030 9781ac_header_compiler=no
bec39cab
AC
9782fi
9783rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9784echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9785echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9786
9787# Is the header present?
b4e70030
JB
9788echo "$as_me:$LINENO: checking $ac_header presence" >&5
9789echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9790cat >conftest.$ac_ext <<_ACEOF
9791/* confdefs.h. */
9792_ACEOF
9793cat confdefs.h >>conftest.$ac_ext
9794cat >>conftest.$ac_ext <<_ACEOF
9795/* end confdefs.h. */
9796#include <$ac_header>
9797_ACEOF
9798if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9799 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9800 ac_status=$?
9801 grep -v '^ *+' conftest.er1 >conftest.err
9802 rm -f conftest.er1
9803 cat conftest.err >&5
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); } >/dev/null; then
9806 if test -s conftest.err; then
9807 ac_cpp_err=$ac_c_preproc_warn_flag
9808 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9809 else
9810 ac_cpp_err=
9811 fi
9812else
9813 ac_cpp_err=yes
5ee754fc 9814fi
bec39cab
AC
9815if test -z "$ac_cpp_err"; then
9816 ac_header_preproc=yes
5ee754fc 9817else
bec39cab
AC
9818 echo "$as_me: failed program was:" >&5
9819sed 's/^/| /' conftest.$ac_ext >&5
9820
9821 ac_header_preproc=no
5ee754fc 9822fi
bec39cab 9823rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9824echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9825echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9826
bec39cab
AC
9827# So? What about this header?
9828case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9829 yes:no: )
9830 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9831echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9833echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9834 ac_header_preproc=yes
9835 ;;
9836 no:yes:* )
9837 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9838echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9839 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9840echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9841 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9842echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9843 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9844echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9845 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9846echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9847 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9848echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9849 (
9850 cat <<\_ASBOX
9851## ------------------------------------------ ##
9852## Report this to the AC_PACKAGE_NAME lists. ##
9853## ------------------------------------------ ##
9854_ASBOX
9855 ) |
9856 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
9857 ;;
9858esac
b4e70030
JB
9859echo "$as_me:$LINENO: checking for $ac_header" >&5
9860echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9861if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9862 echo $ECHO_N "(cached) $ECHO_C" >&6
9863else
9864 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 9865fi
b4e70030
JB
9866echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9867echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 9868
5ee754fc 9869fi
bec39cab
AC
9870if test `eval echo '${'$as_ac_Header'}'` = yes; then
9871 cat >>confdefs.h <<_ACEOF
9872#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9873_ACEOF
9874
5ee754fc 9875fi
bec39cab 9876
5ee754fc
MK
9877done
9878
bec39cab
AC
9879
9880for ac_header in sys/select.h
5ee754fc 9881do
bec39cab 9882as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
9883if eval "test \"\${$as_ac_Header+set}\" = set"; then
9884 echo "$as_me:$LINENO: checking for $ac_header" >&5
9885echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9886if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
9887 echo $ECHO_N "(cached) $ECHO_C" >&6
9888fi
b4e70030
JB
9889echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9890echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
9891else
9892 # Is the header compilable?
b4e70030
JB
9893echo "$as_me:$LINENO: checking $ac_header usability" >&5
9894echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
9895cat >conftest.$ac_ext <<_ACEOF
9896/* confdefs.h. */
9897_ACEOF
9898cat confdefs.h >>conftest.$ac_ext
9899cat >>conftest.$ac_ext <<_ACEOF
9900/* end confdefs.h. */
9901$ac_includes_default
9902#include <$ac_header>
9903_ACEOF
9904rm -f conftest.$ac_objext
9905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9906 (eval $ac_compile) 2>conftest.er1
9907 ac_status=$?
9908 grep -v '^ *+' conftest.er1 >conftest.err
9909 rm -f conftest.er1
9910 cat conftest.err >&5
9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912 (exit $ac_status); } &&
b4e70030
JB
9913 { ac_try='test -z "$ac_c_werror_flag"
9914 || test ! -s conftest.err'
bec39cab
AC
9915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9916 (eval $ac_try) 2>&5
9917 ac_status=$?
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); }; } &&
9920 { ac_try='test -s conftest.$ac_objext'
9921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9922 (eval $ac_try) 2>&5
9923 ac_status=$?
9924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925 (exit $ac_status); }; }; then
9926 ac_header_compiler=yes
9927else
9928 echo "$as_me: failed program was:" >&5
9929sed 's/^/| /' conftest.$ac_ext >&5
9930
b4e70030 9931ac_header_compiler=no
bec39cab
AC
9932fi
9933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
9934echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9935echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
9936
9937# Is the header present?
b4e70030
JB
9938echo "$as_me:$LINENO: checking $ac_header presence" >&5
9939echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
9940cat >conftest.$ac_ext <<_ACEOF
9941/* confdefs.h. */
9942_ACEOF
9943cat confdefs.h >>conftest.$ac_ext
9944cat >>conftest.$ac_ext <<_ACEOF
9945/* end confdefs.h. */
9946#include <$ac_header>
9947_ACEOF
9948if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9949 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9950 ac_status=$?
9951 grep -v '^ *+' conftest.er1 >conftest.err
9952 rm -f conftest.er1
9953 cat conftest.err >&5
9954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9955 (exit $ac_status); } >/dev/null; then
9956 if test -s conftest.err; then
9957 ac_cpp_err=$ac_c_preproc_warn_flag
9958 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9959 else
9960 ac_cpp_err=
9961 fi
9962else
9963 ac_cpp_err=yes
5ee754fc 9964fi
bec39cab
AC
9965if test -z "$ac_cpp_err"; then
9966 ac_header_preproc=yes
5ee754fc 9967else
bec39cab
AC
9968 echo "$as_me: failed program was:" >&5
9969sed 's/^/| /' conftest.$ac_ext >&5
9970
9971 ac_header_preproc=no
5ee754fc 9972fi
bec39cab 9973rm -f conftest.err conftest.$ac_ext
b4e70030
JB
9974echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9975echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 9976
bec39cab
AC
9977# So? What about this header?
9978case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9979 yes:no: )
9980 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9981echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9983echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9984 ac_header_preproc=yes
9985 ;;
9986 no:yes:* )
9987 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9988echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9989 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9990echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9991 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9992echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9993 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9994echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9996echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9997 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9998echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
9999 (
10000 cat <<\_ASBOX
10001## ------------------------------------------ ##
10002## Report this to the AC_PACKAGE_NAME lists. ##
10003## ------------------------------------------ ##
10004_ASBOX
10005 ) |
10006 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10007 ;;
10008esac
b4e70030
JB
10009echo "$as_me:$LINENO: checking for $ac_header" >&5
10010echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10011if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10012 echo $ECHO_N "(cached) $ECHO_C" >&6
10013else
10014 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10015fi
b4e70030
JB
10016echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10017echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10018
5ee754fc 10019fi
bec39cab
AC
10020if test `eval echo '${'$as_ac_Header'}'` = yes; then
10021 cat >>confdefs.h <<_ACEOF
10022#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10023_ACEOF
10024
5ee754fc 10025fi
bec39cab 10026
5ee754fc
MK
10027done
10028
bec39cab
AC
10029
10030for ac_header in sys/syscall.h
5ee754fc 10031do
bec39cab 10032as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10033if eval "test \"\${$as_ac_Header+set}\" = set"; then
10034 echo "$as_me:$LINENO: checking for $ac_header" >&5
10035echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10036if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10037 echo $ECHO_N "(cached) $ECHO_C" >&6
10038fi
b4e70030
JB
10039echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10040echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10041else
10042 # Is the header compilable?
b4e70030
JB
10043echo "$as_me:$LINENO: checking $ac_header usability" >&5
10044echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10045cat >conftest.$ac_ext <<_ACEOF
10046/* confdefs.h. */
10047_ACEOF
10048cat confdefs.h >>conftest.$ac_ext
10049cat >>conftest.$ac_ext <<_ACEOF
10050/* end confdefs.h. */
10051$ac_includes_default
10052#include <$ac_header>
10053_ACEOF
10054rm -f conftest.$ac_objext
10055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10056 (eval $ac_compile) 2>conftest.er1
10057 ac_status=$?
10058 grep -v '^ *+' conftest.er1 >conftest.err
10059 rm -f conftest.er1
10060 cat conftest.err >&5
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); } &&
b4e70030
JB
10063 { ac_try='test -z "$ac_c_werror_flag"
10064 || test ! -s conftest.err'
bec39cab
AC
10065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10066 (eval $ac_try) 2>&5
10067 ac_status=$?
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); }; } &&
10070 { ac_try='test -s conftest.$ac_objext'
10071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10072 (eval $ac_try) 2>&5
10073 ac_status=$?
10074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075 (exit $ac_status); }; }; then
10076 ac_header_compiler=yes
10077else
10078 echo "$as_me: failed program was:" >&5
10079sed 's/^/| /' conftest.$ac_ext >&5
10080
b4e70030 10081ac_header_compiler=no
bec39cab
AC
10082fi
10083rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10084echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10085echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10086
10087# Is the header present?
b4e70030
JB
10088echo "$as_me:$LINENO: checking $ac_header presence" >&5
10089echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10090cat >conftest.$ac_ext <<_ACEOF
10091/* confdefs.h. */
10092_ACEOF
10093cat confdefs.h >>conftest.$ac_ext
10094cat >>conftest.$ac_ext <<_ACEOF
10095/* end confdefs.h. */
10096#include <$ac_header>
10097_ACEOF
10098if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10100 ac_status=$?
10101 grep -v '^ *+' conftest.er1 >conftest.err
10102 rm -f conftest.er1
10103 cat conftest.err >&5
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); } >/dev/null; then
10106 if test -s conftest.err; then
10107 ac_cpp_err=$ac_c_preproc_warn_flag
10108 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10109 else
10110 ac_cpp_err=
10111 fi
10112else
10113 ac_cpp_err=yes
5ee754fc 10114fi
bec39cab
AC
10115if test -z "$ac_cpp_err"; then
10116 ac_header_preproc=yes
5ee754fc 10117else
bec39cab
AC
10118 echo "$as_me: failed program was:" >&5
10119sed 's/^/| /' conftest.$ac_ext >&5
10120
10121 ac_header_preproc=no
5ee754fc 10122fi
bec39cab 10123rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10124echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10125echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10126
bec39cab
AC
10127# So? What about this header?
10128case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10129 yes:no: )
10130 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10131echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10133echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10134 ac_header_preproc=yes
10135 ;;
10136 no:yes:* )
10137 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10138echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10139 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10140echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10141 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10142echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10143 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10144echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10146echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10147 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10148echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10149 (
10150 cat <<\_ASBOX
10151## ------------------------------------------ ##
10152## Report this to the AC_PACKAGE_NAME lists. ##
10153## ------------------------------------------ ##
10154_ASBOX
10155 ) |
10156 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10157 ;;
10158esac
b4e70030
JB
10159echo "$as_me:$LINENO: checking for $ac_header" >&5
10160echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10161if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10162 echo $ECHO_N "(cached) $ECHO_C" >&6
10163else
10164 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10165fi
b4e70030
JB
10166echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10167echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10168
5ee754fc 10169fi
bec39cab
AC
10170if test `eval echo '${'$as_ac_Header'}'` = yes; then
10171 cat >>confdefs.h <<_ACEOF
10172#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10173_ACEOF
10174
5ee754fc 10175fi
bec39cab 10176
5ee754fc
MK
10177done
10178
bec39cab
AC
10179
10180for ac_header in sys/types.h
5ee754fc 10181do
bec39cab 10182as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10183if eval "test \"\${$as_ac_Header+set}\" = set"; then
10184 echo "$as_me:$LINENO: checking for $ac_header" >&5
10185echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10186if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10187 echo $ECHO_N "(cached) $ECHO_C" >&6
10188fi
b4e70030
JB
10189echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10190echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10191else
10192 # Is the header compilable?
b4e70030
JB
10193echo "$as_me:$LINENO: checking $ac_header usability" >&5
10194echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10195cat >conftest.$ac_ext <<_ACEOF
10196/* confdefs.h. */
10197_ACEOF
10198cat confdefs.h >>conftest.$ac_ext
10199cat >>conftest.$ac_ext <<_ACEOF
10200/* end confdefs.h. */
10201$ac_includes_default
10202#include <$ac_header>
10203_ACEOF
10204rm -f conftest.$ac_objext
10205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10206 (eval $ac_compile) 2>conftest.er1
10207 ac_status=$?
10208 grep -v '^ *+' conftest.er1 >conftest.err
10209 rm -f conftest.er1
10210 cat conftest.err >&5
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); } &&
b4e70030
JB
10213 { ac_try='test -z "$ac_c_werror_flag"
10214 || test ! -s conftest.err'
bec39cab
AC
10215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10216 (eval $ac_try) 2>&5
10217 ac_status=$?
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); }; } &&
10220 { ac_try='test -s conftest.$ac_objext'
10221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10222 (eval $ac_try) 2>&5
10223 ac_status=$?
10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225 (exit $ac_status); }; }; then
10226 ac_header_compiler=yes
10227else
10228 echo "$as_me: failed program was:" >&5
10229sed 's/^/| /' conftest.$ac_ext >&5
10230
b4e70030 10231ac_header_compiler=no
bec39cab
AC
10232fi
10233rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10234echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10235echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10236
10237# Is the header present?
b4e70030
JB
10238echo "$as_me:$LINENO: checking $ac_header presence" >&5
10239echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10240cat >conftest.$ac_ext <<_ACEOF
10241/* confdefs.h. */
10242_ACEOF
10243cat confdefs.h >>conftest.$ac_ext
10244cat >>conftest.$ac_ext <<_ACEOF
10245/* end confdefs.h. */
10246#include <$ac_header>
10247_ACEOF
10248if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10249 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10250 ac_status=$?
10251 grep -v '^ *+' conftest.er1 >conftest.err
10252 rm -f conftest.er1
10253 cat conftest.err >&5
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); } >/dev/null; then
10256 if test -s conftest.err; then
10257 ac_cpp_err=$ac_c_preproc_warn_flag
10258 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10259 else
10260 ac_cpp_err=
10261 fi
10262else
10263 ac_cpp_err=yes
5ee754fc 10264fi
bec39cab
AC
10265if test -z "$ac_cpp_err"; then
10266 ac_header_preproc=yes
5ee754fc 10267else
bec39cab
AC
10268 echo "$as_me: failed program was:" >&5
10269sed 's/^/| /' conftest.$ac_ext >&5
10270
10271 ac_header_preproc=no
5ee754fc 10272fi
bec39cab 10273rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10274echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10275echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10276
bec39cab
AC
10277# So? What about this header?
10278case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10279 yes:no: )
10280 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10281echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10283echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10284 ac_header_preproc=yes
10285 ;;
10286 no:yes:* )
10287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10288echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10290echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10291 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10292echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10293 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10294echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10296echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10297 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10298echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10299 (
10300 cat <<\_ASBOX
10301## ------------------------------------------ ##
10302## Report this to the AC_PACKAGE_NAME lists. ##
10303## ------------------------------------------ ##
10304_ASBOX
10305 ) |
10306 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10307 ;;
10308esac
b4e70030
JB
10309echo "$as_me:$LINENO: checking for $ac_header" >&5
10310echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10311if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10312 echo $ECHO_N "(cached) $ECHO_C" >&6
10313else
10314 eval "$as_ac_Header=\$ac_header_preproc"
5ee754fc 10315fi
b4e70030
JB
10316echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10317echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10318
5ee754fc 10319fi
bec39cab
AC
10320if test `eval echo '${'$as_ac_Header'}'` = yes; then
10321 cat >>confdefs.h <<_ACEOF
10322#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10323_ACEOF
10324
5ee754fc 10325fi
bec39cab 10326
5ee754fc
MK
10327done
10328
bec39cab
AC
10329
10330for ac_header in sys/user.h
5ee754fc 10331do
bec39cab 10332as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10333echo "$as_me:$LINENO: checking for $ac_header" >&5
10334echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10335if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 10336 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 10337else
7cb9022a 10338 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
10339/* confdefs.h. */
10340_ACEOF
10341cat confdefs.h >>conftest.$ac_ext
10342cat >>conftest.$ac_ext <<_ACEOF
10343/* end confdefs.h. */
7cb9022a
MK
10344#if HAVE_SYS_PARAM_H
10345# include <sys/param.h>
10346#endif
10347
10348
bec39cab
AC
10349#include <$ac_header>
10350_ACEOF
10351rm -f conftest.$ac_objext
10352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10353 (eval $ac_compile) 2>conftest.er1
10354 ac_status=$?
10355 grep -v '^ *+' conftest.er1 >conftest.err
10356 rm -f conftest.er1
10357 cat conftest.err >&5
10358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); } &&
b4e70030
JB
10360 { ac_try='test -z "$ac_c_werror_flag"
10361 || test ! -s conftest.err'
bec39cab
AC
10362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10363 (eval $ac_try) 2>&5
10364 ac_status=$?
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); }; } &&
10367 { ac_try='test -s conftest.$ac_objext'
10368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10369 (eval $ac_try) 2>&5
10370 ac_status=$?
10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 (exit $ac_status); }; }; then
7cb9022a 10373 eval "$as_ac_Header=yes"
bec39cab
AC
10374else
10375 echo "$as_me: failed program was:" >&5
10376sed 's/^/| /' conftest.$ac_ext >&5
10377
b4e70030 10378eval "$as_ac_Header=no"
bec39cab
AC
10379fi
10380rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5ee754fc 10381fi
b4e70030
JB
10382echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10383echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10384if test `eval echo '${'$as_ac_Header'}'` = yes; then
10385 cat >>confdefs.h <<_ACEOF
10386#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10387_ACEOF
10388
5ee754fc 10389fi
bec39cab 10390
5ee754fc
MK
10391done
10392
bec39cab
AC
10393
10394
10395for ac_header in sys/wait.h wait.h
5ee754fc 10396do
bec39cab 10397as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10398if eval "test \"\${$as_ac_Header+set}\" = set"; then
10399 echo "$as_me:$LINENO: checking for $ac_header" >&5
10400echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10401if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10402 echo $ECHO_N "(cached) $ECHO_C" >&6
10403fi
b4e70030
JB
10404echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10405echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10406else
10407 # Is the header compilable?
b4e70030
JB
10408echo "$as_me:$LINENO: checking $ac_header usability" >&5
10409echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10410cat >conftest.$ac_ext <<_ACEOF
10411/* confdefs.h. */
10412_ACEOF
10413cat confdefs.h >>conftest.$ac_ext
10414cat >>conftest.$ac_ext <<_ACEOF
10415/* end confdefs.h. */
10416$ac_includes_default
10417#include <$ac_header>
10418_ACEOF
10419rm -f conftest.$ac_objext
10420if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10421 (eval $ac_compile) 2>conftest.er1
10422 ac_status=$?
10423 grep -v '^ *+' conftest.er1 >conftest.err
10424 rm -f conftest.er1
10425 cat conftest.err >&5
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); } &&
b4e70030
JB
10428 { ac_try='test -z "$ac_c_werror_flag"
10429 || test ! -s conftest.err'
bec39cab
AC
10430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10431 (eval $ac_try) 2>&5
10432 ac_status=$?
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); }; } &&
10435 { ac_try='test -s conftest.$ac_objext'
10436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10437 (eval $ac_try) 2>&5
10438 ac_status=$?
10439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440 (exit $ac_status); }; }; then
10441 ac_header_compiler=yes
10442else
10443 echo "$as_me: failed program was:" >&5
10444sed 's/^/| /' conftest.$ac_ext >&5
10445
b4e70030 10446ac_header_compiler=no
bec39cab
AC
10447fi
10448rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10449echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10450echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10451
10452# Is the header present?
b4e70030
JB
10453echo "$as_me:$LINENO: checking $ac_header presence" >&5
10454echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10455cat >conftest.$ac_ext <<_ACEOF
10456/* confdefs.h. */
10457_ACEOF
10458cat confdefs.h >>conftest.$ac_ext
10459cat >>conftest.$ac_ext <<_ACEOF
10460/* end confdefs.h. */
10461#include <$ac_header>
10462_ACEOF
10463if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10464 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10465 ac_status=$?
10466 grep -v '^ *+' conftest.er1 >conftest.err
10467 rm -f conftest.er1
10468 cat conftest.err >&5
10469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10470 (exit $ac_status); } >/dev/null; then
10471 if test -s conftest.err; then
10472 ac_cpp_err=$ac_c_preproc_warn_flag
10473 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10474 else
10475 ac_cpp_err=
10476 fi
10477else
10478 ac_cpp_err=yes
5ee754fc 10479fi
bec39cab
AC
10480if test -z "$ac_cpp_err"; then
10481 ac_header_preproc=yes
5ee754fc 10482else
bec39cab
AC
10483 echo "$as_me: failed program was:" >&5
10484sed 's/^/| /' conftest.$ac_ext >&5
10485
10486 ac_header_preproc=no
5ee754fc 10487fi
bec39cab 10488rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10489echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10490echo "${ECHO_T}$ac_header_preproc" >&6
5ee754fc 10491
bec39cab
AC
10492# So? What about this header?
10493case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10494 yes:no: )
10495 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10496echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10498echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10499 ac_header_preproc=yes
10500 ;;
10501 no:yes:* )
10502 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10503echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10504 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10505echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10506 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10507echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10508 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10509echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10511echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10512 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10513echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10514 (
10515 cat <<\_ASBOX
10516## ------------------------------------------ ##
10517## Report this to the AC_PACKAGE_NAME lists. ##
10518## ------------------------------------------ ##
10519_ASBOX
10520 ) |
10521 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10522 ;;
10523esac
b4e70030
JB
10524echo "$as_me:$LINENO: checking for $ac_header" >&5
10525echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10526if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10527 echo $ECHO_N "(cached) $ECHO_C" >&6
10528else
10529 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 10530fi
b4e70030
JB
10531echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10532echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10533
9608ab8b 10534fi
bec39cab
AC
10535if test `eval echo '${'$as_ac_Header'}'` = yes; then
10536 cat >>confdefs.h <<_ACEOF
10537#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10538_ACEOF
10539
9608ab8b 10540fi
bec39cab 10541
9608ab8b 10542done
5ee754fc 10543
bec39cab
AC
10544
10545
10546
10547for ac_header in termios.h termio.h sgtty.h
5ee754fc 10548do
bec39cab 10549as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10550if eval "test \"\${$as_ac_Header+set}\" = set"; then
10551 echo "$as_me:$LINENO: checking for $ac_header" >&5
10552echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10553if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10554 echo $ECHO_N "(cached) $ECHO_C" >&6
10555fi
b4e70030
JB
10556echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10557echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10558else
10559 # Is the header compilable?
b4e70030
JB
10560echo "$as_me:$LINENO: checking $ac_header usability" >&5
10561echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10562cat >conftest.$ac_ext <<_ACEOF
10563/* confdefs.h. */
10564_ACEOF
10565cat confdefs.h >>conftest.$ac_ext
10566cat >>conftest.$ac_ext <<_ACEOF
10567/* end confdefs.h. */
10568$ac_includes_default
10569#include <$ac_header>
10570_ACEOF
10571rm -f conftest.$ac_objext
10572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10573 (eval $ac_compile) 2>conftest.er1
10574 ac_status=$?
10575 grep -v '^ *+' conftest.er1 >conftest.err
10576 rm -f conftest.er1
10577 cat conftest.err >&5
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); } &&
b4e70030
JB
10580 { ac_try='test -z "$ac_c_werror_flag"
10581 || test ! -s conftest.err'
bec39cab
AC
10582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10583 (eval $ac_try) 2>&5
10584 ac_status=$?
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); }; } &&
10587 { ac_try='test -s conftest.$ac_objext'
10588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10589 (eval $ac_try) 2>&5
10590 ac_status=$?
10591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592 (exit $ac_status); }; }; then
10593 ac_header_compiler=yes
10594else
10595 echo "$as_me: failed program was:" >&5
10596sed 's/^/| /' conftest.$ac_ext >&5
10597
b4e70030 10598ac_header_compiler=no
bec39cab
AC
10599fi
10600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10601echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10602echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10603
10604# Is the header present?
b4e70030
JB
10605echo "$as_me:$LINENO: checking $ac_header presence" >&5
10606echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10607cat >conftest.$ac_ext <<_ACEOF
10608/* confdefs.h. */
10609_ACEOF
10610cat confdefs.h >>conftest.$ac_ext
10611cat >>conftest.$ac_ext <<_ACEOF
10612/* end confdefs.h. */
10613#include <$ac_header>
10614_ACEOF
10615if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10616 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10617 ac_status=$?
10618 grep -v '^ *+' conftest.er1 >conftest.err
10619 rm -f conftest.er1
10620 cat conftest.err >&5
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); } >/dev/null; then
10623 if test -s conftest.err; then
10624 ac_cpp_err=$ac_c_preproc_warn_flag
10625 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10626 else
10627 ac_cpp_err=
10628 fi
10629else
10630 ac_cpp_err=yes
9608ab8b 10631fi
bec39cab
AC
10632if test -z "$ac_cpp_err"; then
10633 ac_header_preproc=yes
9608ab8b 10634else
bec39cab
AC
10635 echo "$as_me: failed program was:" >&5
10636sed 's/^/| /' conftest.$ac_ext >&5
10637
10638 ac_header_preproc=no
9608ab8b 10639fi
bec39cab 10640rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10641echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10642echo "${ECHO_T}$ac_header_preproc" >&6
9608ab8b 10643
bec39cab
AC
10644# So? What about this header?
10645case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10646 yes:no: )
10647 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10648echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10649 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10650echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10651 ac_header_preproc=yes
10652 ;;
10653 no:yes:* )
10654 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10655echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10656 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10657echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10658 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10659echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10660 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10661echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10662 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10663echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10664 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10665echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10666 (
10667 cat <<\_ASBOX
10668## ------------------------------------------ ##
10669## Report this to the AC_PACKAGE_NAME lists. ##
10670## ------------------------------------------ ##
10671_ASBOX
10672 ) |
10673 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10674 ;;
10675esac
b4e70030
JB
10676echo "$as_me:$LINENO: checking for $ac_header" >&5
10677echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10678if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10679 echo $ECHO_N "(cached) $ECHO_C" >&6
10680else
10681 eval "$as_ac_Header=\$ac_header_preproc"
9608ab8b 10682fi
b4e70030
JB
10683echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10684echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10685
9608ab8b 10686fi
bec39cab
AC
10687if test `eval echo '${'$as_ac_Header'}'` = yes; then
10688 cat >>confdefs.h <<_ACEOF
10689#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10690_ACEOF
10691
9608ab8b 10692fi
bec39cab 10693
5ee754fc 10694done
9608ab8b 10695
bec39cab
AC
10696
10697for ac_header in unistd.h
78434e59 10698do
bec39cab 10699as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10700if eval "test \"\${$as_ac_Header+set}\" = set"; then
10701 echo "$as_me:$LINENO: checking for $ac_header" >&5
10702echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10703if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10704 echo $ECHO_N "(cached) $ECHO_C" >&6
10705fi
b4e70030
JB
10706echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10707echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10708else
10709 # Is the header compilable?
b4e70030
JB
10710echo "$as_me:$LINENO: checking $ac_header usability" >&5
10711echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10712cat >conftest.$ac_ext <<_ACEOF
10713/* confdefs.h. */
10714_ACEOF
10715cat confdefs.h >>conftest.$ac_ext
10716cat >>conftest.$ac_ext <<_ACEOF
10717/* end confdefs.h. */
10718$ac_includes_default
10719#include <$ac_header>
10720_ACEOF
10721rm -f conftest.$ac_objext
10722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10723 (eval $ac_compile) 2>conftest.er1
10724 ac_status=$?
10725 grep -v '^ *+' conftest.er1 >conftest.err
10726 rm -f conftest.er1
10727 cat conftest.err >&5
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); } &&
b4e70030
JB
10730 { ac_try='test -z "$ac_c_werror_flag"
10731 || test ! -s conftest.err'
bec39cab
AC
10732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10733 (eval $ac_try) 2>&5
10734 ac_status=$?
10735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10736 (exit $ac_status); }; } &&
10737 { ac_try='test -s conftest.$ac_objext'
10738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10739 (eval $ac_try) 2>&5
10740 ac_status=$?
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); }; }; then
10743 ac_header_compiler=yes
10744else
10745 echo "$as_me: failed program was:" >&5
10746sed 's/^/| /' conftest.$ac_ext >&5
10747
b4e70030 10748ac_header_compiler=no
bec39cab
AC
10749fi
10750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10751echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10752echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10753
10754# Is the header present?
b4e70030
JB
10755echo "$as_me:$LINENO: checking $ac_header presence" >&5
10756echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10757cat >conftest.$ac_ext <<_ACEOF
10758/* confdefs.h. */
10759_ACEOF
10760cat confdefs.h >>conftest.$ac_ext
10761cat >>conftest.$ac_ext <<_ACEOF
10762/* end confdefs.h. */
10763#include <$ac_header>
10764_ACEOF
10765if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10766 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10767 ac_status=$?
10768 grep -v '^ *+' conftest.er1 >conftest.err
10769 rm -f conftest.er1
10770 cat conftest.err >&5
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); } >/dev/null; then
10773 if test -s conftest.err; then
10774 ac_cpp_err=$ac_c_preproc_warn_flag
10775 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10776 else
10777 ac_cpp_err=
10778 fi
10779else
10780 ac_cpp_err=yes
78434e59 10781fi
bec39cab
AC
10782if test -z "$ac_cpp_err"; then
10783 ac_header_preproc=yes
78434e59 10784else
bec39cab
AC
10785 echo "$as_me: failed program was:" >&5
10786sed 's/^/| /' conftest.$ac_ext >&5
10787
10788 ac_header_preproc=no
78434e59 10789fi
bec39cab 10790rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10791echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10792echo "${ECHO_T}$ac_header_preproc" >&6
78434e59 10793
bec39cab
AC
10794# So? What about this header?
10795case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10796 yes:no: )
10797 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10798echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10800echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10801 ac_header_preproc=yes
10802 ;;
10803 no:yes:* )
10804 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10805echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10806 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10807echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10808 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10809echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10810 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10811echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10813echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10814 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10815echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10816 (
10817 cat <<\_ASBOX
10818## ------------------------------------------ ##
10819## Report this to the AC_PACKAGE_NAME lists. ##
10820## ------------------------------------------ ##
10821_ASBOX
10822 ) |
10823 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10824 ;;
10825esac
b4e70030
JB
10826echo "$as_me:$LINENO: checking for $ac_header" >&5
10827echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10828if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10829 echo $ECHO_N "(cached) $ECHO_C" >&6
10830else
10831 eval "$as_ac_Header=\$ac_header_preproc"
086ec9eb 10832fi
b4e70030
JB
10833echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10834echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 10835
086ec9eb 10836fi
bec39cab
AC
10837if test `eval echo '${'$as_ac_Header'}'` = yes; then
10838 cat >>confdefs.h <<_ACEOF
10839#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10840_ACEOF
10841
086ec9eb 10842fi
bec39cab 10843
086ec9eb
MK
10844done
10845
9608ab8b 10846
b1d19a62 10847# On Solaris 2.[789], we need to define _MSE_INT_H to avoid a clash
5ee754fc
MK
10848# between <widec.h> and <wchar.h> that would cause AC_CHECK_HEADERS to
10849# think that we don't have <curses.h> if we're using GCC.
10850case $host_os in
b1d19a62 10851 solaris2.[789])
5ee754fc 10852 if test "$GCC" = yes; then
bec39cab
AC
10853
10854cat >>confdefs.h <<\_ACEOF
5ee754fc 10855#define _MSE_INT_H 1
bec39cab 10856_ACEOF
5ee754fc
MK
10857
10858 fi ;;
10859esac
bec39cab
AC
10860
10861
10862
10863
10864for ac_header in curses.h cursesX.h ncurses.h ncurses/ncurses.h
5ee754fc 10865do
bec39cab 10866as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
10867if eval "test \"\${$as_ac_Header+set}\" = set"; then
10868 echo "$as_me:$LINENO: checking for $ac_header" >&5
10869echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10870if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
10871 echo $ECHO_N "(cached) $ECHO_C" >&6
10872fi
b4e70030
JB
10873echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10874echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
10875else
10876 # Is the header compilable?
b4e70030
JB
10877echo "$as_me:$LINENO: checking $ac_header usability" >&5
10878echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
10879cat >conftest.$ac_ext <<_ACEOF
10880/* confdefs.h. */
10881_ACEOF
10882cat confdefs.h >>conftest.$ac_ext
10883cat >>conftest.$ac_ext <<_ACEOF
10884/* end confdefs.h. */
10885$ac_includes_default
10886#include <$ac_header>
10887_ACEOF
10888rm -f conftest.$ac_objext
10889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10890 (eval $ac_compile) 2>conftest.er1
10891 ac_status=$?
10892 grep -v '^ *+' conftest.er1 >conftest.err
10893 rm -f conftest.er1
10894 cat conftest.err >&5
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); } &&
b4e70030
JB
10897 { ac_try='test -z "$ac_c_werror_flag"
10898 || test ! -s conftest.err'
bec39cab
AC
10899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10900 (eval $ac_try) 2>&5
10901 ac_status=$?
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); }; } &&
10904 { ac_try='test -s conftest.$ac_objext'
10905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10906 (eval $ac_try) 2>&5
10907 ac_status=$?
10908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909 (exit $ac_status); }; }; then
10910 ac_header_compiler=yes
10911else
10912 echo "$as_me: failed program was:" >&5
10913sed 's/^/| /' conftest.$ac_ext >&5
10914
b4e70030 10915ac_header_compiler=no
bec39cab
AC
10916fi
10917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
10918echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10919echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
10920
10921# Is the header present?
b4e70030
JB
10922echo "$as_me:$LINENO: checking $ac_header presence" >&5
10923echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
10924cat >conftest.$ac_ext <<_ACEOF
10925/* confdefs.h. */
10926_ACEOF
10927cat confdefs.h >>conftest.$ac_ext
10928cat >>conftest.$ac_ext <<_ACEOF
10929/* end confdefs.h. */
10930#include <$ac_header>
10931_ACEOF
10932if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10933 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10934 ac_status=$?
10935 grep -v '^ *+' conftest.er1 >conftest.err
10936 rm -f conftest.er1
10937 cat conftest.err >&5
10938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10939 (exit $ac_status); } >/dev/null; then
10940 if test -s conftest.err; then
10941 ac_cpp_err=$ac_c_preproc_warn_flag
10942 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10943 else
10944 ac_cpp_err=
10945 fi
10946else
10947 ac_cpp_err=yes
c906108c 10948fi
bec39cab
AC
10949if test -z "$ac_cpp_err"; then
10950 ac_header_preproc=yes
10951else
10952 echo "$as_me: failed program was:" >&5
10953sed 's/^/| /' conftest.$ac_ext >&5
10954
10955 ac_header_preproc=no
c906108c 10956fi
bec39cab 10957rm -f conftest.err conftest.$ac_ext
b4e70030
JB
10958echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10959echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
10960
10961# So? What about this header?
10962case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10963 yes:no: )
10964 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10965echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10967echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10968 ac_header_preproc=yes
10969 ;;
10970 no:yes:* )
10971 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10972echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10973 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10974echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10975 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10976echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10977 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10978echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10979 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10980echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10981 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10982echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
10983 (
10984 cat <<\_ASBOX
10985## ------------------------------------------ ##
10986## Report this to the AC_PACKAGE_NAME lists. ##
10987## ------------------------------------------ ##
10988_ASBOX
10989 ) |
10990 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
10991 ;;
10992esac
b4e70030
JB
10993echo "$as_me:$LINENO: checking for $ac_header" >&5
10994echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10995if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 10996 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 10997else
bec39cab 10998 eval "$as_ac_Header=\$ac_header_preproc"
c906108c 10999fi
b4e70030
JB
11000echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11001echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11002
11003fi
11004if test `eval echo '${'$as_ac_Header'}'` = yes; then
11005 cat >>confdefs.h <<_ACEOF
11006#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11007_ACEOF
11008
11009fi
11010
5ee754fc 11011done
c906108c 11012
bec39cab 11013
065a1afc 11014for ac_header in ncurses/term.h
3b78cdbb 11015do
bec39cab 11016as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11017if eval "test \"\${$as_ac_Header+set}\" = set"; then
11018 echo "$as_me:$LINENO: checking for $ac_header" >&5
11019echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11020if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11021 echo $ECHO_N "(cached) $ECHO_C" >&6
11022fi
b4e70030
JB
11023echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11024echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11025else
11026 # Is the header compilable?
b4e70030
JB
11027echo "$as_me:$LINENO: checking $ac_header usability" >&5
11028echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
11029cat >conftest.$ac_ext <<_ACEOF
11030/* confdefs.h. */
11031_ACEOF
11032cat confdefs.h >>conftest.$ac_ext
11033cat >>conftest.$ac_ext <<_ACEOF
11034/* end confdefs.h. */
11035$ac_includes_default
11036#include <$ac_header>
11037_ACEOF
11038rm -f conftest.$ac_objext
11039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11040 (eval $ac_compile) 2>conftest.er1
11041 ac_status=$?
11042 grep -v '^ *+' conftest.er1 >conftest.err
11043 rm -f conftest.er1
11044 cat conftest.err >&5
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); } &&
b4e70030
JB
11047 { ac_try='test -z "$ac_c_werror_flag"
11048 || test ! -s conftest.err'
bec39cab
AC
11049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11050 (eval $ac_try) 2>&5
11051 ac_status=$?
11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053 (exit $ac_status); }; } &&
11054 { ac_try='test -s conftest.$ac_objext'
11055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11056 (eval $ac_try) 2>&5
11057 ac_status=$?
11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); }; }; then
11060 ac_header_compiler=yes
11061else
11062 echo "$as_me: failed program was:" >&5
11063sed 's/^/| /' conftest.$ac_ext >&5
11064
b4e70030 11065ac_header_compiler=no
bec39cab
AC
11066fi
11067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
11068echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11069echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
11070
11071# Is the header present?
b4e70030
JB
11072echo "$as_me:$LINENO: checking $ac_header presence" >&5
11073echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
11074cat >conftest.$ac_ext <<_ACEOF
11075/* confdefs.h. */
11076_ACEOF
11077cat confdefs.h >>conftest.$ac_ext
11078cat >>conftest.$ac_ext <<_ACEOF
11079/* end confdefs.h. */
11080#include <$ac_header>
11081_ACEOF
11082if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11083 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11084 ac_status=$?
11085 grep -v '^ *+' conftest.er1 >conftest.err
11086 rm -f conftest.er1
11087 cat conftest.err >&5
11088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11089 (exit $ac_status); } >/dev/null; then
11090 if test -s conftest.err; then
11091 ac_cpp_err=$ac_c_preproc_warn_flag
11092 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11093 else
11094 ac_cpp_err=
11095 fi
11096else
11097 ac_cpp_err=yes
3b78cdbb 11098fi
bec39cab
AC
11099if test -z "$ac_cpp_err"; then
11100 ac_header_preproc=yes
11101else
11102 echo "$as_me: failed program was:" >&5
11103sed 's/^/| /' conftest.$ac_ext >&5
11104
11105 ac_header_preproc=no
3b78cdbb 11106fi
bec39cab 11107rm -f conftest.err conftest.$ac_ext
b4e70030
JB
11108echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11109echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
11110
11111# So? What about this header?
11112case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11113 yes:no: )
11114 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11115echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11117echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11118 ac_header_preproc=yes
11119 ;;
11120 no:yes:* )
11121 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11122echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11123 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11124echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11125 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11126echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11127 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11128echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11130echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11131 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11132echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
11133 (
11134 cat <<\_ASBOX
11135## ------------------------------------------ ##
11136## Report this to the AC_PACKAGE_NAME lists. ##
11137## ------------------------------------------ ##
11138_ASBOX
11139 ) |
11140 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
11141 ;;
11142esac
b4e70030
JB
11143echo "$as_me:$LINENO: checking for $ac_header" >&5
11144echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11145if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 11146 echo $ECHO_N "(cached) $ECHO_C" >&6
3b78cdbb 11147else
bec39cab
AC
11148 eval "$as_ac_Header=\$ac_header_preproc"
11149fi
b4e70030
JB
11150echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11151echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 11152
3b78cdbb 11153fi
bec39cab
AC
11154if test `eval echo '${'$as_ac_Header'}'` = yes; then
11155 cat >>confdefs.h <<_ACEOF
11156#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11157_ACEOF
11158
11159fi
11160
3b78cdbb
DA
11161done
11162
c906108c 11163
065a1afc
JB
11164for ac_header in term.h
11165do
11166as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11167echo "$as_me:$LINENO: checking for $ac_header" >&5
11168echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11169if eval "test \"\${$as_ac_Header+set}\" = set"; then
065a1afc
JB
11170 echo $ECHO_N "(cached) $ECHO_C" >&6
11171else
11172 cat >conftest.$ac_ext <<_ACEOF
11173/* confdefs.h. */
11174_ACEOF
11175cat confdefs.h >>conftest.$ac_ext
11176cat >>conftest.$ac_ext <<_ACEOF
11177/* end confdefs.h. */
11178#if HAVE_CURSES_H
11179# include <curses.h>
11180#endif
11181
11182
11183#include <$ac_header>
11184_ACEOF
11185rm -f conftest.$ac_objext
11186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11187 (eval $ac_compile) 2>conftest.er1
11188 ac_status=$?
11189 grep -v '^ *+' conftest.er1 >conftest.err
11190 rm -f conftest.er1
11191 cat conftest.err >&5
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); } &&
b4e70030
JB
11194 { ac_try='test -z "$ac_c_werror_flag"
11195 || test ! -s conftest.err'
065a1afc
JB
11196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11197 (eval $ac_try) 2>&5
11198 ac_status=$?
11199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11200 (exit $ac_status); }; } &&
11201 { ac_try='test -s conftest.$ac_objext'
11202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11203 (eval $ac_try) 2>&5
11204 ac_status=$?
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); }; }; then
11207 eval "$as_ac_Header=yes"
11208else
11209 echo "$as_me: failed program was:" >&5
11210sed 's/^/| /' conftest.$ac_ext >&5
11211
b4e70030 11212eval "$as_ac_Header=no"
065a1afc
JB
11213fi
11214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11215fi
b4e70030
JB
11216echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11217echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
065a1afc
JB
11218if test `eval echo '${'$as_ac_Header'}'` = yes; then
11219 cat >>confdefs.h <<_ACEOF
11220#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11221_ACEOF
11222
11223fi
11224
11225done
11226
11227
5ee754fc
MK
11228# FIXME: kettenis/20030102: In most cases we include these
11229# unconditionally, so what's the point in checking these?
bec39cab
AC
11230
11231
11232for ac_header in ctype.h time.h
c906108c 11233do
bec39cab 11234as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
11235if eval "test \"\${$as_ac_Header+set}\" = set"; then
11236 echo "$as_me:$LINENO: checking for $ac_header" >&5
11237echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11238if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab
AC
11239 echo $ECHO_N "(cached) $ECHO_C" >&6
11240fi
b4e70030
JB
11241echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11242echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11243else
11244 # Is the header compilable?
b4e70030
JB
11245echo "$as_me:$LINENO: checking $ac_header usability" >&5
11246echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
bec39cab
AC
11247cat >conftest.$ac_ext <<_ACEOF
11248/* confdefs.h. */
11249_ACEOF
11250cat confdefs.h >>conftest.$ac_ext
11251cat >>conftest.$ac_ext <<_ACEOF
11252/* end confdefs.h. */
11253$ac_includes_default
11254#include <$ac_header>
11255_ACEOF
11256rm -f conftest.$ac_objext
11257if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11258 (eval $ac_compile) 2>conftest.er1
11259 ac_status=$?
11260 grep -v '^ *+' conftest.er1 >conftest.err
11261 rm -f conftest.er1
11262 cat conftest.err >&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); } &&
b4e70030
JB
11265 { ac_try='test -z "$ac_c_werror_flag"
11266 || test ! -s conftest.err'
bec39cab
AC
11267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11268 (eval $ac_try) 2>&5
11269 ac_status=$?
11270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); }; } &&
11272 { ac_try='test -s conftest.$ac_objext'
11273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11274 (eval $ac_try) 2>&5
11275 ac_status=$?
11276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); }; }; then
11278 ac_header_compiler=yes
11279else
11280 echo "$as_me: failed program was:" >&5
11281sed 's/^/| /' conftest.$ac_ext >&5
11282
b4e70030 11283ac_header_compiler=no
bec39cab
AC
11284fi
11285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
11286echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11287echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
11288
11289# Is the header present?
b4e70030
JB
11290echo "$as_me:$LINENO: checking $ac_header presence" >&5
11291echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
11292cat >conftest.$ac_ext <<_ACEOF
11293/* confdefs.h. */
11294_ACEOF
11295cat confdefs.h >>conftest.$ac_ext
11296cat >>conftest.$ac_ext <<_ACEOF
11297/* end confdefs.h. */
11298#include <$ac_header>
11299_ACEOF
11300if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11302 ac_status=$?
11303 grep -v '^ *+' conftest.er1 >conftest.err
11304 rm -f conftest.er1
11305 cat conftest.err >&5
11306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307 (exit $ac_status); } >/dev/null; then
11308 if test -s conftest.err; then
11309 ac_cpp_err=$ac_c_preproc_warn_flag
11310 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11311 else
11312 ac_cpp_err=
11313 fi
11314else
11315 ac_cpp_err=yes
c906108c 11316fi
bec39cab
AC
11317if test -z "$ac_cpp_err"; then
11318 ac_header_preproc=yes
11319else
11320 echo "$as_me: failed program was:" >&5
11321sed 's/^/| /' conftest.$ac_ext >&5
11322
11323 ac_header_preproc=no
c906108c 11324fi
bec39cab 11325rm -f conftest.err conftest.$ac_ext
b4e70030
JB
11326echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11327echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
11328
11329# So? What about this header?
11330case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11331 yes:no: )
11332 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11333echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11335echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11336 ac_header_preproc=yes
11337 ;;
11338 no:yes:* )
11339 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11340echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11341 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11342echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11343 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11344echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11345 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11346echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11348echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11349 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11350echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
11351 (
11352 cat <<\_ASBOX
11353## ------------------------------------------ ##
11354## Report this to the AC_PACKAGE_NAME lists. ##
11355## ------------------------------------------ ##
11356_ASBOX
11357 ) |
11358 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
11359 ;;
11360esac
b4e70030
JB
11361echo "$as_me:$LINENO: checking for $ac_header" >&5
11362echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11363if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 11364 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 11365else
bec39cab
AC
11366 eval "$as_ac_Header=\$ac_header_preproc"
11367fi
b4e70030
JB
11368echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11369echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
11370
11371fi
11372if test `eval echo '${'$as_ac_Header'}'` = yes; then
11373 cat >>confdefs.h <<_ACEOF
11374#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11375_ACEOF
11376
c906108c 11377fi
bec39cab 11378
c906108c
SS
11379done
11380
5ee754fc 11381
4e8d927d 11382# Create a header we can use portably to get the standard integer types.
666ec76f 11383
4e8d927d
DJ
11384
11385inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
11386
11387acx_cv_header_stdint=stddef.h
11388acx_cv_header_stdint_kind="(already complete)"
11389for i in stdint.h $inttype_headers; do
11390 unset ac_cv_type_uintptr_t
11391 unset ac_cv_type_uintmax_t
11392 unset ac_cv_type_int_least32_t
11393 unset ac_cv_type_int_fast32_t
11394 unset ac_cv_type_uint64_t
11395 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6
b4e70030
JB
11396 echo "$as_me:$LINENO: checking for uintmax_t" >&5
11397echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6
4e8d927d 11398if test "${ac_cv_type_uintmax_t+set}" = set; then
bec39cab 11399 echo $ECHO_N "(cached) $ECHO_C" >&6
40a7debc 11400else
bec39cab
AC
11401 cat >conftest.$ac_ext <<_ACEOF
11402/* confdefs.h. */
11403_ACEOF
11404cat confdefs.h >>conftest.$ac_ext
11405cat >>conftest.$ac_ext <<_ACEOF
11406/* end confdefs.h. */
4e8d927d
DJ
11407#include <sys/types.h>
11408#include <$i>
11409
bec39cab
AC
11410int
11411main ()
11412{
b4e70030 11413if ((uintmax_t *) 0)
4e8d927d 11414 return 0;
b4e70030 11415if (sizeof (uintmax_t))
4e8d927d
DJ
11416 return 0;
11417 ;
bec39cab
AC
11418 return 0;
11419}
11420_ACEOF
11421rm -f conftest.$ac_objext
11422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11423 (eval $ac_compile) 2>conftest.er1
11424 ac_status=$?
11425 grep -v '^ *+' conftest.er1 >conftest.err
11426 rm -f conftest.er1
11427 cat conftest.err >&5
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); } &&
b4e70030
JB
11430 { ac_try='test -z "$ac_c_werror_flag"
11431 || test ! -s conftest.err'
bec39cab
AC
11432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11433 (eval $ac_try) 2>&5
11434 ac_status=$?
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); }; } &&
11437 { ac_try='test -s conftest.$ac_objext'
11438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11439 (eval $ac_try) 2>&5
11440 ac_status=$?
11441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442 (exit $ac_status); }; }; then
4e8d927d 11443 ac_cv_type_uintmax_t=yes
40a7debc 11444else
bec39cab
AC
11445 echo "$as_me: failed program was:" >&5
11446sed 's/^/| /' conftest.$ac_ext >&5
11447
b4e70030 11448ac_cv_type_uintmax_t=no
40a7debc 11449fi
bec39cab 11450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40a7debc 11451fi
b4e70030
JB
11452echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5
11453echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6
4e8d927d
DJ
11454if test $ac_cv_type_uintmax_t = yes; then
11455 acx_cv_header_stdint=$i
666ec76f 11456else
4e8d927d 11457 continue
666ec76f 11458fi
4e8d927d 11459
b4e70030
JB
11460 echo "$as_me:$LINENO: checking for uintptr_t" >&5
11461echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4e8d927d 11462if test "${ac_cv_type_uintptr_t+set}" = set; then
bec39cab
AC
11463 echo $ECHO_N "(cached) $ECHO_C" >&6
11464else
11465 cat >conftest.$ac_ext <<_ACEOF
11466/* confdefs.h. */
11467_ACEOF
11468cat confdefs.h >>conftest.$ac_ext
11469cat >>conftest.$ac_ext <<_ACEOF
11470/* end confdefs.h. */
4e8d927d
DJ
11471#include <sys/types.h>
11472#include <$i>
11473
666ec76f
MK
11474int
11475main ()
11476{
b4e70030 11477if ((uintptr_t *) 0)
4e8d927d 11478 return 0;
b4e70030 11479if (sizeof (uintptr_t))
4e8d927d 11480 return 0;
666ec76f
MK
11481 ;
11482 return 0;
11483}
11484_ACEOF
11485rm -f conftest.$ac_objext
11486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11487 (eval $ac_compile) 2>conftest.er1
11488 ac_status=$?
11489 grep -v '^ *+' conftest.er1 >conftest.err
11490 rm -f conftest.er1
11491 cat conftest.err >&5
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); } &&
b4e70030
JB
11494 { ac_try='test -z "$ac_c_werror_flag"
11495 || test ! -s conftest.err'
666ec76f
MK
11496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11497 (eval $ac_try) 2>&5
11498 ac_status=$?
11499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11500 (exit $ac_status); }; } &&
11501 { ac_try='test -s conftest.$ac_objext'
11502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11503 (eval $ac_try) 2>&5
11504 ac_status=$?
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); }; }; then
4e8d927d 11507 ac_cv_type_uintptr_t=yes
666ec76f
MK
11508else
11509 echo "$as_me: failed program was:" >&5
11510sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 11511
b4e70030 11512ac_cv_type_uintptr_t=no
a3828db0
MK
11513fi
11514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11515fi
b4e70030
JB
11516echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11517echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4e8d927d
DJ
11518if test $ac_cv_type_uintptr_t = yes; then
11519 :
a3828db0 11520else
4e8d927d 11521 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 11522fi
4e8d927d 11523
b4e70030
JB
11524 echo "$as_me:$LINENO: checking for int_least32_t" >&5
11525echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6
4e8d927d 11526if test "${ac_cv_type_int_least32_t+set}" = set; then
a3828db0
MK
11527 echo $ECHO_N "(cached) $ECHO_C" >&6
11528else
11529 cat >conftest.$ac_ext <<_ACEOF
666ec76f
MK
11530/* confdefs.h. */
11531_ACEOF
11532cat confdefs.h >>conftest.$ac_ext
11533cat >>conftest.$ac_ext <<_ACEOF
11534/* end confdefs.h. */
4e8d927d
DJ
11535#include <sys/types.h>
11536#include <$i>
11537
bec39cab
AC
11538int
11539main ()
11540{
b4e70030 11541if ((int_least32_t *) 0)
4e8d927d 11542 return 0;
b4e70030 11543if (sizeof (int_least32_t))
4e8d927d 11544 return 0;
bec39cab
AC
11545 ;
11546 return 0;
11547}
11548_ACEOF
11549rm -f conftest.$ac_objext
11550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11551 (eval $ac_compile) 2>conftest.er1
11552 ac_status=$?
11553 grep -v '^ *+' conftest.er1 >conftest.err
11554 rm -f conftest.er1
11555 cat conftest.err >&5
11556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11557 (exit $ac_status); } &&
b4e70030
JB
11558 { ac_try='test -z "$ac_c_werror_flag"
11559 || test ! -s conftest.err'
bec39cab
AC
11560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11561 (eval $ac_try) 2>&5
11562 ac_status=$?
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); }; } &&
11565 { ac_try='test -s conftest.$ac_objext'
11566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11567 (eval $ac_try) 2>&5
11568 ac_status=$?
11569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570 (exit $ac_status); }; }; then
4e8d927d 11571 ac_cv_type_int_least32_t=yes
b9362cc7 11572else
bec39cab
AC
11573 echo "$as_me: failed program was:" >&5
11574sed 's/^/| /' conftest.$ac_ext >&5
11575
b4e70030 11576ac_cv_type_int_least32_t=no
b9362cc7 11577fi
bec39cab 11578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b9362cc7 11579fi
b4e70030
JB
11580echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5
11581echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6
4e8d927d
DJ
11582if test $ac_cv_type_int_least32_t = yes; then
11583 :
a3828db0 11584else
4e8d927d 11585 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 11586fi
5ee754fc 11587
b4e70030
JB
11588 echo "$as_me:$LINENO: checking for int_fast32_t" >&5
11589echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6
4e8d927d 11590if test "${ac_cv_type_int_fast32_t+set}" = set; then
bec39cab
AC
11591 echo $ECHO_N "(cached) $ECHO_C" >&6
11592else
11593 cat >conftest.$ac_ext <<_ACEOF
11594/* confdefs.h. */
11595_ACEOF
11596cat confdefs.h >>conftest.$ac_ext
11597cat >>conftest.$ac_ext <<_ACEOF
11598/* end confdefs.h. */
4e8d927d
DJ
11599#include <sys/types.h>
11600#include <$i>
11601
bec39cab
AC
11602int
11603main ()
11604{
b4e70030 11605if ((int_fast32_t *) 0)
4e8d927d 11606 return 0;
b4e70030 11607if (sizeof (int_fast32_t))
4e8d927d 11608 return 0;
bec39cab
AC
11609 ;
11610 return 0;
11611}
11612_ACEOF
11613rm -f conftest.$ac_objext
11614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11615 (eval $ac_compile) 2>conftest.er1
11616 ac_status=$?
11617 grep -v '^ *+' conftest.er1 >conftest.err
11618 rm -f conftest.er1
11619 cat conftest.err >&5
11620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); } &&
b4e70030
JB
11622 { ac_try='test -z "$ac_c_werror_flag"
11623 || test ! -s conftest.err'
bec39cab
AC
11624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11625 (eval $ac_try) 2>&5
11626 ac_status=$?
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); }; } &&
11629 { ac_try='test -s conftest.$ac_objext'
11630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11631 (eval $ac_try) 2>&5
11632 ac_status=$?
11633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634 (exit $ac_status); }; }; then
4e8d927d 11635 ac_cv_type_int_fast32_t=yes
c906108c 11636else
bec39cab
AC
11637 echo "$as_me: failed program was:" >&5
11638sed 's/^/| /' conftest.$ac_ext >&5
11639
b4e70030 11640ac_cv_type_int_fast32_t=no
c906108c 11641fi
bec39cab 11642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 11643fi
b4e70030
JB
11644echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5
11645echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6
4e8d927d
DJ
11646if test $ac_cv_type_int_fast32_t = yes; then
11647 :
a3828db0 11648else
4e8d927d 11649 acx_cv_header_stdint_kind="(mostly complete)"
a3828db0 11650fi
4e8d927d 11651
b4e70030
JB
11652 echo "$as_me:$LINENO: checking for uint64_t" >&5
11653echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
4e8d927d 11654if test "${ac_cv_type_uint64_t+set}" = set; then
bec39cab
AC
11655 echo $ECHO_N "(cached) $ECHO_C" >&6
11656else
11657 cat >conftest.$ac_ext <<_ACEOF
11658/* confdefs.h. */
11659_ACEOF
11660cat confdefs.h >>conftest.$ac_ext
11661cat >>conftest.$ac_ext <<_ACEOF
11662/* end confdefs.h. */
4e8d927d
DJ
11663#include <sys/types.h>
11664#include <$i>
11665
bec39cab
AC
11666int
11667main ()
11668{
b4e70030 11669if ((uint64_t *) 0)
4e8d927d 11670 return 0;
b4e70030 11671if (sizeof (uint64_t))
4e8d927d 11672 return 0;
bec39cab
AC
11673 ;
11674 return 0;
11675}
11676_ACEOF
11677rm -f conftest.$ac_objext
11678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11679 (eval $ac_compile) 2>conftest.er1
11680 ac_status=$?
11681 grep -v '^ *+' conftest.er1 >conftest.err
11682 rm -f conftest.er1
11683 cat conftest.err >&5
11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685 (exit $ac_status); } &&
b4e70030
JB
11686 { ac_try='test -z "$ac_c_werror_flag"
11687 || test ! -s conftest.err'
bec39cab
AC
11688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11689 (eval $ac_try) 2>&5
11690 ac_status=$?
11691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692 (exit $ac_status); }; } &&
11693 { ac_try='test -s conftest.$ac_objext'
11694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11695 (eval $ac_try) 2>&5
11696 ac_status=$?
11697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698 (exit $ac_status); }; }; then
4e8d927d 11699 ac_cv_type_uint64_t=yes
c906108c 11700else
bec39cab
AC
11701 echo "$as_me: failed program was:" >&5
11702sed 's/^/| /' conftest.$ac_ext >&5
11703
b4e70030 11704ac_cv_type_uint64_t=no
c906108c 11705fi
bec39cab 11706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 11707fi
b4e70030
JB
11708echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11709echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
4e8d927d
DJ
11710if test $ac_cv_type_uint64_t = yes; then
11711 :
a3828db0 11712else
4e8d927d 11713 acx_cv_header_stdint_kind="(lacks uint64_t)"
c906108c
SS
11714fi
11715
4e8d927d
DJ
11716 break
11717done
11718if test "$acx_cv_header_stdint" = stddef.h; then
3841debe 11719 acx_cv_header_stdint_kind="(lacks uintmax_t)"
4e8d927d 11720 for i in stdint.h $inttype_headers; do
3841debe 11721 unset ac_cv_type_uintptr_t
4e8d927d
DJ
11722 unset ac_cv_type_uint32_t
11723 unset ac_cv_type_uint64_t
11724 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6
b4e70030
JB
11725 echo "$as_me:$LINENO: checking for uint32_t" >&5
11726echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
4e8d927d 11727if test "${ac_cv_type_uint32_t+set}" = set; then
bec39cab 11728 echo $ECHO_N "(cached) $ECHO_C" >&6
bce58c09 11729else
bec39cab
AC
11730 cat >conftest.$ac_ext <<_ACEOF
11731/* confdefs.h. */
11732_ACEOF
11733cat confdefs.h >>conftest.$ac_ext
11734cat >>conftest.$ac_ext <<_ACEOF
11735/* end confdefs.h. */
4e8d927d
DJ
11736#include <sys/types.h>
11737#include <$i>
11738
a3828db0
MK
11739int
11740main ()
11741{
b4e70030 11742if ((uint32_t *) 0)
4e8d927d 11743 return 0;
b4e70030 11744if (sizeof (uint32_t))
4e8d927d 11745 return 0;
a3828db0
MK
11746 ;
11747 return 0;
11748}
bec39cab
AC
11749_ACEOF
11750rm -f conftest.$ac_objext
11751if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11752 (eval $ac_compile) 2>conftest.er1
11753 ac_status=$?
11754 grep -v '^ *+' conftest.er1 >conftest.err
11755 rm -f conftest.er1
11756 cat conftest.err >&5
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); } &&
b4e70030
JB
11759 { ac_try='test -z "$ac_c_werror_flag"
11760 || test ! -s conftest.err'
bec39cab
AC
11761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11762 (eval $ac_try) 2>&5
11763 ac_status=$?
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); }; } &&
11766 { ac_try='test -s conftest.$ac_objext'
11767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11768 (eval $ac_try) 2>&5
11769 ac_status=$?
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); }; }; then
4e8d927d 11772 ac_cv_type_uint32_t=yes
bce58c09 11773else
bec39cab
AC
11774 echo "$as_me: failed program was:" >&5
11775sed 's/^/| /' conftest.$ac_ext >&5
11776
b4e70030 11777ac_cv_type_uint32_t=no
bce58c09 11778fi
bec39cab 11779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bce58c09 11780fi
b4e70030
JB
11781echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
11782echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
4e8d927d
DJ
11783if test $ac_cv_type_uint32_t = yes; then
11784 acx_cv_header_stdint=$i
a3828db0 11785else
4e8d927d 11786 continue
e5a7de23 11787fi
4e8d927d 11788
b4e70030
JB
11789 echo "$as_me:$LINENO: checking for uint64_t" >&5
11790echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
4e8d927d 11791if test "${ac_cv_type_uint64_t+set}" = set; then
e5a7de23
EZ
11792 echo $ECHO_N "(cached) $ECHO_C" >&6
11793else
11794 cat >conftest.$ac_ext <<_ACEOF
11795/* confdefs.h. */
11796_ACEOF
11797cat confdefs.h >>conftest.$ac_ext
11798cat >>conftest.$ac_ext <<_ACEOF
11799/* end confdefs.h. */
4e8d927d
DJ
11800#include <sys/types.h>
11801#include <$i>
11802
e5a7de23
EZ
11803int
11804main ()
11805{
b4e70030 11806if ((uint64_t *) 0)
4e8d927d 11807 return 0;
b4e70030 11808if (sizeof (uint64_t))
4e8d927d 11809 return 0;
e5a7de23
EZ
11810 ;
11811 return 0;
11812}
11813_ACEOF
11814rm -f conftest.$ac_objext
11815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11816 (eval $ac_compile) 2>conftest.er1
11817 ac_status=$?
11818 grep -v '^ *+' conftest.er1 >conftest.err
11819 rm -f conftest.er1
11820 cat conftest.err >&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); } &&
b4e70030
JB
11823 { ac_try='test -z "$ac_c_werror_flag"
11824 || test ! -s conftest.err'
e5a7de23
EZ
11825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11826 (eval $ac_try) 2>&5
11827 ac_status=$?
11828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829 (exit $ac_status); }; } &&
11830 { ac_try='test -s conftest.$ac_objext'
11831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11832 (eval $ac_try) 2>&5
11833 ac_status=$?
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); }; }; then
4e8d927d 11836 ac_cv_type_uint64_t=yes
e5a7de23
EZ
11837else
11838 echo "$as_me: failed program was:" >&5
11839sed 's/^/| /' conftest.$ac_ext >&5
11840
b4e70030 11841ac_cv_type_uint64_t=no
e5a7de23
EZ
11842fi
11843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11844fi
b4e70030
JB
11845echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11846echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
3841debe
DJ
11847
11848 echo "$as_me:$LINENO: checking for uintptr_t" >&5
11849echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
11850if test "${ac_cv_type_uintptr_t+set}" = set; then
11851 echo $ECHO_N "(cached) $ECHO_C" >&6
11852else
11853 cat >conftest.$ac_ext <<_ACEOF
11854/* confdefs.h. */
11855_ACEOF
11856cat confdefs.h >>conftest.$ac_ext
11857cat >>conftest.$ac_ext <<_ACEOF
11858/* end confdefs.h. */
11859#include <sys/types.h>
11860#include <$i>
11861
11862int
11863main ()
11864{
11865if ((uintptr_t *) 0)
11866 return 0;
11867if (sizeof (uintptr_t))
11868 return 0;
11869 ;
11870 return 0;
11871}
11872_ACEOF
11873rm -f conftest.$ac_objext
11874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11875 (eval $ac_compile) 2>conftest.er1
11876 ac_status=$?
11877 grep -v '^ *+' conftest.er1 >conftest.err
11878 rm -f conftest.er1
11879 cat conftest.err >&5
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); } &&
11882 { ac_try='test -z "$ac_c_werror_flag"
11883 || test ! -s conftest.err'
11884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11885 (eval $ac_try) 2>&5
11886 ac_status=$?
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); }; } &&
11889 { ac_try='test -s conftest.$ac_objext'
11890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11891 (eval $ac_try) 2>&5
11892 ac_status=$?
11893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894 (exit $ac_status); }; }; then
11895 ac_cv_type_uintptr_t=yes
e5a7de23 11896else
3841debe
DJ
11897 echo "$as_me: failed program was:" >&5
11898sed 's/^/| /' conftest.$ac_ext >&5
11899
11900ac_cv_type_uintptr_t=no
4e8d927d 11901fi
3841debe
DJ
11902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11903fi
11904echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11905echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
e5a7de23 11906
4e8d927d
DJ
11907 break
11908 done
e5a7de23 11909fi
4e8d927d
DJ
11910if test "$acx_cv_header_stdint" = stddef.h; then
11911 acx_cv_header_stdint_kind="(u_intXX_t style)"
11912 for i in sys/types.h $inttype_headers; do
11913 unset ac_cv_type_u_int32_t
11914 unset ac_cv_type_u_int64_t
11915 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6
b4e70030
JB
11916 echo "$as_me:$LINENO: checking for u_int32_t" >&5
11917echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
4e8d927d 11918if test "${ac_cv_type_u_int32_t+set}" = set; then
e5a7de23
EZ
11919 echo $ECHO_N "(cached) $ECHO_C" >&6
11920else
11921 cat >conftest.$ac_ext <<_ACEOF
11922/* confdefs.h. */
11923_ACEOF
11924cat confdefs.h >>conftest.$ac_ext
11925cat >>conftest.$ac_ext <<_ACEOF
11926/* end confdefs.h. */
4e8d927d
DJ
11927#include <sys/types.h>
11928#include <$i>
11929
e5a7de23
EZ
11930int
11931main ()
11932{
b4e70030 11933if ((u_int32_t *) 0)
4e8d927d 11934 return 0;
b4e70030 11935if (sizeof (u_int32_t))
4e8d927d 11936 return 0;
e5a7de23
EZ
11937 ;
11938 return 0;
11939}
11940_ACEOF
11941rm -f conftest.$ac_objext
11942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11943 (eval $ac_compile) 2>conftest.er1
11944 ac_status=$?
11945 grep -v '^ *+' conftest.er1 >conftest.err
11946 rm -f conftest.er1
11947 cat conftest.err >&5
11948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); } &&
b4e70030
JB
11950 { ac_try='test -z "$ac_c_werror_flag"
11951 || test ! -s conftest.err'
e5a7de23
EZ
11952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11953 (eval $ac_try) 2>&5
11954 ac_status=$?
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); }; } &&
11957 { ac_try='test -s conftest.$ac_objext'
11958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11959 (eval $ac_try) 2>&5
11960 ac_status=$?
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); }; }; then
4e8d927d 11963 ac_cv_type_u_int32_t=yes
e5a7de23
EZ
11964else
11965 echo "$as_me: failed program was:" >&5
11966sed 's/^/| /' conftest.$ac_ext >&5
11967
b4e70030 11968ac_cv_type_u_int32_t=no
e5a7de23
EZ
11969fi
11970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11971fi
b4e70030
JB
11972echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
11973echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
4e8d927d
DJ
11974if test $ac_cv_type_u_int32_t = yes; then
11975 acx_cv_header_stdint=$i
e5a7de23 11976else
4e8d927d 11977 continue
a3828db0 11978fi
5ee754fc 11979
b4e70030
JB
11980 echo "$as_me:$LINENO: checking for u_int64_t" >&5
11981echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
4e8d927d 11982if test "${ac_cv_type_u_int64_t+set}" = set; then
bec39cab
AC
11983 echo $ECHO_N "(cached) $ECHO_C" >&6
11984else
11985 cat >conftest.$ac_ext <<_ACEOF
11986/* confdefs.h. */
11987_ACEOF
11988cat confdefs.h >>conftest.$ac_ext
11989cat >>conftest.$ac_ext <<_ACEOF
11990/* end confdefs.h. */
4e8d927d
DJ
11991#include <sys/types.h>
11992#include <$i>
11993
bec39cab
AC
11994int
11995main ()
11996{
b4e70030 11997if ((u_int64_t *) 0)
4e8d927d 11998 return 0;
b4e70030 11999if (sizeof (u_int64_t))
4e8d927d 12000 return 0;
bec39cab
AC
12001 ;
12002 return 0;
12003}
12004_ACEOF
a3828db0
MK
12005rm -f conftest.$ac_objext
12006if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12007 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
12008 ac_status=$?
12009 grep -v '^ *+' conftest.er1 >conftest.err
12010 rm -f conftest.er1
12011 cat conftest.err >&5
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); } &&
b4e70030
JB
12014 { ac_try='test -z "$ac_c_werror_flag"
12015 || test ! -s conftest.err'
bec39cab
AC
12016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12017 (eval $ac_try) 2>&5
12018 ac_status=$?
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); }; } &&
a3828db0 12021 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
12022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12023 (eval $ac_try) 2>&5
12024 ac_status=$?
12025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12026 (exit $ac_status); }; }; then
4e8d927d 12027 ac_cv_type_u_int64_t=yes
bec39cab
AC
12028else
12029 echo "$as_me: failed program was:" >&5
12030sed 's/^/| /' conftest.$ac_ext >&5
12031
b4e70030 12032ac_cv_type_u_int64_t=no
4e8d927d 12033fi
4e8d927d
DJ
12034rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12035fi
b4e70030
JB
12036echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
12037echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
4e8d927d
DJ
12038
12039 break
12040 done
12041fi
12042if test "$acx_cv_header_stdint" = stddef.h; then
12043 acx_cv_header_stdint_kind="(using manual detection)"
12044fi
12045
12046test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
12047test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
12048test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
12049test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
12050test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
12051
12052# ----------------- Summarize what we found so far
12053
b4e70030
JB
12054echo "$as_me:$LINENO: checking what to include in gdb_stdint.h" >&5
12055echo $ECHO_N "checking what to include in gdb_stdint.h... $ECHO_C" >&6
4e8d927d 12056
b4e70030 12057case `$as_basename gdb_stdint.h ||
4e8d927d
DJ
12058$as_expr X/gdb_stdint.h : '.*/\([^/][^/]*\)/*$' \| \
12059 Xgdb_stdint.h : 'X\(//\)$' \| \
b4e70030
JB
12060 Xgdb_stdint.h : 'X\(/\)$' \| \
12061 . : '\(.\)' 2>/dev/null ||
4e8d927d 12062echo X/gdb_stdint.h |
b4e70030
JB
12063 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
12064 /^X\/\(\/\/\)$/{ s//\1/; q; }
12065 /^X\/\(\/\).*/{ s//\1/; q; }
12066 s/.*/./; q'` in
4e8d927d
DJ
12067 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
12068echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12069 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5
12070echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
12071 *) ;;
12072esac
12073
b4e70030
JB
12074echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
12075echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6
4e8d927d
DJ
12076
12077# ----------------- done included file, check C basic types --------
12078
12079# Lacking an uintptr_t? Test size of void *
12080case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
b4e70030
JB
12081 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5
12082echo $ECHO_N "checking for void *... $ECHO_C" >&6
4e8d927d
DJ
12083if test "${ac_cv_type_void_p+set}" = set; then
12084 echo $ECHO_N "(cached) $ECHO_C" >&6
12085else
12086 cat >conftest.$ac_ext <<_ACEOF
a3828db0 12087/* confdefs.h. */
bec39cab
AC
12088_ACEOF
12089cat confdefs.h >>conftest.$ac_ext
12090cat >>conftest.$ac_ext <<_ACEOF
12091/* end confdefs.h. */
a3828db0 12092$ac_includes_default
bec39cab
AC
12093int
12094main ()
12095{
b4e70030 12096if ((void * *) 0)
4e8d927d 12097 return 0;
b4e70030 12098if (sizeof (void *))
4e8d927d 12099 return 0;
bec39cab
AC
12100 ;
12101 return 0;
12102}
12103_ACEOF
a3828db0
MK
12104rm -f conftest.$ac_objext
12105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12106 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
12107 ac_status=$?
12108 grep -v '^ *+' conftest.er1 >conftest.err
12109 rm -f conftest.er1
12110 cat conftest.err >&5
12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112 (exit $ac_status); } &&
b4e70030
JB
12113 { ac_try='test -z "$ac_c_werror_flag"
12114 || test ! -s conftest.err'
bec39cab
AC
12115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12116 (eval $ac_try) 2>&5
12117 ac_status=$?
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 (exit $ac_status); }; } &&
a3828db0 12120 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
12121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12122 (eval $ac_try) 2>&5
12123 ac_status=$?
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); }; }; then
4e8d927d 12126 ac_cv_type_void_p=yes
46711df8 12127else
bec39cab
AC
12128 echo "$as_me: failed program was:" >&5
12129sed 's/^/| /' conftest.$ac_ext >&5
12130
b4e70030 12131ac_cv_type_void_p=no
a3828db0 12132fi
4e8d927d 12133rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d3ea6809 12134fi
b4e70030
JB
12135echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
12136echo "${ECHO_T}$ac_cv_type_void_p" >&6
d3ea6809 12137
b4e70030
JB
12138echo "$as_me:$LINENO: checking size of void *" >&5
12139echo $ECHO_N "checking size of void *... $ECHO_C" >&6
4e8d927d 12140if test "${ac_cv_sizeof_void_p+set}" = set; then
d3ea6809
MM
12141 echo $ECHO_N "(cached) $ECHO_C" >&6
12142else
4e8d927d 12143 if test "$ac_cv_type_void_p" = yes; then
b4e70030 12144 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
12145 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12146 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12147 # This bug is HP SR number 8606223364.
12148 if test "$cross_compiling" = yes; then
12149 # Depending upon the size, compute the lo and hi bounds.
12150cat >conftest.$ac_ext <<_ACEOF
d3ea6809
MM
12151/* confdefs.h. */
12152_ACEOF
12153cat confdefs.h >>conftest.$ac_ext
12154cat >>conftest.$ac_ext <<_ACEOF
12155/* end confdefs.h. */
12156$ac_includes_default
12157int
12158main ()
12159{
b4e70030 12160static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
4e8d927d
DJ
12161test_array [0] = 0
12162
d3ea6809
MM
12163 ;
12164 return 0;
12165}
12166_ACEOF
12167rm -f conftest.$ac_objext
12168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12169 (eval $ac_compile) 2>conftest.er1
12170 ac_status=$?
12171 grep -v '^ *+' conftest.er1 >conftest.err
12172 rm -f conftest.er1
12173 cat conftest.err >&5
12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175 (exit $ac_status); } &&
b4e70030
JB
12176 { ac_try='test -z "$ac_c_werror_flag"
12177 || test ! -s conftest.err'
d3ea6809
MM
12178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12179 (eval $ac_try) 2>&5
12180 ac_status=$?
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); }; } &&
12183 { ac_try='test -s conftest.$ac_objext'
12184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12185 (eval $ac_try) 2>&5
12186 ac_status=$?
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); }; }; then
4e8d927d
DJ
12189 ac_lo=0 ac_mid=0
12190 while :; do
12191 cat >conftest.$ac_ext <<_ACEOF
d3ea6809
MM
12192/* confdefs.h. */
12193_ACEOF
12194cat confdefs.h >>conftest.$ac_ext
12195cat >>conftest.$ac_ext <<_ACEOF
12196/* end confdefs.h. */
12197$ac_includes_default
12198int
12199main ()
12200{
b4e70030 12201static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4e8d927d
DJ
12202test_array [0] = 0
12203
d3ea6809
MM
12204 ;
12205 return 0;
12206}
12207_ACEOF
12208rm -f conftest.$ac_objext
12209if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12210 (eval $ac_compile) 2>conftest.er1
12211 ac_status=$?
12212 grep -v '^ *+' conftest.er1 >conftest.err
12213 rm -f conftest.er1
12214 cat conftest.err >&5
12215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12216 (exit $ac_status); } &&
b4e70030
JB
12217 { ac_try='test -z "$ac_c_werror_flag"
12218 || test ! -s conftest.err'
d3ea6809
MM
12219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12220 (eval $ac_try) 2>&5
12221 ac_status=$?
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); }; } &&
12224 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4e8d927d 12230 ac_hi=$ac_mid; break
d3ea6809
MM
12231else
12232 echo "$as_me: failed program was:" >&5
12233sed 's/^/| /' conftest.$ac_ext >&5
12234
b4e70030
JB
12235ac_lo=`expr $ac_mid + 1`
12236 if test $ac_lo -le $ac_mid; then
12237 ac_lo= ac_hi=
12238 break
12239 fi
12240 ac_mid=`expr 2 '*' $ac_mid + 1`
a3828db0 12241fi
4e8d927d
DJ
12242rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12243 done
bec39cab 12244else
4e8d927d
DJ
12245 echo "$as_me: failed program was:" >&5
12246sed 's/^/| /' conftest.$ac_ext >&5
12247
b4e70030 12248cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
12249/* confdefs.h. */
12250_ACEOF
12251cat confdefs.h >>conftest.$ac_ext
12252cat >>conftest.$ac_ext <<_ACEOF
12253/* end confdefs.h. */
4e8d927d 12254$ac_includes_default
bec39cab
AC
12255int
12256main ()
12257{
b4e70030 12258static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
4e8d927d
DJ
12259test_array [0] = 0
12260
bec39cab
AC
12261 ;
12262 return 0;
12263}
12264_ACEOF
a3828db0
MK
12265rm -f conftest.$ac_objext
12266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12267 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
12268 ac_status=$?
12269 grep -v '^ *+' conftest.er1 >conftest.err
12270 rm -f conftest.er1
12271 cat conftest.err >&5
12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); } &&
b4e70030
JB
12274 { ac_try='test -z "$ac_c_werror_flag"
12275 || test ! -s conftest.err'
bec39cab
AC
12276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12277 (eval $ac_try) 2>&5
12278 ac_status=$?
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); }; } &&
a3828db0 12281 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
12282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12283 (eval $ac_try) 2>&5
12284 ac_status=$?
12285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286 (exit $ac_status); }; }; then
4e8d927d
DJ
12287 ac_hi=-1 ac_mid=-1
12288 while :; do
12289 cat >conftest.$ac_ext <<_ACEOF
f9f87d2c
MK
12290/* confdefs.h. */
12291_ACEOF
12292cat confdefs.h >>conftest.$ac_ext
12293cat >>conftest.$ac_ext <<_ACEOF
12294/* end confdefs.h. */
4e8d927d 12295$ac_includes_default
f9f87d2c
MK
12296int
12297main ()
12298{
b4e70030 12299static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
4e8d927d
DJ
12300test_array [0] = 0
12301
f9f87d2c
MK
12302 ;
12303 return 0;
12304}
12305_ACEOF
12306rm -f conftest.$ac_objext
12307if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12308 (eval $ac_compile) 2>conftest.er1
12309 ac_status=$?
12310 grep -v '^ *+' conftest.er1 >conftest.err
12311 rm -f conftest.er1
12312 cat conftest.err >&5
12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314 (exit $ac_status); } &&
b4e70030
JB
12315 { ac_try='test -z "$ac_c_werror_flag"
12316 || test ! -s conftest.err'
f9f87d2c
MK
12317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12318 (eval $ac_try) 2>&5
12319 ac_status=$?
12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321 (exit $ac_status); }; } &&
12322 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4e8d927d 12328 ac_lo=$ac_mid; break
f9f87d2c
MK
12329else
12330 echo "$as_me: failed program was:" >&5
12331sed 's/^/| /' conftest.$ac_ext >&5
12332
b4e70030
JB
12333ac_hi=`expr '(' $ac_mid ')' - 1`
12334 if test $ac_mid -le $ac_hi; then
12335 ac_lo= ac_hi=
12336 break
12337 fi
12338 ac_mid=`expr 2 '*' $ac_mid`
f9f87d2c 12339fi
4e8d927d
DJ
12340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12341 done
12342else
12343 echo "$as_me: failed program was:" >&5
12344sed 's/^/| /' conftest.$ac_ext >&5
f9f87d2c 12345
b4e70030 12346ac_lo= ac_hi=
4e8d927d 12347fi
4e8d927d 12348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3be60c3d 12349fi
4e8d927d
DJ
12350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12351# Binary search between lo and hi bounds.
12352while test "x$ac_lo" != "x$ac_hi"; do
12353 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
3be60c3d
MK
12354 cat >conftest.$ac_ext <<_ACEOF
12355/* confdefs.h. */
12356_ACEOF
12357cat confdefs.h >>conftest.$ac_ext
12358cat >>conftest.$ac_ext <<_ACEOF
12359/* end confdefs.h. */
4e8d927d 12360$ac_includes_default
3be60c3d
MK
12361int
12362main ()
12363{
b4e70030 12364static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
4e8d927d
DJ
12365test_array [0] = 0
12366
3be60c3d
MK
12367 ;
12368 return 0;
12369}
12370_ACEOF
12371rm -f conftest.$ac_objext
12372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12373 (eval $ac_compile) 2>conftest.er1
12374 ac_status=$?
12375 grep -v '^ *+' conftest.er1 >conftest.err
12376 rm -f conftest.er1
12377 cat conftest.err >&5
12378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12379 (exit $ac_status); } &&
b4e70030
JB
12380 { ac_try='test -z "$ac_c_werror_flag"
12381 || test ! -s conftest.err'
3be60c3d
MK
12382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12383 (eval $ac_try) 2>&5
12384 ac_status=$?
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); }; } &&
12387 { ac_try='test -s conftest.$ac_objext'
12388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12389 (eval $ac_try) 2>&5
12390 ac_status=$?
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); }; }; then
4e8d927d 12393 ac_hi=$ac_mid
3be60c3d
MK
12394else
12395 echo "$as_me: failed program was:" >&5
12396sed 's/^/| /' conftest.$ac_ext >&5
12397
b4e70030 12398ac_lo=`expr '(' $ac_mid ')' + 1`
3be60c3d 12399fi
4e8d927d
DJ
12400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12401done
12402case $ac_lo in
12403?*) ac_cv_sizeof_void_p=$ac_lo;;
b4e70030 12404'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4e8d927d 12405See \`config.log' for more details." >&5
b4e70030 12406echo "$as_me: error: cannot compute sizeof (void *), 77
4e8d927d 12407See \`config.log' for more details." >&2;}
b4e70030 12408 { (exit 1); exit 1; }; } ;;
4e8d927d 12409esac
b4e70030
JB
12410else
12411 if test "$cross_compiling" = yes; then
12412 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12413See \`config.log' for more details." >&5
12414echo "$as_me: error: cannot run test program while cross compiling
12415See \`config.log' for more details." >&2;}
12416 { (exit 1); exit 1; }; }
4e8d927d
DJ
12417else
12418 cat >conftest.$ac_ext <<_ACEOF
12419/* confdefs.h. */
3be60c3d 12420_ACEOF
4e8d927d
DJ
12421cat confdefs.h >>conftest.$ac_ext
12422cat >>conftest.$ac_ext <<_ACEOF
12423/* end confdefs.h. */
12424$ac_includes_default
b4e70030
JB
12425long longval () { return (long) (sizeof (void *)); }
12426unsigned long ulongval () { return (long) (sizeof (void *)); }
4e8d927d
DJ
12427#include <stdio.h>
12428#include <stdlib.h>
12429int
12430main ()
12431{
12432
12433 FILE *f = fopen ("conftest.val", "w");
12434 if (! f)
b4e70030
JB
12435 exit (1);
12436 if (((long) (sizeof (void *))) < 0)
4e8d927d 12437 {
b4e70030
JB
12438 long i = longval ();
12439 if (i != ((long) (sizeof (void *))))
12440 exit (1);
4e8d927d
DJ
12441 fprintf (f, "%ld\n", i);
12442 }
12443 else
12444 {
b4e70030
JB
12445 unsigned long i = ulongval ();
12446 if (i != ((long) (sizeof (void *))))
12447 exit (1);
4e8d927d
DJ
12448 fprintf (f, "%lu\n", i);
12449 }
b4e70030 12450 exit (ferror (f) || fclose (f) != 0);
3be60c3d 12451
4e8d927d
DJ
12452 ;
12453 return 0;
12454}
12455_ACEOF
12456rm -f conftest$ac_exeext
12457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12458 (eval $ac_link) 2>&5
12459 ac_status=$?
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12463 (eval $ac_try) 2>&5
12464 ac_status=$?
12465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12466 (exit $ac_status); }; }; then
12467 ac_cv_sizeof_void_p=`cat conftest.val`
12468else
12469 echo "$as_me: program exited with status $ac_status" >&5
12470echo "$as_me: failed program was:" >&5
12471sed 's/^/| /' conftest.$ac_ext >&5
3be60c3d 12472
4e8d927d 12473( exit $ac_status )
b4e70030 12474{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
4e8d927d 12475See \`config.log' for more details." >&5
b4e70030 12476echo "$as_me: error: cannot compute sizeof (void *), 77
4e8d927d 12477See \`config.log' for more details." >&2;}
b4e70030
JB
12478 { (exit 1); exit 1; }; }
12479fi
12480rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f9f87d2c 12481fi
4e8d927d
DJ
12482fi
12483rm -f conftest.val
12484else
12485 ac_cv_sizeof_void_p=0
12486fi
12487fi
b4e70030
JB
12488echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
12489echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
4e8d927d
DJ
12490cat >>confdefs.h <<_ACEOF
12491#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
12492_ACEOF
f9f87d2c 12493
4e8d927d
DJ
12494 ;;
12495esac
46711df8 12496
4e8d927d
DJ
12497# Lacking an uint64_t? Test size of long
12498case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
b4e70030
JB
12499 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5
12500echo $ECHO_N "checking for long... $ECHO_C" >&6
4e8d927d 12501if test "${ac_cv_type_long+set}" = set; then
bec39cab 12502 echo $ECHO_N "(cached) $ECHO_C" >&6
46711df8 12503else
bec39cab
AC
12504 cat >conftest.$ac_ext <<_ACEOF
12505/* confdefs.h. */
12506_ACEOF
12507cat confdefs.h >>conftest.$ac_ext
12508cat >>conftest.$ac_ext <<_ACEOF
12509/* end confdefs.h. */
4e8d927d 12510$ac_includes_default
bec39cab 12511int
46711df8
MK
12512main ()
12513{
b4e70030 12514if ((long *) 0)
4e8d927d 12515 return 0;
b4e70030 12516if (sizeof (long))
4e8d927d 12517 return 0;
a3828db0
MK
12518 ;
12519 return 0;
46711df8 12520}
bec39cab 12521_ACEOF
a3828db0
MK
12522rm -f conftest.$ac_objext
12523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12524 (eval $ac_compile) 2>conftest.er1
12525 ac_status=$?
12526 grep -v '^ *+' conftest.er1 >conftest.err
12527 rm -f conftest.er1
12528 cat conftest.err >&5
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); } &&
b4e70030
JB
12531 { ac_try='test -z "$ac_c_werror_flag"
12532 || test ! -s conftest.err'
a3828db0
MK
12533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12534 (eval $ac_try) 2>&5
bec39cab
AC
12535 ac_status=$?
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0
MK
12537 (exit $ac_status); }; } &&
12538 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
12539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12540 (eval $ac_try) 2>&5
12541 ac_status=$?
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); }; }; then
4e8d927d 12544 ac_cv_type_long=yes
46711df8 12545else
a3828db0 12546 echo "$as_me: failed program was:" >&5
bec39cab
AC
12547sed 's/^/| /' conftest.$ac_ext >&5
12548
b4e70030 12549ac_cv_type_long=no
46711df8 12550fi
4e8d927d 12551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46711df8 12552fi
b4e70030
JB
12553echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
12554echo "${ECHO_T}$ac_cv_type_long" >&6
46711df8 12555
b4e70030
JB
12556echo "$as_me:$LINENO: checking size of long" >&5
12557echo $ECHO_N "checking size of long... $ECHO_C" >&6
4e8d927d 12558if test "${ac_cv_sizeof_long+set}" = set; then
bec39cab 12559 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 12560else
4e8d927d 12561 if test "$ac_cv_type_long" = yes; then
b4e70030 12562 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
12563 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12564 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12565 # This bug is HP SR number 8606223364.
12566 if test "$cross_compiling" = yes; then
12567 # Depending upon the size, compute the lo and hi bounds.
12568cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
12569/* confdefs.h. */
12570_ACEOF
12571cat confdefs.h >>conftest.$ac_ext
12572cat >>conftest.$ac_ext <<_ACEOF
12573/* end confdefs.h. */
4e8d927d 12574$ac_includes_default
4e8d927d
DJ
12575int
12576main ()
12577{
b4e70030 12578static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
4e8d927d 12579test_array [0] = 0
a3828db0 12580
4e8d927d
DJ
12581 ;
12582 return 0;
12583}
bec39cab
AC
12584_ACEOF
12585rm -f conftest.$ac_objext
12586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12587 (eval $ac_compile) 2>conftest.er1
12588 ac_status=$?
12589 grep -v '^ *+' conftest.er1 >conftest.err
12590 rm -f conftest.er1
12591 cat conftest.err >&5
12592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12593 (exit $ac_status); } &&
b4e70030
JB
12594 { ac_try='test -z "$ac_c_werror_flag"
12595 || test ! -s conftest.err'
bec39cab
AC
12596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12597 (eval $ac_try) 2>&5
12598 ac_status=$?
12599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); }; } &&
12601 { ac_try='test -s conftest.$ac_objext'
12602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12603 (eval $ac_try) 2>&5
12604 ac_status=$?
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); }; }; then
4e8d927d
DJ
12607 ac_lo=0 ac_mid=0
12608 while :; do
12609 cat >conftest.$ac_ext <<_ACEOF
12610/* confdefs.h. */
12611_ACEOF
12612cat confdefs.h >>conftest.$ac_ext
12613cat >>conftest.$ac_ext <<_ACEOF
12614/* end confdefs.h. */
12615$ac_includes_default
4e8d927d
DJ
12616int
12617main ()
12618{
b4e70030 12619static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4e8d927d
DJ
12620test_array [0] = 0
12621
12622 ;
12623 return 0;
12624}
12625_ACEOF
12626rm -f conftest.$ac_objext
12627if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12628 (eval $ac_compile) 2>conftest.er1
12629 ac_status=$?
12630 grep -v '^ *+' conftest.er1 >conftest.err
12631 rm -f conftest.er1
12632 cat conftest.err >&5
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); } &&
b4e70030
JB
12635 { ac_try='test -z "$ac_c_werror_flag"
12636 || test ! -s conftest.err'
4e8d927d
DJ
12637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12638 (eval $ac_try) 2>&5
12639 ac_status=$?
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); }; } &&
12642 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
12648 ac_hi=$ac_mid; break
12649else
12650 echo "$as_me: failed program was:" >&5
12651sed 's/^/| /' conftest.$ac_ext >&5
12652
b4e70030
JB
12653ac_lo=`expr $ac_mid + 1`
12654 if test $ac_lo -le $ac_mid; then
12655 ac_lo= ac_hi=
12656 break
12657 fi
12658 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 12659fi
4e8d927d
DJ
12660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12661 done
12662else
12663 echo "$as_me: failed program was:" >&5
12664sed 's/^/| /' conftest.$ac_ext >&5
12665
b4e70030 12666cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
12667/* confdefs.h. */
12668_ACEOF
12669cat confdefs.h >>conftest.$ac_ext
12670cat >>conftest.$ac_ext <<_ACEOF
12671/* end confdefs.h. */
12672$ac_includes_default
4e8d927d
DJ
12673int
12674main ()
12675{
b4e70030 12676static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
4e8d927d
DJ
12677test_array [0] = 0
12678
12679 ;
12680 return 0;
12681}
12682_ACEOF
12683rm -f conftest.$ac_objext
12684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12685 (eval $ac_compile) 2>conftest.er1
12686 ac_status=$?
12687 grep -v '^ *+' conftest.er1 >conftest.err
12688 rm -f conftest.er1
12689 cat conftest.err >&5
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); } &&
b4e70030
JB
12692 { ac_try='test -z "$ac_c_werror_flag"
12693 || test ! -s conftest.err'
4e8d927d
DJ
12694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12695 (eval $ac_try) 2>&5
12696 ac_status=$?
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); }; } &&
12699 { ac_try='test -s conftest.$ac_objext'
12700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12701 (eval $ac_try) 2>&5
12702 ac_status=$?
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); }; }; then
12705 ac_hi=-1 ac_mid=-1
12706 while :; do
12707 cat >conftest.$ac_ext <<_ACEOF
12708/* confdefs.h. */
12709_ACEOF
12710cat confdefs.h >>conftest.$ac_ext
12711cat >>conftest.$ac_ext <<_ACEOF
12712/* end confdefs.h. */
12713$ac_includes_default
4e8d927d
DJ
12714int
12715main ()
12716{
b4e70030 12717static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
4e8d927d
DJ
12718test_array [0] = 0
12719
12720 ;
12721 return 0;
12722}
12723_ACEOF
12724rm -f conftest.$ac_objext
12725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12726 (eval $ac_compile) 2>conftest.er1
12727 ac_status=$?
12728 grep -v '^ *+' conftest.er1 >conftest.err
12729 rm -f conftest.er1
12730 cat conftest.err >&5
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); } &&
b4e70030
JB
12733 { ac_try='test -z "$ac_c_werror_flag"
12734 || test ! -s conftest.err'
4e8d927d
DJ
12735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12736 (eval $ac_try) 2>&5
12737 ac_status=$?
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); }; } &&
12740 { ac_try='test -s conftest.$ac_objext'
12741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12742 (eval $ac_try) 2>&5
12743 ac_status=$?
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); }; }; then
12746 ac_lo=$ac_mid; break
12747else
12748 echo "$as_me: failed program was:" >&5
12749sed 's/^/| /' conftest.$ac_ext >&5
12750
b4e70030
JB
12751ac_hi=`expr '(' $ac_mid ')' - 1`
12752 if test $ac_mid -le $ac_hi; then
12753 ac_lo= ac_hi=
12754 break
12755 fi
12756 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 12757fi
4e8d927d
DJ
12758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12759 done
12760else
12761 echo "$as_me: failed program was:" >&5
12762sed 's/^/| /' conftest.$ac_ext >&5
12763
b4e70030 12764ac_lo= ac_hi=
4e8d927d 12765fi
4e8d927d
DJ
12766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12767fi
4e8d927d
DJ
12768rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12769# Binary search between lo and hi bounds.
12770while test "x$ac_lo" != "x$ac_hi"; do
12771 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12772 cat >conftest.$ac_ext <<_ACEOF
12773/* confdefs.h. */
12774_ACEOF
12775cat confdefs.h >>conftest.$ac_ext
12776cat >>conftest.$ac_ext <<_ACEOF
12777/* end confdefs.h. */
12778$ac_includes_default
4e8d927d
DJ
12779int
12780main ()
12781{
b4e70030 12782static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
4e8d927d
DJ
12783test_array [0] = 0
12784
12785 ;
12786 return 0;
12787}
12788_ACEOF
12789rm -f conftest.$ac_objext
12790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12791 (eval $ac_compile) 2>conftest.er1
12792 ac_status=$?
12793 grep -v '^ *+' conftest.er1 >conftest.err
12794 rm -f conftest.er1
12795 cat conftest.err >&5
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); } &&
b4e70030
JB
12798 { ac_try='test -z "$ac_c_werror_flag"
12799 || test ! -s conftest.err'
4e8d927d
DJ
12800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12801 (eval $ac_try) 2>&5
12802 ac_status=$?
12803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 (exit $ac_status); }; } &&
12805 { ac_try='test -s conftest.$ac_objext'
12806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12807 (eval $ac_try) 2>&5
12808 ac_status=$?
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); }; }; then
12811 ac_hi=$ac_mid
12812else
12813 echo "$as_me: failed program was:" >&5
12814sed 's/^/| /' conftest.$ac_ext >&5
12815
b4e70030 12816ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 12817fi
4e8d927d
DJ
12818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12819done
12820case $ac_lo in
12821?*) ac_cv_sizeof_long=$ac_lo;;
b4e70030 12822'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4e8d927d 12823See \`config.log' for more details." >&5
b4e70030 12824echo "$as_me: error: cannot compute sizeof (long), 77
4e8d927d 12825See \`config.log' for more details." >&2;}
b4e70030 12826 { (exit 1); exit 1; }; } ;;
4e8d927d 12827esac
b4e70030
JB
12828else
12829 if test "$cross_compiling" = yes; then
12830 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12831See \`config.log' for more details." >&5
12832echo "$as_me: error: cannot run test program while cross compiling
12833See \`config.log' for more details." >&2;}
12834 { (exit 1); exit 1; }; }
4e8d927d
DJ
12835else
12836 cat >conftest.$ac_ext <<_ACEOF
12837/* confdefs.h. */
12838_ACEOF
12839cat confdefs.h >>conftest.$ac_ext
12840cat >>conftest.$ac_ext <<_ACEOF
12841/* end confdefs.h. */
12842$ac_includes_default
b4e70030
JB
12843long longval () { return (long) (sizeof (long)); }
12844unsigned long ulongval () { return (long) (sizeof (long)); }
4e8d927d
DJ
12845#include <stdio.h>
12846#include <stdlib.h>
12847int
12848main ()
12849{
12850
12851 FILE *f = fopen ("conftest.val", "w");
12852 if (! f)
b4e70030
JB
12853 exit (1);
12854 if (((long) (sizeof (long))) < 0)
4e8d927d 12855 {
b4e70030
JB
12856 long i = longval ();
12857 if (i != ((long) (sizeof (long))))
12858 exit (1);
4e8d927d
DJ
12859 fprintf (f, "%ld\n", i);
12860 }
12861 else
12862 {
b4e70030
JB
12863 unsigned long i = ulongval ();
12864 if (i != ((long) (sizeof (long))))
12865 exit (1);
4e8d927d
DJ
12866 fprintf (f, "%lu\n", i);
12867 }
b4e70030 12868 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
12869
12870 ;
12871 return 0;
12872}
12873_ACEOF
12874rm -f conftest$ac_exeext
12875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12876 (eval $ac_link) 2>&5
12877 ac_status=$?
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12881 (eval $ac_try) 2>&5
12882 ac_status=$?
12883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884 (exit $ac_status); }; }; then
12885 ac_cv_sizeof_long=`cat conftest.val`
12886else
12887 echo "$as_me: program exited with status $ac_status" >&5
12888echo "$as_me: failed program was:" >&5
12889sed 's/^/| /' conftest.$ac_ext >&5
12890
12891( exit $ac_status )
b4e70030 12892{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
4e8d927d 12893See \`config.log' for more details." >&5
b4e70030 12894echo "$as_me: error: cannot compute sizeof (long), 77
4e8d927d 12895See \`config.log' for more details." >&2;}
b4e70030
JB
12896 { (exit 1); exit 1; }; }
12897fi
12898rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 12899fi
4e8d927d
DJ
12900fi
12901rm -f conftest.val
12902else
12903 ac_cv_sizeof_long=0
12904fi
12905fi
b4e70030
JB
12906echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
12907echo "${ECHO_T}$ac_cv_sizeof_long" >&6
4e8d927d
DJ
12908cat >>confdefs.h <<_ACEOF
12909#define SIZEOF_LONG $ac_cv_sizeof_long
12910_ACEOF
12911
12912 ;;
12913esac
12914
12915if test $acx_cv_header_stdint = stddef.h; then
12916 # Lacking a good header? Test size of everything and deduce all types.
b4e70030
JB
12917 echo "$as_me:$LINENO: checking for int" >&5
12918echo $ECHO_N "checking for int... $ECHO_C" >&6
4e8d927d
DJ
12919if test "${ac_cv_type_int+set}" = set; then
12920 echo $ECHO_N "(cached) $ECHO_C" >&6
12921else
12922 cat >conftest.$ac_ext <<_ACEOF
12923/* confdefs.h. */
12924_ACEOF
12925cat confdefs.h >>conftest.$ac_ext
12926cat >>conftest.$ac_ext <<_ACEOF
12927/* end confdefs.h. */
12928$ac_includes_default
4e8d927d
DJ
12929int
12930main ()
12931{
b4e70030 12932if ((int *) 0)
4e8d927d 12933 return 0;
b4e70030 12934if (sizeof (int))
4e8d927d
DJ
12935 return 0;
12936 ;
12937 return 0;
12938}
12939_ACEOF
12940rm -f conftest.$ac_objext
12941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12942 (eval $ac_compile) 2>conftest.er1
12943 ac_status=$?
12944 grep -v '^ *+' conftest.er1 >conftest.err
12945 rm -f conftest.er1
12946 cat conftest.err >&5
12947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948 (exit $ac_status); } &&
b4e70030
JB
12949 { ac_try='test -z "$ac_c_werror_flag"
12950 || test ! -s conftest.err'
4e8d927d
DJ
12951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12952 (eval $ac_try) 2>&5
12953 ac_status=$?
12954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955 (exit $ac_status); }; } &&
12956 { ac_try='test -s conftest.$ac_objext'
12957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12958 (eval $ac_try) 2>&5
12959 ac_status=$?
12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); }; }; then
12962 ac_cv_type_int=yes
12963else
12964 echo "$as_me: failed program was:" >&5
12965sed 's/^/| /' conftest.$ac_ext >&5
12966
b4e70030 12967ac_cv_type_int=no
4e8d927d 12968fi
4e8d927d
DJ
12969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12970fi
b4e70030
JB
12971echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12972echo "${ECHO_T}$ac_cv_type_int" >&6
4e8d927d 12973
b4e70030
JB
12974echo "$as_me:$LINENO: checking size of int" >&5
12975echo $ECHO_N "checking size of int... $ECHO_C" >&6
4e8d927d
DJ
12976if test "${ac_cv_sizeof_int+set}" = set; then
12977 echo $ECHO_N "(cached) $ECHO_C" >&6
12978else
12979 if test "$ac_cv_type_int" = yes; then
b4e70030 12980 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
12981 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12982 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12983 # This bug is HP SR number 8606223364.
12984 if test "$cross_compiling" = yes; then
12985 # Depending upon the size, compute the lo and hi bounds.
12986cat >conftest.$ac_ext <<_ACEOF
12987/* confdefs.h. */
12988_ACEOF
12989cat confdefs.h >>conftest.$ac_ext
12990cat >>conftest.$ac_ext <<_ACEOF
12991/* end confdefs.h. */
12992$ac_includes_default
4e8d927d
DJ
12993int
12994main ()
12995{
b4e70030 12996static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
4e8d927d
DJ
12997test_array [0] = 0
12998
12999 ;
13000 return 0;
13001}
13002_ACEOF
13003rm -f conftest.$ac_objext
13004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13005 (eval $ac_compile) 2>conftest.er1
13006 ac_status=$?
13007 grep -v '^ *+' conftest.er1 >conftest.err
13008 rm -f conftest.er1
13009 cat conftest.err >&5
13010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13011 (exit $ac_status); } &&
b4e70030
JB
13012 { ac_try='test -z "$ac_c_werror_flag"
13013 || test ! -s conftest.err'
4e8d927d
DJ
13014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13015 (eval $ac_try) 2>&5
13016 ac_status=$?
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); }; } &&
13019 { ac_try='test -s conftest.$ac_objext'
13020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13021 (eval $ac_try) 2>&5
13022 ac_status=$?
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); }; }; then
13025 ac_lo=0 ac_mid=0
13026 while :; do
13027 cat >conftest.$ac_ext <<_ACEOF
13028/* confdefs.h. */
13029_ACEOF
13030cat confdefs.h >>conftest.$ac_ext
13031cat >>conftest.$ac_ext <<_ACEOF
13032/* end confdefs.h. */
13033$ac_includes_default
4e8d927d
DJ
13034int
13035main ()
13036{
b4e70030 13037static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4e8d927d
DJ
13038test_array [0] = 0
13039
13040 ;
13041 return 0;
13042}
13043_ACEOF
13044rm -f conftest.$ac_objext
13045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13046 (eval $ac_compile) 2>conftest.er1
13047 ac_status=$?
13048 grep -v '^ *+' conftest.er1 >conftest.err
13049 rm -f conftest.er1
13050 cat conftest.err >&5
13051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13052 (exit $ac_status); } &&
b4e70030
JB
13053 { ac_try='test -z "$ac_c_werror_flag"
13054 || test ! -s conftest.err'
4e8d927d
DJ
13055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13056 (eval $ac_try) 2>&5
13057 ac_status=$?
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); }; } &&
13060 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13066 ac_hi=$ac_mid; break
13067else
13068 echo "$as_me: failed program was:" >&5
13069sed 's/^/| /' conftest.$ac_ext >&5
13070
b4e70030
JB
13071ac_lo=`expr $ac_mid + 1`
13072 if test $ac_lo -le $ac_mid; then
13073 ac_lo= ac_hi=
13074 break
13075 fi
13076 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 13077fi
4e8d927d
DJ
13078rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13079 done
13080else
13081 echo "$as_me: failed program was:" >&5
13082sed 's/^/| /' conftest.$ac_ext >&5
13083
b4e70030 13084cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
13085/* confdefs.h. */
13086_ACEOF
13087cat confdefs.h >>conftest.$ac_ext
13088cat >>conftest.$ac_ext <<_ACEOF
13089/* end confdefs.h. */
13090$ac_includes_default
4e8d927d
DJ
13091int
13092main ()
13093{
b4e70030 13094static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
4e8d927d
DJ
13095test_array [0] = 0
13096
13097 ;
13098 return 0;
13099}
13100_ACEOF
13101rm -f conftest.$ac_objext
13102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13103 (eval $ac_compile) 2>conftest.er1
13104 ac_status=$?
13105 grep -v '^ *+' conftest.er1 >conftest.err
13106 rm -f conftest.er1
13107 cat conftest.err >&5
13108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); } &&
b4e70030
JB
13110 { ac_try='test -z "$ac_c_werror_flag"
13111 || test ! -s conftest.err'
4e8d927d
DJ
13112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13113 (eval $ac_try) 2>&5
13114 ac_status=$?
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); }; } &&
13117 { ac_try='test -s conftest.$ac_objext'
13118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13119 (eval $ac_try) 2>&5
13120 ac_status=$?
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); }; }; then
13123 ac_hi=-1 ac_mid=-1
13124 while :; do
13125 cat >conftest.$ac_ext <<_ACEOF
13126/* confdefs.h. */
13127_ACEOF
13128cat confdefs.h >>conftest.$ac_ext
13129cat >>conftest.$ac_ext <<_ACEOF
13130/* end confdefs.h. */
13131$ac_includes_default
4e8d927d
DJ
13132int
13133main ()
13134{
b4e70030 13135static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
4e8d927d
DJ
13136test_array [0] = 0
13137
13138 ;
13139 return 0;
13140}
13141_ACEOF
13142rm -f conftest.$ac_objext
13143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13144 (eval $ac_compile) 2>conftest.er1
13145 ac_status=$?
13146 grep -v '^ *+' conftest.er1 >conftest.err
13147 rm -f conftest.er1
13148 cat conftest.err >&5
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); } &&
b4e70030
JB
13151 { ac_try='test -z "$ac_c_werror_flag"
13152 || test ! -s conftest.err'
4e8d927d
DJ
13153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13154 (eval $ac_try) 2>&5
13155 ac_status=$?
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); }; } &&
13158 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13164 ac_lo=$ac_mid; break
13165else
13166 echo "$as_me: failed program was:" >&5
13167sed 's/^/| /' conftest.$ac_ext >&5
13168
b4e70030
JB
13169ac_hi=`expr '(' $ac_mid ')' - 1`
13170 if test $ac_mid -le $ac_hi; then
13171 ac_lo= ac_hi=
13172 break
13173 fi
13174 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 13175fi
4e8d927d
DJ
13176rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13177 done
13178else
13179 echo "$as_me: failed program was:" >&5
13180sed 's/^/| /' conftest.$ac_ext >&5
13181
b4e70030 13182ac_lo= ac_hi=
4e8d927d 13183fi
4e8d927d
DJ
13184rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13185fi
4e8d927d
DJ
13186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13187# Binary search between lo and hi bounds.
13188while test "x$ac_lo" != "x$ac_hi"; do
13189 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13190 cat >conftest.$ac_ext <<_ACEOF
13191/* confdefs.h. */
13192_ACEOF
13193cat confdefs.h >>conftest.$ac_ext
13194cat >>conftest.$ac_ext <<_ACEOF
13195/* end confdefs.h. */
13196$ac_includes_default
4e8d927d
DJ
13197int
13198main ()
13199{
b4e70030 13200static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
4e8d927d
DJ
13201test_array [0] = 0
13202
13203 ;
13204 return 0;
13205}
13206_ACEOF
13207rm -f conftest.$ac_objext
13208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13209 (eval $ac_compile) 2>conftest.er1
13210 ac_status=$?
13211 grep -v '^ *+' conftest.er1 >conftest.err
13212 rm -f conftest.er1
13213 cat conftest.err >&5
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); } &&
b4e70030
JB
13216 { ac_try='test -z "$ac_c_werror_flag"
13217 || test ! -s conftest.err'
4e8d927d
DJ
13218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13219 (eval $ac_try) 2>&5
13220 ac_status=$?
13221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222 (exit $ac_status); }; } &&
13223 { ac_try='test -s conftest.$ac_objext'
13224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13225 (eval $ac_try) 2>&5
13226 ac_status=$?
13227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13228 (exit $ac_status); }; }; then
13229 ac_hi=$ac_mid
13230else
13231 echo "$as_me: failed program was:" >&5
13232sed 's/^/| /' conftest.$ac_ext >&5
13233
b4e70030 13234ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 13235fi
4e8d927d
DJ
13236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13237done
13238case $ac_lo in
13239?*) ac_cv_sizeof_int=$ac_lo;;
b4e70030 13240'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4e8d927d 13241See \`config.log' for more details." >&5
b4e70030 13242echo "$as_me: error: cannot compute sizeof (int), 77
4e8d927d 13243See \`config.log' for more details." >&2;}
b4e70030 13244 { (exit 1); exit 1; }; } ;;
4e8d927d 13245esac
b4e70030
JB
13246else
13247 if test "$cross_compiling" = yes; then
13248 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13249See \`config.log' for more details." >&5
13250echo "$as_me: error: cannot run test program while cross compiling
13251See \`config.log' for more details." >&2;}
13252 { (exit 1); exit 1; }; }
4e8d927d
DJ
13253else
13254 cat >conftest.$ac_ext <<_ACEOF
13255/* confdefs.h. */
13256_ACEOF
13257cat confdefs.h >>conftest.$ac_ext
13258cat >>conftest.$ac_ext <<_ACEOF
13259/* end confdefs.h. */
13260$ac_includes_default
b4e70030
JB
13261long longval () { return (long) (sizeof (int)); }
13262unsigned long ulongval () { return (long) (sizeof (int)); }
4e8d927d
DJ
13263#include <stdio.h>
13264#include <stdlib.h>
13265int
13266main ()
13267{
13268
13269 FILE *f = fopen ("conftest.val", "w");
13270 if (! f)
b4e70030
JB
13271 exit (1);
13272 if (((long) (sizeof (int))) < 0)
4e8d927d 13273 {
b4e70030
JB
13274 long i = longval ();
13275 if (i != ((long) (sizeof (int))))
13276 exit (1);
4e8d927d
DJ
13277 fprintf (f, "%ld\n", i);
13278 }
13279 else
13280 {
b4e70030
JB
13281 unsigned long i = ulongval ();
13282 if (i != ((long) (sizeof (int))))
13283 exit (1);
4e8d927d
DJ
13284 fprintf (f, "%lu\n", i);
13285 }
b4e70030 13286 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
13287
13288 ;
13289 return 0;
13290}
13291_ACEOF
13292rm -f conftest$ac_exeext
13293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13294 (eval $ac_link) 2>&5
13295 ac_status=$?
13296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13297 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13299 (eval $ac_try) 2>&5
13300 ac_status=$?
13301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302 (exit $ac_status); }; }; then
13303 ac_cv_sizeof_int=`cat conftest.val`
13304else
13305 echo "$as_me: program exited with status $ac_status" >&5
13306echo "$as_me: failed program was:" >&5
13307sed 's/^/| /' conftest.$ac_ext >&5
13308
13309( exit $ac_status )
b4e70030 13310{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
4e8d927d 13311See \`config.log' for more details." >&5
b4e70030 13312echo "$as_me: error: cannot compute sizeof (int), 77
4e8d927d 13313See \`config.log' for more details." >&2;}
b4e70030
JB
13314 { (exit 1); exit 1; }; }
13315fi
13316rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 13317fi
4e8d927d
DJ
13318fi
13319rm -f conftest.val
13320else
13321 ac_cv_sizeof_int=0
13322fi
13323fi
b4e70030
JB
13324echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13325echo "${ECHO_T}$ac_cv_sizeof_int" >&6
4e8d927d
DJ
13326cat >>confdefs.h <<_ACEOF
13327#define SIZEOF_INT $ac_cv_sizeof_int
13328_ACEOF
13329
13330
b4e70030
JB
13331 echo "$as_me:$LINENO: checking for short" >&5
13332echo $ECHO_N "checking for short... $ECHO_C" >&6
4e8d927d
DJ
13333if test "${ac_cv_type_short+set}" = set; then
13334 echo $ECHO_N "(cached) $ECHO_C" >&6
13335else
13336 cat >conftest.$ac_ext <<_ACEOF
13337/* confdefs.h. */
13338_ACEOF
13339cat confdefs.h >>conftest.$ac_ext
13340cat >>conftest.$ac_ext <<_ACEOF
13341/* end confdefs.h. */
13342$ac_includes_default
4e8d927d
DJ
13343int
13344main ()
13345{
b4e70030 13346if ((short *) 0)
4e8d927d 13347 return 0;
b4e70030 13348if (sizeof (short))
4e8d927d
DJ
13349 return 0;
13350 ;
13351 return 0;
13352}
13353_ACEOF
13354rm -f conftest.$ac_objext
13355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13356 (eval $ac_compile) 2>conftest.er1
13357 ac_status=$?
13358 grep -v '^ *+' conftest.er1 >conftest.err
13359 rm -f conftest.er1
13360 cat conftest.err >&5
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); } &&
b4e70030
JB
13363 { ac_try='test -z "$ac_c_werror_flag"
13364 || test ! -s conftest.err'
4e8d927d
DJ
13365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13366 (eval $ac_try) 2>&5
13367 ac_status=$?
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); }; } &&
13370 { ac_try='test -s conftest.$ac_objext'
13371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13372 (eval $ac_try) 2>&5
13373 ac_status=$?
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); }; }; then
13376 ac_cv_type_short=yes
13377else
13378 echo "$as_me: failed program was:" >&5
13379sed 's/^/| /' conftest.$ac_ext >&5
13380
b4e70030 13381ac_cv_type_short=no
4e8d927d 13382fi
4e8d927d
DJ
13383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13384fi
b4e70030
JB
13385echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
13386echo "${ECHO_T}$ac_cv_type_short" >&6
4e8d927d 13387
b4e70030
JB
13388echo "$as_me:$LINENO: checking size of short" >&5
13389echo $ECHO_N "checking size of short... $ECHO_C" >&6
4e8d927d
DJ
13390if test "${ac_cv_sizeof_short+set}" = set; then
13391 echo $ECHO_N "(cached) $ECHO_C" >&6
13392else
13393 if test "$ac_cv_type_short" = yes; then
b4e70030 13394 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
13395 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13396 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13397 # This bug is HP SR number 8606223364.
13398 if test "$cross_compiling" = yes; then
13399 # Depending upon the size, compute the lo and hi bounds.
13400cat >conftest.$ac_ext <<_ACEOF
13401/* confdefs.h. */
13402_ACEOF
13403cat confdefs.h >>conftest.$ac_ext
13404cat >>conftest.$ac_ext <<_ACEOF
13405/* end confdefs.h. */
13406$ac_includes_default
4e8d927d
DJ
13407int
13408main ()
13409{
b4e70030 13410static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4e8d927d
DJ
13411test_array [0] = 0
13412
13413 ;
13414 return 0;
13415}
13416_ACEOF
13417rm -f conftest.$ac_objext
13418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13419 (eval $ac_compile) 2>conftest.er1
13420 ac_status=$?
13421 grep -v '^ *+' conftest.er1 >conftest.err
13422 rm -f conftest.er1
13423 cat conftest.err >&5
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); } &&
b4e70030
JB
13426 { ac_try='test -z "$ac_c_werror_flag"
13427 || test ! -s conftest.err'
4e8d927d
DJ
13428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13429 (eval $ac_try) 2>&5
13430 ac_status=$?
13431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432 (exit $ac_status); }; } &&
13433 { ac_try='test -s conftest.$ac_objext'
13434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13435 (eval $ac_try) 2>&5
13436 ac_status=$?
13437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438 (exit $ac_status); }; }; then
13439 ac_lo=0 ac_mid=0
13440 while :; do
13441 cat >conftest.$ac_ext <<_ACEOF
13442/* confdefs.h. */
13443_ACEOF
13444cat confdefs.h >>conftest.$ac_ext
13445cat >>conftest.$ac_ext <<_ACEOF
13446/* end confdefs.h. */
13447$ac_includes_default
4e8d927d
DJ
13448int
13449main ()
13450{
b4e70030 13451static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4e8d927d
DJ
13452test_array [0] = 0
13453
13454 ;
13455 return 0;
13456}
13457_ACEOF
13458rm -f conftest.$ac_objext
13459if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13460 (eval $ac_compile) 2>conftest.er1
13461 ac_status=$?
13462 grep -v '^ *+' conftest.er1 >conftest.err
13463 rm -f conftest.er1
13464 cat conftest.err >&5
13465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466 (exit $ac_status); } &&
b4e70030
JB
13467 { ac_try='test -z "$ac_c_werror_flag"
13468 || test ! -s conftest.err'
4e8d927d
DJ
13469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13470 (eval $ac_try) 2>&5
13471 ac_status=$?
13472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13473 (exit $ac_status); }; } &&
13474 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13480 ac_hi=$ac_mid; break
13481else
13482 echo "$as_me: failed program was:" >&5
13483sed 's/^/| /' conftest.$ac_ext >&5
13484
b4e70030
JB
13485ac_lo=`expr $ac_mid + 1`
13486 if test $ac_lo -le $ac_mid; then
13487 ac_lo= ac_hi=
13488 break
13489 fi
13490 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 13491fi
4e8d927d
DJ
13492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13493 done
13494else
13495 echo "$as_me: failed program was:" >&5
13496sed 's/^/| /' conftest.$ac_ext >&5
13497
b4e70030 13498cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
13499/* confdefs.h. */
13500_ACEOF
13501cat confdefs.h >>conftest.$ac_ext
13502cat >>conftest.$ac_ext <<_ACEOF
13503/* end confdefs.h. */
13504$ac_includes_default
4e8d927d
DJ
13505int
13506main ()
13507{
b4e70030 13508static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
4e8d927d
DJ
13509test_array [0] = 0
13510
13511 ;
13512 return 0;
13513}
13514_ACEOF
13515rm -f conftest.$ac_objext
13516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13517 (eval $ac_compile) 2>conftest.er1
13518 ac_status=$?
13519 grep -v '^ *+' conftest.er1 >conftest.err
13520 rm -f conftest.er1
13521 cat conftest.err >&5
13522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523 (exit $ac_status); } &&
b4e70030
JB
13524 { ac_try='test -z "$ac_c_werror_flag"
13525 || test ! -s conftest.err'
4e8d927d
DJ
13526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13527 (eval $ac_try) 2>&5
13528 ac_status=$?
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); }; } &&
13531 { ac_try='test -s conftest.$ac_objext'
13532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13533 (eval $ac_try) 2>&5
13534 ac_status=$?
13535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536 (exit $ac_status); }; }; then
13537 ac_hi=-1 ac_mid=-1
13538 while :; do
13539 cat >conftest.$ac_ext <<_ACEOF
13540/* confdefs.h. */
13541_ACEOF
13542cat confdefs.h >>conftest.$ac_ext
13543cat >>conftest.$ac_ext <<_ACEOF
13544/* end confdefs.h. */
13545$ac_includes_default
4e8d927d
DJ
13546int
13547main ()
13548{
b4e70030 13549static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
4e8d927d
DJ
13550test_array [0] = 0
13551
13552 ;
13553 return 0;
13554}
13555_ACEOF
13556rm -f conftest.$ac_objext
13557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13558 (eval $ac_compile) 2>conftest.er1
13559 ac_status=$?
13560 grep -v '^ *+' conftest.er1 >conftest.err
13561 rm -f conftest.er1
13562 cat conftest.err >&5
13563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564 (exit $ac_status); } &&
b4e70030
JB
13565 { ac_try='test -z "$ac_c_werror_flag"
13566 || test ! -s conftest.err'
4e8d927d
DJ
13567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13568 (eval $ac_try) 2>&5
13569 ac_status=$?
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); }; } &&
13572 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13578 ac_lo=$ac_mid; break
13579else
13580 echo "$as_me: failed program was:" >&5
13581sed 's/^/| /' conftest.$ac_ext >&5
13582
b4e70030
JB
13583ac_hi=`expr '(' $ac_mid ')' - 1`
13584 if test $ac_mid -le $ac_hi; then
13585 ac_lo= ac_hi=
13586 break
13587 fi
13588 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 13589fi
4e8d927d
DJ
13590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13591 done
13592else
13593 echo "$as_me: failed program was:" >&5
13594sed 's/^/| /' conftest.$ac_ext >&5
13595
b4e70030 13596ac_lo= ac_hi=
4e8d927d 13597fi
4e8d927d
DJ
13598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13599fi
4e8d927d
DJ
13600rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13601# Binary search between lo and hi bounds.
13602while test "x$ac_lo" != "x$ac_hi"; do
13603 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13604 cat >conftest.$ac_ext <<_ACEOF
13605/* confdefs.h. */
13606_ACEOF
13607cat confdefs.h >>conftest.$ac_ext
13608cat >>conftest.$ac_ext <<_ACEOF
13609/* end confdefs.h. */
13610$ac_includes_default
4e8d927d
DJ
13611int
13612main ()
13613{
b4e70030 13614static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
4e8d927d
DJ
13615test_array [0] = 0
13616
13617 ;
13618 return 0;
13619}
13620_ACEOF
13621rm -f conftest.$ac_objext
13622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13623 (eval $ac_compile) 2>conftest.er1
13624 ac_status=$?
13625 grep -v '^ *+' conftest.er1 >conftest.err
13626 rm -f conftest.er1
13627 cat conftest.err >&5
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); } &&
b4e70030
JB
13630 { ac_try='test -z "$ac_c_werror_flag"
13631 || test ! -s conftest.err'
4e8d927d
DJ
13632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13633 (eval $ac_try) 2>&5
13634 ac_status=$?
13635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636 (exit $ac_status); }; } &&
13637 { ac_try='test -s conftest.$ac_objext'
13638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13639 (eval $ac_try) 2>&5
13640 ac_status=$?
13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 (exit $ac_status); }; }; then
13643 ac_hi=$ac_mid
13644else
13645 echo "$as_me: failed program was:" >&5
13646sed 's/^/| /' conftest.$ac_ext >&5
13647
b4e70030 13648ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 13649fi
4e8d927d
DJ
13650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13651done
13652case $ac_lo in
13653?*) ac_cv_sizeof_short=$ac_lo;;
b4e70030 13654'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4e8d927d 13655See \`config.log' for more details." >&5
b4e70030 13656echo "$as_me: error: cannot compute sizeof (short), 77
4e8d927d 13657See \`config.log' for more details." >&2;}
b4e70030 13658 { (exit 1); exit 1; }; } ;;
4e8d927d 13659esac
b4e70030
JB
13660else
13661 if test "$cross_compiling" = yes; then
13662 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13663See \`config.log' for more details." >&5
13664echo "$as_me: error: cannot run test program while cross compiling
13665See \`config.log' for more details." >&2;}
13666 { (exit 1); exit 1; }; }
4e8d927d
DJ
13667else
13668 cat >conftest.$ac_ext <<_ACEOF
13669/* confdefs.h. */
13670_ACEOF
13671cat confdefs.h >>conftest.$ac_ext
13672cat >>conftest.$ac_ext <<_ACEOF
13673/* end confdefs.h. */
13674$ac_includes_default
b4e70030
JB
13675long longval () { return (long) (sizeof (short)); }
13676unsigned long ulongval () { return (long) (sizeof (short)); }
4e8d927d
DJ
13677#include <stdio.h>
13678#include <stdlib.h>
13679int
13680main ()
13681{
13682
13683 FILE *f = fopen ("conftest.val", "w");
13684 if (! f)
b4e70030
JB
13685 exit (1);
13686 if (((long) (sizeof (short))) < 0)
4e8d927d 13687 {
b4e70030
JB
13688 long i = longval ();
13689 if (i != ((long) (sizeof (short))))
13690 exit (1);
4e8d927d
DJ
13691 fprintf (f, "%ld\n", i);
13692 }
13693 else
13694 {
b4e70030
JB
13695 unsigned long i = ulongval ();
13696 if (i != ((long) (sizeof (short))))
13697 exit (1);
4e8d927d
DJ
13698 fprintf (f, "%lu\n", i);
13699 }
b4e70030 13700 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
13701
13702 ;
13703 return 0;
13704}
13705_ACEOF
13706rm -f conftest$ac_exeext
13707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13708 (eval $ac_link) 2>&5
13709 ac_status=$?
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13713 (eval $ac_try) 2>&5
13714 ac_status=$?
13715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13716 (exit $ac_status); }; }; then
13717 ac_cv_sizeof_short=`cat conftest.val`
13718else
13719 echo "$as_me: program exited with status $ac_status" >&5
13720echo "$as_me: failed program was:" >&5
13721sed 's/^/| /' conftest.$ac_ext >&5
13722
13723( exit $ac_status )
b4e70030 13724{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
4e8d927d 13725See \`config.log' for more details." >&5
b4e70030 13726echo "$as_me: error: cannot compute sizeof (short), 77
4e8d927d 13727See \`config.log' for more details." >&2;}
b4e70030
JB
13728 { (exit 1); exit 1; }; }
13729fi
13730rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 13731fi
4e8d927d
DJ
13732fi
13733rm -f conftest.val
13734else
13735 ac_cv_sizeof_short=0
13736fi
13737fi
b4e70030
JB
13738echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
13739echo "${ECHO_T}$ac_cv_sizeof_short" >&6
4e8d927d
DJ
13740cat >>confdefs.h <<_ACEOF
13741#define SIZEOF_SHORT $ac_cv_sizeof_short
13742_ACEOF
13743
13744
b4e70030
JB
13745 echo "$as_me:$LINENO: checking for char" >&5
13746echo $ECHO_N "checking for char... $ECHO_C" >&6
4e8d927d
DJ
13747if test "${ac_cv_type_char+set}" = set; then
13748 echo $ECHO_N "(cached) $ECHO_C" >&6
13749else
13750 cat >conftest.$ac_ext <<_ACEOF
13751/* confdefs.h. */
13752_ACEOF
13753cat confdefs.h >>conftest.$ac_ext
13754cat >>conftest.$ac_ext <<_ACEOF
13755/* end confdefs.h. */
13756$ac_includes_default
4e8d927d
DJ
13757int
13758main ()
13759{
b4e70030 13760if ((char *) 0)
4e8d927d 13761 return 0;
b4e70030 13762if (sizeof (char))
4e8d927d
DJ
13763 return 0;
13764 ;
13765 return 0;
13766}
13767_ACEOF
13768rm -f conftest.$ac_objext
13769if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13770 (eval $ac_compile) 2>conftest.er1
13771 ac_status=$?
13772 grep -v '^ *+' conftest.er1 >conftest.err
13773 rm -f conftest.er1
13774 cat conftest.err >&5
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); } &&
b4e70030
JB
13777 { ac_try='test -z "$ac_c_werror_flag"
13778 || test ! -s conftest.err'
4e8d927d
DJ
13779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13780 (eval $ac_try) 2>&5
13781 ac_status=$?
13782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783 (exit $ac_status); }; } &&
13784 { ac_try='test -s conftest.$ac_objext'
13785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13786 (eval $ac_try) 2>&5
13787 ac_status=$?
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); }; }; then
13790 ac_cv_type_char=yes
13791else
13792 echo "$as_me: failed program was:" >&5
13793sed 's/^/| /' conftest.$ac_ext >&5
13794
b4e70030 13795ac_cv_type_char=no
4e8d927d 13796fi
4e8d927d
DJ
13797rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13798fi
b4e70030
JB
13799echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13800echo "${ECHO_T}$ac_cv_type_char" >&6
4e8d927d 13801
b4e70030
JB
13802echo "$as_me:$LINENO: checking size of char" >&5
13803echo $ECHO_N "checking size of char... $ECHO_C" >&6
4e8d927d
DJ
13804if test "${ac_cv_sizeof_char+set}" = set; then
13805 echo $ECHO_N "(cached) $ECHO_C" >&6
13806else
13807 if test "$ac_cv_type_char" = yes; then
b4e70030 13808 # The cast to unsigned long works around a bug in the HP C Compiler
4e8d927d
DJ
13809 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13810 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13811 # This bug is HP SR number 8606223364.
13812 if test "$cross_compiling" = yes; then
13813 # Depending upon the size, compute the lo and hi bounds.
13814cat >conftest.$ac_ext <<_ACEOF
13815/* confdefs.h. */
13816_ACEOF
13817cat confdefs.h >>conftest.$ac_ext
13818cat >>conftest.$ac_ext <<_ACEOF
13819/* end confdefs.h. */
13820$ac_includes_default
4e8d927d
DJ
13821int
13822main ()
13823{
b4e70030 13824static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
4e8d927d
DJ
13825test_array [0] = 0
13826
13827 ;
13828 return 0;
13829}
13830_ACEOF
13831rm -f conftest.$ac_objext
13832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13833 (eval $ac_compile) 2>conftest.er1
13834 ac_status=$?
13835 grep -v '^ *+' conftest.er1 >conftest.err
13836 rm -f conftest.er1
13837 cat conftest.err >&5
13838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839 (exit $ac_status); } &&
b4e70030
JB
13840 { ac_try='test -z "$ac_c_werror_flag"
13841 || test ! -s conftest.err'
4e8d927d
DJ
13842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13843 (eval $ac_try) 2>&5
13844 ac_status=$?
13845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846 (exit $ac_status); }; } &&
13847 { ac_try='test -s conftest.$ac_objext'
13848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13849 (eval $ac_try) 2>&5
13850 ac_status=$?
13851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852 (exit $ac_status); }; }; then
13853 ac_lo=0 ac_mid=0
13854 while :; do
13855 cat >conftest.$ac_ext <<_ACEOF
13856/* confdefs.h. */
13857_ACEOF
13858cat confdefs.h >>conftest.$ac_ext
13859cat >>conftest.$ac_ext <<_ACEOF
13860/* end confdefs.h. */
13861$ac_includes_default
4e8d927d
DJ
13862int
13863main ()
13864{
b4e70030 13865static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4e8d927d
DJ
13866test_array [0] = 0
13867
13868 ;
13869 return 0;
13870}
13871_ACEOF
13872rm -f conftest.$ac_objext
13873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13874 (eval $ac_compile) 2>conftest.er1
13875 ac_status=$?
13876 grep -v '^ *+' conftest.er1 >conftest.err
13877 rm -f conftest.er1
13878 cat conftest.err >&5
13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); } &&
b4e70030
JB
13881 { ac_try='test -z "$ac_c_werror_flag"
13882 || test ! -s conftest.err'
4e8d927d
DJ
13883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13884 (eval $ac_try) 2>&5
13885 ac_status=$?
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); }; } &&
13888 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13894 ac_hi=$ac_mid; break
13895else
13896 echo "$as_me: failed program was:" >&5
13897sed 's/^/| /' conftest.$ac_ext >&5
13898
b4e70030
JB
13899ac_lo=`expr $ac_mid + 1`
13900 if test $ac_lo -le $ac_mid; then
13901 ac_lo= ac_hi=
13902 break
13903 fi
13904 ac_mid=`expr 2 '*' $ac_mid + 1`
4e8d927d 13905fi
4e8d927d
DJ
13906rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13907 done
13908else
13909 echo "$as_me: failed program was:" >&5
13910sed 's/^/| /' conftest.$ac_ext >&5
13911
b4e70030 13912cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
13913/* confdefs.h. */
13914_ACEOF
13915cat confdefs.h >>conftest.$ac_ext
13916cat >>conftest.$ac_ext <<_ACEOF
13917/* end confdefs.h. */
13918$ac_includes_default
4e8d927d
DJ
13919int
13920main ()
13921{
b4e70030 13922static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
4e8d927d
DJ
13923test_array [0] = 0
13924
13925 ;
13926 return 0;
13927}
13928_ACEOF
13929rm -f conftest.$ac_objext
13930if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13931 (eval $ac_compile) 2>conftest.er1
13932 ac_status=$?
13933 grep -v '^ *+' conftest.er1 >conftest.err
13934 rm -f conftest.er1
13935 cat conftest.err >&5
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); } &&
b4e70030
JB
13938 { ac_try='test -z "$ac_c_werror_flag"
13939 || test ! -s conftest.err'
4e8d927d
DJ
13940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13941 (eval $ac_try) 2>&5
13942 ac_status=$?
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); }; } &&
13945 { ac_try='test -s conftest.$ac_objext'
13946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13947 (eval $ac_try) 2>&5
13948 ac_status=$?
13949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13950 (exit $ac_status); }; }; then
13951 ac_hi=-1 ac_mid=-1
13952 while :; do
13953 cat >conftest.$ac_ext <<_ACEOF
13954/* confdefs.h. */
13955_ACEOF
13956cat confdefs.h >>conftest.$ac_ext
13957cat >>conftest.$ac_ext <<_ACEOF
13958/* end confdefs.h. */
13959$ac_includes_default
4e8d927d
DJ
13960int
13961main ()
13962{
b4e70030 13963static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
4e8d927d
DJ
13964test_array [0] = 0
13965
13966 ;
13967 return 0;
13968}
13969_ACEOF
13970rm -f conftest.$ac_objext
13971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13972 (eval $ac_compile) 2>conftest.er1
13973 ac_status=$?
13974 grep -v '^ *+' conftest.er1 >conftest.err
13975 rm -f conftest.er1
13976 cat conftest.err >&5
13977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978 (exit $ac_status); } &&
b4e70030
JB
13979 { ac_try='test -z "$ac_c_werror_flag"
13980 || test ! -s conftest.err'
4e8d927d
DJ
13981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13982 (eval $ac_try) 2>&5
13983 ac_status=$?
13984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985 (exit $ac_status); }; } &&
13986 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
13992 ac_lo=$ac_mid; break
13993else
13994 echo "$as_me: failed program was:" >&5
13995sed 's/^/| /' conftest.$ac_ext >&5
13996
b4e70030
JB
13997ac_hi=`expr '(' $ac_mid ')' - 1`
13998 if test $ac_mid -le $ac_hi; then
13999 ac_lo= ac_hi=
14000 break
14001 fi
14002 ac_mid=`expr 2 '*' $ac_mid`
4e8d927d 14003fi
4e8d927d
DJ
14004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14005 done
14006else
14007 echo "$as_me: failed program was:" >&5
14008sed 's/^/| /' conftest.$ac_ext >&5
14009
b4e70030 14010ac_lo= ac_hi=
4e8d927d 14011fi
4e8d927d
DJ
14012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14013fi
4e8d927d
DJ
14014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14015# Binary search between lo and hi bounds.
14016while test "x$ac_lo" != "x$ac_hi"; do
14017 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14018 cat >conftest.$ac_ext <<_ACEOF
14019/* confdefs.h. */
14020_ACEOF
14021cat confdefs.h >>conftest.$ac_ext
14022cat >>conftest.$ac_ext <<_ACEOF
14023/* end confdefs.h. */
14024$ac_includes_default
4e8d927d
DJ
14025int
14026main ()
14027{
b4e70030 14028static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
4e8d927d
DJ
14029test_array [0] = 0
14030
14031 ;
14032 return 0;
14033}
14034_ACEOF
14035rm -f conftest.$ac_objext
14036if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14037 (eval $ac_compile) 2>conftest.er1
14038 ac_status=$?
14039 grep -v '^ *+' conftest.er1 >conftest.err
14040 rm -f conftest.er1
14041 cat conftest.err >&5
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); } &&
b4e70030
JB
14044 { ac_try='test -z "$ac_c_werror_flag"
14045 || test ! -s conftest.err'
4e8d927d
DJ
14046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14047 (eval $ac_try) 2>&5
14048 ac_status=$?
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); }; } &&
14051 { ac_try='test -s conftest.$ac_objext'
14052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14053 (eval $ac_try) 2>&5
14054 ac_status=$?
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); }; }; then
14057 ac_hi=$ac_mid
14058else
14059 echo "$as_me: failed program was:" >&5
14060sed 's/^/| /' conftest.$ac_ext >&5
14061
b4e70030 14062ac_lo=`expr '(' $ac_mid ')' + 1`
4e8d927d 14063fi
4e8d927d
DJ
14064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14065done
14066case $ac_lo in
14067?*) ac_cv_sizeof_char=$ac_lo;;
b4e70030 14068'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4e8d927d 14069See \`config.log' for more details." >&5
b4e70030 14070echo "$as_me: error: cannot compute sizeof (char), 77
4e8d927d 14071See \`config.log' for more details." >&2;}
b4e70030 14072 { (exit 1); exit 1; }; } ;;
4e8d927d 14073esac
b4e70030
JB
14074else
14075 if test "$cross_compiling" = yes; then
14076 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14077See \`config.log' for more details." >&5
14078echo "$as_me: error: cannot run test program while cross compiling
14079See \`config.log' for more details." >&2;}
14080 { (exit 1); exit 1; }; }
4e8d927d
DJ
14081else
14082 cat >conftest.$ac_ext <<_ACEOF
14083/* confdefs.h. */
14084_ACEOF
14085cat confdefs.h >>conftest.$ac_ext
14086cat >>conftest.$ac_ext <<_ACEOF
14087/* end confdefs.h. */
14088$ac_includes_default
b4e70030
JB
14089long longval () { return (long) (sizeof (char)); }
14090unsigned long ulongval () { return (long) (sizeof (char)); }
4e8d927d
DJ
14091#include <stdio.h>
14092#include <stdlib.h>
14093int
14094main ()
14095{
14096
14097 FILE *f = fopen ("conftest.val", "w");
14098 if (! f)
b4e70030
JB
14099 exit (1);
14100 if (((long) (sizeof (char))) < 0)
4e8d927d 14101 {
b4e70030
JB
14102 long i = longval ();
14103 if (i != ((long) (sizeof (char))))
14104 exit (1);
4e8d927d
DJ
14105 fprintf (f, "%ld\n", i);
14106 }
14107 else
14108 {
b4e70030
JB
14109 unsigned long i = ulongval ();
14110 if (i != ((long) (sizeof (char))))
14111 exit (1);
4e8d927d
DJ
14112 fprintf (f, "%lu\n", i);
14113 }
b4e70030 14114 exit (ferror (f) || fclose (f) != 0);
4e8d927d
DJ
14115
14116 ;
14117 return 0;
14118}
14119_ACEOF
14120rm -f conftest$ac_exeext
14121if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14122 (eval $ac_link) 2>&5
14123 ac_status=$?
14124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14127 (eval $ac_try) 2>&5
14128 ac_status=$?
14129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130 (exit $ac_status); }; }; then
14131 ac_cv_sizeof_char=`cat conftest.val`
14132else
14133 echo "$as_me: program exited with status $ac_status" >&5
14134echo "$as_me: failed program was:" >&5
14135sed 's/^/| /' conftest.$ac_ext >&5
14136
14137( exit $ac_status )
b4e70030 14138{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
4e8d927d 14139See \`config.log' for more details." >&5
b4e70030 14140echo "$as_me: error: cannot compute sizeof (char), 77
4e8d927d 14141See \`config.log' for more details." >&2;}
b4e70030
JB
14142 { (exit 1); exit 1; }; }
14143fi
14144rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4e8d927d 14145fi
4e8d927d
DJ
14146fi
14147rm -f conftest.val
14148else
14149 ac_cv_sizeof_char=0
14150fi
14151fi
b4e70030
JB
14152echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14153echo "${ECHO_T}$ac_cv_sizeof_char" >&6
4e8d927d
DJ
14154cat >>confdefs.h <<_ACEOF
14155#define SIZEOF_CHAR $ac_cv_sizeof_char
14156_ACEOF
14157
14158
14159
b4e70030
JB
14160 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5
14161echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6
4e8d927d
DJ
14162 case "$ac_cv_sizeof_char" in
14163 1) acx_cv_type_int8_t=char ;;
14164 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5
14165echo "$as_me: error: no 8-bit type" >&2;}
14166 { (exit please report a bug); exit please report a bug; }; }
14167 esac
b4e70030
JB
14168 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5
14169echo "${ECHO_T}$acx_cv_type_int8_t" >&6
4e8d927d 14170
b4e70030
JB
14171 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5
14172echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6
4e8d927d
DJ
14173 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
14174 2:*) acx_cv_type_int16_t=int ;;
14175 *:2) acx_cv_type_int16_t=short ;;
14176 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5
14177echo "$as_me: error: no 16-bit type" >&2;}
14178 { (exit please report a bug); exit please report a bug; }; }
14179 esac
b4e70030
JB
14180 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5
14181echo "${ECHO_T}$acx_cv_type_int16_t" >&6
4e8d927d 14182
b4e70030
JB
14183 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5
14184echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6
4e8d927d
DJ
14185 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
14186 4:*) acx_cv_type_int32_t=int ;;
14187 *:4) acx_cv_type_int32_t=long ;;
14188 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5
14189echo "$as_me: error: no 32-bit type" >&2;}
14190 { (exit please report a bug); exit please report a bug; }; }
14191 esac
b4e70030
JB
14192 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5
14193echo "${ECHO_T}$acx_cv_type_int32_t" >&6
4e8d927d
DJ
14194fi
14195
14196# These tests are here to make the output prettier
14197
14198if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
14199 case "$ac_cv_sizeof_long" in
14200 8) acx_cv_type_int64_t=long ;;
14201 esac
b4e70030
JB
14202 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5
14203echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6
14204 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
14205echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6
4e8d927d
DJ
14206fi
14207
14208# Now we can use the above types
14209
14210if test "$ac_cv_type_uintptr_t" != yes; then
b4e70030
JB
14211 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5
14212echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6
4e8d927d
DJ
14213 case $ac_cv_sizeof_void_p in
14214 2) acx_cv_type_intptr_t=int16_t ;;
14215 4) acx_cv_type_intptr_t=int32_t ;;
14216 8) acx_cv_type_intptr_t=int64_t ;;
14217 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5
14218echo "$as_me: error: no equivalent for intptr_t" >&2;}
14219 { (exit please report a bug); exit please report a bug; }; }
14220 esac
b4e70030
JB
14221 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5
14222echo "${ECHO_T}$acx_cv_type_intptr_t" >&6
4e8d927d
DJ
14223fi
14224
14225# ----------------- done all checks, emit header -------------
b4e70030 14226 ac_config_commands="$ac_config_commands gdb_stdint.h"
4e8d927d
DJ
14227
14228
14229
14230
14231# ------------------------- #
14232# Checks for declarations. #
14233# ------------------------- #
14234
b4e70030
JB
14235echo "$as_me:$LINENO: checking whether free is declared" >&5
14236echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6
4e8d927d
DJ
14237if test "${ac_cv_have_decl_free+set}" = set; then
14238 echo $ECHO_N "(cached) $ECHO_C" >&6
14239else
14240 cat >conftest.$ac_ext <<_ACEOF
14241/* confdefs.h. */
14242_ACEOF
14243cat confdefs.h >>conftest.$ac_ext
14244cat >>conftest.$ac_ext <<_ACEOF
14245/* end confdefs.h. */
14246$ac_includes_default
14247int
14248main ()
14249{
14250#ifndef free
14251 char *p = (char *) free;
4e8d927d
DJ
14252#endif
14253
14254 ;
14255 return 0;
14256}
14257_ACEOF
14258rm -f conftest.$ac_objext
14259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14260 (eval $ac_compile) 2>conftest.er1
14261 ac_status=$?
14262 grep -v '^ *+' conftest.er1 >conftest.err
14263 rm -f conftest.er1
14264 cat conftest.err >&5
14265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266 (exit $ac_status); } &&
b4e70030
JB
14267 { ac_try='test -z "$ac_c_werror_flag"
14268 || test ! -s conftest.err'
4e8d927d
DJ
14269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14270 (eval $ac_try) 2>&5
14271 ac_status=$?
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); }; } &&
14274 { ac_try='test -s conftest.$ac_objext'
14275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14276 (eval $ac_try) 2>&5
14277 ac_status=$?
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); }; }; then
14280 ac_cv_have_decl_free=yes
14281else
14282 echo "$as_me: failed program was:" >&5
14283sed 's/^/| /' conftest.$ac_ext >&5
14284
b4e70030 14285ac_cv_have_decl_free=no
4e8d927d 14286fi
4e8d927d
DJ
14287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14288fi
b4e70030
JB
14289echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5
14290echo "${ECHO_T}$ac_cv_have_decl_free" >&6
4e8d927d
DJ
14291if test $ac_cv_have_decl_free = yes; then
14292
14293cat >>confdefs.h <<_ACEOF
14294#define HAVE_DECL_FREE 1
14295_ACEOF
14296
14297
14298else
14299 cat >>confdefs.h <<_ACEOF
14300#define HAVE_DECL_FREE 0
14301_ACEOF
14302
14303
14304fi
b4e70030
JB
14305echo "$as_me:$LINENO: checking whether malloc is declared" >&5
14306echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6
4e8d927d
DJ
14307if test "${ac_cv_have_decl_malloc+set}" = set; then
14308 echo $ECHO_N "(cached) $ECHO_C" >&6
14309else
14310 cat >conftest.$ac_ext <<_ACEOF
14311/* confdefs.h. */
14312_ACEOF
14313cat confdefs.h >>conftest.$ac_ext
14314cat >>conftest.$ac_ext <<_ACEOF
14315/* end confdefs.h. */
14316$ac_includes_default
14317int
14318main ()
14319{
14320#ifndef malloc
14321 char *p = (char *) malloc;
4e8d927d
DJ
14322#endif
14323
14324 ;
14325 return 0;
14326}
14327_ACEOF
14328rm -f conftest.$ac_objext
14329if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14330 (eval $ac_compile) 2>conftest.er1
14331 ac_status=$?
14332 grep -v '^ *+' conftest.er1 >conftest.err
14333 rm -f conftest.er1
14334 cat conftest.err >&5
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); } &&
b4e70030
JB
14337 { ac_try='test -z "$ac_c_werror_flag"
14338 || test ! -s conftest.err'
4e8d927d
DJ
14339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14340 (eval $ac_try) 2>&5
14341 ac_status=$?
14342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14343 (exit $ac_status); }; } &&
14344 { ac_try='test -s conftest.$ac_objext'
14345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14346 (eval $ac_try) 2>&5
14347 ac_status=$?
14348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349 (exit $ac_status); }; }; then
14350 ac_cv_have_decl_malloc=yes
14351else
14352 echo "$as_me: failed program was:" >&5
14353sed 's/^/| /' conftest.$ac_ext >&5
14354
b4e70030 14355ac_cv_have_decl_malloc=no
4e8d927d 14356fi
4e8d927d
DJ
14357rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14358fi
b4e70030
JB
14359echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5
14360echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6
4e8d927d
DJ
14361if test $ac_cv_have_decl_malloc = yes; then
14362
14363cat >>confdefs.h <<_ACEOF
14364#define HAVE_DECL_MALLOC 1
14365_ACEOF
14366
14367
14368else
14369 cat >>confdefs.h <<_ACEOF
14370#define HAVE_DECL_MALLOC 0
14371_ACEOF
14372
14373
14374fi
b4e70030
JB
14375echo "$as_me:$LINENO: checking whether realloc is declared" >&5
14376echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6
4e8d927d
DJ
14377if test "${ac_cv_have_decl_realloc+set}" = set; then
14378 echo $ECHO_N "(cached) $ECHO_C" >&6
14379else
14380 cat >conftest.$ac_ext <<_ACEOF
14381/* confdefs.h. */
14382_ACEOF
14383cat confdefs.h >>conftest.$ac_ext
14384cat >>conftest.$ac_ext <<_ACEOF
14385/* end confdefs.h. */
14386$ac_includes_default
14387int
14388main ()
14389{
14390#ifndef realloc
14391 char *p = (char *) realloc;
4e8d927d
DJ
14392#endif
14393
14394 ;
14395 return 0;
14396}
14397_ACEOF
14398rm -f conftest.$ac_objext
14399if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14400 (eval $ac_compile) 2>conftest.er1
14401 ac_status=$?
14402 grep -v '^ *+' conftest.er1 >conftest.err
14403 rm -f conftest.er1
14404 cat conftest.err >&5
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); } &&
b4e70030
JB
14407 { ac_try='test -z "$ac_c_werror_flag"
14408 || test ! -s conftest.err'
4e8d927d
DJ
14409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14410 (eval $ac_try) 2>&5
14411 ac_status=$?
14412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413 (exit $ac_status); }; } &&
14414 { ac_try='test -s conftest.$ac_objext'
14415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14416 (eval $ac_try) 2>&5
14417 ac_status=$?
14418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14419 (exit $ac_status); }; }; then
14420 ac_cv_have_decl_realloc=yes
14421else
14422 echo "$as_me: failed program was:" >&5
14423sed 's/^/| /' conftest.$ac_ext >&5
14424
b4e70030 14425ac_cv_have_decl_realloc=no
4e8d927d 14426fi
4e8d927d
DJ
14427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14428fi
b4e70030
JB
14429echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5
14430echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6
4e8d927d
DJ
14431if test $ac_cv_have_decl_realloc = yes; then
14432
14433cat >>confdefs.h <<_ACEOF
14434#define HAVE_DECL_REALLOC 1
14435_ACEOF
14436
14437
14438else
14439 cat >>confdefs.h <<_ACEOF
14440#define HAVE_DECL_REALLOC 0
14441_ACEOF
14442
14443
14444fi
14445
14446
b4e70030
JB
14447echo "$as_me:$LINENO: checking whether strerror is declared" >&5
14448echo $ECHO_N "checking whether strerror is declared... $ECHO_C" >&6
4e8d927d
DJ
14449if test "${ac_cv_have_decl_strerror+set}" = set; then
14450 echo $ECHO_N "(cached) $ECHO_C" >&6
14451else
14452 cat >conftest.$ac_ext <<_ACEOF
14453/* confdefs.h. */
14454_ACEOF
14455cat confdefs.h >>conftest.$ac_ext
14456cat >>conftest.$ac_ext <<_ACEOF
14457/* end confdefs.h. */
14458$ac_includes_default
14459int
14460main ()
14461{
14462#ifndef strerror
14463 char *p = (char *) strerror;
4e8d927d
DJ
14464#endif
14465
14466 ;
14467 return 0;
14468}
14469_ACEOF
14470rm -f conftest.$ac_objext
14471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14472 (eval $ac_compile) 2>conftest.er1
14473 ac_status=$?
14474 grep -v '^ *+' conftest.er1 >conftest.err
14475 rm -f conftest.er1
14476 cat conftest.err >&5
14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478 (exit $ac_status); } &&
b4e70030
JB
14479 { ac_try='test -z "$ac_c_werror_flag"
14480 || test ! -s conftest.err'
4e8d927d
DJ
14481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14482 (eval $ac_try) 2>&5
14483 ac_status=$?
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 (exit $ac_status); }; } &&
14486 { ac_try='test -s conftest.$ac_objext'
14487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14488 (eval $ac_try) 2>&5
14489 ac_status=$?
14490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491 (exit $ac_status); }; }; then
14492 ac_cv_have_decl_strerror=yes
14493else
14494 echo "$as_me: failed program was:" >&5
14495sed 's/^/| /' conftest.$ac_ext >&5
14496
b4e70030 14497ac_cv_have_decl_strerror=no
4e8d927d 14498fi
4e8d927d
DJ
14499rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14500fi
b4e70030
JB
14501echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
14502echo "${ECHO_T}$ac_cv_have_decl_strerror" >&6
4e8d927d
DJ
14503if test $ac_cv_have_decl_strerror = yes; then
14504
14505cat >>confdefs.h <<_ACEOF
14506#define HAVE_DECL_STRERROR 1
14507_ACEOF
14508
14509
14510else
14511 cat >>confdefs.h <<_ACEOF
14512#define HAVE_DECL_STRERROR 0
14513_ACEOF
14514
14515
14516fi
b4e70030
JB
14517echo "$as_me:$LINENO: checking whether strstr is declared" >&5
14518echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6
4e8d927d
DJ
14519if test "${ac_cv_have_decl_strstr+set}" = set; then
14520 echo $ECHO_N "(cached) $ECHO_C" >&6
14521else
14522 cat >conftest.$ac_ext <<_ACEOF
14523/* confdefs.h. */
14524_ACEOF
14525cat confdefs.h >>conftest.$ac_ext
14526cat >>conftest.$ac_ext <<_ACEOF
14527/* end confdefs.h. */
14528$ac_includes_default
14529int
14530main ()
14531{
14532#ifndef strstr
14533 char *p = (char *) strstr;
4e8d927d
DJ
14534#endif
14535
14536 ;
14537 return 0;
14538}
14539_ACEOF
14540rm -f conftest.$ac_objext
14541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14542 (eval $ac_compile) 2>conftest.er1
14543 ac_status=$?
14544 grep -v '^ *+' conftest.er1 >conftest.err
14545 rm -f conftest.er1
14546 cat conftest.err >&5
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); } &&
b4e70030
JB
14549 { ac_try='test -z "$ac_c_werror_flag"
14550 || test ! -s conftest.err'
4e8d927d
DJ
14551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14552 (eval $ac_try) 2>&5
14553 ac_status=$?
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); }; } &&
14556 { ac_try='test -s conftest.$ac_objext'
14557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14558 (eval $ac_try) 2>&5
14559 ac_status=$?
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); }; }; then
14562 ac_cv_have_decl_strstr=yes
14563else
14564 echo "$as_me: failed program was:" >&5
14565sed 's/^/| /' conftest.$ac_ext >&5
14566
b4e70030 14567ac_cv_have_decl_strstr=no
4e8d927d 14568fi
4e8d927d
DJ
14569rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14570fi
b4e70030
JB
14571echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
14572echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6
4e8d927d
DJ
14573if test $ac_cv_have_decl_strstr = yes; then
14574
14575cat >>confdefs.h <<_ACEOF
14576#define HAVE_DECL_STRSTR 1
14577_ACEOF
14578
14579
14580else
14581 cat >>confdefs.h <<_ACEOF
14582#define HAVE_DECL_STRSTR 0
14583_ACEOF
14584
14585
14586fi
14587
14588
b4e70030
JB
14589echo "$as_me:$LINENO: checking whether getopt is declared" >&5
14590echo $ECHO_N "checking whether getopt is declared... $ECHO_C" >&6
4e8d927d
DJ
14591if test "${ac_cv_have_decl_getopt+set}" = set; then
14592 echo $ECHO_N "(cached) $ECHO_C" >&6
14593else
14594 cat >conftest.$ac_ext <<_ACEOF
14595/* confdefs.h. */
14596_ACEOF
14597cat confdefs.h >>conftest.$ac_ext
14598cat >>conftest.$ac_ext <<_ACEOF
14599/* end confdefs.h. */
14600$ac_includes_default
14601int
14602main ()
14603{
14604#ifndef getopt
14605 char *p = (char *) getopt;
4e8d927d
DJ
14606#endif
14607
14608 ;
14609 return 0;
14610}
14611_ACEOF
14612rm -f conftest.$ac_objext
14613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14614 (eval $ac_compile) 2>conftest.er1
14615 ac_status=$?
14616 grep -v '^ *+' conftest.er1 >conftest.err
14617 rm -f conftest.er1
14618 cat conftest.err >&5
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); } &&
b4e70030
JB
14621 { ac_try='test -z "$ac_c_werror_flag"
14622 || test ! -s conftest.err'
4e8d927d
DJ
14623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14624 (eval $ac_try) 2>&5
14625 ac_status=$?
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); }; } &&
14628 { ac_try='test -s conftest.$ac_objext'
14629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14630 (eval $ac_try) 2>&5
14631 ac_status=$?
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); }; }; then
14634 ac_cv_have_decl_getopt=yes
14635else
14636 echo "$as_me: failed program was:" >&5
14637sed 's/^/| /' conftest.$ac_ext >&5
14638
b4e70030 14639ac_cv_have_decl_getopt=no
4e8d927d 14640fi
4e8d927d
DJ
14641rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14642fi
b4e70030
JB
14643echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt" >&5
14644echo "${ECHO_T}$ac_cv_have_decl_getopt" >&6
4e8d927d
DJ
14645if test $ac_cv_have_decl_getopt = yes; then
14646
14647cat >>confdefs.h <<_ACEOF
14648#define HAVE_DECL_GETOPT 1
14649_ACEOF
14650
14651
14652else
14653 cat >>confdefs.h <<_ACEOF
14654#define HAVE_DECL_GETOPT 0
14655_ACEOF
14656
14657
14658fi
b4e70030
JB
14659echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
14660echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6
4e8d927d
DJ
14661if test "${ac_cv_have_decl_snprintf+set}" = set; then
14662 echo $ECHO_N "(cached) $ECHO_C" >&6
14663else
14664 cat >conftest.$ac_ext <<_ACEOF
14665/* confdefs.h. */
14666_ACEOF
14667cat confdefs.h >>conftest.$ac_ext
14668cat >>conftest.$ac_ext <<_ACEOF
14669/* end confdefs.h. */
14670$ac_includes_default
14671int
14672main ()
14673{
14674#ifndef snprintf
14675 char *p = (char *) snprintf;
4e8d927d
DJ
14676#endif
14677
14678 ;
14679 return 0;
14680}
14681_ACEOF
14682rm -f conftest.$ac_objext
14683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14684 (eval $ac_compile) 2>conftest.er1
14685 ac_status=$?
14686 grep -v '^ *+' conftest.er1 >conftest.err
14687 rm -f conftest.er1
14688 cat conftest.err >&5
14689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690 (exit $ac_status); } &&
b4e70030
JB
14691 { ac_try='test -z "$ac_c_werror_flag"
14692 || test ! -s conftest.err'
4e8d927d
DJ
14693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14694 (eval $ac_try) 2>&5
14695 ac_status=$?
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); }; } &&
14698 { ac_try='test -s conftest.$ac_objext'
14699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14700 (eval $ac_try) 2>&5
14701 ac_status=$?
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); }; }; then
14704 ac_cv_have_decl_snprintf=yes
14705else
14706 echo "$as_me: failed program was:" >&5
14707sed 's/^/| /' conftest.$ac_ext >&5
14708
b4e70030 14709ac_cv_have_decl_snprintf=no
4e8d927d 14710fi
4e8d927d
DJ
14711rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14712fi
b4e70030
JB
14713echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
14714echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6
4e8d927d
DJ
14715if test $ac_cv_have_decl_snprintf = yes; then
14716
14717cat >>confdefs.h <<_ACEOF
14718#define HAVE_DECL_SNPRINTF 1
14719_ACEOF
14720
14721
14722else
14723 cat >>confdefs.h <<_ACEOF
14724#define HAVE_DECL_SNPRINTF 0
14725_ACEOF
14726
14727
14728fi
b4e70030
JB
14729echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
14730echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6
4e8d927d
DJ
14731if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
14732 echo $ECHO_N "(cached) $ECHO_C" >&6
14733else
14734 cat >conftest.$ac_ext <<_ACEOF
14735/* confdefs.h. */
14736_ACEOF
14737cat confdefs.h >>conftest.$ac_ext
14738cat >>conftest.$ac_ext <<_ACEOF
14739/* end confdefs.h. */
14740$ac_includes_default
14741int
14742main ()
14743{
14744#ifndef vsnprintf
14745 char *p = (char *) vsnprintf;
4e8d927d
DJ
14746#endif
14747
14748 ;
14749 return 0;
14750}
14751_ACEOF
14752rm -f conftest.$ac_objext
14753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14754 (eval $ac_compile) 2>conftest.er1
14755 ac_status=$?
14756 grep -v '^ *+' conftest.er1 >conftest.err
14757 rm -f conftest.er1
14758 cat conftest.err >&5
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); } &&
b4e70030
JB
14761 { ac_try='test -z "$ac_c_werror_flag"
14762 || test ! -s conftest.err'
4e8d927d
DJ
14763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14764 (eval $ac_try) 2>&5
14765 ac_status=$?
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); }; } &&
14768 { ac_try='test -s conftest.$ac_objext'
14769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14770 (eval $ac_try) 2>&5
14771 ac_status=$?
14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773 (exit $ac_status); }; }; then
14774 ac_cv_have_decl_vsnprintf=yes
14775else
14776 echo "$as_me: failed program was:" >&5
14777sed 's/^/| /' conftest.$ac_ext >&5
14778
b4e70030 14779ac_cv_have_decl_vsnprintf=no
4e8d927d 14780fi
4e8d927d
DJ
14781rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14782fi
b4e70030
JB
14783echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
14784echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6
4e8d927d
DJ
14785if test $ac_cv_have_decl_vsnprintf = yes; then
14786
14787cat >>confdefs.h <<_ACEOF
14788#define HAVE_DECL_VSNPRINTF 1
14789_ACEOF
14790
14791
14792else
14793 cat >>confdefs.h <<_ACEOF
14794#define HAVE_DECL_VSNPRINTF 0
14795_ACEOF
14796
14797
14798fi
14799
14800
14801
14802# ----------------------- #
14803# Checks for structures. #
14804# ----------------------- #
14805
b4e70030
JB
14806echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14807echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
4e8d927d
DJ
14808if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14809 echo $ECHO_N "(cached) $ECHO_C" >&6
14810else
14811 cat >conftest.$ac_ext <<_ACEOF
14812/* confdefs.h. */
14813_ACEOF
14814cat confdefs.h >>conftest.$ac_ext
14815cat >>conftest.$ac_ext <<_ACEOF
14816/* end confdefs.h. */
14817$ac_includes_default
14818int
14819main ()
14820{
14821static struct stat ac_aggr;
14822if (ac_aggr.st_blocks)
14823return 0;
14824 ;
14825 return 0;
14826}
14827_ACEOF
14828rm -f conftest.$ac_objext
14829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14830 (eval $ac_compile) 2>conftest.er1
14831 ac_status=$?
14832 grep -v '^ *+' conftest.er1 >conftest.err
14833 rm -f conftest.er1
14834 cat conftest.err >&5
14835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 (exit $ac_status); } &&
b4e70030
JB
14837 { ac_try='test -z "$ac_c_werror_flag"
14838 || test ! -s conftest.err'
4e8d927d
DJ
14839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14840 (eval $ac_try) 2>&5
14841 ac_status=$?
14842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843 (exit $ac_status); }; } &&
14844 { ac_try='test -s conftest.$ac_objext'
14845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14846 (eval $ac_try) 2>&5
14847 ac_status=$?
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); }; }; then
14850 ac_cv_member_struct_stat_st_blocks=yes
14851else
14852 echo "$as_me: failed program was:" >&5
14853sed 's/^/| /' conftest.$ac_ext >&5
14854
b4e70030 14855cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
14856/* confdefs.h. */
14857_ACEOF
14858cat confdefs.h >>conftest.$ac_ext
14859cat >>conftest.$ac_ext <<_ACEOF
14860/* end confdefs.h. */
14861$ac_includes_default
14862int
14863main ()
14864{
14865static struct stat ac_aggr;
14866if (sizeof ac_aggr.st_blocks)
14867return 0;
14868 ;
14869 return 0;
14870}
14871_ACEOF
14872rm -f conftest.$ac_objext
14873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14874 (eval $ac_compile) 2>conftest.er1
14875 ac_status=$?
14876 grep -v '^ *+' conftest.er1 >conftest.err
14877 rm -f conftest.er1
14878 cat conftest.err >&5
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); } &&
b4e70030
JB
14881 { ac_try='test -z "$ac_c_werror_flag"
14882 || test ! -s conftest.err'
4e8d927d
DJ
14883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14884 (eval $ac_try) 2>&5
14885 ac_status=$?
14886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887 (exit $ac_status); }; } &&
14888 { ac_try='test -s conftest.$ac_objext'
14889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14890 (eval $ac_try) 2>&5
14891 ac_status=$?
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); }; }; then
14894 ac_cv_member_struct_stat_st_blocks=yes
14895else
14896 echo "$as_me: failed program was:" >&5
14897sed 's/^/| /' conftest.$ac_ext >&5
14898
b4e70030 14899ac_cv_member_struct_stat_st_blocks=no
4e8d927d 14900fi
4e8d927d
DJ
14901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14902fi
4e8d927d
DJ
14903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14904fi
b4e70030
JB
14905echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
14906echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
4e8d927d
DJ
14907if test $ac_cv_member_struct_stat_st_blocks = yes; then
14908
14909cat >>confdefs.h <<_ACEOF
14910#define HAVE_STRUCT_STAT_ST_BLOCKS 1
14911_ACEOF
14912
14913
14914fi
14915
b4e70030
JB
14916echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
14917echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
4e8d927d
DJ
14918if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
14919 echo $ECHO_N "(cached) $ECHO_C" >&6
14920else
14921 cat >conftest.$ac_ext <<_ACEOF
14922/* confdefs.h. */
14923_ACEOF
14924cat confdefs.h >>conftest.$ac_ext
14925cat >>conftest.$ac_ext <<_ACEOF
14926/* end confdefs.h. */
14927$ac_includes_default
14928int
14929main ()
14930{
14931static struct stat ac_aggr;
14932if (ac_aggr.st_blksize)
14933return 0;
14934 ;
14935 return 0;
14936}
14937_ACEOF
14938rm -f conftest.$ac_objext
14939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14940 (eval $ac_compile) 2>conftest.er1
14941 ac_status=$?
14942 grep -v '^ *+' conftest.er1 >conftest.err
14943 rm -f conftest.er1
14944 cat conftest.err >&5
14945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946 (exit $ac_status); } &&
b4e70030
JB
14947 { ac_try='test -z "$ac_c_werror_flag"
14948 || test ! -s conftest.err'
4e8d927d
DJ
14949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14950 (eval $ac_try) 2>&5
14951 ac_status=$?
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); }; } &&
14954 { ac_try='test -s conftest.$ac_objext'
14955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14956 (eval $ac_try) 2>&5
14957 ac_status=$?
14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 (exit $ac_status); }; }; then
14960 ac_cv_member_struct_stat_st_blksize=yes
14961else
14962 echo "$as_me: failed program was:" >&5
14963sed 's/^/| /' conftest.$ac_ext >&5
14964
b4e70030 14965cat >conftest.$ac_ext <<_ACEOF
4e8d927d
DJ
14966/* confdefs.h. */
14967_ACEOF
14968cat confdefs.h >>conftest.$ac_ext
14969cat >>conftest.$ac_ext <<_ACEOF
14970/* end confdefs.h. */
14971$ac_includes_default
14972int
14973main ()
14974{
14975static struct stat ac_aggr;
14976if (sizeof ac_aggr.st_blksize)
14977return 0;
14978 ;
14979 return 0;
14980}
14981_ACEOF
14982rm -f conftest.$ac_objext
14983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14984 (eval $ac_compile) 2>conftest.er1
14985 ac_status=$?
14986 grep -v '^ *+' conftest.er1 >conftest.err
14987 rm -f conftest.er1
14988 cat conftest.err >&5
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); } &&
b4e70030
JB
14991 { ac_try='test -z "$ac_c_werror_flag"
14992 || test ! -s conftest.err'
4e8d927d
DJ
14993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14994 (eval $ac_try) 2>&5
14995 ac_status=$?
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); }; } &&
14998 { ac_try='test -s conftest.$ac_objext'
14999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15000 (eval $ac_try) 2>&5
15001 ac_status=$?
15002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15003 (exit $ac_status); }; }; then
15004 ac_cv_member_struct_stat_st_blksize=yes
15005else
15006 echo "$as_me: failed program was:" >&5
15007sed 's/^/| /' conftest.$ac_ext >&5
15008
b4e70030 15009ac_cv_member_struct_stat_st_blksize=no
4e8d927d 15010fi
4e8d927d
DJ
15011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15012fi
4e8d927d
DJ
15013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15014fi
b4e70030
JB
15015echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
15016echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
4e8d927d
DJ
15017if test $ac_cv_member_struct_stat_st_blksize = yes; then
15018
15019cat >>confdefs.h <<_ACEOF
15020#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
15021_ACEOF
15022
15023
15024fi
15025
15026
15027# ------------------ #
15028# Checks for types. #
15029# ------------------ #
15030
b4e70030
JB
15031echo "$as_me:$LINENO: checking return type of signal handlers" >&5
15032echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4e8d927d
DJ
15033if test "${ac_cv_type_signal+set}" = set; then
15034 echo $ECHO_N "(cached) $ECHO_C" >&6
15035else
15036 cat >conftest.$ac_ext <<_ACEOF
15037/* confdefs.h. */
15038_ACEOF
15039cat confdefs.h >>conftest.$ac_ext
15040cat >>conftest.$ac_ext <<_ACEOF
15041/* end confdefs.h. */
15042#include <sys/types.h>
15043#include <signal.h>
b4e70030
JB
15044#ifdef signal
15045# undef signal
15046#endif
15047#ifdef __cplusplus
15048extern "C" void (*signal (int, void (*)(int)))(int);
15049#else
15050void (*signal ()) ();
15051#endif
4e8d927d
DJ
15052
15053int
15054main ()
15055{
b4e70030 15056int i;
4e8d927d
DJ
15057 ;
15058 return 0;
15059}
15060_ACEOF
15061rm -f conftest.$ac_objext
15062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15063 (eval $ac_compile) 2>conftest.er1
15064 ac_status=$?
15065 grep -v '^ *+' conftest.er1 >conftest.err
15066 rm -f conftest.er1
15067 cat conftest.err >&5
15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 (exit $ac_status); } &&
b4e70030
JB
15070 { ac_try='test -z "$ac_c_werror_flag"
15071 || test ! -s conftest.err'
4e8d927d
DJ
15072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15073 (eval $ac_try) 2>&5
15074 ac_status=$?
15075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076 (exit $ac_status); }; } &&
15077 { ac_try='test -s conftest.$ac_objext'
15078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15079 (eval $ac_try) 2>&5
15080 ac_status=$?
15081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082 (exit $ac_status); }; }; then
b4e70030 15083 ac_cv_type_signal=void
4e8d927d
DJ
15084else
15085 echo "$as_me: failed program was:" >&5
15086sed 's/^/| /' conftest.$ac_ext >&5
15087
b4e70030 15088ac_cv_type_signal=int
4e8d927d 15089fi
4e8d927d
DJ
15090rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15091fi
b4e70030
JB
15092echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
15093echo "${ECHO_T}$ac_cv_type_signal" >&6
4e8d927d
DJ
15094
15095cat >>confdefs.h <<_ACEOF
15096#define RETSIGTYPE $ac_cv_type_signal
15097_ACEOF
15098
15099
b4e70030
JB
15100echo "$as_me:$LINENO: checking for socklen_t" >&5
15101echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
4e8d927d
DJ
15102if test "${ac_cv_type_socklen_t+set}" = set; then
15103 echo $ECHO_N "(cached) $ECHO_C" >&6
15104else
15105 cat >conftest.$ac_ext <<_ACEOF
15106/* confdefs.h. */
15107_ACEOF
15108cat confdefs.h >>conftest.$ac_ext
15109cat >>conftest.$ac_ext <<_ACEOF
15110/* end confdefs.h. */
15111#include <sys/types.h>
15112#include <sys/socket.h>
15113
15114
4e8d927d
DJ
15115int
15116main ()
15117{
b4e70030 15118if ((socklen_t *) 0)
4e8d927d 15119 return 0;
b4e70030 15120if (sizeof (socklen_t))
4e8d927d
DJ
15121 return 0;
15122 ;
15123 return 0;
15124}
15125_ACEOF
15126rm -f conftest.$ac_objext
15127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15128 (eval $ac_compile) 2>conftest.er1
15129 ac_status=$?
15130 grep -v '^ *+' conftest.er1 >conftest.err
15131 rm -f conftest.er1
15132 cat conftest.err >&5
15133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134 (exit $ac_status); } &&
b4e70030
JB
15135 { ac_try='test -z "$ac_c_werror_flag"
15136 || test ! -s conftest.err'
4e8d927d
DJ
15137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15138 (eval $ac_try) 2>&5
15139 ac_status=$?
15140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141 (exit $ac_status); }; } &&
15142 { ac_try='test -s conftest.$ac_objext'
15143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15144 (eval $ac_try) 2>&5
15145 ac_status=$?
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); }; }; then
15148 ac_cv_type_socklen_t=yes
15149else
15150 echo "$as_me: failed program was:" >&5
15151sed 's/^/| /' conftest.$ac_ext >&5
15152
b4e70030 15153ac_cv_type_socklen_t=no
4e8d927d 15154fi
4e8d927d
DJ
15155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15156fi
b4e70030
JB
15157echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
15158echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
4e8d927d
DJ
15159if test $ac_cv_type_socklen_t = yes; then
15160
15161cat >>confdefs.h <<_ACEOF
15162#define HAVE_SOCKLEN_T 1
15163_ACEOF
15164
15165
15166fi
15167
b4e70030
JB
15168echo "$as_me:$LINENO: checking for uintptr_t" >&5
15169echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6
4e8d927d
DJ
15170if test "${ac_cv_type_uintptr_t+set}" = set; then
15171 echo $ECHO_N "(cached) $ECHO_C" >&6
15172else
15173 cat >conftest.$ac_ext <<_ACEOF
15174/* confdefs.h. */
15175_ACEOF
15176cat confdefs.h >>conftest.$ac_ext
15177cat >>conftest.$ac_ext <<_ACEOF
15178/* end confdefs.h. */
15179#include <stdint.h>
15180
4e8d927d
DJ
15181int
15182main ()
15183{
b4e70030 15184if ((uintptr_t *) 0)
4e8d927d 15185 return 0;
b4e70030 15186if (sizeof (uintptr_t))
4e8d927d
DJ
15187 return 0;
15188 ;
15189 return 0;
15190}
15191_ACEOF
15192rm -f conftest.$ac_objext
15193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15194 (eval $ac_compile) 2>conftest.er1
15195 ac_status=$?
15196 grep -v '^ *+' conftest.er1 >conftest.err
15197 rm -f conftest.er1
15198 cat conftest.err >&5
15199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200 (exit $ac_status); } &&
b4e70030
JB
15201 { ac_try='test -z "$ac_c_werror_flag"
15202 || test ! -s conftest.err'
4e8d927d
DJ
15203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15204 (eval $ac_try) 2>&5
15205 ac_status=$?
15206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207 (exit $ac_status); }; } &&
15208 { ac_try='test -s conftest.$ac_objext'
15209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15210 (eval $ac_try) 2>&5
15211 ac_status=$?
15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 (exit $ac_status); }; }; then
15214 ac_cv_type_uintptr_t=yes
15215else
15216 echo "$as_me: failed program was:" >&5
15217sed 's/^/| /' conftest.$ac_ext >&5
15218
b4e70030 15219ac_cv_type_uintptr_t=no
4e8d927d 15220fi
4e8d927d
DJ
15221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15222fi
b4e70030
JB
15223echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
15224echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6
4e8d927d
DJ
15225if test $ac_cv_type_uintptr_t = yes; then
15226
15227cat >>confdefs.h <<_ACEOF
15228#define HAVE_UINTPTR_T 1
15229_ACEOF
15230
15231
15232fi
15233
15234
15235# ------------------------------------- #
15236# Checks for compiler characteristics. #
15237# ------------------------------------- #
15238
b4e70030
JB
15239echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
15240echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4e8d927d
DJ
15241if test "${ac_cv_c_const+set}" = set; then
15242 echo $ECHO_N "(cached) $ECHO_C" >&6
15243else
15244 cat >conftest.$ac_ext <<_ACEOF
15245/* confdefs.h. */
15246_ACEOF
15247cat confdefs.h >>conftest.$ac_ext
15248cat >>conftest.$ac_ext <<_ACEOF
15249/* end confdefs.h. */
15250
15251int
15252main ()
15253{
15254/* FIXME: Include the comments suggested by Paul. */
15255#ifndef __cplusplus
15256 /* Ultrix mips cc rejects this. */
15257 typedef int charset[2];
15258 const charset x;
15259 /* SunOS 4.1.1 cc rejects this. */
15260 char const *const *ccp;
15261 char **p;
15262 /* NEC SVR4.0.2 mips cc rejects this. */
15263 struct point {int x, y;};
15264 static struct point const zero = {0,0};
15265 /* AIX XL C 1.02.0.0 rejects this.
15266 It does not let you subtract one const X* pointer from another in
15267 an arm of an if-expression whose if-part is not a constant
15268 expression */
15269 const char *g = "string";
15270 ccp = &g + (g ? g-g : 0);
15271 /* HPUX 7.0 cc rejects these. */
15272 ++ccp;
15273 p = (char**) ccp;
15274 ccp = (char const *const *) p;
15275 { /* SCO 3.2v4 cc rejects this. */
15276 char *t;
15277 char const *s = 0 ? (char *) 0 : (char const *) 0;
15278
15279 *t++ = 0;
4e8d927d
DJ
15280 }
15281 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15282 int x[] = {25, 17};
15283 const int *foo = &x[0];
15284 ++foo;
15285 }
15286 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15287 typedef const int *iptr;
15288 iptr p = 0;
15289 ++p;
15290 }
15291 { /* AIX XL C 1.02.0.0 rejects this saying
15292 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15293 struct s { int j; const int *ap[3]; };
15294 struct s *b; b->j = 5;
15295 }
15296 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15297 const int foo = 10;
4e8d927d 15298 }
4e8d927d
DJ
15299#endif
15300
15301 ;
15302 return 0;
15303}
15304_ACEOF
15305rm -f conftest.$ac_objext
15306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15307 (eval $ac_compile) 2>conftest.er1
15308 ac_status=$?
15309 grep -v '^ *+' conftest.er1 >conftest.err
15310 rm -f conftest.er1
15311 cat conftest.err >&5
15312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); } &&
b4e70030
JB
15314 { ac_try='test -z "$ac_c_werror_flag"
15315 || test ! -s conftest.err'
4e8d927d
DJ
15316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15317 (eval $ac_try) 2>&5
15318 ac_status=$?
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); }; } &&
15321 { ac_try='test -s conftest.$ac_objext'
15322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15323 (eval $ac_try) 2>&5
15324 ac_status=$?
15325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15326 (exit $ac_status); }; }; then
15327 ac_cv_c_const=yes
15328else
15329 echo "$as_me: failed program was:" >&5
15330sed 's/^/| /' conftest.$ac_ext >&5
15331
b4e70030 15332ac_cv_c_const=no
4e8d927d 15333fi
4e8d927d
DJ
15334rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15335fi
b4e70030
JB
15336echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
15337echo "${ECHO_T}$ac_cv_c_const" >&6
4e8d927d
DJ
15338if test $ac_cv_c_const = no; then
15339
15340cat >>confdefs.h <<\_ACEOF
15341#define const
15342_ACEOF
15343
15344fi
15345
b4e70030
JB
15346echo "$as_me:$LINENO: checking for inline" >&5
15347echo $ECHO_N "checking for inline... $ECHO_C" >&6
4e8d927d
DJ
15348if test "${ac_cv_c_inline+set}" = set; then
15349 echo $ECHO_N "(cached) $ECHO_C" >&6
15350else
15351 ac_cv_c_inline=no
15352for ac_kw in inline __inline__ __inline; do
15353 cat >conftest.$ac_ext <<_ACEOF
15354/* confdefs.h. */
15355_ACEOF
15356cat confdefs.h >>conftest.$ac_ext
15357cat >>conftest.$ac_ext <<_ACEOF
15358/* end confdefs.h. */
15359#ifndef __cplusplus
15360typedef int foo_t;
15361static $ac_kw foo_t static_foo () {return 0; }
15362$ac_kw foo_t foo () {return 0; }
15363#endif
15364
15365_ACEOF
15366rm -f conftest.$ac_objext
15367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15368 (eval $ac_compile) 2>conftest.er1
15369 ac_status=$?
15370 grep -v '^ *+' conftest.er1 >conftest.err
15371 rm -f conftest.er1
15372 cat conftest.err >&5
15373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374 (exit $ac_status); } &&
b4e70030
JB
15375 { ac_try='test -z "$ac_c_werror_flag"
15376 || test ! -s conftest.err'
4e8d927d
DJ
15377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15378 (eval $ac_try) 2>&5
15379 ac_status=$?
15380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 (exit $ac_status); }; } &&
15382 { ac_try='test -s conftest.$ac_objext'
15383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15384 (eval $ac_try) 2>&5
15385 ac_status=$?
15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); }; }; then
b4e70030 15388 ac_cv_c_inline=$ac_kw; break
4e8d927d
DJ
15389else
15390 echo "$as_me: failed program was:" >&5
15391sed 's/^/| /' conftest.$ac_ext >&5
15392
4e8d927d 15393fi
4e8d927d 15394rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4e8d927d
DJ
15395done
15396
15397fi
b4e70030
JB
15398echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
15399echo "${ECHO_T}$ac_cv_c_inline" >&6
bec39cab 15400
bec39cab 15401
a3828db0
MK
15402case $ac_cv_c_inline in
15403 inline | yes) ;;
15404 *)
15405 case $ac_cv_c_inline in
15406 no) ac_val=;;
15407 *) ac_val=$ac_cv_c_inline;;
15408 esac
15409 cat >>confdefs.h <<_ACEOF
15410#ifndef __cplusplus
15411#define inline $ac_val
15412#endif
15413_ACEOF
bec39cab
AC
15414 ;;
15415esac
bec39cab 15416
74c1b268 15417
a3828db0
MK
15418# ------------------------------ #
15419# Checks for library functions. #
15420# ------------------------------ #
bec39cab 15421
a3828db0
MK
15422# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15423# for constant arguments. Useless!
b4e70030
JB
15424echo "$as_me:$LINENO: checking for working alloca.h" >&5
15425echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
a3828db0 15426if test "${ac_cv_working_alloca_h+set}" = set; then
bec39cab
AC
15427 echo $ECHO_N "(cached) $ECHO_C" >&6
15428else
15429 cat >conftest.$ac_ext <<_ACEOF
15430/* confdefs.h. */
15431_ACEOF
15432cat confdefs.h >>conftest.$ac_ext
15433cat >>conftest.$ac_ext <<_ACEOF
15434/* end confdefs.h. */
a3828db0 15435#include <alloca.h>
bec39cab
AC
15436int
15437main ()
15438{
a3828db0 15439char *p = (char *) alloca (2 * sizeof (int));
bec39cab
AC
15440 ;
15441 return 0;
15442}
15443_ACEOF
15444rm -f conftest.$ac_objext conftest$ac_exeext
15445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15446 (eval $ac_link) 2>conftest.er1
15447 ac_status=$?
15448 grep -v '^ *+' conftest.er1 >conftest.err
15449 rm -f conftest.er1
15450 cat conftest.err >&5
15451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15452 (exit $ac_status); } &&
b4e70030
JB
15453 { ac_try='test -z "$ac_c_werror_flag"
15454 || test ! -s conftest.err'
bec39cab
AC
15455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15456 (eval $ac_try) 2>&5
15457 ac_status=$?
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); }; } &&
15460 { ac_try='test -s conftest$ac_exeext'
15461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15462 (eval $ac_try) 2>&5
15463 ac_status=$?
15464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465 (exit $ac_status); }; }; then
a3828db0 15466 ac_cv_working_alloca_h=yes
bec39cab
AC
15467else
15468 echo "$as_me: failed program was:" >&5
15469sed 's/^/| /' conftest.$ac_ext >&5
15470
b4e70030 15471ac_cv_working_alloca_h=no
bec39cab
AC
15472fi
15473rm -f conftest.err conftest.$ac_objext \
15474 conftest$ac_exeext conftest.$ac_ext
15475fi
b4e70030
JB
15476echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15477echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
a3828db0
MK
15478if test $ac_cv_working_alloca_h = yes; then
15479
15480cat >>confdefs.h <<\_ACEOF
15481#define HAVE_ALLOCA_H 1
bec39cab 15482_ACEOF
74c1b268 15483
74c1b268
AC
15484fi
15485
b4e70030
JB
15486echo "$as_me:$LINENO: checking for alloca" >&5
15487echo $ECHO_N "checking for alloca... $ECHO_C" >&6
a3828db0 15488if test "${ac_cv_func_alloca_works+set}" = set; then
bec39cab 15489 echo $ECHO_N "(cached) $ECHO_C" >&6
74c1b268 15490else
bec39cab
AC
15491 cat >conftest.$ac_ext <<_ACEOF
15492/* confdefs.h. */
15493_ACEOF
15494cat confdefs.h >>conftest.$ac_ext
15495cat >>conftest.$ac_ext <<_ACEOF
15496/* end confdefs.h. */
a3828db0
MK
15497#ifdef __GNUC__
15498# define alloca __builtin_alloca
15499#else
15500# ifdef _MSC_VER
15501# include <malloc.h>
15502# define alloca _alloca
15503# else
15504# if HAVE_ALLOCA_H
15505# include <alloca.h>
15506# else
15507# ifdef _AIX
15508 #pragma alloca
15509# else
15510# ifndef alloca /* predefined by HP cc +Olibcalls */
15511char *alloca ();
15512# endif
15513# endif
15514# endif
97bf5e38 15515# endif
a3828db0 15516#endif
97bf5e38 15517
bec39cab
AC
15518int
15519main ()
15520{
a3828db0 15521char *p = (char *) alloca (1);
bec39cab
AC
15522 ;
15523 return 0;
15524}
15525_ACEOF
a3828db0
MK
15526rm -f conftest.$ac_objext conftest$ac_exeext
15527if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15528 (eval $ac_link) 2>conftest.er1
bec39cab
AC
15529 ac_status=$?
15530 grep -v '^ *+' conftest.er1 >conftest.err
15531 rm -f conftest.er1
15532 cat conftest.err >&5
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); } &&
b4e70030
JB
15535 { ac_try='test -z "$ac_c_werror_flag"
15536 || test ! -s conftest.err'
bec39cab
AC
15537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15538 (eval $ac_try) 2>&5
15539 ac_status=$?
15540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541 (exit $ac_status); }; } &&
a3828db0 15542 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
15543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15544 (eval $ac_try) 2>&5
15545 ac_status=$?
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); }; }; then
a3828db0 15548 ac_cv_func_alloca_works=yes
0200359f 15549else
bec39cab
AC
15550 echo "$as_me: failed program was:" >&5
15551sed 's/^/| /' conftest.$ac_ext >&5
0200359f 15552
b4e70030 15553ac_cv_func_alloca_works=no
0200359f 15554fi
a3828db0
MK
15555rm -f conftest.err conftest.$ac_objext \
15556 conftest$ac_exeext conftest.$ac_ext
72473524 15557fi
b4e70030
JB
15558echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15559echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
bec39cab 15560
a3828db0
MK
15561if test $ac_cv_func_alloca_works = yes; then
15562
15563cat >>confdefs.h <<\_ACEOF
15564#define HAVE_ALLOCA 1
bec39cab
AC
15565_ACEOF
15566
a3828db0
MK
15567else
15568 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15569# that cause trouble. Some versions do not even contain alloca or
15570# contain a buggy version. If you still want to use their alloca,
15571# use ar to extract alloca.o from them instead of compiling alloca.c.
72473524 15572
b4e70030 15573ALLOCA=alloca.$ac_objext
bec39cab 15574
a3828db0
MK
15575cat >>confdefs.h <<\_ACEOF
15576#define C_ALLOCA 1
15577_ACEOF
bec39cab 15578
a3828db0 15579
b4e70030
JB
15580echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15581echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
a3828db0 15582if test "${ac_cv_os_cray+set}" = set; then
bec39cab 15583 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab 15584else
a3828db0 15585 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
15586/* confdefs.h. */
15587_ACEOF
15588cat confdefs.h >>conftest.$ac_ext
15589cat >>conftest.$ac_ext <<_ACEOF
15590/* end confdefs.h. */
b4e70030 15591#if defined(CRAY) && ! defined(CRAY2)
a3828db0
MK
15592webecray
15593#else
15594wenotbecray
15595#endif
15596
15597_ACEOF
15598if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15599 $EGREP "webecray" >/dev/null 2>&1; then
15600 ac_cv_os_cray=yes
15601else
15602 ac_cv_os_cray=no
15603fi
15604rm -f conftest*
15605
15606fi
b4e70030
JB
15607echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15608echo "${ECHO_T}$ac_cv_os_cray" >&6
a3828db0
MK
15609if test $ac_cv_os_cray = yes; then
15610 for ac_func in _getb67 GETB67 getb67; do
15611 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
15612echo "$as_me:$LINENO: checking for $ac_func" >&5
15613echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15614if eval "test \"\${$as_ac_var+set}\" = set"; then
a3828db0
MK
15615 echo $ECHO_N "(cached) $ECHO_C" >&6
15616else
15617 cat >conftest.$ac_ext <<_ACEOF
15618/* confdefs.h. */
15619_ACEOF
15620cat confdefs.h >>conftest.$ac_ext
15621cat >>conftest.$ac_ext <<_ACEOF
15622/* end confdefs.h. */
15623/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15625#define $ac_func innocuous_$ac_func
15626
15627/* System header to define __stub macros and hopefully few prototypes,
15628 which can conflict with char $ac_func (); below.
15629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15630 <limits.h> exists even on freestanding compilers. */
15631
15632#ifdef __STDC__
15633# include <limits.h>
15634#else
15635# include <assert.h>
15636#endif
15637
15638#undef $ac_func
15639
b4e70030 15640/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
15641#ifdef __cplusplus
15642extern "C"
b4e70030 15643{
a3828db0 15644#endif
b4e70030
JB
15645/* We use char because int might match the return type of a gcc2
15646 builtin and then its argument prototype would still apply. */
a3828db0
MK
15647char $ac_func ();
15648/* The GNU C library defines this for functions which it implements
15649 to always fail with ENOSYS. Some functions are actually named
15650 something starting with __ and the normal name is an alias. */
b4e70030 15651#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 15652choke me
b4e70030
JB
15653#else
15654char (*f) () = $ac_func;
15655#endif
15656#ifdef __cplusplus
15657}
a3828db0
MK
15658#endif
15659
15660int
15661main ()
15662{
b4e70030 15663return f != $ac_func;
a3828db0
MK
15664 ;
15665 return 0;
15666}
15667_ACEOF
15668rm -f conftest.$ac_objext conftest$ac_exeext
15669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15670 (eval $ac_link) 2>conftest.er1
15671 ac_status=$?
15672 grep -v '^ *+' conftest.er1 >conftest.err
15673 rm -f conftest.er1
15674 cat conftest.err >&5
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); } &&
b4e70030
JB
15677 { ac_try='test -z "$ac_c_werror_flag"
15678 || test ! -s conftest.err'
a3828db0
MK
15679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15680 (eval $ac_try) 2>&5
15681 ac_status=$?
15682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683 (exit $ac_status); }; } &&
15684 { ac_try='test -s conftest$ac_exeext'
15685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15686 (eval $ac_try) 2>&5
15687 ac_status=$?
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); }; }; then
15690 eval "$as_ac_var=yes"
15691else
15692 echo "$as_me: failed program was:" >&5
15693sed 's/^/| /' conftest.$ac_ext >&5
15694
b4e70030 15695eval "$as_ac_var=no"
a3828db0
MK
15696fi
15697rm -f conftest.err conftest.$ac_objext \
15698 conftest$ac_exeext conftest.$ac_ext
15699fi
b4e70030
JB
15700echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15701echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
15702if test `eval echo '${'$as_ac_var'}'` = yes; then
15703
15704cat >>confdefs.h <<_ACEOF
15705#define CRAY_STACKSEG_END $ac_func
15706_ACEOF
15707
15708 break
15709fi
15710
15711 done
15712fi
15713
b4e70030
JB
15714echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15715echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
a3828db0
MK
15716if test "${ac_cv_c_stack_direction+set}" = set; then
15717 echo $ECHO_N "(cached) $ECHO_C" >&6
15718else
15719 if test "$cross_compiling" = yes; then
15720 ac_cv_c_stack_direction=0
15721else
15722 cat >conftest.$ac_ext <<_ACEOF
15723/* confdefs.h. */
15724_ACEOF
15725cat confdefs.h >>conftest.$ac_ext
15726cat >>conftest.$ac_ext <<_ACEOF
15727/* end confdefs.h. */
15728int
15729find_stack_direction ()
15730{
15731 static char *addr = 0;
15732 auto char dummy;
15733 if (addr == 0)
15734 {
15735 addr = &dummy;
15736 return find_stack_direction ();
15737 }
15738 else
15739 return (&dummy > addr) ? 1 : -1;
15740}
15741
15742int
15743main ()
15744{
b4e70030 15745 exit (find_stack_direction () < 0);
a3828db0
MK
15746}
15747_ACEOF
15748rm -f conftest$ac_exeext
15749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15750 (eval $ac_link) 2>&5
15751 ac_status=$?
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15755 (eval $ac_try) 2>&5
15756 ac_status=$?
15757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758 (exit $ac_status); }; }; then
15759 ac_cv_c_stack_direction=1
15760else
15761 echo "$as_me: program exited with status $ac_status" >&5
15762echo "$as_me: failed program was:" >&5
15763sed 's/^/| /' conftest.$ac_ext >&5
15764
15765( exit $ac_status )
15766ac_cv_c_stack_direction=-1
15767fi
b4e70030 15768rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
15769fi
15770fi
b4e70030
JB
15771echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15772echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
a3828db0
MK
15773
15774cat >>confdefs.h <<_ACEOF
15775#define STACK_DIRECTION $ac_cv_c_stack_direction
15776_ACEOF
15777
15778
15779fi
15780
15781
15782
15783for ac_header in stdlib.h unistd.h
15784do
15785as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
15786if eval "test \"\${$as_ac_Header+set}\" = set"; then
15787 echo "$as_me:$LINENO: checking for $ac_header" >&5
15788echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15789if eval "test \"\${$as_ac_Header+set}\" = set"; then
a3828db0
MK
15790 echo $ECHO_N "(cached) $ECHO_C" >&6
15791fi
b4e70030
JB
15792echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15793echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a3828db0
MK
15794else
15795 # Is the header compilable?
b4e70030
JB
15796echo "$as_me:$LINENO: checking $ac_header usability" >&5
15797echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a3828db0
MK
15798cat >conftest.$ac_ext <<_ACEOF
15799/* confdefs.h. */
15800_ACEOF
15801cat confdefs.h >>conftest.$ac_ext
15802cat >>conftest.$ac_ext <<_ACEOF
15803/* end confdefs.h. */
15804$ac_includes_default
15805#include <$ac_header>
15806_ACEOF
15807rm -f conftest.$ac_objext
15808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15809 (eval $ac_compile) 2>conftest.er1
15810 ac_status=$?
bec39cab
AC
15811 grep -v '^ *+' conftest.er1 >conftest.err
15812 rm -f conftest.er1
15813 cat conftest.err >&5
15814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815 (exit $ac_status); } &&
b4e70030
JB
15816 { ac_try='test -z "$ac_c_werror_flag"
15817 || test ! -s conftest.err'
bec39cab
AC
15818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15819 (eval $ac_try) 2>&5
15820 ac_status=$?
15821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15822 (exit $ac_status); }; } &&
15823 { ac_try='test -s conftest.$ac_objext'
15824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15825 (eval $ac_try) 2>&5
15826 ac_status=$?
15827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828 (exit $ac_status); }; }; then
15829 ac_header_compiler=yes
15830else
15831 echo "$as_me: failed program was:" >&5
15832sed 's/^/| /' conftest.$ac_ext >&5
15833
b4e70030 15834ac_header_compiler=no
bec39cab
AC
15835fi
15836rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
15837echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15838echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
15839
15840# Is the header present?
b4e70030
JB
15841echo "$as_me:$LINENO: checking $ac_header presence" >&5
15842echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
bec39cab
AC
15843cat >conftest.$ac_ext <<_ACEOF
15844/* confdefs.h. */
15845_ACEOF
15846cat confdefs.h >>conftest.$ac_ext
15847cat >>conftest.$ac_ext <<_ACEOF
15848/* end confdefs.h. */
15849#include <$ac_header>
15850_ACEOF
15851if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15852 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15853 ac_status=$?
15854 grep -v '^ *+' conftest.er1 >conftest.err
15855 rm -f conftest.er1
15856 cat conftest.err >&5
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); } >/dev/null; then
15859 if test -s conftest.err; then
15860 ac_cpp_err=$ac_c_preproc_warn_flag
15861 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15862 else
15863 ac_cpp_err=
15864 fi
15865else
15866 ac_cpp_err=yes
15867fi
15868if test -z "$ac_cpp_err"; then
15869 ac_header_preproc=yes
97bf5e38 15870else
bec39cab
AC
15871 echo "$as_me: failed program was:" >&5
15872sed 's/^/| /' conftest.$ac_ext >&5
15873
15874 ac_header_preproc=no
72473524 15875fi
bec39cab 15876rm -f conftest.err conftest.$ac_ext
b4e70030
JB
15877echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15878echo "${ECHO_T}$ac_header_preproc" >&6
c906108c 15879
bec39cab
AC
15880# So? What about this header?
15881case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15882 yes:no: )
15883 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15884echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15886echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15887 ac_header_preproc=yes
15888 ;;
15889 no:yes:* )
15890 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15891echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15892 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15893echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15894 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15895echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15896 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15897echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15899echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15900 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15901echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
15902 (
15903 cat <<\_ASBOX
15904## ------------------------------------------ ##
15905## Report this to the AC_PACKAGE_NAME lists. ##
15906## ------------------------------------------ ##
15907_ASBOX
15908 ) |
15909 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
15910 ;;
15911esac
b4e70030
JB
15912echo "$as_me:$LINENO: checking for $ac_header" >&5
15913echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15914if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 15915 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 15916else
bec39cab
AC
15917 eval "$as_ac_Header=\$ac_header_preproc"
15918fi
b4e70030
JB
15919echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15920echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab
AC
15921
15922fi
15923if test `eval echo '${'$as_ac_Header'}'` = yes; then
15924 cat >>confdefs.h <<_ACEOF
15925#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15926_ACEOF
15927
15928fi
15929
15930done
15931
15932
a3828db0 15933for ac_func in getpagesize
bec39cab
AC
15934do
15935as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
15936echo "$as_me:$LINENO: checking for $ac_func" >&5
15937echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15938if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
15939 echo $ECHO_N "(cached) $ECHO_C" >&6
15940else
15941 cat >conftest.$ac_ext <<_ACEOF
15942/* confdefs.h. */
15943_ACEOF
15944cat confdefs.h >>conftest.$ac_ext
15945cat >>conftest.$ac_ext <<_ACEOF
15946/* end confdefs.h. */
15947/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15949#define $ac_func innocuous_$ac_func
15950
97bf5e38 15951/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
15952 which can conflict with char $ac_func (); below.
15953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15954 <limits.h> exists even on freestanding compilers. */
2b2d558c 15955
bec39cab
AC
15956#ifdef __STDC__
15957# include <limits.h>
15958#else
15959# include <assert.h>
15960#endif
97bf5e38 15961
bec39cab
AC
15962#undef $ac_func
15963
b4e70030 15964/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
15965#ifdef __cplusplus
15966extern "C"
b4e70030 15967{
bec39cab 15968#endif
b4e70030
JB
15969/* We use char because int might match the return type of a gcc2
15970 builtin and then its argument prototype would still apply. */
bec39cab 15971char $ac_func ();
97bf5e38
MK
15972/* The GNU C library defines this for functions which it implements
15973 to always fail with ENOSYS. Some functions are actually named
15974 something starting with __ and the normal name is an alias. */
b4e70030 15975#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 15976choke me
b4e70030
JB
15977#else
15978char (*f) () = $ac_func;
15979#endif
15980#ifdef __cplusplus
15981}
97bf5e38
MK
15982#endif
15983
bec39cab
AC
15984int
15985main ()
15986{
b4e70030 15987return f != $ac_func;
bec39cab
AC
15988 ;
15989 return 0;
15990}
15991_ACEOF
15992rm -f conftest.$ac_objext conftest$ac_exeext
15993if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15994 (eval $ac_link) 2>conftest.er1
15995 ac_status=$?
15996 grep -v '^ *+' conftest.er1 >conftest.err
15997 rm -f conftest.er1
15998 cat conftest.err >&5
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); } &&
b4e70030
JB
16001 { ac_try='test -z "$ac_c_werror_flag"
16002 || test ! -s conftest.err'
bec39cab
AC
16003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16004 (eval $ac_try) 2>&5
16005 ac_status=$?
16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); }; } &&
16008 { ac_try='test -s conftest$ac_exeext'
16009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16010 (eval $ac_try) 2>&5
16011 ac_status=$?
16012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013 (exit $ac_status); }; }; then
16014 eval "$as_ac_var=yes"
16015else
16016 echo "$as_me: failed program was:" >&5
16017sed 's/^/| /' conftest.$ac_ext >&5
16018
b4e70030 16019eval "$as_ac_var=no"
bec39cab
AC
16020fi
16021rm -f conftest.err conftest.$ac_objext \
16022 conftest$ac_exeext conftest.$ac_ext
16023fi
b4e70030
JB
16024echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16025echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
16026if test `eval echo '${'$as_ac_var'}'` = yes; then
16027 cat >>confdefs.h <<_ACEOF
16028#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16029_ACEOF
16030
2b2d558c 16031fi
bec39cab 16032done
2b2d558c 16033
b4e70030
JB
16034echo "$as_me:$LINENO: checking for working mmap" >&5
16035echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
a3828db0 16036if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
bec39cab 16037 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 16038else
bec39cab 16039 if test "$cross_compiling" = yes; then
a3828db0 16040 ac_cv_func_mmap_fixed_mapped=no
bec39cab
AC
16041else
16042 cat >conftest.$ac_ext <<_ACEOF
a3828db0 16043/* confdefs.h. */
bec39cab
AC
16044_ACEOF
16045cat confdefs.h >>conftest.$ac_ext
16046cat >>conftest.$ac_ext <<_ACEOF
16047/* end confdefs.h. */
a3828db0
MK
16048$ac_includes_default
16049/* malloc might have been renamed as rpl_malloc. */
16050#undef malloc
bec39cab 16051
a3828db0
MK
16052/* Thanks to Mike Haertel and Jim Avera for this test.
16053 Here is a matrix of mmap possibilities:
16054 mmap private not fixed
16055 mmap private fixed at somewhere currently unmapped
16056 mmap private fixed at somewhere already mapped
16057 mmap shared not fixed
16058 mmap shared fixed at somewhere currently unmapped
16059 mmap shared fixed at somewhere already mapped
16060 For private mappings, we should verify that changes cannot be read()
16061 back from the file, nor mmap's back from the file at a different
16062 address. (There have been systems where private was not correctly
16063 implemented like the infamous i386 svr4.0, and systems where the
16064 VM page cache was not coherent with the file system buffer cache
16065 like early versions of FreeBSD and possibly contemporary NetBSD.)
16066 For shared mappings, we should conversely verify that changes get
16067 propagated back to all the places they're supposed to be.
7dfa765c 16068
a3828db0
MK
16069 Grep wants private fixed already mapped.
16070 The main things grep needs to know about mmap are:
16071 * does it exist and is it safe to write into the mmap'd area
16072 * how to use it (BSD variants) */
7dfa765c 16073
a3828db0
MK
16074#include <fcntl.h>
16075#include <sys/mman.h>
7dfa765c 16076
a3828db0
MK
16077#if !STDC_HEADERS && !HAVE_STDLIB_H
16078char *malloc ();
16079#endif
7dfa765c 16080
a3828db0
MK
16081/* This mess was copied from the GNU getpagesize.h. */
16082#if !HAVE_GETPAGESIZE
16083/* Assume that all systems that can run configure have sys/param.h. */
16084# if !HAVE_SYS_PARAM_H
16085# define HAVE_SYS_PARAM_H 1
16086# endif
64bb1671 16087
a3828db0
MK
16088# ifdef _SC_PAGESIZE
16089# define getpagesize() sysconf(_SC_PAGESIZE)
16090# else /* no _SC_PAGESIZE */
16091# if HAVE_SYS_PARAM_H
16092# include <sys/param.h>
16093# ifdef EXEC_PAGESIZE
16094# define getpagesize() EXEC_PAGESIZE
16095# else /* no EXEC_PAGESIZE */
16096# ifdef NBPG
16097# define getpagesize() NBPG * CLSIZE
16098# ifndef CLSIZE
16099# define CLSIZE 1
16100# endif /* no CLSIZE */
16101# else /* no NBPG */
16102# ifdef NBPC
16103# define getpagesize() NBPC
16104# else /* no NBPC */
16105# ifdef PAGESIZE
16106# define getpagesize() PAGESIZE
16107# endif /* PAGESIZE */
16108# endif /* no NBPC */
16109# endif /* no NBPG */
16110# endif /* no EXEC_PAGESIZE */
16111# else /* no HAVE_SYS_PARAM_H */
16112# define getpagesize() 8192 /* punt totally */
16113# endif /* no HAVE_SYS_PARAM_H */
16114# endif /* no _SC_PAGESIZE */
64bb1671 16115
a3828db0 16116#endif /* no HAVE_GETPAGESIZE */
64bb1671 16117
a3828db0
MK
16118int
16119main ()
16120{
16121 char *data, *data2, *data3;
16122 int i, pagesize;
16123 int fd;
97bf5e38 16124
a3828db0
MK
16125 pagesize = getpagesize ();
16126
16127 /* First, make a file with some known garbage in it. */
16128 data = (char *) malloc (pagesize);
16129 if (!data)
b4e70030 16130 exit (1);
a3828db0
MK
16131 for (i = 0; i < pagesize; ++i)
16132 *(data + i) = rand ();
16133 umask (0);
16134 fd = creat ("conftest.mmap", 0600);
16135 if (fd < 0)
b4e70030 16136 exit (1);
a3828db0 16137 if (write (fd, data, pagesize) != pagesize)
b4e70030 16138 exit (1);
a3828db0
MK
16139 close (fd);
16140
16141 /* Next, try to mmap the file at a fixed address which already has
16142 something else allocated at it. If we can, also make sure that
16143 we see the same garbage. */
16144 fd = open ("conftest.mmap", O_RDWR);
16145 if (fd < 0)
b4e70030 16146 exit (1);
a3828db0
MK
16147 data2 = (char *) malloc (2 * pagesize);
16148 if (!data2)
b4e70030
JB
16149 exit (1);
16150 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
a3828db0
MK
16151 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
16152 MAP_PRIVATE | MAP_FIXED, fd, 0L))
b4e70030 16153 exit (1);
a3828db0
MK
16154 for (i = 0; i < pagesize; ++i)
16155 if (*(data + i) != *(data2 + i))
b4e70030 16156 exit (1);
a3828db0
MK
16157
16158 /* Finally, make sure that changes to the mapped area do not
16159 percolate back to the file as seen by read(). (This is a bug on
16160 some variants of i386 svr4.0.) */
16161 for (i = 0; i < pagesize; ++i)
16162 *(data2 + i) = *(data2 + i) + 1;
16163 data3 = (char *) malloc (pagesize);
16164 if (!data3)
b4e70030 16165 exit (1);
a3828db0 16166 if (read (fd, data3, pagesize) != pagesize)
b4e70030 16167 exit (1);
a3828db0
MK
16168 for (i = 0; i < pagesize; ++i)
16169 if (*(data + i) != *(data3 + i))
b4e70030 16170 exit (1);
a3828db0 16171 close (fd);
b4e70030 16172 exit (0);
97bf5e38 16173}
bec39cab
AC
16174_ACEOF
16175rm -f conftest$ac_exeext
16176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16177 (eval $ac_link) 2>&5
16178 ac_status=$?
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16182 (eval $ac_try) 2>&5
16183 ac_status=$?
16184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16185 (exit $ac_status); }; }; then
a3828db0 16186 ac_cv_func_mmap_fixed_mapped=yes
5c44784c 16187else
bec39cab
AC
16188 echo "$as_me: program exited with status $ac_status" >&5
16189echo "$as_me: failed program was:" >&5
16190sed 's/^/| /' conftest.$ac_ext >&5
16191
16192( exit $ac_status )
a3828db0 16193ac_cv_func_mmap_fixed_mapped=no
0afdd437 16194fi
b4e70030 16195rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
bec39cab 16196fi
a3828db0 16197fi
b4e70030
JB
16198echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
16199echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
a3828db0 16200if test $ac_cv_func_mmap_fixed_mapped = yes; then
bec39cab
AC
16201
16202cat >>confdefs.h <<\_ACEOF
a3828db0 16203#define HAVE_MMAP 1
bec39cab 16204_ACEOF
0afdd437
MK
16205
16206fi
a3828db0 16207rm -f conftest.mmap
0afdd437 16208
b4e70030
JB
16209echo "$as_me:$LINENO: checking for pid_t" >&5
16210echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
a3828db0 16211if test "${ac_cv_type_pid_t+set}" = set; then
bec39cab
AC
16212 echo $ECHO_N "(cached) $ECHO_C" >&6
16213else
16214 cat >conftest.$ac_ext <<_ACEOF
16215/* confdefs.h. */
16216_ACEOF
16217cat confdefs.h >>conftest.$ac_ext
16218cat >>conftest.$ac_ext <<_ACEOF
16219/* end confdefs.h. */
a3828db0 16220$ac_includes_default
bec39cab
AC
16221int
16222main ()
16223{
b4e70030 16224if ((pid_t *) 0)
a3828db0 16225 return 0;
b4e70030 16226if (sizeof (pid_t))
a3828db0 16227 return 0;
bec39cab
AC
16228 ;
16229 return 0;
16230}
16231_ACEOF
a3828db0
MK
16232rm -f conftest.$ac_objext
16233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16234 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
16235 ac_status=$?
16236 grep -v '^ *+' conftest.er1 >conftest.err
16237 rm -f conftest.er1
16238 cat conftest.err >&5
16239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240 (exit $ac_status); } &&
b4e70030
JB
16241 { ac_try='test -z "$ac_c_werror_flag"
16242 || test ! -s conftest.err'
bec39cab
AC
16243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16244 (eval $ac_try) 2>&5
16245 ac_status=$?
16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247 (exit $ac_status); }; } &&
a3828db0 16248 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
16249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16250 (eval $ac_try) 2>&5
16251 ac_status=$?
16252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16253 (exit $ac_status); }; }; then
a3828db0 16254 ac_cv_type_pid_t=yes
bec39cab
AC
16255else
16256 echo "$as_me: failed program was:" >&5
16257sed 's/^/| /' conftest.$ac_ext >&5
16258
b4e70030 16259ac_cv_type_pid_t=no
bec39cab 16260fi
a3828db0 16261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
bec39cab 16262fi
b4e70030
JB
16263echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16264echo "${ECHO_T}$ac_cv_type_pid_t" >&6
a3828db0
MK
16265if test $ac_cv_type_pid_t = yes; then
16266 :
16267else
16268
16269cat >>confdefs.h <<_ACEOF
16270#define pid_t int
bec39cab 16271_ACEOF
7e89e357 16272
7e89e357
JT
16273fi
16274
bec39cab 16275
b4e70030
JB
16276
16277for ac_header in unistd.h vfork.h
7be570e7 16278do
a3828db0 16279as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
b4e70030
JB
16280if eval "test \"\${$as_ac_Header+set}\" = set"; then
16281 echo "$as_me:$LINENO: checking for $ac_header" >&5
16282echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16283if eval "test \"\${$as_ac_Header+set}\" = set"; then
bec39cab 16284 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0 16285fi
b4e70030
JB
16286echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16287echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
bec39cab 16288else
a3828db0 16289 # Is the header compilable?
b4e70030
JB
16290echo "$as_me:$LINENO: checking $ac_header usability" >&5
16291echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
a3828db0 16292cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
16293/* confdefs.h. */
16294_ACEOF
16295cat confdefs.h >>conftest.$ac_ext
16296cat >>conftest.$ac_ext <<_ACEOF
16297/* end confdefs.h. */
a3828db0
MK
16298$ac_includes_default
16299#include <$ac_header>
bec39cab 16300_ACEOF
a3828db0
MK
16301rm -f conftest.$ac_objext
16302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16303 (eval $ac_compile) 2>conftest.er1
bec39cab
AC
16304 ac_status=$?
16305 grep -v '^ *+' conftest.er1 >conftest.err
16306 rm -f conftest.er1
16307 cat conftest.err >&5
16308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309 (exit $ac_status); } &&
b4e70030
JB
16310 { ac_try='test -z "$ac_c_werror_flag"
16311 || test ! -s conftest.err'
bec39cab
AC
16312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16313 (eval $ac_try) 2>&5
16314 ac_status=$?
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); }; } &&
a3828db0 16317 { ac_try='test -s conftest.$ac_objext'
bec39cab
AC
16318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16319 (eval $ac_try) 2>&5
16320 ac_status=$?
16321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322 (exit $ac_status); }; }; then
a3828db0 16323 ac_header_compiler=yes
bec39cab
AC
16324else
16325 echo "$as_me: failed program was:" >&5
16326sed 's/^/| /' conftest.$ac_ext >&5
16327
b4e70030 16328ac_header_compiler=no
bec39cab 16329fi
a3828db0 16330rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
16331echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16332echo "${ECHO_T}$ac_header_compiler" >&6
a3828db0
MK
16333
16334# Is the header present?
b4e70030
JB
16335echo "$as_me:$LINENO: checking $ac_header presence" >&5
16336echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
a3828db0
MK
16337cat >conftest.$ac_ext <<_ACEOF
16338/* confdefs.h. */
16339_ACEOF
16340cat confdefs.h >>conftest.$ac_ext
16341cat >>conftest.$ac_ext <<_ACEOF
16342/* end confdefs.h. */
16343#include <$ac_header>
16344_ACEOF
16345if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16347 ac_status=$?
16348 grep -v '^ *+' conftest.er1 >conftest.err
16349 rm -f conftest.er1
16350 cat conftest.err >&5
16351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352 (exit $ac_status); } >/dev/null; then
16353 if test -s conftest.err; then
16354 ac_cpp_err=$ac_c_preproc_warn_flag
16355 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16356 else
16357 ac_cpp_err=
16358 fi
16359else
16360 ac_cpp_err=yes
16361fi
16362if test -z "$ac_cpp_err"; then
16363 ac_header_preproc=yes
16364else
16365 echo "$as_me: failed program was:" >&5
16366sed 's/^/| /' conftest.$ac_ext >&5
16367
16368 ac_header_preproc=no
16369fi
16370rm -f conftest.err conftest.$ac_ext
b4e70030
JB
16371echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16372echo "${ECHO_T}$ac_header_preproc" >&6
a3828db0
MK
16373
16374# So? What about this header?
16375case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16376 yes:no: )
16377 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16378echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16380echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16381 ac_header_preproc=yes
16382 ;;
16383 no:yes:* )
16384 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16385echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16386 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16387echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16388 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16389echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16390 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16391echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16393echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16394 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16395echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
16396 (
16397 cat <<\_ASBOX
16398## ------------------------------------------ ##
16399## Report this to the AC_PACKAGE_NAME lists. ##
16400## ------------------------------------------ ##
16401_ASBOX
16402 ) |
16403 sed "s/^/$as_me: WARNING: /" >&2
a3828db0
MK
16404 ;;
16405esac
b4e70030
JB
16406echo "$as_me:$LINENO: checking for $ac_header" >&5
16407echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16408if eval "test \"\${$as_ac_Header+set}\" = set"; then
a3828db0
MK
16409 echo $ECHO_N "(cached) $ECHO_C" >&6
16410else
16411 eval "$as_ac_Header=\$ac_header_preproc"
16412fi
b4e70030
JB
16413echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16414echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a3828db0 16415
bec39cab 16416fi
a3828db0 16417if test `eval echo '${'$as_ac_Header'}'` = yes; then
bec39cab 16418 cat >>confdefs.h <<_ACEOF
a3828db0 16419#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
bec39cab 16420_ACEOF
14abd0fb 16421
14abd0fb 16422fi
a3828db0 16423
14abd0fb
MK
16424done
16425
bec39cab 16426
a3828db0
MK
16427
16428for ac_func in fork vfork
14abd0fb 16429do
bec39cab 16430as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
16431echo "$as_me:$LINENO: checking for $ac_func" >&5
16432echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16433if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
16434 echo $ECHO_N "(cached) $ECHO_C" >&6
16435else
16436 cat >conftest.$ac_ext <<_ACEOF
16437/* confdefs.h. */
16438_ACEOF
16439cat confdefs.h >>conftest.$ac_ext
16440cat >>conftest.$ac_ext <<_ACEOF
16441/* end confdefs.h. */
16442/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16443 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16444#define $ac_func innocuous_$ac_func
16445
14abd0fb 16446/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
16447 which can conflict with char $ac_func (); below.
16448 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16449 <limits.h> exists even on freestanding compilers. */
16450
16451#ifdef __STDC__
16452# include <limits.h>
16453#else
16454# include <assert.h>
16455#endif
14abd0fb 16456
bec39cab 16457#undef $ac_func
14abd0fb 16458
b4e70030 16459/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
16460#ifdef __cplusplus
16461extern "C"
b4e70030 16462{
bec39cab 16463#endif
b4e70030
JB
16464/* We use char because int might match the return type of a gcc2
16465 builtin and then its argument prototype would still apply. */
bec39cab 16466char $ac_func ();
14abd0fb
MK
16467/* The GNU C library defines this for functions which it implements
16468 to always fail with ENOSYS. Some functions are actually named
16469 something starting with __ and the normal name is an alias. */
b4e70030 16470#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14abd0fb 16471choke me
b4e70030
JB
16472#else
16473char (*f) () = $ac_func;
16474#endif
16475#ifdef __cplusplus
16476}
14abd0fb
MK
16477#endif
16478
bec39cab
AC
16479int
16480main ()
16481{
b4e70030 16482return f != $ac_func;
bec39cab
AC
16483 ;
16484 return 0;
16485}
16486_ACEOF
16487rm -f conftest.$ac_objext conftest$ac_exeext
16488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16489 (eval $ac_link) 2>conftest.er1
16490 ac_status=$?
16491 grep -v '^ *+' conftest.er1 >conftest.err
16492 rm -f conftest.er1
16493 cat conftest.err >&5
16494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495 (exit $ac_status); } &&
b4e70030
JB
16496 { ac_try='test -z "$ac_c_werror_flag"
16497 || test ! -s conftest.err'
bec39cab
AC
16498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16499 (eval $ac_try) 2>&5
16500 ac_status=$?
16501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16502 (exit $ac_status); }; } &&
16503 { ac_try='test -s conftest$ac_exeext'
16504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16505 (eval $ac_try) 2>&5
16506 ac_status=$?
16507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16508 (exit $ac_status); }; }; then
16509 eval "$as_ac_var=yes"
16510else
16511 echo "$as_me: failed program was:" >&5
16512sed 's/^/| /' conftest.$ac_ext >&5
16513
b4e70030 16514eval "$as_ac_var=no"
bec39cab
AC
16515fi
16516rm -f conftest.err conftest.$ac_objext \
16517 conftest$ac_exeext conftest.$ac_ext
16518fi
b4e70030
JB
16519echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16520echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
16521if test `eval echo '${'$as_ac_var'}'` = yes; then
16522 cat >>confdefs.h <<_ACEOF
16523#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16524_ACEOF
7be570e7 16525
7be570e7
JM
16526fi
16527done
16528
a3828db0 16529if test "x$ac_cv_func_fork" = xyes; then
b4e70030
JB
16530 echo "$as_me:$LINENO: checking for working fork" >&5
16531echo $ECHO_N "checking for working fork... $ECHO_C" >&6
a3828db0
MK
16532if test "${ac_cv_func_fork_works+set}" = set; then
16533 echo $ECHO_N "(cached) $ECHO_C" >&6
16534else
16535 if test "$cross_compiling" = yes; then
16536 ac_cv_func_fork_works=cross
16537else
16538 cat >conftest.$ac_ext <<_ACEOF
b4e70030
JB
16539/* By Ruediger Kuhlmann. */
16540 #include <sys/types.h>
16541 #if HAVE_UNISTD_H
16542 # include <unistd.h>
16543 #endif
16544 /* Some systems only have a dummy stub for fork() */
16545 int main ()
16546 {
16547 if (fork() < 0)
16548 exit (1);
16549 exit (0);
16550 }
a3828db0
MK
16551_ACEOF
16552rm -f conftest$ac_exeext
16553if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16554 (eval $ac_link) 2>&5
16555 ac_status=$?
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16559 (eval $ac_try) 2>&5
16560 ac_status=$?
16561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16562 (exit $ac_status); }; }; then
16563 ac_cv_func_fork_works=yes
16564else
16565 echo "$as_me: program exited with status $ac_status" >&5
16566echo "$as_me: failed program was:" >&5
16567sed 's/^/| /' conftest.$ac_ext >&5
bec39cab 16568
a3828db0
MK
16569( exit $ac_status )
16570ac_cv_func_fork_works=no
16571fi
b4e70030 16572rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
16573fi
16574fi
b4e70030
JB
16575echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
16576echo "${ECHO_T}$ac_cv_func_fork_works" >&6
a3828db0
MK
16577
16578else
16579 ac_cv_func_fork_works=$ac_cv_func_fork
16580fi
16581if test "x$ac_cv_func_fork_works" = xcross; then
16582 case $host in
16583 *-*-amigaos* | *-*-msdosdjgpp*)
16584 # Override, as these systems have only a dummy fork() stub
16585 ac_cv_func_fork_works=no
16586 ;;
16587 *)
16588 ac_cv_func_fork_works=yes
16589 ;;
16590 esac
16591 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
16592echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
16593fi
16594ac_cv_func_vfork_works=$ac_cv_func_vfork
16595if test "x$ac_cv_func_vfork" = xyes; then
b4e70030
JB
16596 echo "$as_me:$LINENO: checking for working vfork" >&5
16597echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
a3828db0 16598if test "${ac_cv_func_vfork_works+set}" = set; then
bec39cab 16599 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
16600else
16601 if test "$cross_compiling" = yes; then
16602 ac_cv_func_vfork_works=cross
bec39cab
AC
16603else
16604 cat >conftest.$ac_ext <<_ACEOF
16605/* confdefs.h. */
16606_ACEOF
16607cat confdefs.h >>conftest.$ac_ext
16608cat >>conftest.$ac_ext <<_ACEOF
16609/* end confdefs.h. */
a3828db0 16610/* Thanks to Paul Eggert for this test. */
b4e70030
JB
16611#include <stdio.h>
16612#include <stdlib.h>
16613#include <sys/types.h>
16614#include <sys/stat.h>
a3828db0 16615#include <sys/wait.h>
b4e70030
JB
16616#if HAVE_UNISTD_H
16617# include <unistd.h>
16618#endif
a3828db0
MK
16619#if HAVE_VFORK_H
16620# include <vfork.h>
bec39cab 16621#endif
a3828db0
MK
16622/* On some sparc systems, changes by the child to local and incoming
16623 argument registers are propagated back to the parent. The compiler
16624 is told about this with #include <vfork.h>, but some compilers
16625 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
16626 static variable whose address is put into a register that is
16627 clobbered by the vfork. */
16628static void
bec39cab 16629#ifdef __cplusplus
a3828db0
MK
16630sparc_address_test (int arg)
16631# else
16632sparc_address_test (arg) int arg;
c906108c 16633#endif
a3828db0
MK
16634{
16635 static pid_t child;
16636 if (!child) {
16637 child = vfork ();
16638 if (child < 0) {
16639 perror ("vfork");
16640 _exit(2);
16641 }
16642 if (!child) {
16643 arg = getpid();
16644 write(-1, "", 0);
16645 _exit (arg);
16646 }
16647 }
16648}
97bf5e38 16649
bec39cab
AC
16650int
16651main ()
16652{
a3828db0
MK
16653 pid_t parent = getpid ();
16654 pid_t child;
16655
16656 sparc_address_test (0);
16657
16658 child = vfork ();
16659
16660 if (child == 0) {
16661 /* Here is another test for sparc vfork register problems. This
16662 test uses lots of local variables, at least as many local
16663 variables as main has allocated so far including compiler
16664 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
16665 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
16666 reuse the register of parent for one of the local variables,
16667 since it will think that parent can't possibly be used any more
16668 in this routine. Assigning to the local variable will thus
16669 munge parent in the parent process. */
16670 pid_t
16671 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
16672 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
16673 /* Convince the compiler that p..p7 are live; otherwise, it might
16674 use the same hardware register for all 8 local variables. */
16675 if (p != p1 || p != p2 || p != p3 || p != p4
16676 || p != p5 || p != p6 || p != p7)
16677 _exit(1);
16678
16679 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
16680 from child file descriptors. If the child closes a descriptor
16681 before it execs or exits, this munges the parent's descriptor
16682 as well. Test for this by closing stdout in the child. */
16683 _exit(close(fileno(stdout)) != 0);
16684 } else {
16685 int status;
16686 struct stat st;
16687
16688 while (wait(&status) != child)
16689 ;
b4e70030 16690 exit(
a3828db0
MK
16691 /* Was there some problem with vforking? */
16692 child < 0
16693
16694 /* Did the child fail? (This shouldn't happen.) */
16695 || status
16696
16697 /* Did the vfork/compiler bug occur? */
16698 || parent != getpid()
16699
16700 /* Did the file descriptor bug occur? */
16701 || fstat(fileno(stdout), &st) != 0
16702 );
16703 }
bec39cab
AC
16704}
16705_ACEOF
a3828db0 16706rm -f conftest$ac_exeext
bec39cab 16707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 16708 (eval $ac_link) 2>&5
bec39cab
AC
16709 ac_status=$?
16710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 16711 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
16712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16713 (eval $ac_try) 2>&5
16714 ac_status=$?
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); }; }; then
a3828db0
MK
16717 ac_cv_func_vfork_works=yes
16718else
16719 echo "$as_me: program exited with status $ac_status" >&5
16720echo "$as_me: failed program was:" >&5
16721sed 's/^/| /' conftest.$ac_ext >&5
16722
16723( exit $ac_status )
16724ac_cv_func_vfork_works=no
16725fi
b4e70030 16726rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
16727fi
16728fi
b4e70030
JB
16729echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
16730echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
a3828db0
MK
16731
16732fi;
16733if test "x$ac_cv_func_fork_works" = xcross; then
16734 ac_cv_func_vfork_works=$ac_cv_func_vfork
16735 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
16736echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
16737fi
16738
16739if test "x$ac_cv_func_vfork_works" = xyes; then
16740
16741cat >>confdefs.h <<\_ACEOF
16742#define HAVE_WORKING_VFORK 1
16743_ACEOF
16744
bec39cab 16745else
bec39cab 16746
a3828db0
MK
16747cat >>confdefs.h <<\_ACEOF
16748#define vfork fork
16749_ACEOF
16750
bec39cab 16751fi
a3828db0
MK
16752if test "x$ac_cv_func_fork_works" = xyes; then
16753
16754cat >>confdefs.h <<\_ACEOF
16755#define HAVE_WORKING_FORK 1
bec39cab 16756_ACEOF
c906108c 16757
c906108c
SS
16758fi
16759
bec39cab
AC
16760
16761
a3828db0 16762for ac_func in canonicalize_file_name realpath
97bf5e38 16763do
bec39cab 16764as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030 16765echo "$as_me:$LINENO: checking for $ac_func" >&5
7eb368b3
NR
16766echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16767if eval "test \"\${$as_ac_var+set}\" = set"; then
16768 echo $ECHO_N "(cached) $ECHO_C" >&6
16769else
16770 cat >conftest.$ac_ext <<_ACEOF
16771/* confdefs.h. */
16772_ACEOF
16773cat confdefs.h >>conftest.$ac_ext
16774cat >>conftest.$ac_ext <<_ACEOF
16775/* end confdefs.h. */
16776/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16778#define $ac_func innocuous_$ac_func
16779
16780/* System header to define __stub macros and hopefully few prototypes,
16781 which can conflict with char $ac_func (); below.
16782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16783 <limits.h> exists even on freestanding compilers. */
16784
16785#ifdef __STDC__
16786# include <limits.h>
16787#else
16788# include <assert.h>
16789#endif
16790
16791#undef $ac_func
16792
16793/* Override any gcc2 internal prototype to avoid an error. */
16794#ifdef __cplusplus
16795extern "C"
16796{
16797#endif
16798/* We use char because int might match the return type of a gcc2
16799 builtin and then its argument prototype would still apply. */
16800char $ac_func ();
16801/* The GNU C library defines this for functions which it implements
16802 to always fail with ENOSYS. Some functions are actually named
16803 something starting with __ and the normal name is an alias. */
16804#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16805choke me
16806#else
16807char (*f) () = $ac_func;
16808#endif
16809#ifdef __cplusplus
16810}
16811#endif
16812
16813int
16814main ()
16815{
16816return f != $ac_func;
16817 ;
16818 return 0;
16819}
16820_ACEOF
16821rm -f conftest.$ac_objext conftest$ac_exeext
16822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16823 (eval $ac_link) 2>conftest.er1
16824 ac_status=$?
16825 grep -v '^ *+' conftest.er1 >conftest.err
16826 rm -f conftest.er1
16827 cat conftest.err >&5
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); } &&
16830 { ac_try='test -z "$ac_c_werror_flag"
16831 || test ! -s conftest.err'
16832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16833 (eval $ac_try) 2>&5
16834 ac_status=$?
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); }; } &&
16837 { ac_try='test -s conftest$ac_exeext'
16838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16839 (eval $ac_try) 2>&5
16840 ac_status=$?
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); }; }; then
16843 eval "$as_ac_var=yes"
16844else
16845 echo "$as_me: failed program was:" >&5
16846sed 's/^/| /' conftest.$ac_ext >&5
16847
16848eval "$as_ac_var=no"
16849fi
16850rm -f conftest.err conftest.$ac_objext \
16851 conftest$ac_exeext conftest.$ac_ext
16852fi
16853echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16854echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16855if test `eval echo '${'$as_ac_var'}'` = yes; then
16856 cat >>confdefs.h <<_ACEOF
16857#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16858_ACEOF
16859
16860fi
16861done
16862
16863
16864for ac_func in getrusage
16865do
16866as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16867echo "$as_me:$LINENO: checking for $ac_func" >&5
b4e70030
JB
16868echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16869if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
16870 echo $ECHO_N "(cached) $ECHO_C" >&6
16871else
16872 cat >conftest.$ac_ext <<_ACEOF
16873/* confdefs.h. */
16874_ACEOF
16875cat confdefs.h >>conftest.$ac_ext
16876cat >>conftest.$ac_ext <<_ACEOF
16877/* end confdefs.h. */
16878/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16880#define $ac_func innocuous_$ac_func
16881
d3ea6809
MM
16882/* System header to define __stub macros and hopefully few prototypes,
16883 which can conflict with char $ac_func (); below.
16884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16885 <limits.h> exists even on freestanding compilers. */
16886
16887#ifdef __STDC__
16888# include <limits.h>
16889#else
16890# include <assert.h>
16891#endif
16892
16893#undef $ac_func
16894
b4e70030 16895/* Override any gcc2 internal prototype to avoid an error. */
d3ea6809
MM
16896#ifdef __cplusplus
16897extern "C"
b4e70030 16898{
d3ea6809 16899#endif
b4e70030
JB
16900/* We use char because int might match the return type of a gcc2
16901 builtin and then its argument prototype would still apply. */
d3ea6809
MM
16902char $ac_func ();
16903/* The GNU C library defines this for functions which it implements
16904 to always fail with ENOSYS. Some functions are actually named
16905 something starting with __ and the normal name is an alias. */
b4e70030 16906#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
d3ea6809 16907choke me
b4e70030
JB
16908#else
16909char (*f) () = $ac_func;
16910#endif
16911#ifdef __cplusplus
16912}
d3ea6809
MM
16913#endif
16914
16915int
16916main ()
16917{
b4e70030 16918return f != $ac_func;
d3ea6809
MM
16919 ;
16920 return 0;
16921}
16922_ACEOF
16923rm -f conftest.$ac_objext conftest$ac_exeext
16924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16925 (eval $ac_link) 2>conftest.er1
16926 ac_status=$?
16927 grep -v '^ *+' conftest.er1 >conftest.err
16928 rm -f conftest.er1
16929 cat conftest.err >&5
16930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931 (exit $ac_status); } &&
b4e70030
JB
16932 { ac_try='test -z "$ac_c_werror_flag"
16933 || test ! -s conftest.err'
d3ea6809
MM
16934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16935 (eval $ac_try) 2>&5
16936 ac_status=$?
16937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16938 (exit $ac_status); }; } &&
16939 { ac_try='test -s conftest$ac_exeext'
16940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16941 (eval $ac_try) 2>&5
16942 ac_status=$?
16943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944 (exit $ac_status); }; }; then
16945 eval "$as_ac_var=yes"
16946else
16947 echo "$as_me: failed program was:" >&5
16948sed 's/^/| /' conftest.$ac_ext >&5
16949
b4e70030 16950eval "$as_ac_var=no"
d3ea6809
MM
16951fi
16952rm -f conftest.err conftest.$ac_objext \
16953 conftest$ac_exeext conftest.$ac_ext
16954fi
b4e70030
JB
16955echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16956echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
d3ea6809
MM
16957if test `eval echo '${'$as_ac_var'}'` = yes; then
16958 cat >>confdefs.h <<_ACEOF
16959#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16960_ACEOF
16961
16962fi
16963done
16964
16965
16966
16967for ac_func in getuid getgid
16968do
16969as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
16970echo "$as_me:$LINENO: checking for $ac_func" >&5
16971echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16972if eval "test \"\${$as_ac_var+set}\" = set"; then
d3ea6809
MM
16973 echo $ECHO_N "(cached) $ECHO_C" >&6
16974else
16975 cat >conftest.$ac_ext <<_ACEOF
16976/* confdefs.h. */
16977_ACEOF
16978cat confdefs.h >>conftest.$ac_ext
16979cat >>conftest.$ac_ext <<_ACEOF
16980/* end confdefs.h. */
16981/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16983#define $ac_func innocuous_$ac_func
16984
97bf5e38 16985/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
16986 which can conflict with char $ac_func (); below.
16987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16988 <limits.h> exists even on freestanding compilers. */
c906108c 16989
bec39cab
AC
16990#ifdef __STDC__
16991# include <limits.h>
16992#else
16993# include <assert.h>
16994#endif
97bf5e38 16995
bec39cab
AC
16996#undef $ac_func
16997
b4e70030 16998/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
16999#ifdef __cplusplus
17000extern "C"
b4e70030 17001{
bec39cab 17002#endif
b4e70030
JB
17003/* We use char because int might match the return type of a gcc2
17004 builtin and then its argument prototype would still apply. */
bec39cab 17005char $ac_func ();
97bf5e38
MK
17006/* The GNU C library defines this for functions which it implements
17007 to always fail with ENOSYS. Some functions are actually named
17008 something starting with __ and the normal name is an alias. */
b4e70030 17009#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 17010choke me
b4e70030
JB
17011#else
17012char (*f) () = $ac_func;
17013#endif
17014#ifdef __cplusplus
17015}
c906108c 17016#endif
97bf5e38 17017
bec39cab
AC
17018int
17019main ()
17020{
b4e70030 17021return f != $ac_func;
bec39cab
AC
17022 ;
17023 return 0;
17024}
17025_ACEOF
17026rm -f conftest.$ac_objext conftest$ac_exeext
17027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17028 (eval $ac_link) 2>conftest.er1
17029 ac_status=$?
17030 grep -v '^ *+' conftest.er1 >conftest.err
17031 rm -f conftest.er1
17032 cat conftest.err >&5
17033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17034 (exit $ac_status); } &&
b4e70030
JB
17035 { ac_try='test -z "$ac_c_werror_flag"
17036 || test ! -s conftest.err'
bec39cab
AC
17037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17038 (eval $ac_try) 2>&5
17039 ac_status=$?
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); }; } &&
17042 { ac_try='test -s conftest$ac_exeext'
17043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17044 (eval $ac_try) 2>&5
17045 ac_status=$?
17046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047 (exit $ac_status); }; }; then
17048 eval "$as_ac_var=yes"
17049else
17050 echo "$as_me: failed program was:" >&5
17051sed 's/^/| /' conftest.$ac_ext >&5
17052
b4e70030 17053eval "$as_ac_var=no"
bec39cab
AC
17054fi
17055rm -f conftest.err conftest.$ac_objext \
17056 conftest$ac_exeext conftest.$ac_ext
17057fi
b4e70030
JB
17058echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17059echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
17060if test `eval echo '${'$as_ac_var'}'` = yes; then
17061 cat >>confdefs.h <<_ACEOF
17062#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17063_ACEOF
c906108c 17064
c906108c 17065fi
97bf5e38 17066done
c906108c 17067
bec39cab 17068
a3828db0 17069for ac_func in poll
97bf5e38 17070do
bec39cab 17071as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17072echo "$as_me:$LINENO: checking for $ac_func" >&5
17073echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17074if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17075 echo $ECHO_N "(cached) $ECHO_C" >&6
17076else
17077 cat >conftest.$ac_ext <<_ACEOF
17078/* confdefs.h. */
17079_ACEOF
17080cat confdefs.h >>conftest.$ac_ext
17081cat >>conftest.$ac_ext <<_ACEOF
17082/* end confdefs.h. */
17083/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17085#define $ac_func innocuous_$ac_func
17086
97bf5e38 17087/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
17088 which can conflict with char $ac_func (); below.
17089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17090 <limits.h> exists even on freestanding compilers. */
17091
17092#ifdef __STDC__
17093# include <limits.h>
17094#else
17095# include <assert.h>
17096#endif
c906108c 17097
bec39cab 17098#undef $ac_func
97bf5e38 17099
b4e70030 17100/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
17101#ifdef __cplusplus
17102extern "C"
b4e70030 17103{
bec39cab 17104#endif
b4e70030
JB
17105/* We use char because int might match the return type of a gcc2
17106 builtin and then its argument prototype would still apply. */
bec39cab 17107char $ac_func ();
97bf5e38
MK
17108/* The GNU C library defines this for functions which it implements
17109 to always fail with ENOSYS. Some functions are actually named
17110 something starting with __ and the normal name is an alias. */
b4e70030 17111#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 17112choke me
b4e70030
JB
17113#else
17114char (*f) () = $ac_func;
17115#endif
17116#ifdef __cplusplus
17117}
c906108c 17118#endif
97bf5e38 17119
bec39cab
AC
17120int
17121main ()
17122{
b4e70030 17123return f != $ac_func;
bec39cab
AC
17124 ;
17125 return 0;
17126}
17127_ACEOF
17128rm -f conftest.$ac_objext conftest$ac_exeext
17129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17130 (eval $ac_link) 2>conftest.er1
17131 ac_status=$?
17132 grep -v '^ *+' conftest.er1 >conftest.err
17133 rm -f conftest.er1
17134 cat conftest.err >&5
17135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136 (exit $ac_status); } &&
b4e70030
JB
17137 { ac_try='test -z "$ac_c_werror_flag"
17138 || test ! -s conftest.err'
bec39cab
AC
17139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17140 (eval $ac_try) 2>&5
17141 ac_status=$?
17142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143 (exit $ac_status); }; } &&
17144 { ac_try='test -s conftest$ac_exeext'
17145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17146 (eval $ac_try) 2>&5
17147 ac_status=$?
17148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149 (exit $ac_status); }; }; then
17150 eval "$as_ac_var=yes"
17151else
17152 echo "$as_me: failed program was:" >&5
17153sed 's/^/| /' conftest.$ac_ext >&5
17154
b4e70030 17155eval "$as_ac_var=no"
bec39cab
AC
17156fi
17157rm -f conftest.err conftest.$ac_objext \
17158 conftest$ac_exeext conftest.$ac_ext
17159fi
b4e70030
JB
17160echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17161echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
17162if test `eval echo '${'$as_ac_var'}'` = yes; then
17163 cat >>confdefs.h <<_ACEOF
17164#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17165_ACEOF
c906108c 17166
c906108c 17167fi
97bf5e38 17168done
c906108c 17169
bec39cab 17170
a3828db0 17171for ac_func in pread64
97bf5e38 17172do
bec39cab 17173as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17174echo "$as_me:$LINENO: checking for $ac_func" >&5
17175echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17176if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17177 echo $ECHO_N "(cached) $ECHO_C" >&6
17178else
17179 cat >conftest.$ac_ext <<_ACEOF
17180/* confdefs.h. */
17181_ACEOF
17182cat confdefs.h >>conftest.$ac_ext
17183cat >>conftest.$ac_ext <<_ACEOF
17184/* end confdefs.h. */
17185/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17187#define $ac_func innocuous_$ac_func
17188
97bf5e38 17189/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
17190 which can conflict with char $ac_func (); below.
17191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17192 <limits.h> exists even on freestanding compilers. */
17193
17194#ifdef __STDC__
17195# include <limits.h>
17196#else
17197# include <assert.h>
17198#endif
c906108c 17199
bec39cab 17200#undef $ac_func
97bf5e38 17201
b4e70030 17202/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
17203#ifdef __cplusplus
17204extern "C"
b4e70030 17205{
bec39cab 17206#endif
b4e70030
JB
17207/* We use char because int might match the return type of a gcc2
17208 builtin and then its argument prototype would still apply. */
bec39cab 17209char $ac_func ();
97bf5e38
MK
17210/* The GNU C library defines this for functions which it implements
17211 to always fail with ENOSYS. Some functions are actually named
17212 something starting with __ and the normal name is an alias. */
b4e70030 17213#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
97bf5e38 17214choke me
b4e70030
JB
17215#else
17216char (*f) () = $ac_func;
17217#endif
17218#ifdef __cplusplus
17219}
c906108c 17220#endif
97bf5e38 17221
bec39cab
AC
17222int
17223main ()
17224{
b4e70030 17225return f != $ac_func;
bec39cab
AC
17226 ;
17227 return 0;
17228}
17229_ACEOF
17230rm -f conftest.$ac_objext conftest$ac_exeext
17231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17232 (eval $ac_link) 2>conftest.er1
17233 ac_status=$?
17234 grep -v '^ *+' conftest.er1 >conftest.err
17235 rm -f conftest.er1
17236 cat conftest.err >&5
17237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238 (exit $ac_status); } &&
b4e70030
JB
17239 { ac_try='test -z "$ac_c_werror_flag"
17240 || test ! -s conftest.err'
bec39cab
AC
17241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17242 (eval $ac_try) 2>&5
17243 ac_status=$?
17244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245 (exit $ac_status); }; } &&
17246 { ac_try='test -s conftest$ac_exeext'
17247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17248 (eval $ac_try) 2>&5
17249 ac_status=$?
17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17251 (exit $ac_status); }; }; then
17252 eval "$as_ac_var=yes"
17253else
17254 echo "$as_me: failed program was:" >&5
17255sed 's/^/| /' conftest.$ac_ext >&5
17256
b4e70030 17257eval "$as_ac_var=no"
bec39cab
AC
17258fi
17259rm -f conftest.err conftest.$ac_objext \
17260 conftest$ac_exeext conftest.$ac_ext
17261fi
b4e70030
JB
17262echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17263echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
17264if test `eval echo '${'$as_ac_var'}'` = yes; then
17265 cat >>confdefs.h <<_ACEOF
17266#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17267_ACEOF
c906108c 17268
c906108c 17269fi
97bf5e38 17270done
c906108c 17271
bec39cab 17272
a3828db0 17273for ac_func in sbrk
b757528f 17274do
bec39cab 17275as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17276echo "$as_me:$LINENO: checking for $ac_func" >&5
17277echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17278if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17279 echo $ECHO_N "(cached) $ECHO_C" >&6
17280else
17281 cat >conftest.$ac_ext <<_ACEOF
17282/* confdefs.h. */
17283_ACEOF
17284cat confdefs.h >>conftest.$ac_ext
17285cat >>conftest.$ac_ext <<_ACEOF
17286/* end confdefs.h. */
17287/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17289#define $ac_func innocuous_$ac_func
17290
b757528f 17291/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
17292 which can conflict with char $ac_func (); below.
17293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17294 <limits.h> exists even on freestanding compilers. */
17295
17296#ifdef __STDC__
17297# include <limits.h>
17298#else
17299# include <assert.h>
17300#endif
b757528f 17301
bec39cab 17302#undef $ac_func
b757528f 17303
b4e70030 17304/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
17305#ifdef __cplusplus
17306extern "C"
b4e70030 17307{
bec39cab 17308#endif
b4e70030
JB
17309/* We use char because int might match the return type of a gcc2
17310 builtin and then its argument prototype would still apply. */
bec39cab 17311char $ac_func ();
b757528f
JJ
17312/* The GNU C library defines this for functions which it implements
17313 to always fail with ENOSYS. Some functions are actually named
17314 something starting with __ and the normal name is an alias. */
b4e70030 17315#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
b757528f 17316choke me
b4e70030
JB
17317#else
17318char (*f) () = $ac_func;
17319#endif
17320#ifdef __cplusplus
17321}
b757528f
JJ
17322#endif
17323
bec39cab
AC
17324int
17325main ()
17326{
b4e70030 17327return f != $ac_func;
bec39cab
AC
17328 ;
17329 return 0;
17330}
17331_ACEOF
17332rm -f conftest.$ac_objext conftest$ac_exeext
17333if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17334 (eval $ac_link) 2>conftest.er1
17335 ac_status=$?
17336 grep -v '^ *+' conftest.er1 >conftest.err
17337 rm -f conftest.er1
17338 cat conftest.err >&5
17339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340 (exit $ac_status); } &&
b4e70030
JB
17341 { ac_try='test -z "$ac_c_werror_flag"
17342 || test ! -s conftest.err'
bec39cab
AC
17343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17344 (eval $ac_try) 2>&5
17345 ac_status=$?
17346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17347 (exit $ac_status); }; } &&
17348 { ac_try='test -s conftest$ac_exeext'
17349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17350 (eval $ac_try) 2>&5
17351 ac_status=$?
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); }; }; then
17354 eval "$as_ac_var=yes"
17355else
17356 echo "$as_me: failed program was:" >&5
17357sed 's/^/| /' conftest.$ac_ext >&5
17358
b4e70030 17359eval "$as_ac_var=no"
bec39cab
AC
17360fi
17361rm -f conftest.err conftest.$ac_objext \
17362 conftest$ac_exeext conftest.$ac_ext
17363fi
b4e70030
JB
17364echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17365echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
17366if test `eval echo '${'$as_ac_var'}'` = yes; then
17367 cat >>confdefs.h <<_ACEOF
17368#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17369_ACEOF
b757528f 17370
b757528f
JJ
17371fi
17372done
17373
bec39cab 17374
a3828db0
MK
17375
17376for ac_func in setpgid setpgrp
bcb3dc3d 17377do
bec39cab 17378as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17379echo "$as_me:$LINENO: checking for $ac_func" >&5
17380echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17381if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17382 echo $ECHO_N "(cached) $ECHO_C" >&6
17383else
17384 cat >conftest.$ac_ext <<_ACEOF
17385/* confdefs.h. */
17386_ACEOF
17387cat confdefs.h >>conftest.$ac_ext
17388cat >>conftest.$ac_ext <<_ACEOF
17389/* end confdefs.h. */
17390/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17391 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17392#define $ac_func innocuous_$ac_func
17393
bcb3dc3d 17394/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
17395 which can conflict with char $ac_func (); below.
17396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17397 <limits.h> exists even on freestanding compilers. */
17398
17399#ifdef __STDC__
17400# include <limits.h>
17401#else
17402# include <assert.h>
17403#endif
bcb3dc3d 17404
bec39cab 17405#undef $ac_func
bcb3dc3d 17406
b4e70030 17407/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
17408#ifdef __cplusplus
17409extern "C"
b4e70030 17410{
bec39cab 17411#endif
b4e70030
JB
17412/* We use char because int might match the return type of a gcc2
17413 builtin and then its argument prototype would still apply. */
bec39cab 17414char $ac_func ();
bcb3dc3d
MK
17415/* The GNU C library defines this for functions which it implements
17416 to always fail with ENOSYS. Some functions are actually named
17417 something starting with __ and the normal name is an alias. */
b4e70030 17418#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
bcb3dc3d 17419choke me
b4e70030
JB
17420#else
17421char (*f) () = $ac_func;
17422#endif
17423#ifdef __cplusplus
17424}
bcb3dc3d
MK
17425#endif
17426
bec39cab
AC
17427int
17428main ()
17429{
b4e70030 17430return f != $ac_func;
bec39cab
AC
17431 ;
17432 return 0;
17433}
17434_ACEOF
17435rm -f conftest.$ac_objext conftest$ac_exeext
17436if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17437 (eval $ac_link) 2>conftest.er1
17438 ac_status=$?
17439 grep -v '^ *+' conftest.er1 >conftest.err
17440 rm -f conftest.er1
17441 cat conftest.err >&5
17442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17443 (exit $ac_status); } &&
b4e70030
JB
17444 { ac_try='test -z "$ac_c_werror_flag"
17445 || test ! -s conftest.err'
bec39cab
AC
17446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17447 (eval $ac_try) 2>&5
17448 ac_status=$?
17449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); }; } &&
17451 { ac_try='test -s conftest$ac_exeext'
17452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17453 (eval $ac_try) 2>&5
17454 ac_status=$?
17455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456 (exit $ac_status); }; }; then
17457 eval "$as_ac_var=yes"
17458else
17459 echo "$as_me: failed program was:" >&5
17460sed 's/^/| /' conftest.$ac_ext >&5
17461
b4e70030 17462eval "$as_ac_var=no"
bec39cab
AC
17463fi
17464rm -f conftest.err conftest.$ac_objext \
17465 conftest$ac_exeext conftest.$ac_ext
17466fi
b4e70030
JB
17467echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17468echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
bec39cab
AC
17469if test `eval echo '${'$as_ac_var'}'` = yes; then
17470 cat >>confdefs.h <<_ACEOF
17471#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17472_ACEOF
bcb3dc3d 17473
bcb3dc3d
MK
17474fi
17475done
17476
bec39cab 17477
a3828db0
MK
17478
17479
17480for ac_func in sigaction sigprocmask sigsetmask
8b9cf735 17481do
bec39cab 17482as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17483echo "$as_me:$LINENO: checking for $ac_func" >&5
17484echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17485if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17486 echo $ECHO_N "(cached) $ECHO_C" >&6
17487else
17488 cat >conftest.$ac_ext <<_ACEOF
17489/* confdefs.h. */
17490_ACEOF
17491cat confdefs.h >>conftest.$ac_ext
17492cat >>conftest.$ac_ext <<_ACEOF
17493/* end confdefs.h. */
17494/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17496#define $ac_func innocuous_$ac_func
17497
8b9cf735 17498/* System header to define __stub macros and hopefully few prototypes,
bec39cab
AC
17499 which can conflict with char $ac_func (); below.
17500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17501 <limits.h> exists even on freestanding compilers. */
17502
17503#ifdef __STDC__
17504# include <limits.h>
17505#else
17506# include <assert.h>
17507#endif
8b9cf735 17508
bec39cab 17509#undef $ac_func
8b9cf735 17510
b4e70030 17511/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
17512#ifdef __cplusplus
17513extern "C"
b4e70030 17514{
a3828db0 17515#endif
b4e70030
JB
17516/* We use char because int might match the return type of a gcc2
17517 builtin and then its argument prototype would still apply. */
a3828db0
MK
17518char $ac_func ();
17519/* The GNU C library defines this for functions which it implements
17520 to always fail with ENOSYS. Some functions are actually named
17521 something starting with __ and the normal name is an alias. */
b4e70030 17522#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 17523choke me
b4e70030
JB
17524#else
17525char (*f) () = $ac_func;
17526#endif
17527#ifdef __cplusplus
17528}
a3828db0
MK
17529#endif
17530
bec39cab
AC
17531int
17532main ()
17533{
b4e70030 17534return f != $ac_func;
bec39cab
AC
17535 ;
17536 return 0;
17537}
17538_ACEOF
a3828db0
MK
17539rm -f conftest.$ac_objext conftest$ac_exeext
17540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17541 (eval $ac_link) 2>conftest.er1
bec39cab
AC
17542 ac_status=$?
17543 grep -v '^ *+' conftest.er1 >conftest.err
17544 rm -f conftest.er1
17545 cat conftest.err >&5
17546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547 (exit $ac_status); } &&
b4e70030
JB
17548 { ac_try='test -z "$ac_c_werror_flag"
17549 || test ! -s conftest.err'
bec39cab
AC
17550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17551 (eval $ac_try) 2>&5
17552 ac_status=$?
17553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554 (exit $ac_status); }; } &&
a3828db0 17555 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
17556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17557 (eval $ac_try) 2>&5
17558 ac_status=$?
17559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560 (exit $ac_status); }; }; then
a3828db0 17561 eval "$as_ac_var=yes"
086ec9eb 17562else
bec39cab
AC
17563 echo "$as_me: failed program was:" >&5
17564sed 's/^/| /' conftest.$ac_ext >&5
17565
b4e70030 17566eval "$as_ac_var=no"
a3828db0
MK
17567fi
17568rm -f conftest.err conftest.$ac_objext \
17569 conftest$ac_exeext conftest.$ac_ext
17570fi
b4e70030
JB
17571echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17572echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
17573if test `eval echo '${'$as_ac_var'}'` = yes; then
17574 cat >>confdefs.h <<_ACEOF
17575#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17576_ACEOF
17577
086ec9eb 17578fi
a3828db0
MK
17579done
17580
17581
17582for ac_func in socketpair
17583do
17584as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17585echo "$as_me:$LINENO: checking for $ac_func" >&5
17586echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17587if eval "test \"\${$as_ac_var+set}\" = set"; then
a3828db0
MK
17588 echo $ECHO_N "(cached) $ECHO_C" >&6
17589else
17590 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
17591/* confdefs.h. */
17592_ACEOF
17593cat confdefs.h >>conftest.$ac_ext
17594cat >>conftest.$ac_ext <<_ACEOF
17595/* end confdefs.h. */
a3828db0
MK
17596/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17597 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17598#define $ac_func innocuous_$ac_func
17599
17600/* System header to define __stub macros and hopefully few prototypes,
17601 which can conflict with char $ac_func (); below.
17602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17603 <limits.h> exists even on freestanding compilers. */
17604
17605#ifdef __STDC__
17606# include <limits.h>
17607#else
17608# include <assert.h>
17609#endif
17610
17611#undef $ac_func
17612
b4e70030 17613/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
17614#ifdef __cplusplus
17615extern "C"
b4e70030 17616{
a3828db0 17617#endif
b4e70030
JB
17618/* We use char because int might match the return type of a gcc2
17619 builtin and then its argument prototype would still apply. */
a3828db0
MK
17620char $ac_func ();
17621/* The GNU C library defines this for functions which it implements
17622 to always fail with ENOSYS. Some functions are actually named
17623 something starting with __ and the normal name is an alias. */
b4e70030 17624#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 17625choke me
b4e70030
JB
17626#else
17627char (*f) () = $ac_func;
17628#endif
17629#ifdef __cplusplus
17630}
a3828db0
MK
17631#endif
17632
bec39cab
AC
17633int
17634main ()
17635{
b4e70030 17636return f != $ac_func;
bec39cab
AC
17637 ;
17638 return 0;
17639}
17640_ACEOF
a3828db0
MK
17641rm -f conftest.$ac_objext conftest$ac_exeext
17642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17643 (eval $ac_link) 2>conftest.er1
bec39cab
AC
17644 ac_status=$?
17645 grep -v '^ *+' conftest.er1 >conftest.err
17646 rm -f conftest.er1
17647 cat conftest.err >&5
17648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17649 (exit $ac_status); } &&
b4e70030
JB
17650 { ac_try='test -z "$ac_c_werror_flag"
17651 || test ! -s conftest.err'
bec39cab
AC
17652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17653 (eval $ac_try) 2>&5
17654 ac_status=$?
17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); }; } &&
a3828db0 17657 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
17658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17659 (eval $ac_try) 2>&5
17660 ac_status=$?
17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); }; }; then
a3828db0 17663 eval "$as_ac_var=yes"
086ec9eb 17664else
bec39cab
AC
17665 echo "$as_me: failed program was:" >&5
17666sed 's/^/| /' conftest.$ac_ext >&5
17667
b4e70030 17668eval "$as_ac_var=no"
086ec9eb 17669fi
a3828db0
MK
17670rm -f conftest.err conftest.$ac_objext \
17671 conftest$ac_exeext conftest.$ac_ext
086ec9eb 17672fi
b4e70030
JB
17673echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17674echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
17675if test `eval echo '${'$as_ac_var'}'` = yes; then
17676 cat >>confdefs.h <<_ACEOF
17677#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 17678_ACEOF
086ec9eb
MK
17679
17680fi
a3828db0 17681done
086ec9eb 17682
a3828db0
MK
17683
17684for ac_func in syscall
17685do
17686as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17687echo "$as_me:$LINENO: checking for $ac_func" >&5
17688echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17689if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 17690 echo $ECHO_N "(cached) $ECHO_C" >&6
bec39cab
AC
17691else
17692 cat >conftest.$ac_ext <<_ACEOF
17693/* confdefs.h. */
17694_ACEOF
17695cat confdefs.h >>conftest.$ac_ext
17696cat >>conftest.$ac_ext <<_ACEOF
17697/* end confdefs.h. */
a3828db0
MK
17698/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17699 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17700#define $ac_func innocuous_$ac_func
17701
17702/* System header to define __stub macros and hopefully few prototypes,
17703 which can conflict with char $ac_func (); below.
17704 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17705 <limits.h> exists even on freestanding compilers. */
17706
17707#ifdef __STDC__
17708# include <limits.h>
17709#else
17710# include <assert.h>
17711#endif
17712
17713#undef $ac_func
17714
b4e70030 17715/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
17716#ifdef __cplusplus
17717extern "C"
b4e70030 17718{
a3828db0 17719#endif
b4e70030
JB
17720/* We use char because int might match the return type of a gcc2
17721 builtin and then its argument prototype would still apply. */
a3828db0
MK
17722char $ac_func ();
17723/* The GNU C library defines this for functions which it implements
17724 to always fail with ENOSYS. Some functions are actually named
17725 something starting with __ and the normal name is an alias. */
b4e70030 17726#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 17727choke me
b4e70030
JB
17728#else
17729char (*f) () = $ac_func;
17730#endif
17731#ifdef __cplusplus
17732}
c906108c 17733#endif
97bf5e38 17734
bec39cab
AC
17735int
17736main ()
97bf5e38 17737{
b4e70030 17738return f != $ac_func;
bec39cab
AC
17739 ;
17740 return 0;
97bf5e38 17741}
bec39cab 17742_ACEOF
a3828db0 17743rm -f conftest.$ac_objext conftest$ac_exeext
bec39cab 17744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
a3828db0 17745 (eval $ac_link) 2>conftest.er1
bec39cab 17746 ac_status=$?
a3828db0
MK
17747 grep -v '^ *+' conftest.er1 >conftest.err
17748 rm -f conftest.er1
17749 cat conftest.err >&5
bec39cab 17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 17751 (exit $ac_status); } &&
b4e70030
JB
17752 { ac_try='test -z "$ac_c_werror_flag"
17753 || test ! -s conftest.err'
a3828db0
MK
17754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17755 (eval $ac_try) 2>&5
17756 ac_status=$?
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); }; } &&
17759 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
17760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17761 (eval $ac_try) 2>&5
17762 ac_status=$?
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); }; }; then
a3828db0 17765 eval "$as_ac_var=yes"
c906108c 17766else
a3828db0 17767 echo "$as_me: failed program was:" >&5
bec39cab
AC
17768sed 's/^/| /' conftest.$ac_ext >&5
17769
b4e70030 17770eval "$as_ac_var=no"
97bf5e38 17771fi
a3828db0
MK
17772rm -f conftest.err conftest.$ac_objext \
17773 conftest$ac_exeext conftest.$ac_ext
17774fi
b4e70030
JB
17775echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17776echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
17777if test `eval echo '${'$as_ac_var'}'` = yes; then
17778 cat >>confdefs.h <<_ACEOF
17779#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 17780_ACEOF
c906108c
SS
17781
17782fi
a3828db0 17783done
c906108c 17784
a3828db0
MK
17785
17786for ac_func in ttrace
17787do
17788as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17789echo "$as_me:$LINENO: checking for $ac_func" >&5
17790echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17791if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab 17792 echo $ECHO_N "(cached) $ECHO_C" >&6
b83266a0 17793else
bec39cab
AC
17794 cat >conftest.$ac_ext <<_ACEOF
17795/* confdefs.h. */
17796_ACEOF
17797cat confdefs.h >>conftest.$ac_ext
17798cat >>conftest.$ac_ext <<_ACEOF
17799/* end confdefs.h. */
a3828db0
MK
17800/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17802#define $ac_func innocuous_$ac_func
b83266a0 17803
a3828db0
MK
17804/* System header to define __stub macros and hopefully few prototypes,
17805 which can conflict with char $ac_func (); below.
17806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17807 <limits.h> exists even on freestanding compilers. */
17808
17809#ifdef __STDC__
17810# include <limits.h>
17811#else
17812# include <assert.h>
17813#endif
17814
17815#undef $ac_func
17816
b4e70030 17817/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
17818#ifdef __cplusplus
17819extern "C"
b4e70030 17820{
a3828db0 17821#endif
b4e70030
JB
17822/* We use char because int might match the return type of a gcc2
17823 builtin and then its argument prototype would still apply. */
a3828db0
MK
17824char $ac_func ();
17825/* The GNU C library defines this for functions which it implements
17826 to always fail with ENOSYS. Some functions are actually named
17827 something starting with __ and the normal name is an alias. */
b4e70030 17828#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 17829choke me
b4e70030
JB
17830#else
17831char (*f) () = $ac_func;
17832#endif
17833#ifdef __cplusplus
17834}
a3828db0 17835#endif
97bf5e38 17836
bec39cab
AC
17837int
17838main ()
17839{
b4e70030 17840return f != $ac_func;
bec39cab
AC
17841 ;
17842 return 0;
17843}
17844_ACEOF
a3828db0
MK
17845rm -f conftest.$ac_objext conftest$ac_exeext
17846if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17847 (eval $ac_link) 2>conftest.er1
bec39cab
AC
17848 ac_status=$?
17849 grep -v '^ *+' conftest.er1 >conftest.err
17850 rm -f conftest.er1
17851 cat conftest.err >&5
17852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17853 (exit $ac_status); } &&
b4e70030
JB
17854 { ac_try='test -z "$ac_c_werror_flag"
17855 || test ! -s conftest.err'
bec39cab
AC
17856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17857 (eval $ac_try) 2>&5
17858 ac_status=$?
17859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860 (exit $ac_status); }; } &&
a3828db0 17861 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
17862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17863 (eval $ac_try) 2>&5
17864 ac_status=$?
17865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866 (exit $ac_status); }; }; then
a3828db0 17867 eval "$as_ac_var=yes"
b83266a0 17868else
bec39cab
AC
17869 echo "$as_me: failed program was:" >&5
17870sed 's/^/| /' conftest.$ac_ext >&5
17871
b4e70030 17872eval "$as_ac_var=no"
b83266a0 17873fi
a3828db0
MK
17874rm -f conftest.err conftest.$ac_objext \
17875 conftest$ac_exeext conftest.$ac_ext
b83266a0 17876fi
b4e70030
JB
17877echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17878echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
17879if test `eval echo '${'$as_ac_var'}'` = yes; then
17880 cat >>confdefs.h <<_ACEOF
17881#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 17882_ACEOF
b83266a0 17883
97bf5e38 17884fi
a3828db0 17885done
b83266a0 17886
a3828db0
MK
17887
17888for ac_func in wborder
17889do
17890as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
b4e70030
JB
17891echo "$as_me:$LINENO: checking for $ac_func" >&5
17892echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17893if eval "test \"\${$as_ac_var+set}\" = set"; then
bec39cab
AC
17894 echo $ECHO_N "(cached) $ECHO_C" >&6
17895else
17896 cat >conftest.$ac_ext <<_ACEOF
17897/* confdefs.h. */
17898_ACEOF
17899cat confdefs.h >>conftest.$ac_ext
17900cat >>conftest.$ac_ext <<_ACEOF
17901/* end confdefs.h. */
a3828db0
MK
17902/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17904#define $ac_func innocuous_$ac_func
a4db0f07 17905
a3828db0
MK
17906/* System header to define __stub macros and hopefully few prototypes,
17907 which can conflict with char $ac_func (); below.
17908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17909 <limits.h> exists even on freestanding compilers. */
17910
17911#ifdef __STDC__
17912# include <limits.h>
17913#else
17914# include <assert.h>
17915#endif
17916
17917#undef $ac_func
17918
b4e70030 17919/* Override any gcc2 internal prototype to avoid an error. */
a3828db0
MK
17920#ifdef __cplusplus
17921extern "C"
b4e70030 17922{
a3828db0 17923#endif
b4e70030
JB
17924/* We use char because int might match the return type of a gcc2
17925 builtin and then its argument prototype would still apply. */
a3828db0
MK
17926char $ac_func ();
17927/* The GNU C library defines this for functions which it implements
17928 to always fail with ENOSYS. Some functions are actually named
17929 something starting with __ and the normal name is an alias. */
b4e70030 17930#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
a3828db0 17931choke me
b4e70030
JB
17932#else
17933char (*f) () = $ac_func;
17934#endif
17935#ifdef __cplusplus
17936}
a3828db0 17937#endif
97bf5e38 17938
bec39cab
AC
17939int
17940main ()
17941{
b4e70030 17942return f != $ac_func;
bec39cab
AC
17943 ;
17944 return 0;
17945}
17946_ACEOF
a3828db0
MK
17947rm -f conftest.$ac_objext conftest$ac_exeext
17948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17949 (eval $ac_link) 2>conftest.er1
bec39cab
AC
17950 ac_status=$?
17951 grep -v '^ *+' conftest.er1 >conftest.err
17952 rm -f conftest.er1
17953 cat conftest.err >&5
17954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955 (exit $ac_status); } &&
b4e70030
JB
17956 { ac_try='test -z "$ac_c_werror_flag"
17957 || test ! -s conftest.err'
bec39cab
AC
17958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17959 (eval $ac_try) 2>&5
17960 ac_status=$?
17961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17962 (exit $ac_status); }; } &&
a3828db0 17963 { ac_try='test -s conftest$ac_exeext'
bec39cab
AC
17964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17965 (eval $ac_try) 2>&5
17966 ac_status=$?
17967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17968 (exit $ac_status); }; }; then
a3828db0 17969 eval "$as_ac_var=yes"
a4db0f07 17970else
bec39cab
AC
17971 echo "$as_me: failed program was:" >&5
17972sed 's/^/| /' conftest.$ac_ext >&5
17973
b4e70030 17974eval "$as_ac_var=no"
a4db0f07 17975fi
a3828db0
MK
17976rm -f conftest.err conftest.$ac_objext \
17977 conftest$ac_exeext conftest.$ac_ext
a4db0f07 17978fi
b4e70030
JB
17979echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17980echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
a3828db0
MK
17981if test `eval echo '${'$as_ac_var'}'` = yes; then
17982 cat >>confdefs.h <<_ACEOF
17983#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
bec39cab 17984_ACEOF
a4db0f07
RH
17985
17986fi
a3828db0 17987done
c906108c 17988
06825bd1 17989
a3828db0
MK
17990# Check the return and argument types of ptrace. No canned test for
17991# this, so roll our own.
17992gdb_ptrace_headers='
17993#if HAVE_SYS_TYPES_H
17994# include <sys/types.h>
17995#endif
17996#if HAVE_SYS_PTRACE_H
17997# include <sys/ptrace.h>
17998#endif
17999#if HAVE_UNISTD_H
18000# include <unistd.h>
18001#endif
18002'
18003# There is no point in checking if we don't have a prototype.
b4e70030
JB
18004echo "$as_me:$LINENO: checking whether ptrace is declared" >&5
18005echo $ECHO_N "checking whether ptrace is declared... $ECHO_C" >&6
a3828db0 18006if test "${ac_cv_have_decl_ptrace+set}" = set; then
bec39cab
AC
18007 echo $ECHO_N "(cached) $ECHO_C" >&6
18008else
18009 cat >conftest.$ac_ext <<_ACEOF
18010/* confdefs.h. */
18011_ACEOF
18012cat confdefs.h >>conftest.$ac_ext
18013cat >>conftest.$ac_ext <<_ACEOF
18014/* end confdefs.h. */
a3828db0
MK
18015$gdb_ptrace_headers
18016
bec39cab
AC
18017int
18018main ()
18019{
a3828db0
MK
18020#ifndef ptrace
18021 char *p = (char *) ptrace;
06825bd1 18022#endif
a3828db0 18023
bec39cab
AC
18024 ;
18025 return 0;
18026}
18027_ACEOF
18028rm -f conftest.$ac_objext
18029if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18030 (eval $ac_compile) 2>conftest.er1
18031 ac_status=$?
18032 grep -v '^ *+' conftest.er1 >conftest.err
18033 rm -f conftest.er1
18034 cat conftest.err >&5
18035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18036 (exit $ac_status); } &&
b4e70030
JB
18037 { ac_try='test -z "$ac_c_werror_flag"
18038 || test ! -s conftest.err'
bec39cab
AC
18039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18040 (eval $ac_try) 2>&5
18041 ac_status=$?
18042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18043 (exit $ac_status); }; } &&
18044 { ac_try='test -s conftest.$ac_objext'
18045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18046 (eval $ac_try) 2>&5
18047 ac_status=$?
18048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049 (exit $ac_status); }; }; then
a3828db0 18050 ac_cv_have_decl_ptrace=yes
06825bd1 18051else
bec39cab
AC
18052 echo "$as_me: failed program was:" >&5
18053sed 's/^/| /' conftest.$ac_ext >&5
18054
b4e70030 18055ac_cv_have_decl_ptrace=no
06825bd1 18056fi
bec39cab 18057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
06825bd1 18058fi
b4e70030
JB
18059echo "$as_me:$LINENO: result: $ac_cv_have_decl_ptrace" >&5
18060echo "${ECHO_T}$ac_cv_have_decl_ptrace" >&6
a3828db0 18061if test $ac_cv_have_decl_ptrace = yes; then
06825bd1 18062
a3828db0
MK
18063cat >>confdefs.h <<_ACEOF
18064#define HAVE_DECL_PTRACE 1
18065_ACEOF
bec39cab 18066
bec39cab 18067
a3828db0
MK
18068else
18069 cat >>confdefs.h <<_ACEOF
18070#define HAVE_DECL_PTRACE 0
bec39cab 18071_ACEOF
06825bd1 18072
a3828db0
MK
18073
18074 : ${gdb_cv_func_ptrace_ret='int'}
18075 : ${gdb_cv_func_ptrace_args='int,int,long,long'}
18076
06825bd1
MK
18077fi
18078
a3828db0
MK
18079
18080# Check return type.
b4e70030
JB
18081echo "$as_me:$LINENO: checking return type of ptrace" >&5
18082echo $ECHO_N "checking return type of ptrace... $ECHO_C" >&6
a3828db0 18083if test "${gdb_cv_func_ptrace_ret+set}" = set; then
bec39cab
AC
18084 echo $ECHO_N "(cached) $ECHO_C" >&6
18085else
18086 cat >conftest.$ac_ext <<_ACEOF
18087/* confdefs.h. */
18088_ACEOF
18089cat confdefs.h >>conftest.$ac_ext
18090cat >>conftest.$ac_ext <<_ACEOF
18091/* end confdefs.h. */
a3828db0 18092$gdb_ptrace_headers
bec39cab
AC
18093int
18094main ()
18095{
a3828db0 18096extern int ptrace ();
bec39cab
AC
18097 ;
18098 return 0;
18099}
18100_ACEOF
18101rm -f conftest.$ac_objext
18102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18103 (eval $ac_compile) 2>conftest.er1
18104 ac_status=$?
18105 grep -v '^ *+' conftest.er1 >conftest.err
18106 rm -f conftest.er1
18107 cat conftest.err >&5
18108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18109 (exit $ac_status); } &&
b4e70030
JB
18110 { ac_try='test -z "$ac_c_werror_flag"
18111 || test ! -s conftest.err'
bec39cab
AC
18112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18113 (eval $ac_try) 2>&5
18114 ac_status=$?
18115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); }; } &&
18117 { ac_try='test -s conftest.$ac_objext'
18118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18119 (eval $ac_try) 2>&5
18120 ac_status=$?
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); }; }; then
a3828db0 18123 gdb_cv_func_ptrace_ret='int'
70f9f479 18124else
bec39cab
AC
18125 echo "$as_me: failed program was:" >&5
18126sed 's/^/| /' conftest.$ac_ext >&5
18127
b4e70030 18128gdb_cv_func_ptrace_ret='long'
70f9f479 18129fi
bec39cab 18130rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
70f9f479 18131fi
b4e70030
JB
18132echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_ret" >&5
18133echo "${ECHO_T}$gdb_cv_func_ptrace_ret" >&6
bec39cab 18134
a3828db0
MK
18135cat >>confdefs.h <<_ACEOF
18136#define PTRACE_TYPE_RET $gdb_cv_func_ptrace_ret
bec39cab 18137_ACEOF
70f9f479 18138
a3828db0 18139# Check argument types.
b4e70030
JB
18140echo "$as_me:$LINENO: checking types of arguments for ptrace" >&5
18141echo $ECHO_N "checking types of arguments for ptrace... $ECHO_C" >&6
a3828db0 18142if test "${gdb_cv_func_ptrace_args+set}" = set; then
bec39cab
AC
18143 echo $ECHO_N "(cached) $ECHO_C" >&6
18144else
a3828db0
MK
18145
18146for gdb_arg1 in 'int' 'long'; do
18147 for gdb_arg2 in 'pid_t' 'int' 'long'; do
18148 for gdb_arg3 in 'int *' 'caddr_t' 'int' 'long'; do
18149 for gdb_arg4 in 'int' 'long'; do
18150 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
18151/* confdefs.h. */
18152_ACEOF
18153cat confdefs.h >>conftest.$ac_ext
18154cat >>conftest.$ac_ext <<_ACEOF
18155/* end confdefs.h. */
a3828db0 18156$gdb_ptrace_headers
bec39cab
AC
18157int
18158main ()
18159{
a3828db0
MK
18160
18161extern $gdb_cv_func_ptrace_ret
18162 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4);
18163
bec39cab
AC
18164 ;
18165 return 0;
18166}
18167_ACEOF
18168rm -f conftest.$ac_objext
18169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18170 (eval $ac_compile) 2>conftest.er1
18171 ac_status=$?
18172 grep -v '^ *+' conftest.er1 >conftest.err
18173 rm -f conftest.er1
18174 cat conftest.err >&5
18175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176 (exit $ac_status); } &&
b4e70030
JB
18177 { ac_try='test -z "$ac_c_werror_flag"
18178 || test ! -s conftest.err'
bec39cab
AC
18179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18180 (eval $ac_try) 2>&5
18181 ac_status=$?
18182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18183 (exit $ac_status); }; } &&
18184 { ac_try='test -s conftest.$ac_objext'
18185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18186 (eval $ac_try) 2>&5
18187 ac_status=$?
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); }; }; then
a3828db0
MK
18190 gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4";
18191 break 4;
5c7f2947 18192else
bec39cab
AC
18193 echo "$as_me: failed program was:" >&5
18194sed 's/^/| /' conftest.$ac_ext >&5
18195
5c7f2947 18196fi
bec39cab 18197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
18198 for gdb_arg5 in 'int *' 'int' 'long'; do
18199 cat >conftest.$ac_ext <<_ACEOF
bec39cab
AC
18200/* confdefs.h. */
18201_ACEOF
18202cat confdefs.h >>conftest.$ac_ext
18203cat >>conftest.$ac_ext <<_ACEOF
18204/* end confdefs.h. */
a3828db0 18205$gdb_ptrace_headers
bec39cab
AC
18206int
18207main ()
18208{
a3828db0
MK
18209
18210extern $gdb_cv_func_ptrace_ret
18211 ptrace ($gdb_arg1, $gdb_arg2, $gdb_arg3, $gdb_arg4, $gdb_arg5);
18212
bec39cab
AC
18213 ;
18214 return 0;
18215}
18216_ACEOF
18217rm -f conftest.$ac_objext
18218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18219 (eval $ac_compile) 2>conftest.er1
18220 ac_status=$?
18221 grep -v '^ *+' conftest.er1 >conftest.err
18222 rm -f conftest.er1
18223 cat conftest.err >&5
18224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225 (exit $ac_status); } &&
b4e70030
JB
18226 { ac_try='test -z "$ac_c_werror_flag"
18227 || test ! -s conftest.err'
bec39cab
AC
18228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18229 (eval $ac_try) 2>&5
18230 ac_status=$?
18231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232 (exit $ac_status); }; } &&
18233 { ac_try='test -s conftest.$ac_objext'
18234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18235 (eval $ac_try) 2>&5
18236 ac_status=$?
18237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238 (exit $ac_status); }; }; then
a3828db0
MK
18239
18240gdb_cv_func_ptrace_args="$gdb_arg1,$gdb_arg2,$gdb_arg3,$gdb_arg4,$gdb_arg5";
18241 break 5;
78434e59 18242else
bec39cab
AC
18243 echo "$as_me: failed program was:" >&5
18244sed 's/^/| /' conftest.$ac_ext >&5
18245
78434e59 18246fi
bec39cab 18247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a3828db0
MK
18248 done
18249 done
18250 done
18251 done
18252done
18253# Provide a safe default value.
18254: ${gdb_cv_func_ptrace_args='int,int,long,long'}
18255
78434e59 18256fi
b4e70030
JB
18257echo "$as_me:$LINENO: result: $gdb_cv_func_ptrace_args" >&5
18258echo "${ECHO_T}$gdb_cv_func_ptrace_args" >&6
a3828db0
MK
18259ac_save_IFS=$IFS; IFS=','
18260set dummy `echo "$gdb_cv_func_ptrace_args" | sed 's/\*/\*/g'`
18261IFS=$ac_save_IFS
18262shift
bec39cab 18263
a3828db0
MK
18264cat >>confdefs.h <<_ACEOF
18265#define PTRACE_TYPE_ARG3 $3
18266_ACEOF
18267
18268if test -n "$5"; then
18269
18270cat >>confdefs.h <<_ACEOF
18271#define PTRACE_TYPE_ARG5 $5
bec39cab 18272_ACEOF
78434e59
MK
18273
18274fi
18275
a3828db0 18276if test "$cross_compiling" = no; then
b4e70030
JB
18277 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
18278echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
a3828db0 18279if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 18280 echo $ECHO_N "(cached) $ECHO_C" >&6
a3828db0
MK
18281else
18282 if test "$cross_compiling" = yes; then
18283 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
18284echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
18285 { (exit 1); exit 1; }; }
bec39cab
AC
18286else
18287 cat >conftest.$ac_ext <<_ACEOF
18288/* confdefs.h. */
18289_ACEOF
18290cat confdefs.h >>conftest.$ac_ext
18291cat >>conftest.$ac_ext <<_ACEOF
18292/* end confdefs.h. */
b4e70030
JB
18293#if HAVE_UNISTD_H
18294# include <unistd.h>
18295#endif
18296
bec39cab
AC
18297int
18298main ()
18299{
a3828db0
MK
18300/* If this system has a BSD-style setpgrp which takes arguments,
18301 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
18302 exit successfully. */
b4e70030 18303 exit (setpgrp (1,1) == -1 ? 0 : 1);
bec39cab
AC
18304 ;
18305 return 0;
18306}
18307_ACEOF
a3828db0
MK
18308rm -f conftest$ac_exeext
18309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18310 (eval $ac_link) 2>&5
bec39cab
AC
18311 ac_status=$?
18312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
a3828db0 18313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
bec39cab
AC
18314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18315 (eval $ac_try) 2>&5
18316 ac_status=$?
18317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318 (exit $ac_status); }; }; then
a3828db0 18319 ac_cv_func_setpgrp_void=no
c906108c 18320else
a3828db0
MK
18321 echo "$as_me: program exited with status $ac_status" >&5
18322echo "$as_me: failed program was:" >&5
bec39cab
AC
18323sed 's/^/| /' conftest.$ac_ext >&5
18324
a3828db0
MK
18325( exit $ac_status )
18326ac_cv_func_setpgrp_void=yes
c906108c 18327fi
b4e70030 18328rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 18329fi
a3828db0 18330fi
b4e70030
JB
18331echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
18332echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
a3828db0
MK
18333if test $ac_cv_func_setpgrp_void = yes; then
18334
18335cat >>confdefs.h <<\_ACEOF
18336#define SETPGRP_VOID 1
bec39cab 18337_ACEOF
97bf5e38
MK
18338
18339fi
a3828db0
MK
18340
18341else
b4e70030
JB
18342 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
18343echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
a3828db0 18344if test "${ac_cv_func_setpgrp_void+set}" = set; then
bec39cab 18345 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 18346else
bec39cab
AC
18347 cat >conftest.$ac_ext <<_ACEOF
18348/* confdefs.h. */
18349_ACEOF
18350cat confdefs.h >>conftest.$ac_ext
18351cat >>conftest.$ac_ext <<_ACEOF
18352/* end confdefs.h. */
a3828db0
MK
18353
18354#include <unistd.h>
18355
bec39cab
AC
18356int
18357main ()
18358{
a3828db0
MK
18359
18360 if (setpgrp(1,1) == -1)
18361 exit (0);
18362 else
18363 exit (1);
18364
bec39cab
AC
18365 ;
18366 return 0;
18367}
18368_ACEOF
18369rm -f conftest.$ac_objext
18370if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18371 (eval $ac_compile) 2>conftest.er1
18372 ac_status=$?
18373 grep -v '^ *+' conftest.er1 >conftest.err
18374 rm -f conftest.er1
18375 cat conftest.err >&5
18376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18377 (exit $ac_status); } &&
b4e70030
JB
18378 { ac_try='test -z "$ac_c_werror_flag"
18379 || test ! -s conftest.err'
bec39cab
AC
18380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18381 (eval $ac_try) 2>&5
18382 ac_status=$?
18383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18384 (exit $ac_status); }; } &&
18385 { ac_try='test -s conftest.$ac_objext'
18386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18387 (eval $ac_try) 2>&5
18388 ac_status=$?
18389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390 (exit $ac_status); }; }; then
a3828db0 18391 ac_cv_func_setpgrp_void=no
c906108c 18392else
bec39cab
AC
18393 echo "$as_me: failed program was:" >&5
18394sed 's/^/| /' conftest.$ac_ext >&5
18395
b4e70030 18396ac_cv_func_setpgrp_void=yes
c906108c 18397fi
bec39cab 18398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18399fi
b4e70030
JB
18400echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
18401echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
a3828db0 18402if test $ac_cv_func_setpgrp_void = yes; then
bec39cab 18403 cat >>confdefs.h <<\_ACEOF
a3828db0 18404#define SETPGRP_VOID 1
bec39cab 18405_ACEOF
c3f6f71d 18406
a3828db0 18407fi
c906108c
SS
18408fi
18409
a3828db0
MK
18410# Check if sigsetjmp is available. Using AC_CHECK_FUNCS won't do
18411# since sigsetjmp might only be defined as a macro.
b4e70030
JB
18412echo "$as_me:$LINENO: checking for sigsetjmp" >&5
18413echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
a3828db0 18414if test "${gdb_cv_func_sigsetjmp+set}" = set; then
bec39cab
AC
18415 echo $ECHO_N "(cached) $ECHO_C" >&6
18416else
18417 cat >conftest.$ac_ext <<_ACEOF
18418/* confdefs.h. */
18419_ACEOF
18420cat confdefs.h >>conftest.$ac_ext
18421cat >>conftest.$ac_ext <<_ACEOF
18422/* end confdefs.h. */
a3828db0
MK
18423
18424#include <setjmp.h>
18425
bec39cab
AC
18426int
18427main ()
18428{
a3828db0 18429sigjmp_buf env; while (! sigsetjmp (env, 1)) siglongjmp (env, 1);
bec39cab
AC
18430 ;
18431 return 0;
18432}
18433_ACEOF
18434rm -f conftest.$ac_objext
18435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18436 (eval $ac_compile) 2>conftest.er1
18437 ac_status=$?
18438 grep -v '^ *+' conftest.er1 >conftest.err
18439 rm -f conftest.er1
18440 cat conftest.err >&5
18441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18442 (exit $ac_status); } &&
b4e70030
JB
18443 { ac_try='test -z "$ac_c_werror_flag"
18444 || test ! -s conftest.err'
bec39cab
AC
18445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18446 (eval $ac_try) 2>&5
18447 ac_status=$?
18448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18449 (exit $ac_status); }; } &&
18450 { ac_try='test -s conftest.$ac_objext'
18451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18452 (eval $ac_try) 2>&5
18453 ac_status=$?
18454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455 (exit $ac_status); }; }; then
a3828db0 18456 gdb_cv_func_sigsetjmp=yes
c906108c 18457else
bec39cab
AC
18458 echo "$as_me: failed program was:" >&5
18459sed 's/^/| /' conftest.$ac_ext >&5
18460
b4e70030 18461gdb_cv_func_sigsetjmp=no
c906108c 18462fi
bec39cab 18463rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18464fi
b4e70030
JB
18465echo "$as_me:$LINENO: result: $gdb_cv_func_sigsetjmp" >&5
18466echo "${ECHO_T}$gdb_cv_func_sigsetjmp" >&6
a3828db0 18467if test $gdb_cv_func_sigsetjmp = yes; then
c906108c 18468
a3828db0
MK
18469cat >>confdefs.h <<\_ACEOF
18470#define HAVE_SIGSETJMP 1
bec39cab 18471_ACEOF
c906108c 18472
97bf5e38 18473fi
c906108c 18474
a3828db0
MK
18475# Assume we'll default to using the included libiberty regex.
18476gdb_use_included_regex=yes
18477
18478# However, if the system regex is GNU regex, then default to *not*
18479# using the included regex.
b4e70030
JB
18480echo "$as_me:$LINENO: checking for GNU regex" >&5
18481echo $ECHO_N "checking for GNU regex... $ECHO_C" >&6
a3828db0 18482if test "${gdb_cv_have_gnu_regex+set}" = set; then
bec39cab
AC
18483 echo $ECHO_N "(cached) $ECHO_C" >&6
18484else
18485 cat >conftest.$ac_ext <<_ACEOF
18486/* confdefs.h. */
18487_ACEOF
18488cat confdefs.h >>conftest.$ac_ext
18489cat >>conftest.$ac_ext <<_ACEOF
18490/* end confdefs.h. */
a3828db0 18491#include <gnu-versions.h>
bec39cab
AC
18492int
18493main ()
18494{
a3828db0
MK
18495#define REGEX_INTERFACE_VERSION 1
18496#if _GNU_REGEX_INTERFACE_VERSION != REGEX_INTERFACE_VERSION
18497# error "Version mismatch"
18498#endif
bec39cab
AC
18499 ;
18500 return 0;
18501}
18502_ACEOF
18503rm -f conftest.$ac_objext
18504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18505 (eval $ac_compile) 2>conftest.er1
18506 ac_status=$?
18507 grep -v '^ *+' conftest.er1 >conftest.err
18508 rm -f conftest.er1
18509 cat conftest.err >&5
18510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18511 (exit $ac_status); } &&
b4e70030
JB
18512 { ac_try='test -z "$ac_c_werror_flag"
18513 || test ! -s conftest.err'
bec39cab
AC
18514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18515 (eval $ac_try) 2>&5
18516 ac_status=$?
18517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518 (exit $ac_status); }; } &&
18519 { ac_try='test -s conftest.$ac_objext'
18520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18521 (eval $ac_try) 2>&5
18522 ac_status=$?
18523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18524 (exit $ac_status); }; }; then
a3828db0 18525 gdb_cv_have_gnu_regex=yes
c906108c 18526else
bec39cab
AC
18527 echo "$as_me: failed program was:" >&5
18528sed 's/^/| /' conftest.$ac_ext >&5
18529
b4e70030 18530gdb_cv_have_gnu_regex=no
c906108c 18531fi
bec39cab 18532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18533fi
b4e70030
JB
18534echo "$as_me:$LINENO: result: $gdb_cv_have_gnu_regex" >&5
18535echo "${ECHO_T}$gdb_cv_have_gnu_regex" >&6
a3828db0
MK
18536if test $gdb_cv_have_gnu_regex = yes; then
18537 gdb_use_included_regex=no
18538fi
c906108c 18539
a3828db0 18540
b4e70030 18541# Check whether --with-included-regex or --without-included-regex was given.
a3828db0 18542if test "${with_included_regex+set}" = set; then
b4e70030
JB
18543 withval="$with_included_regex"
18544 gdb_with_regex=$withval
a3828db0
MK
18545else
18546 gdb_with_regex=$gdb_use_included_regex
b4e70030 18547fi;
a3828db0
MK
18548if test "$gdb_with_regex" = yes; then
18549
18550cat >>confdefs.h <<\_ACEOF
18551#define USE_INCLUDED_REGEX 1
bec39cab 18552_ACEOF
c906108c 18553
97bf5e38 18554fi
c906108c 18555
5c45e068 18556# Check if <sys/proc.h> defines `struct thread' with a td_pcb member.
b4e70030
JB
18557echo "$as_me:$LINENO: checking for struct thread.td_pcb" >&5
18558echo $ECHO_N "checking for struct thread.td_pcb... $ECHO_C" >&6
5c45e068 18559if test "${ac_cv_member_struct_thread_td_pcb+set}" = set; then
bec39cab
AC
18560 echo $ECHO_N "(cached) $ECHO_C" >&6
18561else
18562 cat >conftest.$ac_ext <<_ACEOF
18563/* confdefs.h. */
18564_ACEOF
18565cat confdefs.h >>conftest.$ac_ext
18566cat >>conftest.$ac_ext <<_ACEOF
18567/* end confdefs.h. */
a3828db0
MK
18568#include <sys/param.h>
18569#include <sys/proc.h>
5c45e068
MK
18570
18571
bec39cab
AC
18572int
18573main ()
18574{
5c45e068
MK
18575static struct thread ac_aggr;
18576if (ac_aggr.td_pcb)
18577return 0;
bec39cab
AC
18578 ;
18579 return 0;
18580}
18581_ACEOF
18582rm -f conftest.$ac_objext
18583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18584 (eval $ac_compile) 2>conftest.er1
18585 ac_status=$?
18586 grep -v '^ *+' conftest.er1 >conftest.err
18587 rm -f conftest.er1
18588 cat conftest.err >&5
18589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18590 (exit $ac_status); } &&
b4e70030
JB
18591 { ac_try='test -z "$ac_c_werror_flag"
18592 || test ! -s conftest.err'
bec39cab
AC
18593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18594 (eval $ac_try) 2>&5
18595 ac_status=$?
18596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18597 (exit $ac_status); }; } &&
18598 { ac_try='test -s conftest.$ac_objext'
18599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18600 (eval $ac_try) 2>&5
18601 ac_status=$?
18602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603 (exit $ac_status); }; }; then
5c45e068 18604 ac_cv_member_struct_thread_td_pcb=yes
c906108c 18605else
bec39cab
AC
18606 echo "$as_me: failed program was:" >&5
18607sed 's/^/| /' conftest.$ac_ext >&5
18608
b4e70030 18609cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
18610/* confdefs.h. */
18611_ACEOF
18612cat confdefs.h >>conftest.$ac_ext
18613cat >>conftest.$ac_ext <<_ACEOF
18614/* end confdefs.h. */
18615#include <sys/param.h>
18616#include <sys/proc.h>
18617
18618
18619int
18620main ()
18621{
18622static struct thread ac_aggr;
18623if (sizeof ac_aggr.td_pcb)
18624return 0;
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'
5c45e068
MK
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
18651 ac_cv_member_struct_thread_td_pcb=yes
18652else
18653 echo "$as_me: failed program was:" >&5
18654sed 's/^/| /' conftest.$ac_ext >&5
18655
b4e70030 18656ac_cv_member_struct_thread_td_pcb=no
5c45e068
MK
18657fi
18658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18659fi
bec39cab 18660rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18661fi
b4e70030
JB
18662echo "$as_me:$LINENO: result: $ac_cv_member_struct_thread_td_pcb" >&5
18663echo "${ECHO_T}$ac_cv_member_struct_thread_td_pcb" >&6
5c45e068 18664if test $ac_cv_member_struct_thread_td_pcb = yes; then
c906108c 18665
5c45e068 18666cat >>confdefs.h <<_ACEOF
a3828db0 18667#define HAVE_STRUCT_THREAD_TD_PCB 1
bec39cab 18668_ACEOF
c906108c 18669
5c45e068 18670
97bf5e38 18671fi
c906108c 18672
5c45e068 18673
a3828db0 18674# See if <sys/lwp.h> defines `struct lwp`.
b4e70030
JB
18675echo "$as_me:$LINENO: checking for struct lwp" >&5
18676echo $ECHO_N "checking for struct lwp... $ECHO_C" >&6
a3828db0 18677if test "${gdb_cv_struct_lwp+set}" = set; then
bec39cab
AC
18678 echo $ECHO_N "(cached) $ECHO_C" >&6
18679else
18680 cat >conftest.$ac_ext <<_ACEOF
18681/* confdefs.h. */
18682_ACEOF
18683cat confdefs.h >>conftest.$ac_ext
18684cat >>conftest.$ac_ext <<_ACEOF
18685/* end confdefs.h. */
a3828db0
MK
18686#include <sys/param.h>
18687#include <sys/lwp.h>
bec39cab
AC
18688int
18689main ()
18690{
a3828db0 18691struct lwp l;
bec39cab
AC
18692 ;
18693 return 0;
18694}
18695_ACEOF
18696rm -f conftest.$ac_objext
18697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18698 (eval $ac_compile) 2>conftest.er1
18699 ac_status=$?
18700 grep -v '^ *+' conftest.er1 >conftest.err
18701 rm -f conftest.er1
18702 cat conftest.err >&5
18703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704 (exit $ac_status); } &&
b4e70030
JB
18705 { ac_try='test -z "$ac_c_werror_flag"
18706 || test ! -s conftest.err'
bec39cab
AC
18707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18708 (eval $ac_try) 2>&5
18709 ac_status=$?
18710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18711 (exit $ac_status); }; } &&
18712 { ac_try='test -s conftest.$ac_objext'
18713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18714 (eval $ac_try) 2>&5
18715 ac_status=$?
18716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18717 (exit $ac_status); }; }; then
a3828db0 18718 gdb_cv_struct_lwp=yes
c906108c 18719else
bec39cab
AC
18720 echo "$as_me: failed program was:" >&5
18721sed 's/^/| /' conftest.$ac_ext >&5
18722
b4e70030 18723gdb_cv_struct_lwp=no
c906108c 18724fi
bec39cab 18725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 18726fi
b4e70030
JB
18727echo "$as_me:$LINENO: result: $gdb_cv_struct_lwp" >&5
18728echo "${ECHO_T}$gdb_cv_struct_lwp" >&6
a3828db0 18729if test $gdb_cv_struct_lwp = yes; then
c906108c 18730
a3828db0
MK
18731cat >>confdefs.h <<\_ACEOF
18732#define HAVE_STRUCT_LWP 1
bec39cab 18733_ACEOF
c906108c 18734
97bf5e38 18735fi
c906108c 18736
a3828db0 18737# See if <machine/reg.h> degines `struct reg'.
b4e70030
JB
18738echo "$as_me:$LINENO: checking for struct reg in machine/reg.h" >&5
18739echo $ECHO_N "checking for struct reg in machine/reg.h... $ECHO_C" >&6
a3828db0 18740if test "${gdb_cv_struct_reg+set}" = set; then
bec39cab
AC
18741 echo $ECHO_N "(cached) $ECHO_C" >&6
18742else
18743 cat >conftest.$ac_ext <<_ACEOF
18744/* confdefs.h. */
18745_ACEOF
18746cat confdefs.h >>conftest.$ac_ext
18747cat >>conftest.$ac_ext <<_ACEOF
18748/* end confdefs.h. */
a3828db0
MK
18749#include <sys/types.h>
18750#include <machine/reg.h>
bec39cab
AC
18751int
18752main ()
18753{
a3828db0 18754struct reg r;
bec39cab
AC
18755 ;
18756 return 0;
18757}
18758_ACEOF
18759rm -f conftest.$ac_objext
18760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18761 (eval $ac_compile) 2>conftest.er1
18762 ac_status=$?
18763 grep -v '^ *+' conftest.er1 >conftest.err
18764 rm -f conftest.er1
18765 cat conftest.err >&5
18766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767 (exit $ac_status); } &&
b4e70030
JB
18768 { ac_try='test -z "$ac_c_werror_flag"
18769 || test ! -s conftest.err'
bec39cab
AC
18770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18771 (eval $ac_try) 2>&5
18772 ac_status=$?
18773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774 (exit $ac_status); }; } &&
18775 { ac_try='test -s conftest.$ac_objext'
18776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18777 (eval $ac_try) 2>&5
18778 ac_status=$?
18779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780 (exit $ac_status); }; }; then
a3828db0 18781 gdb_cv_struct_reg=yes
27ca5dad 18782else
bec39cab
AC
18783 echo "$as_me: failed program was:" >&5
18784sed 's/^/| /' conftest.$ac_ext >&5
18785
b4e70030 18786gdb_cv_struct_reg=no
27ca5dad 18787fi
bec39cab 18788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27ca5dad 18789fi
b4e70030
JB
18790echo "$as_me:$LINENO: result: $gdb_cv_struct_reg" >&5
18791echo "${ECHO_T}$gdb_cv_struct_reg" >&6
a3828db0 18792if test $gdb_cv_struct_reg = yes; then
bec39cab
AC
18793
18794cat >>confdefs.h <<\_ACEOF
a3828db0 18795#define HAVE_STRUCT_REG 1
bec39cab 18796_ACEOF
27ca5dad
MC
18797
18798fi
97bf5e38 18799
a3828db0
MK
18800# See if <machine/reg.h> supports the %fs and %gs i386 segment registers.
18801# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'.
b4e70030
JB
18802echo "$as_me:$LINENO: checking for struct reg.r_fs" >&5
18803echo $ECHO_N "checking for struct reg.r_fs... $ECHO_C" >&6
5c45e068 18804if test "${ac_cv_member_struct_reg_r_fs+set}" = set; then
bec39cab 18805 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 18806else
bec39cab
AC
18807 cat >conftest.$ac_ext <<_ACEOF
18808/* confdefs.h. */
18809_ACEOF
18810cat confdefs.h >>conftest.$ac_ext
18811cat >>conftest.$ac_ext <<_ACEOF
18812/* end confdefs.h. */
a3828db0 18813#include <machine/reg.h>
5c45e068
MK
18814
18815int
18816main ()
18817{
18818static struct reg ac_aggr;
18819if (ac_aggr.r_fs)
18820return 0;
18821 ;
18822 return 0;
18823}
18824_ACEOF
18825rm -f conftest.$ac_objext
18826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18827 (eval $ac_compile) 2>conftest.er1
18828 ac_status=$?
18829 grep -v '^ *+' conftest.er1 >conftest.err
18830 rm -f conftest.er1
18831 cat conftest.err >&5
18832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833 (exit $ac_status); } &&
b4e70030
JB
18834 { ac_try='test -z "$ac_c_werror_flag"
18835 || test ! -s conftest.err'
5c45e068
MK
18836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18837 (eval $ac_try) 2>&5
18838 ac_status=$?
18839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18840 (exit $ac_status); }; } &&
18841 { ac_try='test -s conftest.$ac_objext'
18842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18843 (eval $ac_try) 2>&5
18844 ac_status=$?
18845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846 (exit $ac_status); }; }; then
18847 ac_cv_member_struct_reg_r_fs=yes
18848else
18849 echo "$as_me: failed program was:" >&5
18850sed 's/^/| /' conftest.$ac_ext >&5
18851
b4e70030 18852cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
18853/* confdefs.h. */
18854_ACEOF
18855cat confdefs.h >>conftest.$ac_ext
18856cat >>conftest.$ac_ext <<_ACEOF
18857/* end confdefs.h. */
18858#include <machine/reg.h>
18859
bec39cab
AC
18860int
18861main ()
18862{
5c45e068
MK
18863static struct reg ac_aggr;
18864if (sizeof ac_aggr.r_fs)
18865return 0;
bec39cab
AC
18866 ;
18867 return 0;
18868}
18869_ACEOF
18870rm -f conftest.$ac_objext
18871if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18872 (eval $ac_compile) 2>conftest.er1
18873 ac_status=$?
18874 grep -v '^ *+' conftest.er1 >conftest.err
18875 rm -f conftest.er1
18876 cat conftest.err >&5
18877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18878 (exit $ac_status); } &&
b4e70030
JB
18879 { ac_try='test -z "$ac_c_werror_flag"
18880 || test ! -s conftest.err'
bec39cab
AC
18881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18882 (eval $ac_try) 2>&5
18883 ac_status=$?
18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885 (exit $ac_status); }; } &&
18886 { ac_try='test -s conftest.$ac_objext'
18887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18888 (eval $ac_try) 2>&5
18889 ac_status=$?
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); }; }; then
5c45e068 18892 ac_cv_member_struct_reg_r_fs=yes
3862412b 18893else
bec39cab
AC
18894 echo "$as_me: failed program was:" >&5
18895sed 's/^/| /' conftest.$ac_ext >&5
18896
b4e70030 18897ac_cv_member_struct_reg_r_fs=no
3862412b 18898fi
bec39cab 18899rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 18900fi
5c45e068
MK
18901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18902fi
b4e70030
JB
18903echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_fs" >&5
18904echo "${ECHO_T}$ac_cv_member_struct_reg_r_fs" >&6
5c45e068
MK
18905if test $ac_cv_member_struct_reg_r_fs = yes; then
18906
18907cat >>confdefs.h <<_ACEOF
a3828db0 18908#define HAVE_STRUCT_REG_R_FS 1
bec39cab 18909_ACEOF
3862412b 18910
5c45e068 18911
97bf5e38 18912fi
b4e70030
JB
18913echo "$as_me:$LINENO: checking for struct reg.r_gs" >&5
18914echo $ECHO_N "checking for struct reg.r_gs... $ECHO_C" >&6
5c45e068 18915if test "${ac_cv_member_struct_reg_r_gs+set}" = set; then
bec39cab 18916 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 18917else
bec39cab
AC
18918 cat >conftest.$ac_ext <<_ACEOF
18919/* confdefs.h. */
18920_ACEOF
18921cat confdefs.h >>conftest.$ac_ext
18922cat >>conftest.$ac_ext <<_ACEOF
18923/* end confdefs.h. */
a3828db0 18924#include <machine/reg.h>
5c45e068 18925
bec39cab
AC
18926int
18927main ()
18928{
5c45e068
MK
18929static struct reg ac_aggr;
18930if (ac_aggr.r_gs)
18931return 0;
bec39cab
AC
18932 ;
18933 return 0;
18934}
18935_ACEOF
18936rm -f conftest.$ac_objext
18937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18938 (eval $ac_compile) 2>conftest.er1
18939 ac_status=$?
18940 grep -v '^ *+' conftest.er1 >conftest.err
18941 rm -f conftest.er1
18942 cat conftest.err >&5
18943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944 (exit $ac_status); } &&
b4e70030
JB
18945 { ac_try='test -z "$ac_c_werror_flag"
18946 || test ! -s conftest.err'
bec39cab
AC
18947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18948 (eval $ac_try) 2>&5
18949 ac_status=$?
18950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951 (exit $ac_status); }; } &&
18952 { ac_try='test -s conftest.$ac_objext'
18953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18954 (eval $ac_try) 2>&5
18955 ac_status=$?
18956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18957 (exit $ac_status); }; }; then
5c45e068 18958 ac_cv_member_struct_reg_r_gs=yes
3862412b 18959else
bec39cab
AC
18960 echo "$as_me: failed program was:" >&5
18961sed 's/^/| /' conftest.$ac_ext >&5
18962
b4e70030 18963cat >conftest.$ac_ext <<_ACEOF
5c45e068
MK
18964/* confdefs.h. */
18965_ACEOF
18966cat confdefs.h >>conftest.$ac_ext
18967cat >>conftest.$ac_ext <<_ACEOF
18968/* end confdefs.h. */
18969#include <machine/reg.h>
18970
18971int
18972main ()
18973{
18974static struct reg ac_aggr;
18975if (sizeof ac_aggr.r_gs)
18976return 0;
18977 ;
18978 return 0;
18979}
18980_ACEOF
18981rm -f conftest.$ac_objext
18982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18983 (eval $ac_compile) 2>conftest.er1
18984 ac_status=$?
18985 grep -v '^ *+' conftest.er1 >conftest.err
18986 rm -f conftest.er1
18987 cat conftest.err >&5
18988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989 (exit $ac_status); } &&
b4e70030
JB
18990 { ac_try='test -z "$ac_c_werror_flag"
18991 || test ! -s conftest.err'
5c45e068
MK
18992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18993 (eval $ac_try) 2>&5
18994 ac_status=$?
18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); }; } &&
18997 { ac_try='test -s conftest.$ac_objext'
18998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18999 (eval $ac_try) 2>&5
19000 ac_status=$?
19001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); }; }; then
19003 ac_cv_member_struct_reg_r_gs=yes
19004else
19005 echo "$as_me: failed program was:" >&5
19006sed 's/^/| /' conftest.$ac_ext >&5
19007
b4e70030 19008ac_cv_member_struct_reg_r_gs=no
3862412b 19009fi
bec39cab 19010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b 19011fi
5c45e068
MK
19012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19013fi
b4e70030
JB
19014echo "$as_me:$LINENO: result: $ac_cv_member_struct_reg_r_gs" >&5
19015echo "${ECHO_T}$ac_cv_member_struct_reg_r_gs" >&6
5c45e068
MK
19016if test $ac_cv_member_struct_reg_r_gs = yes; then
19017
19018cat >>confdefs.h <<_ACEOF
a3828db0 19019#define HAVE_STRUCT_REG_R_GS 1
bec39cab 19020_ACEOF
3862412b 19021
5c45e068 19022
97bf5e38 19023fi
3862412b 19024
5c45e068 19025
a3828db0 19026# See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
b4e70030
JB
19027echo "$as_me:$LINENO: checking for PTRACE_GETREGS" >&5
19028echo $ECHO_N "checking for PTRACE_GETREGS... $ECHO_C" >&6
a3828db0 19029if test "${gdb_cv_have_ptrace_getregs+set}" = set; then
bec39cab 19030 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 19031else
bec39cab
AC
19032 cat >conftest.$ac_ext <<_ACEOF
19033/* confdefs.h. */
19034_ACEOF
19035cat confdefs.h >>conftest.$ac_ext
19036cat >>conftest.$ac_ext <<_ACEOF
19037/* end confdefs.h. */
a3828db0 19038#include <sys/ptrace.h>
bec39cab
AC
19039int
19040main ()
19041{
a3828db0 19042PTRACE_GETREGS;
bec39cab
AC
19043 ;
19044 return 0;
19045}
19046_ACEOF
19047rm -f conftest.$ac_objext
19048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19049 (eval $ac_compile) 2>conftest.er1
19050 ac_status=$?
19051 grep -v '^ *+' conftest.er1 >conftest.err
19052 rm -f conftest.er1
19053 cat conftest.err >&5
19054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055 (exit $ac_status); } &&
b4e70030
JB
19056 { ac_try='test -z "$ac_c_werror_flag"
19057 || test ! -s conftest.err'
bec39cab
AC
19058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19059 (eval $ac_try) 2>&5
19060 ac_status=$?
19061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19062 (exit $ac_status); }; } &&
19063 { ac_try='test -s conftest.$ac_objext'
19064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19065 (eval $ac_try) 2>&5
19066 ac_status=$?
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); }; }; then
a3828db0 19069 gdb_cv_have_ptrace_getregs=yes
451928c5 19070else
bec39cab
AC
19071 echo "$as_me: failed program was:" >&5
19072sed 's/^/| /' conftest.$ac_ext >&5
19073
b4e70030 19074gdb_cv_have_ptrace_getregs=no
451928c5 19075fi
bec39cab 19076rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
19077fi
19078
b4e70030
JB
19079echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getregs" >&5
19080echo "${ECHO_T}$gdb_cv_have_ptrace_getregs" >&6
a3828db0 19081if test $gdb_cv_have_ptrace_getregs = yes; then
60ca704f
SE
19082
19083cat >>confdefs.h <<\_ACEOF
a3828db0 19084#define HAVE_PTRACE_GETREGS 1
bec39cab 19085_ACEOF
451928c5 19086
97bf5e38 19087fi
451928c5 19088
a3828db0 19089# See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
b4e70030
JB
19090echo "$as_me:$LINENO: checking for PTRACE_GETFPXREGS" >&5
19091echo $ECHO_N "checking for PTRACE_GETFPXREGS... $ECHO_C" >&6
a3828db0 19092if test "${gdb_cv_have_ptrace_getfpxregs+set}" = set; then
bec39cab 19093 echo $ECHO_N "(cached) $ECHO_C" >&6
451928c5 19094else
bec39cab
AC
19095 cat >conftest.$ac_ext <<_ACEOF
19096/* confdefs.h. */
19097_ACEOF
19098cat confdefs.h >>conftest.$ac_ext
19099cat >>conftest.$ac_ext <<_ACEOF
19100/* end confdefs.h. */
a3828db0 19101#include <sys/ptrace.h>
bec39cab
AC
19102int
19103main ()
19104{
a3828db0 19105PTRACE_GETFPXREGS;
bec39cab
AC
19106 ;
19107 return 0;
19108}
19109_ACEOF
19110rm -f conftest.$ac_objext
19111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19112 (eval $ac_compile) 2>conftest.er1
19113 ac_status=$?
19114 grep -v '^ *+' conftest.er1 >conftest.err
19115 rm -f conftest.er1
19116 cat conftest.err >&5
19117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); } &&
b4e70030
JB
19119 { ac_try='test -z "$ac_c_werror_flag"
19120 || test ! -s conftest.err'
bec39cab
AC
19121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19122 (eval $ac_try) 2>&5
19123 ac_status=$?
19124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125 (exit $ac_status); }; } &&
19126 { ac_try='test -s conftest.$ac_objext'
19127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19128 (eval $ac_try) 2>&5
19129 ac_status=$?
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); }; }; then
a3828db0 19132 gdb_cv_have_ptrace_getfpxregs=yes
451928c5 19133else
bec39cab
AC
19134 echo "$as_me: failed program was:" >&5
19135sed 's/^/| /' conftest.$ac_ext >&5
19136
b4e70030 19137gdb_cv_have_ptrace_getfpxregs=no
451928c5 19138fi
bec39cab 19139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
451928c5
AC
19140fi
19141
b4e70030
JB
19142echo "$as_me:$LINENO: result: $gdb_cv_have_ptrace_getfpxregs" >&5
19143echo "${ECHO_T}$gdb_cv_have_ptrace_getfpxregs" >&6
a3828db0 19144if test $gdb_cv_have_ptrace_getfpxregs = yes; then
60ca704f
SE
19145
19146cat >>confdefs.h <<\_ACEOF
a3828db0 19147#define HAVE_PTRACE_GETFPXREGS 1
bec39cab 19148_ACEOF
451928c5 19149
97bf5e38 19150fi
451928c5 19151
a3828db0 19152# See if <sys/ptrace.h> provides the PT_GETDBREGS request.
b4e70030
JB
19153echo "$as_me:$LINENO: checking for PT_GETDBREGS" >&5
19154echo $ECHO_N "checking for PT_GETDBREGS... $ECHO_C" >&6
a3828db0 19155if test "${gdb_cv_have_pt_getdbregs+set}" = set; then
bec39cab 19156 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 19157else
bec39cab
AC
19158 cat >conftest.$ac_ext <<_ACEOF
19159/* confdefs.h. */
19160_ACEOF
19161cat confdefs.h >>conftest.$ac_ext
19162cat >>conftest.$ac_ext <<_ACEOF
19163/* end confdefs.h. */
a3828db0
MK
19164#include <sys/types.h>
19165#include <sys/ptrace.h>
bec39cab
AC
19166int
19167main ()
19168{
a3828db0 19169PT_GETDBREGS;
bec39cab
AC
19170 ;
19171 return 0;
19172}
19173_ACEOF
19174rm -f conftest.$ac_objext
19175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19176 (eval $ac_compile) 2>conftest.er1
19177 ac_status=$?
19178 grep -v '^ *+' conftest.er1 >conftest.err
19179 rm -f conftest.er1
19180 cat conftest.err >&5
19181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19182 (exit $ac_status); } &&
b4e70030
JB
19183 { ac_try='test -z "$ac_c_werror_flag"
19184 || test ! -s conftest.err'
bec39cab
AC
19185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19186 (eval $ac_try) 2>&5
19187 ac_status=$?
19188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189 (exit $ac_status); }; } &&
19190 { ac_try='test -s conftest.$ac_objext'
19191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19192 (eval $ac_try) 2>&5
19193 ac_status=$?
19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195 (exit $ac_status); }; }; then
a3828db0 19196 gdb_cv_have_pt_getdbregs=yes
3862412b 19197else
bec39cab
AC
19198 echo "$as_me: failed program was:" >&5
19199sed 's/^/| /' conftest.$ac_ext >&5
19200
b4e70030 19201gdb_cv_have_pt_getdbregs=no
3862412b 19202fi
bec39cab 19203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
19204fi
19205
b4e70030
JB
19206echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getdbregs" >&5
19207echo "${ECHO_T}$gdb_cv_have_pt_getdbregs" >&6
a3828db0 19208if test $gdb_cv_have_pt_getdbregs = yes; then
60ca704f
SE
19209
19210cat >>confdefs.h <<\_ACEOF
a3828db0 19211#define HAVE_PT_GETDBREGS 1
bec39cab 19212_ACEOF
3862412b 19213
97bf5e38 19214fi
3862412b 19215
a3828db0 19216# See if <sys/ptrace.h> provides the PT_GETXMMREGS request.
b4e70030
JB
19217echo "$as_me:$LINENO: checking for PT_GETXMMREGS" >&5
19218echo $ECHO_N "checking for PT_GETXMMREGS... $ECHO_C" >&6
a3828db0 19219if test "${gdb_cv_have_pt_getxmmregs+set}" = set; then
bec39cab 19220 echo $ECHO_N "(cached) $ECHO_C" >&6
3862412b 19221else
bec39cab
AC
19222 cat >conftest.$ac_ext <<_ACEOF
19223/* confdefs.h. */
19224_ACEOF
19225cat confdefs.h >>conftest.$ac_ext
19226cat >>conftest.$ac_ext <<_ACEOF
19227/* end confdefs.h. */
a3828db0
MK
19228#include <sys/types.h>
19229#include <sys/ptrace.h>
bec39cab
AC
19230int
19231main ()
19232{
a3828db0 19233PT_GETXMMREGS;
bec39cab
AC
19234 ;
19235 return 0;
19236}
19237_ACEOF
19238rm -f conftest.$ac_objext
19239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19240 (eval $ac_compile) 2>conftest.er1
19241 ac_status=$?
19242 grep -v '^ *+' conftest.er1 >conftest.err
19243 rm -f conftest.er1
19244 cat conftest.err >&5
19245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246 (exit $ac_status); } &&
b4e70030
JB
19247 { ac_try='test -z "$ac_c_werror_flag"
19248 || test ! -s conftest.err'
bec39cab
AC
19249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19250 (eval $ac_try) 2>&5
19251 ac_status=$?
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); }; } &&
19254 { ac_try='test -s conftest.$ac_objext'
19255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19256 (eval $ac_try) 2>&5
19257 ac_status=$?
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); }; }; then
a3828db0 19260 gdb_cv_have_pt_getxmmregs=yes
3862412b 19261else
bec39cab
AC
19262 echo "$as_me: failed program was:" >&5
19263sed 's/^/| /' conftest.$ac_ext >&5
19264
b4e70030 19265gdb_cv_have_pt_getxmmregs=no
3862412b 19266fi
bec39cab 19267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3862412b
MK
19268fi
19269
b4e70030
JB
19270echo "$as_me:$LINENO: result: $gdb_cv_have_pt_getxmmregs" >&5
19271echo "${ECHO_T}$gdb_cv_have_pt_getxmmregs" >&6
a3828db0 19272if test $gdb_cv_have_pt_getxmmregs = yes; then
60ca704f
SE
19273
19274cat >>confdefs.h <<\_ACEOF
a3828db0 19275#define HAVE_PT_GETXMMREGS 1
bec39cab 19276_ACEOF
3862412b 19277
97bf5e38 19278fi
3862412b 19279
97bf5e38
MK
19280# If we are configured native on GNU/Linux, work around problems with
19281# sys/procfs.h
19282# Also detect which type of /proc is in use, such as for Unixware or Solaris.
19283
19284if test "${target}" = "${host}"; then
19285 case "${host}" in
19286 i[3456]86-*-linux*)
60ca704f
SE
19287
19288cat >>confdefs.h <<\_ACEOF
97bf5e38 19289#define START_INFERIOR_TRAPS_EXPECTED 2
bec39cab 19290_ACEOF
97bf5e38 19291
60ca704f
SE
19292
19293cat >>confdefs.h <<\_ACEOF
97bf5e38 19294#define sys_quotactl 1
bec39cab 19295_ACEOF
97bf5e38
MK
19296
19297 ;;
97bf5e38 19298 *-*-unixware* | *-*-sysv4.2* | *-*-sysv5* | *-*-interix* )
60ca704f
SE
19299
19300cat >>confdefs.h <<\_ACEOF
97bf5e38 19301#define NEW_PROC_API 1
bec39cab 19302_ACEOF
97bf5e38
MK
19303
19304 ;;
0bbc026e 19305 *-*-solaris2.[6789] | *-*-solaris2.1[0-9])
60ca704f
SE
19306
19307cat >>confdefs.h <<\_ACEOF
97bf5e38 19308#define NEW_PROC_API 1
bec39cab 19309_ACEOF
c960c18f
AC
19310
19311 ;;
19312 mips-sgi-irix5*)
19313 # Work around <sys/proc.h> needing _KMEMUSER problem on IRIX 5.
60ca704f
SE
19314
19315cat >>confdefs.h <<\_ACEOF
c960c18f 19316#define _KMEMUSER 1
bec39cab 19317_ACEOF
97bf5e38
MK
19318
19319 ;;
19320 esac
19321fi
19322
19323if test "$ac_cv_header_sys_procfs_h" = yes; then
b4e70030
JB
19324 echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5
19325echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19326 if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then
19327 echo $ECHO_N "(cached) $ECHO_C" >&6
19328else
19329 cat >conftest.$ac_ext <<_ACEOF
19330/* confdefs.h. */
19331_ACEOF
19332cat confdefs.h >>conftest.$ac_ext
19333cat >>conftest.$ac_ext <<_ACEOF
19334/* end confdefs.h. */
596c9d4b
KB
19335
19336#define _SYSCALL32
19337#include <sys/procfs.h>
bec39cab
AC
19338int
19339main ()
19340{
97bf5e38 19341pstatus_t avar
bec39cab
AC
19342 ;
19343 return 0;
19344}
19345_ACEOF
19346rm -f conftest.$ac_objext
19347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19348 (eval $ac_compile) 2>conftest.er1
19349 ac_status=$?
19350 grep -v '^ *+' conftest.er1 >conftest.err
19351 rm -f conftest.er1
19352 cat conftest.err >&5
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); } &&
b4e70030
JB
19355 { ac_try='test -z "$ac_c_werror_flag"
19356 || test ! -s conftest.err'
bec39cab
AC
19357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19358 (eval $ac_try) 2>&5
19359 ac_status=$?
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); }; } &&
19362 { ac_try='test -s conftest.$ac_objext'
19363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19364 (eval $ac_try) 2>&5
19365 ac_status=$?
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); }; }; then
97bf5e38 19368 bfd_cv_have_sys_procfs_type_pstatus_t=yes
596c9d4b 19369else
bec39cab
AC
19370 echo "$as_me: failed program was:" >&5
19371sed 's/^/| /' conftest.$ac_ext >&5
19372
b4e70030 19373bfd_cv_have_sys_procfs_type_pstatus_t=no
bec39cab 19374
596c9d4b 19375fi
bec39cab 19376rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
19377fi
19378
97bf5e38 19379 if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then
bec39cab
AC
19380
19381cat >>confdefs.h <<\_ACEOF
97bf5e38 19382#define HAVE_PSTATUS_T 1
bec39cab 19383_ACEOF
596c9d4b
KB
19384
19385 fi
b4e70030
JB
19386 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5
19387echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6
596c9d4b 19388
b4e70030
JB
19389 echo "$as_me:$LINENO: checking for prrun_t in sys/procfs.h" >&5
19390echo $ECHO_N "checking for prrun_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19391 if test "${bfd_cv_have_sys_procfs_type_prrun_t+set}" = set; then
19392 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 19393else
bec39cab
AC
19394 cat >conftest.$ac_ext <<_ACEOF
19395/* confdefs.h. */
19396_ACEOF
19397cat confdefs.h >>conftest.$ac_ext
19398cat >>conftest.$ac_ext <<_ACEOF
19399/* end confdefs.h. */
596c9d4b
KB
19400
19401#define _SYSCALL32
19402#include <sys/procfs.h>
bec39cab
AC
19403int
19404main ()
19405{
97bf5e38 19406prrun_t avar
bec39cab
AC
19407 ;
19408 return 0;
19409}
19410_ACEOF
19411rm -f conftest.$ac_objext
19412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19413 (eval $ac_compile) 2>conftest.er1
19414 ac_status=$?
19415 grep -v '^ *+' conftest.er1 >conftest.err
19416 rm -f conftest.er1
19417 cat conftest.err >&5
19418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419 (exit $ac_status); } &&
b4e70030
JB
19420 { ac_try='test -z "$ac_c_werror_flag"
19421 || test ! -s conftest.err'
bec39cab
AC
19422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19423 (eval $ac_try) 2>&5
19424 ac_status=$?
19425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426 (exit $ac_status); }; } &&
19427 { ac_try='test -s conftest.$ac_objext'
19428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19429 (eval $ac_try) 2>&5
19430 ac_status=$?
19431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432 (exit $ac_status); }; }; then
97bf5e38 19433 bfd_cv_have_sys_procfs_type_prrun_t=yes
596c9d4b 19434else
bec39cab
AC
19435 echo "$as_me: failed program was:" >&5
19436sed 's/^/| /' conftest.$ac_ext >&5
19437
b4e70030 19438bfd_cv_have_sys_procfs_type_prrun_t=no
bec39cab 19439
596c9d4b 19440fi
bec39cab 19441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
19442fi
19443
97bf5e38 19444 if test $bfd_cv_have_sys_procfs_type_prrun_t = yes; then
bec39cab
AC
19445
19446cat >>confdefs.h <<\_ACEOF
97bf5e38 19447#define HAVE_PRRUN_T 1
bec39cab 19448_ACEOF
596c9d4b
KB
19449
19450 fi
b4e70030
JB
19451 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prrun_t" >&5
19452echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prrun_t" >&6
596c9d4b 19453
b4e70030
JB
19454 echo "$as_me:$LINENO: checking for gregset_t in sys/procfs.h" >&5
19455echo $ECHO_N "checking for gregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19456 if test "${bfd_cv_have_sys_procfs_type_gregset_t+set}" = set; then
19457 echo $ECHO_N "(cached) $ECHO_C" >&6
596c9d4b 19458else
bec39cab
AC
19459 cat >conftest.$ac_ext <<_ACEOF
19460/* confdefs.h. */
19461_ACEOF
19462cat confdefs.h >>conftest.$ac_ext
19463cat >>conftest.$ac_ext <<_ACEOF
19464/* end confdefs.h. */
596c9d4b
KB
19465
19466#define _SYSCALL32
19467#include <sys/procfs.h>
bec39cab
AC
19468int
19469main ()
19470{
97bf5e38 19471gregset_t avar
bec39cab
AC
19472 ;
19473 return 0;
19474}
19475_ACEOF
19476rm -f conftest.$ac_objext
19477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19478 (eval $ac_compile) 2>conftest.er1
19479 ac_status=$?
19480 grep -v '^ *+' conftest.er1 >conftest.err
19481 rm -f conftest.er1
19482 cat conftest.err >&5
19483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484 (exit $ac_status); } &&
b4e70030
JB
19485 { ac_try='test -z "$ac_c_werror_flag"
19486 || test ! -s conftest.err'
bec39cab
AC
19487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19488 (eval $ac_try) 2>&5
19489 ac_status=$?
19490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491 (exit $ac_status); }; } &&
19492 { ac_try='test -s conftest.$ac_objext'
19493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19494 (eval $ac_try) 2>&5
19495 ac_status=$?
19496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497 (exit $ac_status); }; }; then
97bf5e38 19498 bfd_cv_have_sys_procfs_type_gregset_t=yes
596c9d4b 19499else
bec39cab
AC
19500 echo "$as_me: failed program was:" >&5
19501sed 's/^/| /' conftest.$ac_ext >&5
19502
b4e70030 19503bfd_cv_have_sys_procfs_type_gregset_t=no
bec39cab 19504
596c9d4b 19505fi
bec39cab 19506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
596c9d4b
KB
19507fi
19508
97bf5e38 19509 if test $bfd_cv_have_sys_procfs_type_gregset_t = yes; then
bec39cab
AC
19510
19511cat >>confdefs.h <<\_ACEOF
97bf5e38 19512#define HAVE_GREGSET_T 1
bec39cab 19513_ACEOF
596c9d4b
KB
19514
19515 fi
b4e70030
JB
19516 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_gregset_t" >&5
19517echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_gregset_t" >&6
451928c5 19518
b4e70030
JB
19519 echo "$as_me:$LINENO: checking for fpregset_t in sys/procfs.h" >&5
19520echo $ECHO_N "checking for fpregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19521 if test "${bfd_cv_have_sys_procfs_type_fpregset_t+set}" = set; then
19522 echo $ECHO_N "(cached) $ECHO_C" >&6
d84dd0c5 19523else
bec39cab
AC
19524 cat >conftest.$ac_ext <<_ACEOF
19525/* confdefs.h. */
19526_ACEOF
19527cat confdefs.h >>conftest.$ac_ext
19528cat >>conftest.$ac_ext <<_ACEOF
19529/* end confdefs.h. */
97bf5e38
MK
19530
19531#define _SYSCALL32
d84dd0c5 19532#include <sys/procfs.h>
bec39cab
AC
19533int
19534main ()
19535{
97bf5e38 19536fpregset_t avar
bec39cab
AC
19537 ;
19538 return 0;
19539}
19540_ACEOF
19541rm -f conftest.$ac_objext
19542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19543 (eval $ac_compile) 2>conftest.er1
19544 ac_status=$?
19545 grep -v '^ *+' conftest.er1 >conftest.err
19546 rm -f conftest.er1
19547 cat conftest.err >&5
19548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 (exit $ac_status); } &&
b4e70030
JB
19550 { ac_try='test -z "$ac_c_werror_flag"
19551 || test ! -s conftest.err'
bec39cab
AC
19552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19553 (eval $ac_try) 2>&5
19554 ac_status=$?
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); }; } &&
19557 { ac_try='test -s conftest.$ac_objext'
19558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19559 (eval $ac_try) 2>&5
19560 ac_status=$?
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); }; }; then
97bf5e38 19563 bfd_cv_have_sys_procfs_type_fpregset_t=yes
d84dd0c5 19564else
bec39cab
AC
19565 echo "$as_me: failed program was:" >&5
19566sed 's/^/| /' conftest.$ac_ext >&5
19567
b4e70030 19568bfd_cv_have_sys_procfs_type_fpregset_t=no
bec39cab 19569
d84dd0c5 19570fi
bec39cab 19571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d84dd0c5
MK
19572fi
19573
97bf5e38 19574 if test $bfd_cv_have_sys_procfs_type_fpregset_t = yes; then
bec39cab
AC
19575
19576cat >>confdefs.h <<\_ACEOF
97bf5e38 19577#define HAVE_FPREGSET_T 1
bec39cab 19578_ACEOF
d84dd0c5 19579
97bf5e38 19580 fi
b4e70030
JB
19581 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_fpregset_t" >&5
19582echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_fpregset_t" >&6
d84dd0c5 19583
b4e70030
JB
19584 echo "$as_me:$LINENO: checking for prgregset_t in sys/procfs.h" >&5
19585echo $ECHO_N "checking for prgregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19586 if test "${bfd_cv_have_sys_procfs_type_prgregset_t+set}" = set; then
19587 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19588else
bec39cab
AC
19589 cat >conftest.$ac_ext <<_ACEOF
19590/* confdefs.h. */
19591_ACEOF
19592cat confdefs.h >>conftest.$ac_ext
19593cat >>conftest.$ac_ext <<_ACEOF
19594/* end confdefs.h. */
c906108c 19595
97bf5e38
MK
19596#define _SYSCALL32
19597#include <sys/procfs.h>
bec39cab
AC
19598int
19599main ()
19600{
97bf5e38 19601prgregset_t avar
bec39cab
AC
19602 ;
19603 return 0;
19604}
19605_ACEOF
19606rm -f conftest.$ac_objext
19607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19608 (eval $ac_compile) 2>conftest.er1
19609 ac_status=$?
19610 grep -v '^ *+' conftest.er1 >conftest.err
19611 rm -f conftest.er1
19612 cat conftest.err >&5
19613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614 (exit $ac_status); } &&
b4e70030
JB
19615 { ac_try='test -z "$ac_c_werror_flag"
19616 || test ! -s conftest.err'
bec39cab
AC
19617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19618 (eval $ac_try) 2>&5
19619 ac_status=$?
19620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19621 (exit $ac_status); }; } &&
19622 { ac_try='test -s conftest.$ac_objext'
19623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19624 (eval $ac_try) 2>&5
19625 ac_status=$?
19626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); }; }; then
97bf5e38 19628 bfd_cv_have_sys_procfs_type_prgregset_t=yes
c906108c 19629else
bec39cab
AC
19630 echo "$as_me: failed program was:" >&5
19631sed 's/^/| /' conftest.$ac_ext >&5
19632
b4e70030 19633bfd_cv_have_sys_procfs_type_prgregset_t=no
bec39cab 19634
c906108c 19635fi
bec39cab 19636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
19637fi
19638
97bf5e38 19639 if test $bfd_cv_have_sys_procfs_type_prgregset_t = yes; then
bec39cab
AC
19640
19641cat >>confdefs.h <<\_ACEOF
97bf5e38 19642#define HAVE_PRGREGSET_T 1
bec39cab 19643_ACEOF
c906108c 19644
97bf5e38 19645 fi
b4e70030
JB
19646 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset_t" >&5
19647echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset_t" >&6
c906108c 19648
b4e70030
JB
19649 echo "$as_me:$LINENO: checking for prfpregset_t in sys/procfs.h" >&5
19650echo $ECHO_N "checking for prfpregset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19651 if test "${bfd_cv_have_sys_procfs_type_prfpregset_t+set}" = set; then
19652 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 19653else
bec39cab
AC
19654 cat >conftest.$ac_ext <<_ACEOF
19655/* confdefs.h. */
19656_ACEOF
19657cat confdefs.h >>conftest.$ac_ext
19658cat >>conftest.$ac_ext <<_ACEOF
19659/* end confdefs.h. */
97bf5e38
MK
19660
19661#define _SYSCALL32
19662#include <sys/procfs.h>
bec39cab
AC
19663int
19664main ()
19665{
97bf5e38 19666prfpregset_t avar
bec39cab
AC
19667 ;
19668 return 0;
19669}
19670_ACEOF
19671rm -f conftest.$ac_objext
19672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19673 (eval $ac_compile) 2>conftest.er1
19674 ac_status=$?
19675 grep -v '^ *+' conftest.er1 >conftest.err
19676 rm -f conftest.er1
19677 cat conftest.err >&5
19678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19679 (exit $ac_status); } &&
b4e70030
JB
19680 { ac_try='test -z "$ac_c_werror_flag"
19681 || test ! -s conftest.err'
bec39cab
AC
19682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19683 (eval $ac_try) 2>&5
19684 ac_status=$?
19685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686 (exit $ac_status); }; } &&
19687 { ac_try='test -s conftest.$ac_objext'
19688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19689 (eval $ac_try) 2>&5
19690 ac_status=$?
19691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692 (exit $ac_status); }; }; then
97bf5e38 19693 bfd_cv_have_sys_procfs_type_prfpregset_t=yes
d45fe813 19694else
bec39cab
AC
19695 echo "$as_me: failed program was:" >&5
19696sed 's/^/| /' conftest.$ac_ext >&5
19697
b4e70030 19698bfd_cv_have_sys_procfs_type_prfpregset_t=no
bec39cab 19699
d45fe813 19700fi
bec39cab 19701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
19702fi
19703
97bf5e38 19704 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
bec39cab
AC
19705
19706cat >>confdefs.h <<\_ACEOF
97bf5e38 19707#define HAVE_PRFPREGSET_T 1
bec39cab 19708_ACEOF
d45fe813 19709
97bf5e38 19710 fi
b4e70030
JB
19711 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset_t" >&5
19712echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset_t" >&6
d45fe813 19713
b4e70030
JB
19714 echo "$as_me:$LINENO: checking for prgregset32_t in sys/procfs.h" >&5
19715echo $ECHO_N "checking for prgregset32_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19716 if test "${bfd_cv_have_sys_procfs_type_prgregset32_t+set}" = set; then
19717 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 19718else
bec39cab
AC
19719 cat >conftest.$ac_ext <<_ACEOF
19720/* confdefs.h. */
19721_ACEOF
19722cat confdefs.h >>conftest.$ac_ext
19723cat >>conftest.$ac_ext <<_ACEOF
19724/* end confdefs.h. */
97bf5e38
MK
19725
19726#define _SYSCALL32
19727#include <sys/procfs.h>
bec39cab
AC
19728int
19729main ()
19730{
97bf5e38 19731prgregset32_t avar
bec39cab
AC
19732 ;
19733 return 0;
19734}
19735_ACEOF
19736rm -f conftest.$ac_objext
19737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19738 (eval $ac_compile) 2>conftest.er1
19739 ac_status=$?
19740 grep -v '^ *+' conftest.er1 >conftest.err
19741 rm -f conftest.er1
19742 cat conftest.err >&5
19743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); } &&
b4e70030
JB
19745 { ac_try='test -z "$ac_c_werror_flag"
19746 || test ! -s conftest.err'
bec39cab
AC
19747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19748 (eval $ac_try) 2>&5
19749 ac_status=$?
19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); }; } &&
19752 { ac_try='test -s conftest.$ac_objext'
19753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19754 (eval $ac_try) 2>&5
19755 ac_status=$?
19756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757 (exit $ac_status); }; }; then
97bf5e38 19758 bfd_cv_have_sys_procfs_type_prgregset32_t=yes
d45fe813 19759else
bec39cab
AC
19760 echo "$as_me: failed program was:" >&5
19761sed 's/^/| /' conftest.$ac_ext >&5
19762
b4e70030 19763bfd_cv_have_sys_procfs_type_prgregset32_t=no
bec39cab 19764
d45fe813 19765fi
bec39cab 19766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
19767fi
19768
97bf5e38 19769 if test $bfd_cv_have_sys_procfs_type_prgregset32_t = yes; then
bec39cab
AC
19770
19771cat >>confdefs.h <<\_ACEOF
97bf5e38 19772#define HAVE_PRGREGSET32_T 1
bec39cab 19773_ACEOF
d45fe813 19774
97bf5e38 19775 fi
b4e70030
JB
19776 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prgregset32_t" >&5
19777echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prgregset32_t" >&6
d45fe813 19778
b4e70030
JB
19779 echo "$as_me:$LINENO: checking for prfpregset32_t in sys/procfs.h" >&5
19780echo $ECHO_N "checking for prfpregset32_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19781 if test "${bfd_cv_have_sys_procfs_type_prfpregset32_t+set}" = set; then
19782 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 19783else
bec39cab
AC
19784 cat >conftest.$ac_ext <<_ACEOF
19785/* confdefs.h. */
19786_ACEOF
19787cat confdefs.h >>conftest.$ac_ext
19788cat >>conftest.$ac_ext <<_ACEOF
19789/* end confdefs.h. */
97bf5e38
MK
19790
19791#define _SYSCALL32
19792#include <sys/procfs.h>
bec39cab
AC
19793int
19794main ()
19795{
97bf5e38 19796prfpregset32_t avar
bec39cab
AC
19797 ;
19798 return 0;
19799}
19800_ACEOF
19801rm -f conftest.$ac_objext
19802if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19803 (eval $ac_compile) 2>conftest.er1
19804 ac_status=$?
19805 grep -v '^ *+' conftest.er1 >conftest.err
19806 rm -f conftest.er1
19807 cat conftest.err >&5
19808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809 (exit $ac_status); } &&
b4e70030
JB
19810 { ac_try='test -z "$ac_c_werror_flag"
19811 || test ! -s conftest.err'
bec39cab
AC
19812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19813 (eval $ac_try) 2>&5
19814 ac_status=$?
19815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816 (exit $ac_status); }; } &&
19817 { ac_try='test -s conftest.$ac_objext'
19818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19819 (eval $ac_try) 2>&5
19820 ac_status=$?
19821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822 (exit $ac_status); }; }; then
97bf5e38 19823 bfd_cv_have_sys_procfs_type_prfpregset32_t=yes
d45fe813 19824else
bec39cab
AC
19825 echo "$as_me: failed program was:" >&5
19826sed 's/^/| /' conftest.$ac_ext >&5
19827
b4e70030 19828bfd_cv_have_sys_procfs_type_prfpregset32_t=no
bec39cab 19829
d45fe813 19830fi
bec39cab 19831rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
19832fi
19833
97bf5e38 19834 if test $bfd_cv_have_sys_procfs_type_prfpregset32_t = yes; then
bec39cab
AC
19835
19836cat >>confdefs.h <<\_ACEOF
97bf5e38 19837#define HAVE_PRFPREGSET32_T 1
bec39cab 19838_ACEOF
d45fe813 19839
97bf5e38 19840 fi
b4e70030
JB
19841 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prfpregset32_t" >&5
19842echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prfpregset32_t" >&6
d45fe813 19843
b4e70030
JB
19844 echo "$as_me:$LINENO: checking for lwpid_t in sys/procfs.h" >&5
19845echo $ECHO_N "checking for lwpid_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19846 if test "${bfd_cv_have_sys_procfs_type_lwpid_t+set}" = set; then
19847 echo $ECHO_N "(cached) $ECHO_C" >&6
d45fe813 19848else
bec39cab
AC
19849 cat >conftest.$ac_ext <<_ACEOF
19850/* confdefs.h. */
19851_ACEOF
19852cat confdefs.h >>conftest.$ac_ext
19853cat >>conftest.$ac_ext <<_ACEOF
19854/* end confdefs.h. */
97bf5e38 19855
d45fe813 19856#define _SYSCALL32
97bf5e38 19857#include <sys/procfs.h>
bec39cab
AC
19858int
19859main ()
19860{
97bf5e38 19861lwpid_t avar
bec39cab
AC
19862 ;
19863 return 0;
19864}
19865_ACEOF
19866rm -f conftest.$ac_objext
19867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19868 (eval $ac_compile) 2>conftest.er1
19869 ac_status=$?
19870 grep -v '^ *+' conftest.er1 >conftest.err
19871 rm -f conftest.er1
19872 cat conftest.err >&5
19873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874 (exit $ac_status); } &&
b4e70030
JB
19875 { ac_try='test -z "$ac_c_werror_flag"
19876 || test ! -s conftest.err'
bec39cab
AC
19877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19878 (eval $ac_try) 2>&5
19879 ac_status=$?
19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); }; } &&
19882 { ac_try='test -s conftest.$ac_objext'
19883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19884 (eval $ac_try) 2>&5
19885 ac_status=$?
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); }; }; then
97bf5e38 19888 bfd_cv_have_sys_procfs_type_lwpid_t=yes
d45fe813 19889else
bec39cab
AC
19890 echo "$as_me: failed program was:" >&5
19891sed 's/^/| /' conftest.$ac_ext >&5
19892
b4e70030 19893bfd_cv_have_sys_procfs_type_lwpid_t=no
bec39cab 19894
d45fe813 19895fi
bec39cab 19896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d45fe813
KB
19897fi
19898
97bf5e38 19899 if test $bfd_cv_have_sys_procfs_type_lwpid_t = yes; then
bec39cab
AC
19900
19901cat >>confdefs.h <<\_ACEOF
97bf5e38 19902#define HAVE_LWPID_T 1
bec39cab 19903_ACEOF
d45fe813 19904
97bf5e38 19905 fi
b4e70030
JB
19906 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpid_t" >&5
19907echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpid_t" >&6
c906108c 19908
b4e70030
JB
19909 echo "$as_me:$LINENO: checking for psaddr_t in sys/procfs.h" >&5
19910echo $ECHO_N "checking for psaddr_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19911 if test "${bfd_cv_have_sys_procfs_type_psaddr_t+set}" = set; then
19912 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19913else
bec39cab
AC
19914 cat >conftest.$ac_ext <<_ACEOF
19915/* confdefs.h. */
19916_ACEOF
19917cat confdefs.h >>conftest.$ac_ext
19918cat >>conftest.$ac_ext <<_ACEOF
19919/* end confdefs.h. */
c906108c 19920
97bf5e38
MK
19921#define _SYSCALL32
19922#include <sys/procfs.h>
bec39cab
AC
19923int
19924main ()
19925{
97bf5e38 19926psaddr_t avar
bec39cab
AC
19927 ;
19928 return 0;
19929}
19930_ACEOF
19931rm -f conftest.$ac_objext
19932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19933 (eval $ac_compile) 2>conftest.er1
19934 ac_status=$?
19935 grep -v '^ *+' conftest.er1 >conftest.err
19936 rm -f conftest.er1
19937 cat conftest.err >&5
19938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939 (exit $ac_status); } &&
b4e70030
JB
19940 { ac_try='test -z "$ac_c_werror_flag"
19941 || test ! -s conftest.err'
bec39cab
AC
19942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19943 (eval $ac_try) 2>&5
19944 ac_status=$?
19945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946 (exit $ac_status); }; } &&
19947 { ac_try='test -s conftest.$ac_objext'
19948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19949 (eval $ac_try) 2>&5
19950 ac_status=$?
19951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19952 (exit $ac_status); }; }; then
97bf5e38 19953 bfd_cv_have_sys_procfs_type_psaddr_t=yes
c906108c 19954else
bec39cab
AC
19955 echo "$as_me: failed program was:" >&5
19956sed 's/^/| /' conftest.$ac_ext >&5
19957
b4e70030 19958bfd_cv_have_sys_procfs_type_psaddr_t=no
bec39cab 19959
c906108c 19960fi
bec39cab 19961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
19962fi
19963
97bf5e38 19964 if test $bfd_cv_have_sys_procfs_type_psaddr_t = yes; then
bec39cab
AC
19965
19966cat >>confdefs.h <<\_ACEOF
97bf5e38 19967#define HAVE_PSADDR_T 1
bec39cab 19968_ACEOF
c906108c 19969
97bf5e38 19970 fi
b4e70030
JB
19971 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psaddr_t" >&5
19972echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psaddr_t" >&6
c906108c 19973
b4e70030
JB
19974 echo "$as_me:$LINENO: checking for prsysent_t in sys/procfs.h" >&5
19975echo $ECHO_N "checking for prsysent_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
19976 if test "${bfd_cv_have_sys_procfs_type_prsysent_t+set}" = set; then
19977 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 19978else
bec39cab
AC
19979 cat >conftest.$ac_ext <<_ACEOF
19980/* confdefs.h. */
19981_ACEOF
19982cat confdefs.h >>conftest.$ac_ext
19983cat >>conftest.$ac_ext <<_ACEOF
19984/* end confdefs.h. */
c906108c 19985
97bf5e38
MK
19986#define _SYSCALL32
19987#include <sys/procfs.h>
bec39cab
AC
19988int
19989main ()
19990{
97bf5e38 19991prsysent_t avar
bec39cab
AC
19992 ;
19993 return 0;
19994}
19995_ACEOF
19996rm -f conftest.$ac_objext
19997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19998 (eval $ac_compile) 2>conftest.er1
19999 ac_status=$?
20000 grep -v '^ *+' conftest.er1 >conftest.err
20001 rm -f conftest.er1
20002 cat conftest.err >&5
20003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004 (exit $ac_status); } &&
b4e70030
JB
20005 { ac_try='test -z "$ac_c_werror_flag"
20006 || test ! -s conftest.err'
bec39cab
AC
20007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20008 (eval $ac_try) 2>&5
20009 ac_status=$?
20010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011 (exit $ac_status); }; } &&
20012 { ac_try='test -s conftest.$ac_objext'
20013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20014 (eval $ac_try) 2>&5
20015 ac_status=$?
20016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017 (exit $ac_status); }; }; then
97bf5e38 20018 bfd_cv_have_sys_procfs_type_prsysent_t=yes
c906108c 20019else
bec39cab
AC
20020 echo "$as_me: failed program was:" >&5
20021sed 's/^/| /' conftest.$ac_ext >&5
20022
b4e70030 20023bfd_cv_have_sys_procfs_type_prsysent_t=no
bec39cab 20024
c906108c 20025fi
bec39cab 20026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
20027fi
20028
97bf5e38 20029 if test $bfd_cv_have_sys_procfs_type_prsysent_t = yes; then
bec39cab
AC
20030
20031cat >>confdefs.h <<\_ACEOF
97bf5e38 20032#define HAVE_PRSYSENT_T 1
bec39cab 20033_ACEOF
c906108c 20034
97bf5e38 20035 fi
b4e70030
JB
20036 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prsysent_t" >&5
20037echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prsysent_t" >&6
c906108c 20038
b4e70030
JB
20039 echo "$as_me:$LINENO: checking for pr_sigset_t in sys/procfs.h" >&5
20040echo $ECHO_N "checking for pr_sigset_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20041 if test "${bfd_cv_have_sys_procfs_type_pr_sigset_t+set}" = set; then
20042 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20043else
bec39cab
AC
20044 cat >conftest.$ac_ext <<_ACEOF
20045/* confdefs.h. */
20046_ACEOF
20047cat confdefs.h >>conftest.$ac_ext
20048cat >>conftest.$ac_ext <<_ACEOF
20049/* end confdefs.h. */
c906108c 20050
97bf5e38
MK
20051#define _SYSCALL32
20052#include <sys/procfs.h>
bec39cab
AC
20053int
20054main ()
20055{
97bf5e38 20056pr_sigset_t avar
bec39cab
AC
20057 ;
20058 return 0;
20059}
20060_ACEOF
20061rm -f conftest.$ac_objext
20062if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20063 (eval $ac_compile) 2>conftest.er1
20064 ac_status=$?
20065 grep -v '^ *+' conftest.er1 >conftest.err
20066 rm -f conftest.er1
20067 cat conftest.err >&5
20068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069 (exit $ac_status); } &&
b4e70030
JB
20070 { ac_try='test -z "$ac_c_werror_flag"
20071 || test ! -s conftest.err'
bec39cab
AC
20072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20073 (eval $ac_try) 2>&5
20074 ac_status=$?
20075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076 (exit $ac_status); }; } &&
20077 { ac_try='test -s conftest.$ac_objext'
20078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20079 (eval $ac_try) 2>&5
20080 ac_status=$?
20081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20082 (exit $ac_status); }; }; then
97bf5e38 20083 bfd_cv_have_sys_procfs_type_pr_sigset_t=yes
c906108c 20084else
bec39cab
AC
20085 echo "$as_me: failed program was:" >&5
20086sed 's/^/| /' conftest.$ac_ext >&5
20087
b4e70030 20088bfd_cv_have_sys_procfs_type_pr_sigset_t=no
bec39cab 20089
c906108c 20090fi
bec39cab 20091rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
20092fi
20093
97bf5e38 20094 if test $bfd_cv_have_sys_procfs_type_pr_sigset_t = yes; then
bec39cab
AC
20095
20096cat >>confdefs.h <<\_ACEOF
97bf5e38 20097#define HAVE_PR_SIGSET_T 1
bec39cab 20098_ACEOF
c906108c 20099
97bf5e38 20100 fi
b4e70030
JB
20101 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigset_t" >&5
20102echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigset_t" >&6
c906108c 20103
b4e70030
JB
20104 echo "$as_me:$LINENO: checking for pr_sigaction64_t in sys/procfs.h" >&5
20105echo $ECHO_N "checking for pr_sigaction64_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20106 if test "${bfd_cv_have_sys_procfs_type_pr_sigaction64_t+set}" = set; then
20107 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20108else
bec39cab
AC
20109 cat >conftest.$ac_ext <<_ACEOF
20110/* confdefs.h. */
20111_ACEOF
20112cat confdefs.h >>conftest.$ac_ext
20113cat >>conftest.$ac_ext <<_ACEOF
20114/* end confdefs.h. */
c906108c 20115
97bf5e38
MK
20116#define _SYSCALL32
20117#include <sys/procfs.h>
bec39cab
AC
20118int
20119main ()
20120{
97bf5e38 20121pr_sigaction64_t avar
bec39cab
AC
20122 ;
20123 return 0;
20124}
20125_ACEOF
20126rm -f conftest.$ac_objext
20127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20128 (eval $ac_compile) 2>conftest.er1
20129 ac_status=$?
20130 grep -v '^ *+' conftest.er1 >conftest.err
20131 rm -f conftest.er1
20132 cat conftest.err >&5
20133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134 (exit $ac_status); } &&
b4e70030
JB
20135 { ac_try='test -z "$ac_c_werror_flag"
20136 || test ! -s conftest.err'
bec39cab
AC
20137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20138 (eval $ac_try) 2>&5
20139 ac_status=$?
20140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141 (exit $ac_status); }; } &&
20142 { ac_try='test -s conftest.$ac_objext'
20143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20144 (eval $ac_try) 2>&5
20145 ac_status=$?
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); }; }; then
97bf5e38 20148 bfd_cv_have_sys_procfs_type_pr_sigaction64_t=yes
c906108c 20149else
bec39cab
AC
20150 echo "$as_me: failed program was:" >&5
20151sed 's/^/| /' conftest.$ac_ext >&5
20152
b4e70030 20153bfd_cv_have_sys_procfs_type_pr_sigaction64_t=no
bec39cab 20154
c906108c 20155fi
bec39cab 20156rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
20157fi
20158
97bf5e38 20159 if test $bfd_cv_have_sys_procfs_type_pr_sigaction64_t = yes; then
bec39cab
AC
20160
20161cat >>confdefs.h <<\_ACEOF
97bf5e38 20162#define HAVE_PR_SIGACTION64_T 1
bec39cab 20163_ACEOF
c906108c 20164
97bf5e38 20165 fi
b4e70030
JB
20166 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&5
20167echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_sigaction64_t" >&6
97bf5e38 20168
b4e70030
JB
20169 echo "$as_me:$LINENO: checking for pr_siginfo64_t in sys/procfs.h" >&5
20170echo $ECHO_N "checking for pr_siginfo64_t in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20171 if test "${bfd_cv_have_sys_procfs_type_pr_siginfo64_t+set}" = set; then
20172 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 20173else
bec39cab
AC
20174 cat >conftest.$ac_ext <<_ACEOF
20175/* confdefs.h. */
20176_ACEOF
20177cat confdefs.h >>conftest.$ac_ext
20178cat >>conftest.$ac_ext <<_ACEOF
20179/* end confdefs.h. */
97bf5e38
MK
20180
20181#define _SYSCALL32
20182#include <sys/procfs.h>
bec39cab
AC
20183int
20184main ()
20185{
97bf5e38 20186pr_siginfo64_t avar
bec39cab
AC
20187 ;
20188 return 0;
20189}
20190_ACEOF
20191rm -f conftest.$ac_objext
20192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20193 (eval $ac_compile) 2>conftest.er1
20194 ac_status=$?
20195 grep -v '^ *+' conftest.er1 >conftest.err
20196 rm -f conftest.er1
20197 cat conftest.err >&5
20198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199 (exit $ac_status); } &&
b4e70030
JB
20200 { ac_try='test -z "$ac_c_werror_flag"
20201 || test ! -s conftest.err'
bec39cab
AC
20202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20203 (eval $ac_try) 2>&5
20204 ac_status=$?
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 (exit $ac_status); }; } &&
20207 { ac_try='test -s conftest.$ac_objext'
20208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20209 (eval $ac_try) 2>&5
20210 ac_status=$?
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); }; }; then
97bf5e38
MK
20213 bfd_cv_have_sys_procfs_type_pr_siginfo64_t=yes
20214else
bec39cab
AC
20215 echo "$as_me: failed program was:" >&5
20216sed 's/^/| /' conftest.$ac_ext >&5
20217
b4e70030 20218bfd_cv_have_sys_procfs_type_pr_siginfo64_t=no
bec39cab 20219
97bf5e38 20220fi
bec39cab 20221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20222fi
c906108c 20223
97bf5e38 20224 if test $bfd_cv_have_sys_procfs_type_pr_siginfo64_t = yes; then
bec39cab
AC
20225
20226cat >>confdefs.h <<\_ACEOF
97bf5e38 20227#define HAVE_PR_SIGINFO64_T 1
bec39cab 20228_ACEOF
c906108c 20229
97bf5e38 20230 fi
b4e70030
JB
20231 echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&5
20232echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pr_siginfo64_t" >&6
bec39cab
AC
20233
20234
97bf5e38
MK
20235
20236
20237
97bf5e38 20238 if test $bfd_cv_have_sys_procfs_type_prfpregset_t = yes; then
b4e70030
JB
20239 echo "$as_me:$LINENO: checking whether prfpregset_t type is broken" >&5
20240echo $ECHO_N "checking whether prfpregset_t type is broken... $ECHO_C" >&6
bec39cab
AC
20241 if test "${gdb_cv_prfpregset_t_broken+set}" = set; then
20242 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
20243else
20244 if test "$cross_compiling" = yes; then
97bf5e38 20245 gdb_cv_prfpregset_t_broken=yes
c906108c 20246else
bec39cab
AC
20247 cat >conftest.$ac_ext <<_ACEOF
20248/* confdefs.h. */
20249_ACEOF
20250cat confdefs.h >>conftest.$ac_ext
20251cat >>conftest.$ac_ext <<_ACEOF
20252/* end confdefs.h. */
97bf5e38
MK
20253#include <sys/procfs.h>
20254 int main ()
20255 {
20256 if (sizeof (prfpregset_t) == sizeof (void *))
20257 return 1;
20258 return 0;
20259 }
bec39cab
AC
20260_ACEOF
20261rm -f conftest$ac_exeext
20262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20263 (eval $ac_link) 2>&5
20264 ac_status=$?
20265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20268 (eval $ac_try) 2>&5
20269 ac_status=$?
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); }; }; then
97bf5e38 20272 gdb_cv_prfpregset_t_broken=no
c906108c 20273else
bec39cab
AC
20274 echo "$as_me: program exited with status $ac_status" >&5
20275echo "$as_me: failed program was:" >&5
20276sed 's/^/| /' conftest.$ac_ext >&5
20277
20278( exit $ac_status )
20279gdb_cv_prfpregset_t_broken=yes
c906108c 20280fi
b4e70030 20281rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 20282fi
c906108c
SS
20283fi
20284
b4e70030
JB
20285 echo "$as_me:$LINENO: result: $gdb_cv_prfpregset_t_broken" >&5
20286echo "${ECHO_T}$gdb_cv_prfpregset_t_broken" >&6
97bf5e38 20287 if test $gdb_cv_prfpregset_t_broken = yes; then
60ca704f
SE
20288
20289cat >>confdefs.h <<\_ACEOF
97bf5e38 20290#define PRFPREGSET_T_BROKEN 1
bec39cab 20291_ACEOF
c906108c 20292
97bf5e38
MK
20293 fi
20294 fi
c906108c 20295
bec39cab 20296
b4e70030
JB
20297 echo "$as_me:$LINENO: checking for PIOCSET ioctl entry in sys/procfs.h" >&5
20298echo $ECHO_N "checking for PIOCSET ioctl entry in sys/procfs.h... $ECHO_C" >&6
bec39cab
AC
20299 if test "${gdb_cv_have_procfs_piocset+set}" = set; then
20300 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20301else
bec39cab
AC
20302 cat >conftest.$ac_ext <<_ACEOF
20303/* confdefs.h. */
20304_ACEOF
20305cat confdefs.h >>conftest.$ac_ext
20306cat >>conftest.$ac_ext <<_ACEOF
20307/* end confdefs.h. */
97bf5e38
MK
20308#include <unistd.h>
20309#include <sys/types.h>
20310#include <sys/procfs.h>
20311
bec39cab
AC
20312int
20313main ()
20314{
97bf5e38
MK
20315
20316 int dummy;;
20317 dummy = ioctl(0, PIOCSET, &dummy);
bec39cab
AC
20318
20319 ;
20320 return 0;
20321}
20322_ACEOF
20323rm -f conftest.$ac_objext
20324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20325 (eval $ac_compile) 2>conftest.er1
20326 ac_status=$?
20327 grep -v '^ *+' conftest.er1 >conftest.err
20328 rm -f conftest.er1
20329 cat conftest.err >&5
20330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331 (exit $ac_status); } &&
b4e70030
JB
20332 { ac_try='test -z "$ac_c_werror_flag"
20333 || test ! -s conftest.err'
bec39cab
AC
20334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20335 (eval $ac_try) 2>&5
20336 ac_status=$?
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); }; } &&
20339 { ac_try='test -s conftest.$ac_objext'
20340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20341 (eval $ac_try) 2>&5
20342 ac_status=$?
20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 (exit $ac_status); }; }; then
97bf5e38 20345 gdb_cv_have_procfs_piocset=yes
c906108c 20346else
bec39cab
AC
20347 echo "$as_me: failed program was:" >&5
20348sed 's/^/| /' conftest.$ac_ext >&5
20349
b4e70030 20350gdb_cv_have_procfs_piocset=no
c906108c 20351fi
bec39cab 20352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20353fi
97bf5e38 20354
b4e70030
JB
20355 echo "$as_me:$LINENO: result: $gdb_cv_have_procfs_piocset" >&5
20356echo "${ECHO_T}$gdb_cv_have_procfs_piocset" >&6
97bf5e38 20357 if test $gdb_cv_have_procfs_piocset = yes; then
60ca704f
SE
20358
20359cat >>confdefs.h <<\_ACEOF
97bf5e38 20360#define HAVE_PROCFS_PIOCSET 1
bec39cab 20361_ACEOF
97bf5e38
MK
20362
20363 fi
c906108c 20364fi
c906108c 20365
97bf5e38 20366if test ${host} = ${target} ; then
bec39cab 20367
b4e70030
JB
20368 echo "$as_me:$LINENO: checking for member l_addr in struct link_map" >&5
20369echo $ECHO_N "checking for member l_addr in struct link_map... $ECHO_C" >&6
bec39cab
AC
20370 if test "${gdb_cv_have_struct_link_map_with_l_members+set}" = set; then
20371 echo $ECHO_N "(cached) $ECHO_C" >&6
20372else
20373 cat >conftest.$ac_ext <<_ACEOF
20374/* confdefs.h. */
20375_ACEOF
20376cat confdefs.h >>conftest.$ac_ext
20377cat >>conftest.$ac_ext <<_ACEOF
20378/* end confdefs.h. */
97bf5e38 20379#include <link.h>
bec39cab
AC
20380int
20381main ()
20382{
97bf5e38 20383struct link_map lm; (void) lm.l_addr;
bec39cab
AC
20384 ;
20385 return 0;
20386}
20387_ACEOF
20388rm -f conftest.$ac_objext
20389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20390 (eval $ac_compile) 2>conftest.er1
20391 ac_status=$?
20392 grep -v '^ *+' conftest.er1 >conftest.err
20393 rm -f conftest.er1
20394 cat conftest.err >&5
20395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396 (exit $ac_status); } &&
b4e70030
JB
20397 { ac_try='test -z "$ac_c_werror_flag"
20398 || test ! -s conftest.err'
bec39cab
AC
20399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20400 (eval $ac_try) 2>&5
20401 ac_status=$?
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); }; } &&
20404 { ac_try='test -s conftest.$ac_objext'
20405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20406 (eval $ac_try) 2>&5
20407 ac_status=$?
20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); }; }; then
97bf5e38 20410 gdb_cv_have_struct_link_map_with_l_members=yes
c906108c 20411else
bec39cab
AC
20412 echo "$as_me: failed program was:" >&5
20413sed 's/^/| /' conftest.$ac_ext >&5
20414
b4e70030 20415gdb_cv_have_struct_link_map_with_l_members=no
c906108c 20416fi
bec39cab 20417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c
SS
20418fi
20419
b4e70030
JB
20420 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_l_members" >&5
20421echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_l_members" >&6
97bf5e38 20422 if test $gdb_cv_have_struct_link_map_with_l_members = yes; then
60ca704f
SE
20423
20424cat >>confdefs.h <<\_ACEOF
97bf5e38 20425#define HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS 1
bec39cab 20426_ACEOF
97bf5e38
MK
20427
20428 fi
20429
bec39cab 20430
b4e70030
JB
20431 echo "$as_me:$LINENO: checking for member lm_addr in struct link_map" >&5
20432echo $ECHO_N "checking for member lm_addr in struct link_map... $ECHO_C" >&6
bec39cab
AC
20433 if test "${gdb_cv_have_struct_link_map_with_lm_members+set}" = set; then
20434 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20435else
bec39cab
AC
20436 cat >conftest.$ac_ext <<_ACEOF
20437/* confdefs.h. */
20438_ACEOF
20439cat confdefs.h >>conftest.$ac_ext
20440cat >>conftest.$ac_ext <<_ACEOF
20441/* end confdefs.h. */
97bf5e38
MK
20442#include <sys/types.h>
20443#include <link.h>
bec39cab
AC
20444int
20445main ()
20446{
97bf5e38 20447struct link_map lm; (void) lm.lm_addr;
bec39cab
AC
20448 ;
20449 return 0;
20450}
20451_ACEOF
20452rm -f conftest.$ac_objext
20453if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20454 (eval $ac_compile) 2>conftest.er1
20455 ac_status=$?
20456 grep -v '^ *+' conftest.er1 >conftest.err
20457 rm -f conftest.er1
20458 cat conftest.err >&5
20459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20460 (exit $ac_status); } &&
b4e70030
JB
20461 { ac_try='test -z "$ac_c_werror_flag"
20462 || test ! -s conftest.err'
bec39cab
AC
20463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20464 (eval $ac_try) 2>&5
20465 ac_status=$?
20466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20467 (exit $ac_status); }; } &&
20468 { ac_try='test -s conftest.$ac_objext'
20469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20470 (eval $ac_try) 2>&5
20471 ac_status=$?
20472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473 (exit $ac_status); }; }; then
97bf5e38
MK
20474 gdb_cv_have_struct_link_map_with_lm_members=yes
20475else
bec39cab
AC
20476 echo "$as_me: failed program was:" >&5
20477sed 's/^/| /' conftest.$ac_ext >&5
20478
b4e70030 20479gdb_cv_have_struct_link_map_with_lm_members=no
97bf5e38 20480fi
bec39cab 20481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
c906108c 20482fi
c906108c 20483
b4e70030
JB
20484 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map_with_lm_members" >&5
20485echo "${ECHO_T}$gdb_cv_have_struct_link_map_with_lm_members" >&6
97bf5e38 20486 if test $gdb_cv_have_struct_link_map_with_lm_members = yes; then
60ca704f
SE
20487
20488cat >>confdefs.h <<\_ACEOF
97bf5e38 20489#define HAVE_STRUCT_LINK_MAP_WITH_LM_MEMBERS 1
bec39cab 20490_ACEOF
97bf5e38
MK
20491
20492 fi
20493
bec39cab 20494
b4e70030
JB
20495 echo "$as_me:$LINENO: checking for member som_addr in struct so_map" >&5
20496echo $ECHO_N "checking for member som_addr in struct so_map... $ECHO_C" >&6
bec39cab
AC
20497 if test "${gdb_cv_have_struct_so_map_with_som_members+set}" = set; then
20498 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 20499else
bec39cab
AC
20500 cat >conftest.$ac_ext <<_ACEOF
20501/* confdefs.h. */
20502_ACEOF
20503cat confdefs.h >>conftest.$ac_ext
20504cat >>conftest.$ac_ext <<_ACEOF
20505/* end confdefs.h. */
97bf5e38
MK
20506#include <sys/types.h>
20507#ifdef HAVE_NLIST_H
20508#include <nlist.h>
20509#endif
20510#include <link.h>
bec39cab
AC
20511int
20512main ()
20513{
97bf5e38 20514struct so_map lm; (void) lm.som_addr;
bec39cab
AC
20515 ;
20516 return 0;
20517}
20518_ACEOF
20519rm -f conftest.$ac_objext
20520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20521 (eval $ac_compile) 2>conftest.er1
20522 ac_status=$?
20523 grep -v '^ *+' conftest.er1 >conftest.err
20524 rm -f conftest.er1
20525 cat conftest.err >&5
20526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20527 (exit $ac_status); } &&
b4e70030
JB
20528 { ac_try='test -z "$ac_c_werror_flag"
20529 || test ! -s conftest.err'
bec39cab
AC
20530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20531 (eval $ac_try) 2>&5
20532 ac_status=$?
20533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20534 (exit $ac_status); }; } &&
20535 { ac_try='test -s conftest.$ac_objext'
20536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20537 (eval $ac_try) 2>&5
20538 ac_status=$?
20539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540 (exit $ac_status); }; }; then
97bf5e38
MK
20541 gdb_cv_have_struct_so_map_with_som_members=yes
20542else
bec39cab
AC
20543 echo "$as_me: failed program was:" >&5
20544sed 's/^/| /' conftest.$ac_ext >&5
20545
b4e70030 20546gdb_cv_have_struct_so_map_with_som_members=no
97bf5e38 20547fi
bec39cab 20548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 20549fi
c906108c 20550
b4e70030
JB
20551 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_so_map_with_som_members" >&5
20552echo "${ECHO_T}$gdb_cv_have_struct_so_map_with_som_members" >&6
97bf5e38 20553 if test $gdb_cv_have_struct_so_map_with_som_members = yes; then
60ca704f
SE
20554
20555cat >>confdefs.h <<\_ACEOF
97bf5e38 20556#define HAVE_STRUCT_SO_MAP_WITH_SOM_MEMBERS 1
bec39cab 20557_ACEOF
c906108c 20558
97bf5e38 20559 fi
c906108c 20560
bec39cab 20561
b4e70030
JB
20562 echo "$as_me:$LINENO: checking for struct link_map32 in sys/link.h" >&5
20563echo $ECHO_N "checking for struct link_map32 in sys/link.h... $ECHO_C" >&6
bec39cab
AC
20564 if test "${gdb_cv_have_struct_link_map32+set}" = set; then
20565 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 20566else
bec39cab
AC
20567 cat >conftest.$ac_ext <<_ACEOF
20568/* confdefs.h. */
20569_ACEOF
20570cat confdefs.h >>conftest.$ac_ext
20571cat >>conftest.$ac_ext <<_ACEOF
20572/* end confdefs.h. */
97bf5e38
MK
20573#define _SYSCALL32
20574#include <sys/link.h>
bec39cab
AC
20575int
20576main ()
20577{
97bf5e38 20578struct link_map32 l;
bec39cab
AC
20579 ;
20580 return 0;
20581}
20582_ACEOF
20583rm -f conftest.$ac_objext
20584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20585 (eval $ac_compile) 2>conftest.er1
20586 ac_status=$?
20587 grep -v '^ *+' conftest.er1 >conftest.err
20588 rm -f conftest.er1
20589 cat conftest.err >&5
20590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591 (exit $ac_status); } &&
b4e70030
JB
20592 { ac_try='test -z "$ac_c_werror_flag"
20593 || test ! -s conftest.err'
bec39cab
AC
20594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20595 (eval $ac_try) 2>&5
20596 ac_status=$?
20597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20598 (exit $ac_status); }; } &&
20599 { ac_try='test -s conftest.$ac_objext'
20600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20601 (eval $ac_try) 2>&5
20602 ac_status=$?
20603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604 (exit $ac_status); }; }; then
97bf5e38
MK
20605 gdb_cv_have_struct_link_map32=yes
20606else
bec39cab
AC
20607 echo "$as_me: failed program was:" >&5
20608sed 's/^/| /' conftest.$ac_ext >&5
20609
b4e70030 20610gdb_cv_have_struct_link_map32=no
97bf5e38 20611fi
bec39cab 20612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 20613fi
c906108c 20614
b4e70030
JB
20615 echo "$as_me:$LINENO: result: $gdb_cv_have_struct_link_map32" >&5
20616echo "${ECHO_T}$gdb_cv_have_struct_link_map32" >&6
97bf5e38 20617 if test $gdb_cv_have_struct_link_map32 = yes; then
60ca704f
SE
20618
20619cat >>confdefs.h <<\_ACEOF
97bf5e38 20620#define HAVE_STRUCT_LINK_MAP32 1
bec39cab 20621_ACEOF
c906108c 20622
60ca704f
SE
20623
20624cat >>confdefs.h <<\_ACEOF
97bf5e38 20625#define _SYSCALL32 1
bec39cab 20626_ACEOF
c906108c 20627
97bf5e38
MK
20628 fi
20629fi
c906108c 20630
bc8bcb4b 20631# Check if the compiler supports the `long long' type.
c906108c 20632
b4e70030
JB
20633echo "$as_me:$LINENO: checking for long long support in compiler" >&5
20634echo $ECHO_N "checking for long long support in compiler... $ECHO_C" >&6
bec39cab
AC
20635if test "${gdb_cv_c_long_long+set}" = set; then
20636 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 20637else
bec39cab
AC
20638 cat >conftest.$ac_ext <<_ACEOF
20639/* confdefs.h. */
20640_ACEOF
20641cat confdefs.h >>conftest.$ac_ext
20642cat >>conftest.$ac_ext <<_ACEOF
20643/* end confdefs.h. */
bc8bcb4b 20644extern long long foo;
bec39cab
AC
20645int
20646main ()
20647{
bc8bcb4b 20648switch (foo & 2) { case 0: return 1; }
bec39cab
AC
20649 ;
20650 return 0;
20651}
20652_ACEOF
20653rm -f conftest.$ac_objext
20654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20655 (eval $ac_compile) 2>conftest.er1
20656 ac_status=$?
20657 grep -v '^ *+' conftest.er1 >conftest.err
20658 rm -f conftest.er1
20659 cat conftest.err >&5
20660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661 (exit $ac_status); } &&
b4e70030
JB
20662 { ac_try='test -z "$ac_c_werror_flag"
20663 || test ! -s conftest.err'
bec39cab
AC
20664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20665 (eval $ac_try) 2>&5
20666 ac_status=$?
20667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20668 (exit $ac_status); }; } &&
20669 { ac_try='test -s conftest.$ac_objext'
20670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20671 (eval $ac_try) 2>&5
20672 ac_status=$?
20673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674 (exit $ac_status); }; }; then
97bf5e38
MK
20675 gdb_cv_c_long_long=yes
20676else
bec39cab
AC
20677 echo "$as_me: failed program was:" >&5
20678sed 's/^/| /' conftest.$ac_ext >&5
20679
b4e70030 20680gdb_cv_c_long_long=no
97bf5e38 20681fi
bec39cab 20682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 20683fi
b4e70030
JB
20684echo "$as_me:$LINENO: result: $gdb_cv_c_long_long" >&5
20685echo "${ECHO_T}$gdb_cv_c_long_long" >&6
97bf5e38 20686if test $gdb_cv_c_long_long = yes; then
bc8bcb4b
MK
20687
20688cat >>confdefs.h <<\_ACEOF
97bf5e38 20689#define CC_HAS_LONG_LONG 1
bec39cab 20690_ACEOF
97bf5e38
MK
20691
20692fi
20693
bc8bcb4b 20694# Check if the compiler and runtime support printing long longs.
97bf5e38 20695
b4e70030
JB
20696echo "$as_me:$LINENO: checking for long long support in printf" >&5
20697echo $ECHO_N "checking for long long support in printf... $ECHO_C" >&6
bec39cab
AC
20698if test "${gdb_cv_printf_has_long_long+set}" = set; then
20699 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
20700else
20701 if test "$cross_compiling" = yes; then
20702 gdb_cv_printf_has_long_long=no
20703else
bec39cab
AC
20704 cat >conftest.$ac_ext <<_ACEOF
20705/* confdefs.h. */
20706_ACEOF
20707cat confdefs.h >>conftest.$ac_ext
20708cat >>conftest.$ac_ext <<_ACEOF
20709/* end confdefs.h. */
bc8bcb4b
MK
20710$ac_includes_default
20711int
20712main ()
20713{
20714char buf[32];
97bf5e38
MK
20715 long long l = 0;
20716 l = (l << 16) + 0x0123;
20717 l = (l << 16) + 0x4567;
20718 l = (l << 16) + 0x89ab;
20719 l = (l << 16) + 0xcdef;
20720 sprintf (buf, "0x%016llx", l);
20721 return (strcmp ("0x0123456789abcdef", buf));
bc8bcb4b
MK
20722 ;
20723 return 0;
c906108c 20724}
bec39cab
AC
20725_ACEOF
20726rm -f conftest$ac_exeext
20727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20728 (eval $ac_link) 2>&5
20729 ac_status=$?
20730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20731 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20733 (eval $ac_try) 2>&5
20734 ac_status=$?
20735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736 (exit $ac_status); }; }; then
97bf5e38
MK
20737 gdb_cv_printf_has_long_long=yes
20738else
bec39cab
AC
20739 echo "$as_me: program exited with status $ac_status" >&5
20740echo "$as_me: failed program was:" >&5
20741sed 's/^/| /' conftest.$ac_ext >&5
20742
20743( exit $ac_status )
20744gdb_cv_printf_has_long_long=no
97bf5e38 20745fi
b4e70030 20746rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 20747fi
97bf5e38 20748fi
b4e70030
JB
20749echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_long" >&5
20750echo "${ECHO_T}$gdb_cv_printf_has_long_long" >&6
97bf5e38 20751if test $gdb_cv_printf_has_long_long = yes; then
bc8bcb4b
MK
20752
20753cat >>confdefs.h <<\_ACEOF
97bf5e38 20754#define PRINTF_HAS_LONG_LONG 1
bec39cab 20755_ACEOF
97bf5e38
MK
20756
20757fi
97bf5e38 20758
bc8bcb4b
MK
20759# Check if the compiler supports the `long double' type. We can't use
20760# AC_C_LONG_DOUBLE because that one does additional checks on the
20761# constants defined in <float.h> that fail on some systems,
20762# e.g. FreeBSD/i386 4.7 and OpenBSD/i386 3.6.
97bf5e38 20763
b4e70030
JB
20764echo "$as_me:$LINENO: checking for long double support in compiler" >&5
20765echo $ECHO_N "checking for long double support in compiler... $ECHO_C" >&6
bc8bcb4b 20766if test "${gdb_cv_c_long_double+set}" = set; then
bec39cab 20767 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38 20768else
bec39cab
AC
20769 cat >conftest.$ac_ext <<_ACEOF
20770/* confdefs.h. */
20771_ACEOF
20772cat confdefs.h >>conftest.$ac_ext
20773cat >>conftest.$ac_ext <<_ACEOF
20774/* end confdefs.h. */
97bf5e38 20775long double foo;
bec39cab
AC
20776_ACEOF
20777rm -f conftest.$ac_objext
20778if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20779 (eval $ac_compile) 2>conftest.er1
20780 ac_status=$?
20781 grep -v '^ *+' conftest.er1 >conftest.err
20782 rm -f conftest.er1
20783 cat conftest.err >&5
20784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785 (exit $ac_status); } &&
b4e70030
JB
20786 { ac_try='test -z "$ac_c_werror_flag"
20787 || test ! -s conftest.err'
bec39cab
AC
20788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20789 (eval $ac_try) 2>&5
20790 ac_status=$?
20791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792 (exit $ac_status); }; } &&
20793 { ac_try='test -s conftest.$ac_objext'
20794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20795 (eval $ac_try) 2>&5
20796 ac_status=$?
20797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798 (exit $ac_status); }; }; then
bc8bcb4b 20799 gdb_cv_c_long_double=yes
97bf5e38 20800else
bec39cab
AC
20801 echo "$as_me: failed program was:" >&5
20802sed 's/^/| /' conftest.$ac_ext >&5
20803
b4e70030 20804gdb_cv_c_long_double=no
97bf5e38 20805fi
bec39cab 20806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
97bf5e38 20807fi
b4e70030
JB
20808echo "$as_me:$LINENO: result: $gdb_cv_c_long_double" >&5
20809echo "${ECHO_T}$gdb_cv_c_long_double" >&6
bc8bcb4b 20810if test $gdb_cv_c_long_double = yes; then
c906108c 20811
bc8bcb4b 20812cat >>confdefs.h <<\_ACEOF
97bf5e38 20813#define HAVE_LONG_DOUBLE 1
bec39cab 20814_ACEOF
97bf5e38
MK
20815
20816fi
20817
bc8bcb4b 20818# Check if the compiler and runtime support printing long doubles.
97bf5e38 20819
b4e70030
JB
20820echo "$as_me:$LINENO: checking for long double support in printf" >&5
20821echo $ECHO_N "checking for long double support in printf... $ECHO_C" >&6
bec39cab
AC
20822if test "${gdb_cv_printf_has_long_double+set}" = set; then
20823 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
20824else
20825 if test "$cross_compiling" = yes; then
20826 gdb_cv_printf_has_long_double=no
20827else
bec39cab
AC
20828 cat >conftest.$ac_ext <<_ACEOF
20829/* confdefs.h. */
20830_ACEOF
20831cat confdefs.h >>conftest.$ac_ext
20832cat >>conftest.$ac_ext <<_ACEOF
20833/* end confdefs.h. */
bc8bcb4b
MK
20834$ac_includes_default
20835int
20836main ()
20837{
20838char buf[16];
97bf5e38
MK
20839 long double f = 3.141592653;
20840 sprintf (buf, "%Lg", f);
20841 return (strncmp ("3.14159", buf, 7));
bc8bcb4b
MK
20842 ;
20843 return 0;
97bf5e38 20844}
bec39cab
AC
20845_ACEOF
20846rm -f conftest$ac_exeext
20847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20848 (eval $ac_link) 2>&5
20849 ac_status=$?
20850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20853 (eval $ac_try) 2>&5
20854 ac_status=$?
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 (exit $ac_status); }; }; then
97bf5e38 20857 gdb_cv_printf_has_long_double=yes
c906108c 20858else
bec39cab
AC
20859 echo "$as_me: program exited with status $ac_status" >&5
20860echo "$as_me: failed program was:" >&5
20861sed 's/^/| /' conftest.$ac_ext >&5
20862
20863( exit $ac_status )
20864gdb_cv_printf_has_long_double=no
c906108c 20865fi
b4e70030 20866rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
c906108c 20867fi
c906108c 20868fi
b4e70030
JB
20869echo "$as_me:$LINENO: result: $gdb_cv_printf_has_long_double" >&5
20870echo "${ECHO_T}$gdb_cv_printf_has_long_double" >&6
97bf5e38 20871if test $gdb_cv_printf_has_long_double = yes; then
bc8bcb4b
MK
20872
20873cat >>confdefs.h <<\_ACEOF
97bf5e38 20874#define PRINTF_HAS_LONG_DOUBLE 1
bec39cab 20875_ACEOF
97bf5e38
MK
20876
20877fi
97bf5e38 20878
bc8bcb4b 20879# Check if the compiler and runtime support scanning long doubles.
97bf5e38 20880
b4e70030
JB
20881echo "$as_me:$LINENO: checking for long double support in scanf" >&5
20882echo $ECHO_N "checking for long double support in scanf... $ECHO_C" >&6
bec39cab
AC
20883if test "${gdb_cv_scanf_has_long_double+set}" = set; then
20884 echo $ECHO_N "(cached) $ECHO_C" >&6
97bf5e38
MK
20885else
20886 if test "$cross_compiling" = yes; then
20887 gdb_cv_scanf_has_long_double=no
20888else
bec39cab
AC
20889 cat >conftest.$ac_ext <<_ACEOF
20890/* confdefs.h. */
20891_ACEOF
20892cat confdefs.h >>conftest.$ac_ext
20893cat >>conftest.$ac_ext <<_ACEOF
20894/* end confdefs.h. */
bc8bcb4b
MK
20895#include <stdio.h>
20896int
20897main ()
20898{
20899char *buf = "3.141592653";
97bf5e38
MK
20900 long double f = 0;
20901 sscanf (buf, "%Lg", &f);
20902 return !(f > 3.14159 && f < 3.14160);
bc8bcb4b
MK
20903 ;
20904 return 0;
97bf5e38 20905}
bec39cab
AC
20906_ACEOF
20907rm -f conftest$ac_exeext
20908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20909 (eval $ac_link) 2>&5
20910 ac_status=$?
20911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20914 (eval $ac_try) 2>&5
20915 ac_status=$?
20916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20917 (exit $ac_status); }; }; then
97bf5e38
MK
20918 gdb_cv_scanf_has_long_double=yes
20919else
bec39cab
AC
20920 echo "$as_me: program exited with status $ac_status" >&5
20921echo "$as_me: failed program was:" >&5
20922sed 's/^/| /' conftest.$ac_ext >&5
20923
20924( exit $ac_status )
20925gdb_cv_scanf_has_long_double=no
97bf5e38 20926fi
b4e70030 20927rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
97bf5e38 20928fi
c906108c 20929fi
b4e70030
JB
20930echo "$as_me:$LINENO: result: $gdb_cv_scanf_has_long_double" >&5
20931echo "${ECHO_T}$gdb_cv_scanf_has_long_double" >&6
97bf5e38 20932if test $gdb_cv_scanf_has_long_double = yes; then
bc8bcb4b
MK
20933
20934cat >>confdefs.h <<\_ACEOF
97bf5e38 20935#define SCANF_HAS_LONG_DOUBLE 1
bec39cab 20936_ACEOF
97bf5e38
MK
20937
20938fi
c906108c 20939
438013df
AO
20940case ${host_os} in
20941aix*)
b4e70030
JB
20942 echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
20943echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6
bec39cab
AC
20944if test "${gdb_cv_bigtoc+set}" = set; then
20945 echo $ECHO_N "(cached) $ECHO_C" >&6
438013df 20946else
bec39cab 20947
438013df
AO
20948 SAVE_LDFLAGS=$LDFLAGS
20949
20950 case $GCC in
20951 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
20952 *) gdb_cv_bigtoc=-bbigtoc ;;
20953 esac
20954
20955 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
bec39cab
AC
20956 cat >conftest.$ac_ext <<_ACEOF
20957/* confdefs.h. */
20958_ACEOF
20959cat confdefs.h >>conftest.$ac_ext
20960cat >>conftest.$ac_ext <<_ACEOF
20961/* end confdefs.h. */
438013df 20962
bec39cab
AC
20963int
20964main ()
20965{
438013df 20966int i;
bec39cab
AC
20967 ;
20968 return 0;
20969}
20970_ACEOF
20971rm -f conftest.$ac_objext conftest$ac_exeext
20972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20973 (eval $ac_link) 2>conftest.er1
20974 ac_status=$?
20975 grep -v '^ *+' conftest.er1 >conftest.err
20976 rm -f conftest.er1
20977 cat conftest.err >&5
20978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979 (exit $ac_status); } &&
b4e70030
JB
20980 { ac_try='test -z "$ac_c_werror_flag"
20981 || test ! -s conftest.err'
bec39cab
AC
20982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20983 (eval $ac_try) 2>&5
20984 ac_status=$?
20985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986 (exit $ac_status); }; } &&
20987 { ac_try='test -s conftest$ac_exeext'
20988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20989 (eval $ac_try) 2>&5
20990 ac_status=$?
20991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992 (exit $ac_status); }; }; then
438013df
AO
20993 :
20994else
bec39cab
AC
20995 echo "$as_me: failed program was:" >&5
20996sed 's/^/| /' conftest.$ac_ext >&5
20997
b4e70030 20998gdb_cv_bigtoc=
438013df 20999fi
bec39cab
AC
21000rm -f conftest.err conftest.$ac_objext \
21001 conftest$ac_exeext conftest.$ac_ext
ec76baa5 21002 LDFLAGS="${SAVE_LDFLAGS}"
438013df 21003
bec39cab 21004fi
b4e70030
JB
21005echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
21006echo "${ECHO_T}$gdb_cv_bigtoc" >&6
438013df
AO
21007 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} ${gdb_cv_bigtoc}"
21008 ;;
21009esac
21010
c906108c
SS
21011
21012
21013if test ${build} = ${host} -a ${host} = ${target} ; then
21014 case ${host_os} in
21015 hpux*)
b4e70030
JB
21016 echo "$as_me:$LINENO: checking for HPUX/OSF thread support" >&5
21017echo $ECHO_N "checking for HPUX/OSF thread support... $ECHO_C" >&6
c906108c
SS
21018 if test -f /usr/include/dce/cma_config.h ; then
21019 if test "$GCC" = "yes" ; then
b4e70030
JB
21020 echo "$as_me:$LINENO: result: yes" >&5
21021echo "${ECHO_T}yes" >&6
60ca704f
SE
21022
21023cat >>confdefs.h <<\_ACEOF
c906108c 21024#define HAVE_HPUX_THREAD_SUPPORT 1
bec39cab 21025_ACEOF
c906108c 21026
3483b318 21027 CONFIG_OBS="${CONFIG_OBS} hpux-thread.o"
c906108c
SS
21028 CONFIG_SRCS="${CONFIG_SRCS} hpux-thread.c"
21029 else
b4e70030
JB
21030 echo "$as_me:$LINENO: result: no (suppressed because you are not using GCC)" >&5
21031echo "${ECHO_T}no (suppressed because you are not using GCC)" >&6
c906108c
SS
21032 fi
21033 else
b4e70030
JB
21034 echo "$as_me:$LINENO: result: no" >&5
21035echo "${ECHO_T}no" >&6
c906108c
SS
21036 fi
21037 ;;
21038 solaris*)
d92419e5
JB
21039 # See if thread_db library is around for Solaris thread debugging.
21040 # Note that we must explicitly test for version 1 of the library
21041 # because version 0 (present on Solaris 2.4 or earlier) doesn't have
21042 # the same API.
b4e70030
JB
21043 echo "$as_me:$LINENO: checking for Solaris thread debugging library" >&5
21044echo $ECHO_N "checking for Solaris thread debugging library... $ECHO_C" >&6
c906108c 21045 if test -f /usr/lib/libthread_db.so.1 ; then
b4e70030
JB
21046 echo "$as_me:$LINENO: result: yes" >&5
21047echo "${ECHO_T}yes" >&6
60ca704f
SE
21048
21049cat >>confdefs.h <<\_ACEOF
c906108c 21050#define HAVE_THREAD_DB_LIB 1
bec39cab 21051_ACEOF
c906108c 21052
3483b318 21053 CONFIG_OBS="${CONFIG_OBS} sol-thread.o"
c906108c 21054 CONFIG_SRCS="${CONFIG_SRCS} sol-thread.c"
bec39cab 21055
b4e70030
JB
21056echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21057echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
bec39cab
AC
21058if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21059 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 21060else
bec39cab 21061 ac_check_lib_save_LIBS=$LIBS
c906108c 21062LIBS="-ldl $LIBS"
bec39cab
AC
21063cat >conftest.$ac_ext <<_ACEOF
21064/* confdefs.h. */
21065_ACEOF
21066cat confdefs.h >>conftest.$ac_ext
21067cat >>conftest.$ac_ext <<_ACEOF
21068/* end confdefs.h. */
21069
b4e70030 21070/* Override any gcc2 internal prototype to avoid an error. */
bec39cab
AC
21071#ifdef __cplusplus
21072extern "C"
21073#endif
b4e70030
JB
21074/* We use char because int might match the return type of a gcc2
21075 builtin and then its argument prototype would still apply. */
bec39cab
AC
21076char dlopen ();
21077int
21078main ()
21079{
b4e70030 21080dlopen ();
bec39cab
AC
21081 ;
21082 return 0;
21083}
21084_ACEOF
21085rm -f conftest.$ac_objext conftest$ac_exeext
21086if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21087 (eval $ac_link) 2>conftest.er1
21088 ac_status=$?
21089 grep -v '^ *+' conftest.er1 >conftest.err
21090 rm -f conftest.er1
21091 cat conftest.err >&5
21092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093 (exit $ac_status); } &&
b4e70030
JB
21094 { ac_try='test -z "$ac_c_werror_flag"
21095 || test ! -s conftest.err'
bec39cab
AC
21096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21097 (eval $ac_try) 2>&5
21098 ac_status=$?
21099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100 (exit $ac_status); }; } &&
21101 { ac_try='test -s conftest$ac_exeext'
21102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21103 (eval $ac_try) 2>&5
21104 ac_status=$?
21105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106 (exit $ac_status); }; }; then
21107 ac_cv_lib_dl_dlopen=yes
21108else
21109 echo "$as_me: failed program was:" >&5
21110sed 's/^/| /' conftest.$ac_ext >&5
21111
b4e70030 21112ac_cv_lib_dl_dlopen=no
bec39cab
AC
21113fi
21114rm -f conftest.err conftest.$ac_objext \
21115 conftest$ac_exeext conftest.$ac_ext
21116LIBS=$ac_check_lib_save_LIBS
21117fi
b4e70030
JB
21118echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21119echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
bec39cab
AC
21120if test $ac_cv_lib_dl_dlopen = yes; then
21121 cat >>confdefs.h <<_ACEOF
21122#define HAVE_LIBDL 1
21123_ACEOF
c906108c
SS
21124
21125 LIBS="-ldl $LIBS"
21126
c906108c
SS
21127fi
21128
21129 if test "$GCC" = "yes" ; then
21130 # The GNU linker requires the -export-dynamic option to make
21131 # all symbols visible in the dynamic symbol table.
21132 hold_ldflags=$LDFLAGS
b4e70030
JB
21133 echo "$as_me:$LINENO: checking for the ld -export-dynamic flag" >&5
21134echo $ECHO_N "checking for the ld -export-dynamic flag... $ECHO_C" >&6
c906108c 21135 LDFLAGS="${LDFLAGS} -Wl,-export-dynamic"
bec39cab
AC
21136 cat >conftest.$ac_ext <<_ACEOF
21137/* confdefs.h. */
21138_ACEOF
21139cat confdefs.h >>conftest.$ac_ext
21140cat >>conftest.$ac_ext <<_ACEOF
21141/* end confdefs.h. */
c906108c 21142
bec39cab
AC
21143int
21144main ()
21145{
c906108c 21146int i;
bec39cab
AC
21147 ;
21148 return 0;
21149}
21150_ACEOF
21151rm -f conftest.$ac_objext conftest$ac_exeext
21152if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21153 (eval $ac_link) 2>conftest.er1
21154 ac_status=$?
21155 grep -v '^ *+' conftest.er1 >conftest.err
21156 rm -f conftest.er1
21157 cat conftest.err >&5
21158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159 (exit $ac_status); } &&
b4e70030
JB
21160 { ac_try='test -z "$ac_c_werror_flag"
21161 || test ! -s conftest.err'
bec39cab
AC
21162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21163 (eval $ac_try) 2>&5
21164 ac_status=$?
21165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21166 (exit $ac_status); }; } &&
21167 { ac_try='test -s conftest$ac_exeext'
21168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21169 (eval $ac_try) 2>&5
21170 ac_status=$?
21171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21172 (exit $ac_status); }; }; then
c906108c
SS
21173 found=yes
21174else
bec39cab
AC
21175 echo "$as_me: failed program was:" >&5
21176sed 's/^/| /' conftest.$ac_ext >&5
21177
b4e70030 21178found=no
c906108c 21179fi
bec39cab
AC
21180rm -f conftest.err conftest.$ac_objext \
21181 conftest$ac_exeext conftest.$ac_ext
c906108c 21182 LDFLAGS=$hold_ldflags
b4e70030
JB
21183 echo "$as_me:$LINENO: result: $found" >&5
21184echo "${ECHO_T}$found" >&6
c906108c
SS
21185 if test $found = yes; then
21186 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -Wl,-export-dynamic"
21187 fi
21188 fi
21189 # Sun randomly tweaked the prototypes in <proc_service.h>
21190 # at one point.
b4e70030
JB
21191 echo "$as_me:$LINENO: checking if <proc_service.h> is old" >&5
21192echo $ECHO_N "checking if <proc_service.h> is old... $ECHO_C" >&6
bec39cab
AC
21193 if test "${gdb_cv_proc_service_is_old+set}" = set; then
21194 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c 21195else
bec39cab
AC
21196
21197 cat >conftest.$ac_ext <<_ACEOF
21198/* confdefs.h. */
21199_ACEOF
21200cat confdefs.h >>conftest.$ac_ext
21201cat >>conftest.$ac_ext <<_ACEOF
21202/* end confdefs.h. */
c906108c
SS
21203
21204 #include <proc_service.h>
21205 ps_err_e ps_pdwrite
21206 (struct ps_prochandle*, psaddr_t, const void*, size_t);
c906108c 21207
bec39cab
AC
21208int
21209main ()
21210{
21211
21212 ;
21213 return 0;
21214}
21215_ACEOF
21216rm -f conftest.$ac_objext
21217if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21218 (eval $ac_compile) 2>conftest.er1
21219 ac_status=$?
21220 grep -v '^ *+' conftest.er1 >conftest.err
21221 rm -f conftest.er1
21222 cat conftest.err >&5
21223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21224 (exit $ac_status); } &&
b4e70030
JB
21225 { ac_try='test -z "$ac_c_werror_flag"
21226 || test ! -s conftest.err'
bec39cab
AC
21227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21228 (eval $ac_try) 2>&5
21229 ac_status=$?
21230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21231 (exit $ac_status); }; } &&
21232 { ac_try='test -s conftest.$ac_objext'
21233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21234 (eval $ac_try) 2>&5
21235 ac_status=$?
21236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237 (exit $ac_status); }; }; then
c906108c
SS
21238 gdb_cv_proc_service_is_old=no
21239else
bec39cab
AC
21240 echo "$as_me: failed program was:" >&5
21241sed 's/^/| /' conftest.$ac_ext >&5
21242
b4e70030 21243gdb_cv_proc_service_is_old=yes
c906108c 21244fi
bec39cab
AC
21245rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21246
c906108c
SS
21247fi
21248
b4e70030
JB
21249 echo "$as_me:$LINENO: result: $gdb_cv_proc_service_is_old" >&5
21250echo "${ECHO_T}$gdb_cv_proc_service_is_old" >&6
c906108c 21251 if test $gdb_cv_proc_service_is_old = yes; then
60ca704f
SE
21252
21253cat >>confdefs.h <<\_ACEOF
c906108c 21254#define PROC_SERVICE_IS_OLD 1
bec39cab 21255_ACEOF
c906108c
SS
21256
21257 fi
21258 else
b4e70030
JB
21259 echo "$as_me:$LINENO: result: no" >&5
21260echo "${ECHO_T}no" >&6
c906108c
SS
21261 fi
21262 ;;
d92419e5 21263 aix*)
b4e70030
JB
21264 echo "$as_me:$LINENO: checking for AiX thread debugging library" >&5
21265echo $ECHO_N "checking for AiX thread debugging library... $ECHO_C" >&6
bec39cab
AC
21266 if test "${gdb_cv_have_aix_thread_debug+set}" = set; then
21267 echo $ECHO_N "(cached) $ECHO_C" >&6
21268else
21269 cat >conftest.$ac_ext <<_ACEOF
21270/* confdefs.h. */
21271_ACEOF
21272cat confdefs.h >>conftest.$ac_ext
21273cat >>conftest.$ac_ext <<_ACEOF
21274/* end confdefs.h. */
d92419e5 21275#include <sys/pthdebug.h>
bec39cab
AC
21276int
21277main ()
21278{
d92419e5
JB
21279#ifndef PTHDB_VERSION_3
21280 #error
21281 #endif
bec39cab
AC
21282 ;
21283 return 0;
21284}
21285_ACEOF
21286rm -f conftest.$ac_objext
21287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21288 (eval $ac_compile) 2>conftest.er1
21289 ac_status=$?
21290 grep -v '^ *+' conftest.er1 >conftest.err
21291 rm -f conftest.er1
21292 cat conftest.err >&5
21293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294 (exit $ac_status); } &&
b4e70030
JB
21295 { ac_try='test -z "$ac_c_werror_flag"
21296 || test ! -s conftest.err'
bec39cab
AC
21297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21298 (eval $ac_try) 2>&5
21299 ac_status=$?
21300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301 (exit $ac_status); }; } &&
21302 { ac_try='test -s conftest.$ac_objext'
21303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21304 (eval $ac_try) 2>&5
21305 ac_status=$?
21306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307 (exit $ac_status); }; }; then
d92419e5
JB
21308 gdb_cv_have_aix_thread_debug=yes
21309else
bec39cab
AC
21310 echo "$as_me: failed program was:" >&5
21311sed 's/^/| /' conftest.$ac_ext >&5
21312
b4e70030 21313gdb_cv_have_aix_thread_debug=no
d92419e5 21314fi
bec39cab 21315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
d92419e5
JB
21316fi
21317
b4e70030
JB
21318 echo "$as_me:$LINENO: result: $gdb_cv_have_aix_thread_debug" >&5
21319echo "${ECHO_T}$gdb_cv_have_aix_thread_debug" >&6
d92419e5
JB
21320 if test $gdb_cv_have_aix_thread_debug = yes; then
21321 CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
3483b318 21322 CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
d92419e5
JB
21323 CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
21324 fi
21325 ;;
c906108c 21326 esac
bec39cab 21327
c906108c
SS
21328fi
21329
3f47be5c 21330if test "x$ac_cv_header_thread_db_h" = "xyes"; then
b4e70030
JB
21331 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTALLOC" >&5
21332echo $ECHO_N "checking whether <thread_db.h> has TD_NOTALLOC... $ECHO_C" >&6
bec39cab
AC
21333if test "${gdb_cv_thread_db_h_has_td_notalloc+set}" = set; then
21334 echo $ECHO_N "(cached) $ECHO_C" >&6
21335else
21336 cat >conftest.$ac_ext <<_ACEOF
21337/* confdefs.h. */
21338_ACEOF
21339cat confdefs.h >>conftest.$ac_ext
21340cat >>conftest.$ac_ext <<_ACEOF
21341/* end confdefs.h. */
3f47be5c 21342#include <thread_db.h>
bec39cab
AC
21343int
21344main ()
21345{
3f47be5c 21346int i = TD_NOTALLOC;
bec39cab
AC
21347 ;
21348 return 0;
21349}
21350_ACEOF
21351rm -f conftest.$ac_objext
21352if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21353 (eval $ac_compile) 2>conftest.er1
21354 ac_status=$?
21355 grep -v '^ *+' conftest.er1 >conftest.err
21356 rm -f conftest.er1
21357 cat conftest.err >&5
21358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21359 (exit $ac_status); } &&
b4e70030
JB
21360 { ac_try='test -z "$ac_c_werror_flag"
21361 || test ! -s conftest.err'
bec39cab
AC
21362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21363 (eval $ac_try) 2>&5
21364 ac_status=$?
21365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366 (exit $ac_status); }; } &&
21367 { ac_try='test -s conftest.$ac_objext'
21368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21369 (eval $ac_try) 2>&5
21370 ac_status=$?
21371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372 (exit $ac_status); }; }; then
3f47be5c
EZ
21373 gdb_cv_thread_db_h_has_td_notalloc=yes
21374else
bec39cab
AC
21375 echo "$as_me: failed program was:" >&5
21376sed 's/^/| /' conftest.$ac_ext >&5
21377
b4e70030 21378gdb_cv_thread_db_h_has_td_notalloc=no
bec39cab 21379
3f47be5c 21380fi
bec39cab 21381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3f47be5c 21382
bec39cab 21383fi
b4e70030
JB
21384echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notalloc" >&5
21385echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notalloc" >&6
59f80f10
DJ
21386 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_VERSION" >&5
21387echo $ECHO_N "checking whether <thread_db.h> has TD_VERSION... $ECHO_C" >&6
21388if test "${gdb_cv_thread_db_h_has_td_version+set}" = set; then
21389 echo $ECHO_N "(cached) $ECHO_C" >&6
21390else
21391 cat >conftest.$ac_ext <<_ACEOF
21392/* confdefs.h. */
21393_ACEOF
21394cat confdefs.h >>conftest.$ac_ext
21395cat >>conftest.$ac_ext <<_ACEOF
21396/* end confdefs.h. */
21397#include <thread_db.h>
21398int
21399main ()
21400{
21401int i = TD_VERSION;
21402 ;
21403 return 0;
21404}
21405_ACEOF
21406rm -f conftest.$ac_objext
21407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21408 (eval $ac_compile) 2>conftest.er1
21409 ac_status=$?
21410 grep -v '^ *+' conftest.er1 >conftest.err
21411 rm -f conftest.er1
21412 cat conftest.err >&5
21413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21414 (exit $ac_status); } &&
21415 { ac_try='test -z "$ac_c_werror_flag"
21416 || test ! -s conftest.err'
21417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21418 (eval $ac_try) 2>&5
21419 ac_status=$?
21420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21421 (exit $ac_status); }; } &&
21422 { ac_try='test -s conftest.$ac_objext'
21423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21424 (eval $ac_try) 2>&5
21425 ac_status=$?
21426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21427 (exit $ac_status); }; }; then
21428 gdb_cv_thread_db_h_has_td_version=yes
21429else
21430 echo "$as_me: failed program was:" >&5
21431sed 's/^/| /' conftest.$ac_ext >&5
21432
21433gdb_cv_thread_db_h_has_td_version=no
21434
21435fi
21436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21437
21438fi
21439echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_version" >&5
21440echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_version" >&6
21441 echo "$as_me:$LINENO: checking whether <thread_db.h> has TD_NOTLS" >&5
21442echo $ECHO_N "checking whether <thread_db.h> has TD_NOTLS... $ECHO_C" >&6
21443if test "${gdb_cv_thread_db_h_has_td_notls+set}" = set; then
21444 echo $ECHO_N "(cached) $ECHO_C" >&6
21445else
21446 cat >conftest.$ac_ext <<_ACEOF
21447/* confdefs.h. */
21448_ACEOF
21449cat confdefs.h >>conftest.$ac_ext
21450cat >>conftest.$ac_ext <<_ACEOF
21451/* end confdefs.h. */
21452#include <thread_db.h>
21453int
21454main ()
21455{
21456int i = TD_NOTLS;
21457 ;
21458 return 0;
21459}
21460_ACEOF
21461rm -f conftest.$ac_objext
21462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21463 (eval $ac_compile) 2>conftest.er1
21464 ac_status=$?
21465 grep -v '^ *+' conftest.er1 >conftest.err
21466 rm -f conftest.er1
21467 cat conftest.err >&5
21468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21469 (exit $ac_status); } &&
21470 { ac_try='test -z "$ac_c_werror_flag"
21471 || test ! -s conftest.err'
21472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21473 (eval $ac_try) 2>&5
21474 ac_status=$?
21475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21476 (exit $ac_status); }; } &&
21477 { ac_try='test -s conftest.$ac_objext'
21478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21479 (eval $ac_try) 2>&5
21480 ac_status=$?
21481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21482 (exit $ac_status); }; }; then
21483 gdb_cv_thread_db_h_has_td_notls=yes
21484else
21485 echo "$as_me: failed program was:" >&5
21486sed 's/^/| /' conftest.$ac_ext >&5
21487
21488gdb_cv_thread_db_h_has_td_notls=no
21489
21490fi
21491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21492
21493fi
21494echo "$as_me:$LINENO: result: $gdb_cv_thread_db_h_has_td_notls" >&5
21495echo "${ECHO_T}$gdb_cv_thread_db_h_has_td_notls" >&6
3f47be5c
EZ
21496fi
21497if test "x$gdb_cv_thread_db_h_has_td_notalloc" = "xyes"; then
bec39cab
AC
21498
21499cat >>confdefs.h <<\_ACEOF
3f47be5c 21500#define THREAD_DB_HAS_TD_NOTALLOC 1
bec39cab 21501_ACEOF
3f47be5c 21502
59f80f10
DJ
21503fi
21504if test "x$gdb_cv_thread_db_h_has_td_version" = "xyes"; then
21505
21506cat >>confdefs.h <<\_ACEOF
21507#define THREAD_DB_HAS_TD_VERSION 1
21508_ACEOF
21509
21510fi
21511if test "x$gdb_cv_thread_db_h_has_td_notls" = "xyes"; then
21512
21513cat >>confdefs.h <<\_ACEOF
21514#define THREAD_DB_HAS_TD_NOTLS 1
21515_ACEOF
21516
3f47be5c
EZ
21517fi
21518
b757528f 21519if test "x$ac_cv_header_sys_syscall_h" = "xyes"; then
b4e70030
JB
21520 echo "$as_me:$LINENO: checking whether <sys/syscall.h> has __NR_tkill" >&5
21521echo $ECHO_N "checking whether <sys/syscall.h> has __NR_tkill... $ECHO_C" >&6
bec39cab
AC
21522if test "${gdb_cv_sys_syscall_h_has_tkill+set}" = set; then
21523 echo $ECHO_N "(cached) $ECHO_C" >&6
21524else
21525 cat >conftest.$ac_ext <<_ACEOF
21526/* confdefs.h. */
21527_ACEOF
21528cat confdefs.h >>conftest.$ac_ext
21529cat >>conftest.$ac_ext <<_ACEOF
21530/* end confdefs.h. */
b757528f 21531#include <sys/syscall.h>
bec39cab
AC
21532int
21533main ()
21534{
b757528f 21535int i = __NR_tkill;
bec39cab
AC
21536 ;
21537 return 0;
21538}
21539_ACEOF
21540rm -f conftest.$ac_objext
21541if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21542 (eval $ac_compile) 2>conftest.er1
21543 ac_status=$?
21544 grep -v '^ *+' conftest.er1 >conftest.err
21545 rm -f conftest.er1
21546 cat conftest.err >&5
21547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548 (exit $ac_status); } &&
b4e70030
JB
21549 { ac_try='test -z "$ac_c_werror_flag"
21550 || test ! -s conftest.err'
bec39cab
AC
21551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21552 (eval $ac_try) 2>&5
21553 ac_status=$?
21554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21555 (exit $ac_status); }; } &&
21556 { ac_try='test -s conftest.$ac_objext'
21557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21558 (eval $ac_try) 2>&5
21559 ac_status=$?
21560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21561 (exit $ac_status); }; }; then
b757528f
JJ
21562 gdb_cv_sys_syscall_h_has_tkill=yes
21563else
bec39cab
AC
21564 echo "$as_me: failed program was:" >&5
21565sed 's/^/| /' conftest.$ac_ext >&5
21566
b4e70030 21567gdb_cv_sys_syscall_h_has_tkill=no
bec39cab 21568
b757528f 21569fi
bec39cab 21570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b757528f 21571
bec39cab 21572fi
b4e70030
JB
21573echo "$as_me:$LINENO: result: $gdb_cv_sys_syscall_h_has_tkill" >&5
21574echo "${ECHO_T}$gdb_cv_sys_syscall_h_has_tkill" >&6
b757528f
JJ
21575fi
21576if test "x$gdb_cv_sys_syscall_h_has_tkill" = "xyes" && test "x$ac_cv_func_syscall" = "xyes"; then
bec39cab
AC
21577
21578cat >>confdefs.h <<\_ACEOF
b757528f 21579#define HAVE_TKILL_SYSCALL 1
bec39cab 21580_ACEOF
b757528f
JJ
21581
21582fi
21583
fb40c209 21584
bec39cab 21585
b4e70030 21586# Check whether --with-sysroot or --without-sysroot was given.
030292b7 21587if test "${with_sysroot+set}" = set; then
b4e70030
JB
21588 withval="$with_sysroot"
21589
030292b7 21590 case ${with_sysroot} in
715d1656 21591 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;;
030292b7
DJ
21592 *) TARGET_SYSTEM_ROOT=$with_sysroot ;;
21593 esac
21594
21595 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"'
21596
aa28a74e 21597 if test "x$exec_prefix" = xNONE || test "x$exec_prefix" = 'x${prefix}'; then
030292b7
DJ
21598 if test "x$prefix" = xNONE; then
21599 test_prefix=/usr/local
21600 else
21601 test_prefix=$prefix
21602 fi
21603 else
21604 test_prefix=$exec_prefix
21605 fi
21606 case ${TARGET_SYSTEM_ROOT} in
715d1656
AO
21607 "${test_prefix}"|"${test_prefix}/"*|\
21608 '${exec_prefix}'|'${exec_prefix}/'*)
030292b7
DJ
21609 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE"
21610 TARGET_SYSTEM_ROOT_DEFINE="$t"
21611 ;;
21612 esac
21613
21614else
bec39cab 21615
030292b7
DJ
21616 TARGET_SYSTEM_ROOT=
21617 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"\"'
21618
b4e70030 21619fi;
030292b7
DJ
21620
21621
21622
b4e70030 21623# Check whether --enable-werror or --disable-werror was given.
094a342e 21624if test "${enable_werror+set}" = set; then
b4e70030
JB
21625 enableval="$enable_werror"
21626 case "${enableval}" in
094a342e
MK
21627 yes | y) ERROR_ON_WARNING="yes" ;;
21628 no | n) ERROR_ON_WARNING="no" ;;
21629 *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5
21630echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;}
21631 { (exit 1); exit 1; }; } ;;
21632 esac
b4e70030 21633fi;
094a342e
MK
21634
21635# Enable -Werror by default when using gcc
21636if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then
21637 ERROR_ON_WARNING=yes
21638fi
21639
21640WERROR_CFLAGS=""
21641if test "${ERROR_ON_WARNING}" = yes ; then
21642 WERROR_CFLAGS="-Werror"
21643fi
21644
aa79a185
DJ
21645# The entries after -Wno-pointer-sign are disabled warnings which may
21646# be enabled in the future, which can not currently be used to build
21647# GDB.
21648# NOTE: If you change this list, remember to update
3b851bce 21649# gdb/doc/gdbint.texinfo.
aa79a185
DJ
21650build_warnings="-Wall -Wdeclaration-after-statement -Wpointer-arith \
21651-Wformat-nonliteral -Wno-pointer-sign \
58b38ee2 21652-Wno-unused -Wno-switch -Wno-char-subscripts"
a3b362c4 21653
b4e70030 21654# Check whether --enable-build-warnings or --disable-build-warnings was given.
c906108c 21655if test "${enable_build_warnings+set}" = set; then
b4e70030
JB
21656 enableval="$enable_build_warnings"
21657 case "${enableval}" in
c906108c
SS
21658 yes) ;;
21659 no) build_warnings="-w";;
21660 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21661 build_warnings="${build_warnings} ${t}";;
21662 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21663 build_warnings="${t} ${build_warnings}";;
21664 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
21665esac
d4f3574e 21666if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
746a987d 21667 echo "Setting compiler warning flags = $build_warnings" 6>&1
c906108c 21668fi
b4e70030 21669fi; # Check whether --enable-gdb-build-warnings or --disable-gdb-build-warnings was given.
3b851bce 21670if test "${enable_gdb_build_warnings+set}" = set; then
b4e70030
JB
21671 enableval="$enable_gdb_build_warnings"
21672 case "${enableval}" in
3b851bce
AC
21673 yes) ;;
21674 no) build_warnings="-w";;
21675 ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21676 build_warnings="${build_warnings} ${t}";;
21677 *,) t=`echo "${enableval}" | sed -e "s/,/ /g"`
21678 build_warnings="${t} ${build_warnings}";;
21679 *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
21680esac
21681if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
21682 echo "Setting GDB specific compiler warning flags = $build_warnings" 6>&1
21683fi
b4e70030 21684fi; WARN_CFLAGS=""
c906108c
SS
21685if test "x${build_warnings}" != x -a "x$GCC" = xyes
21686then
b4e70030
JB
21687 echo "$as_me:$LINENO: checking compiler warning flags" >&5
21688echo $ECHO_N "checking compiler warning flags... $ECHO_C" >&6
746a987d
AC
21689 # Separate out the -Werror flag as some files just cannot be
21690 # compiled with it enabled.
21691 for w in ${build_warnings}; do
21692 case $w in
21693 -Werr*) WERROR_CFLAGS=-Werror ;;
21694 *) # Check that GCC accepts it
4536bbc6
AC
21695 saved_CFLAGS="$CFLAGS"
21696 CFLAGS="$CFLAGS $w"
bec39cab
AC
21697 cat >conftest.$ac_ext <<_ACEOF
21698/* confdefs.h. */
21699_ACEOF
21700cat confdefs.h >>conftest.$ac_ext
21701cat >>conftest.$ac_ext <<_ACEOF
21702/* end confdefs.h. */
4536bbc6 21703
bec39cab
AC
21704int
21705main ()
21706{
4536bbc6 21707
bec39cab
AC
21708 ;
21709 return 0;
21710}
21711_ACEOF
21712rm -f conftest.$ac_objext
21713if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21714 (eval $ac_compile) 2>conftest.er1
21715 ac_status=$?
21716 grep -v '^ *+' conftest.er1 >conftest.err
21717 rm -f conftest.er1
21718 cat conftest.err >&5
21719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21720 (exit $ac_status); } &&
b4e70030
JB
21721 { ac_try='test -z "$ac_c_werror_flag"
21722 || test ! -s conftest.err'
bec39cab
AC
21723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21724 (eval $ac_try) 2>&5
21725 ac_status=$?
21726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21727 (exit $ac_status); }; } &&
21728 { ac_try='test -s conftest.$ac_objext'
21729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21730 (eval $ac_try) 2>&5
21731 ac_status=$?
21732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21733 (exit $ac_status); }; }; then
4536bbc6
AC
21734 WARN_CFLAGS="${WARN_CFLAGS} $w"
21735else
bec39cab
AC
21736 echo "$as_me: failed program was:" >&5
21737sed 's/^/| /' conftest.$ac_ext >&5
21738
4536bbc6 21739fi
bec39cab 21740rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4536bbc6 21741 CFLAGS="$saved_CFLAGS"
746a987d
AC
21742 esac
21743 done
aa79a185
DJ
21744 echo "$as_me:$LINENO: result: ${WARN_CFLAGS} ${WERROR_CFLAGS}" >&5
21745echo "${ECHO_T}${WARN_CFLAGS} ${WERROR_CFLAGS}" >&6
c906108c
SS
21746fi
21747
21748
104c1213 21749
7a292a7a 21750# In the Cygwin environment, we need some additional flags.
b4e70030
JB
21751echo "$as_me:$LINENO: checking for cygwin" >&5
21752echo $ECHO_N "checking for cygwin... $ECHO_C" >&6
bec39cab
AC
21753if test "${gdb_cv_os_cygwin+set}" = set; then
21754 echo $ECHO_N "(cached) $ECHO_C" >&6
21755else
21756 cat >conftest.$ac_ext <<_ACEOF
21757/* confdefs.h. */
21758_ACEOF
21759cat confdefs.h >>conftest.$ac_ext
21760cat >>conftest.$ac_ext <<_ACEOF
21761/* end confdefs.h. */
7a292a7a
SS
21762
21763#if defined (__CYGWIN__) || defined (__CYGWIN32__)
21764lose
21765#endif
bec39cab 21766_ACEOF
7a292a7a 21767if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bec39cab 21768 $EGREP "lose" >/dev/null 2>&1; then
7a292a7a
SS
21769 gdb_cv_os_cygwin=yes
21770else
7a292a7a
SS
21771 gdb_cv_os_cygwin=no
21772fi
21773rm -f conftest*
21774
21775fi
b4e70030
JB
21776echo "$as_me:$LINENO: result: $gdb_cv_os_cygwin" >&5
21777echo "${ECHO_T}$gdb_cv_os_cygwin" >&6
7a292a7a 21778
aff38e61 21779
3eb25fda 21780SER_HARDWIRE="ser-base.o ser-unix.o ser-pipe.o ser-tcp.o"
aff38e61 21781case ${host} in
95cbc983
AC
21782 *go32* ) SER_HARDWIRE=ser-go32.o ;;
21783 *djgpp* ) SER_HARDWIRE=ser-go32.o ;;
0ea3f30e 21784 *mingw32*) SER_HARDWIRE="ser-base.o ser-tcp.o ser-mingw.o" ;;
aff38e61
AC
21785esac
21786
21787
cd0fc7c3
SS
21788# libreadline needs libuser32.a in a cygwin environment
21789WIN32LIBS=
21790if test x$gdb_cv_os_cygwin = xyes; then
c5394b80
JM
21791 WIN32LIBS="-luser32"
21792 case "${target}" in
21793 *cygwin*) WIN32LIBS="$WIN32LIBS -limagehlp"
21794 ;;
21795 esac
cd0fc7c3 21796fi
c906108c 21797
b4505029
MM
21798# The ser-tcp.c module requires sockets.
21799case ${host} in
21800 *mingw32*)
21801
21802cat >>confdefs.h <<\_ACEOF
21803#define USE_WIN32API 1
21804_ACEOF
21805
21806 WIN32LIBS="$WIN32LIBS -lws2_32"
21807 ;;
21808esac
21809
7a292a7a 21810
121ce6e5
DJ
21811# Add any host-specific objects to GDB.
21812CONFIG_OBS="${CONFIG_OBS} ${gdb_host_obs}"
21813
3fc11d3e
JM
21814LIBGUI="../libgui/src/libgui.a"
21815GUI_CFLAGS_X="-I${srcdir}/../libgui/src"
21816
21817
7a292a7a 21818
3fc11d3e
JM
21819WIN32LDAPP=
21820
21821
21822
d91670b9
CV
21823case "${host}" in
21824*-*-cygwin*)
21825 configdir="win"
21826 ;;
21827*)
21828 configdir="unix"
21829 ;;
21830esac
3fc11d3e
JM
21831
21832GDBTKLIBS=
21833if test "${enable_gdbtk}" = "yes"; then
21834
d1c3b63a
KS
21835 # Gdbtk must have an absolute path to srcdir in order to run
21836 # properly when not installed.
21837 here=`pwd`
21838 cd ${srcdir}
21839 GDBTK_SRC_DIR=`pwd`
21840 cd $here
21841
bec39cab 21842
3fc11d3e
JM
21843#
21844# Ok, lets find the tcl configuration
bec39cab 21845# First, look for one uninstalled.
3fc11d3e
JM
21846# the alternative search directory is invoked by --with-tclconfig
21847#
21848
21849if test x"${no_tcl}" = x ; then
21850 # we reset no_tcl in case something fails here
21851 no_tcl=true
bec39cab 21852
b4e70030 21853# Check whether --with-tclconfig or --without-tclconfig was given.
3fc11d3e 21854if test "${with_tclconfig+set}" = set; then
b4e70030
JB
21855 withval="$with_tclconfig"
21856 with_tclconfig=${withval}
21857fi;
21858 echo "$as_me:$LINENO: checking for Tcl configuration" >&5
21859echo $ECHO_N "checking for Tcl configuration... $ECHO_C" >&6
bec39cab
AC
21860 if test "${ac_cv_c_tclconfig+set}" = set; then
21861 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 21862else
bec39cab 21863
3fc11d3e
JM
21864
21865 # First check to see if --with-tclconfig was specified.
21866 if test x"${with_tclconfig}" != x ; then
21867 if test -f "${with_tclconfig}/tclConfig.sh" ; then
21868 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
21869 else
bec39cab
AC
21870 { { echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
21871echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
21872 { (exit 1); exit 1; }; }
3fc11d3e
JM
21873 fi
21874 fi
21875
21876 # then check for a private Tcl installation
21877 if test x"${ac_cv_c_tclconfig}" = x ; then
21878 for i in \
21879 ../tcl \
21880 `ls -dr ../tcl[7-9]* 2>/dev/null` \
21881 ../../tcl \
21882 `ls -dr ../../tcl[7-9]* 2>/dev/null` \
21883 ../../../tcl \
21884 `ls -dr ../../../tcl[7-9]* 2>/dev/null` ; do
21885 if test -f "$i/${configdir}/tclConfig.sh" ; then
21886 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
21887 break
21888 fi
21889 done
21890 fi
21891 # check in a few common install locations
21892 if test x"${ac_cv_c_tclconfig}" = x ; then
21893 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
21894 if test -f "$i/tclConfig.sh" ; then
21895 ac_cv_c_tclconfig=`(cd $i; pwd)`
21896 break
21897 fi
21898 done
21899 fi
21900 # check in a few other private locations
21901 if test x"${ac_cv_c_tclconfig}" = x ; then
21902 for i in \
21903 ${srcdir}/../tcl \
21904 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` ; do
21905 if test -f "$i/${configdir}/tclConfig.sh" ; then
21906 ac_cv_c_tclconfig=`(cd $i/${configdir}; pwd)`
21907 break
21908 fi
21909 done
21910 fi
bec39cab 21911
3fc11d3e
JM
21912fi
21913
21914 if test x"${ac_cv_c_tclconfig}" = x ; then
21915 TCLCONFIG="# no Tcl configs found"
bec39cab
AC
21916 { echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
21917echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
3fc11d3e
JM
21918 else
21919 no_tcl=
21920 TCLCONFIG=${ac_cv_c_tclconfig}/tclConfig.sh
b4e70030
JB
21921 echo "$as_me:$LINENO: result: found $TCLCONFIG" >&5
21922echo "${ECHO_T}found $TCLCONFIG" >&6
3fc11d3e
JM
21923 fi
21924fi
21925
21926 if test -z "${no_tcl}"; then
bec39cab 21927
3fc11d3e
JM
21928 . $TCLCONFIG
21929
3fc11d3e
JM
21930
21931
21932
21933
3fc11d3e
JM
21934
21935
21936
bec39cab
AC
21937
21938
21939
21940
21941
21942
21943
21944
21945
21946
21947
21948
21949
21950
21951
21952
21953
21954
21955
3fc11d3e
JM
21956#
21957# Ok, lets find the tk configuration
bec39cab 21958# First, look for one uninstalled.
3fc11d3e
JM
21959# the alternative search directory is invoked by --with-tkconfig
21960#
21961
21962if test x"${no_tk}" = x ; then
21963 # we reset no_tk in case something fails here
21964 no_tk=true
bec39cab 21965
b4e70030 21966# Check whether --with-tkconfig or --without-tkconfig was given.
3fc11d3e 21967if test "${with_tkconfig+set}" = set; then
b4e70030
JB
21968 withval="$with_tkconfig"
21969 with_tkconfig=${withval}
21970fi;
21971 echo "$as_me:$LINENO: checking for Tk configuration" >&5
21972echo $ECHO_N "checking for Tk configuration... $ECHO_C" >&6
bec39cab
AC
21973 if test "${ac_cv_c_tkconfig+set}" = set; then
21974 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 21975else
bec39cab 21976
3fc11d3e
JM
21977
21978 # First check to see if --with-tkconfig was specified.
21979 if test x"${with_tkconfig}" != x ; then
21980 if test -f "${with_tkconfig}/tkConfig.sh" ; then
21981 ac_cv_c_tkconfig=`(cd ${with_tkconfig}; pwd)`
21982 else
bec39cab
AC
21983 { { echo "$as_me:$LINENO: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&5
21984echo "$as_me: error: ${with_tkconfig} directory doesn't contain tkConfig.sh" >&2;}
21985 { (exit 1); exit 1; }; }
3fc11d3e
JM
21986 fi
21987 fi
21988
21989 # then check for a private Tk library
21990 if test x"${ac_cv_c_tkconfig}" = x ; then
21991 for i in \
21992 ../tk \
21993 `ls -dr ../tk[4-9]* 2>/dev/null` \
21994 ../../tk \
21995 `ls -dr ../../tk[4-9]* 2>/dev/null` \
21996 ../../../tk \
21997 `ls -dr ../../../tk[4-9]* 2>/dev/null` ; do
21998 if test -f "$i/${configdir}/tkConfig.sh" ; then
21999 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
22000 break
22001 fi
22002 done
22003 fi
22004 # check in a few common install locations
22005 if test x"${ac_cv_c_tkconfig}" = x ; then
22006 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22007 if test -f "$i/tkConfig.sh" ; then
22008 ac_cv_c_tkconfig=`(cd $i; pwd)`
22009 break
22010 fi
22011 done
22012 fi
22013 # check in a few other private locations
22014 if test x"${ac_cv_c_tkconfig}" = x ; then
22015 for i in \
22016 ${srcdir}/../tk \
22017 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` ; do
22018 if test -f "$i/${configdir}/tkConfig.sh" ; then
22019 ac_cv_c_tkconfig=`(cd $i/${configdir}; pwd)`
22020 break
22021 fi
22022 done
22023 fi
bec39cab 22024
3fc11d3e
JM
22025fi
22026
22027 if test x"${ac_cv_c_tkconfig}" = x ; then
22028 TKCONFIG="# no Tk configs found"
bec39cab
AC
22029 { echo "$as_me:$LINENO: WARNING: Can't find Tk configuration definitions" >&5
22030echo "$as_me: WARNING: Can't find Tk configuration definitions" >&2;}
3fc11d3e
JM
22031 else
22032 no_tk=
22033 TKCONFIG=${ac_cv_c_tkconfig}/tkConfig.sh
b4e70030
JB
22034 echo "$as_me:$LINENO: result: found $TKCONFIG" >&5
22035echo "${ECHO_T}found $TKCONFIG" >&6
3fc11d3e
JM
22036 fi
22037fi
22038
22039
22040
dd2504ab
JM
22041 # now look for Tcl library stuff
22042
d91670b9 22043 tcldir="../tcl/${configdir}/"
dd2504ab
JM
22044
22045 TCL_DEPS="${tcldir}${TCL_LIB_FILE}"
22046
3fc11d3e
JM
22047 # If $no_tk is nonempty, then we can't do Tk, and there is no
22048 # point to doing Tcl.
22049 if test -z "${no_tk}"; then
bec39cab 22050
3fc11d3e
JM
22051 if test -f "$TKCONFIG" ; then
22052 . $TKCONFIG
22053 fi
22054
3fc11d3e 22055
3fc11d3e
JM
22056
22057
3fc11d3e 22058
bec39cab
AC
22059
22060
22061
22062
22063
22064
22065
22066
22067
3fc11d3e
JM
22068#
22069# Ok, lets find the tcl source trees so we can use the headers
22070# Warning: transition of version 9 to 10 will break this algorithm
22071# because 10 sorts before 9. We also look for just tcl. We have to
22072# be careful that we don't match stuff like tclX by accident.
22073# the alternative search directory is involked by --with-tclinclude
22074#
22075
22076no_tcl=true
b4e70030
JB
22077echo "$as_me:$LINENO: checking for Tcl private headers. dir=${configdir}" >&5
22078echo $ECHO_N "checking for Tcl private headers. dir=${configdir}... $ECHO_C" >&6
bec39cab 22079
b4e70030 22080# Check whether --with-tclinclude or --without-tclinclude was given.
3fc11d3e 22081if test "${with_tclinclude+set}" = set; then
b4e70030
JB
22082 withval="$with_tclinclude"
22083 with_tclinclude=${withval}
22084fi;
bec39cab
AC
22085if test "${ac_cv_c_tclh+set}" = set; then
22086 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 22087else
bec39cab 22088
3fc11d3e
JM
22089# first check to see if --with-tclinclude was specified
22090if test x"${with_tclinclude}" != x ; then
22091 if test -f ${with_tclinclude}/tclInt.h ; then
22092 ac_cv_c_tclh=`(cd ${with_tclinclude}; pwd)`
22093 elif test -f ${with_tclinclude}/generic/tclInt.h ; then
22094 ac_cv_c_tclh=`(cd ${with_tclinclude}/generic; pwd)`
22095 else
bec39cab
AC
22096 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain private headers" >&5
22097echo "$as_me: error: ${with_tclinclude} directory doesn't contain private headers" >&2;}
22098 { (exit 1); exit 1; }; }
3fc11d3e
JM
22099 fi
22100fi
22101
22102# next check if it came with Tcl configuration file
22103if test x"${ac_cv_c_tclconfig}" = x ; then
22104 if test -f $ac_cv_c_tclconfig/../generic/tclInt.h ; then
22105 ac_cv_c_tclh=`(cd $ac_cv_c_tclconfig/..; pwd)`
22106 fi
22107fi
22108
22109# next check in private source directory
22110#
22111# since ls returns lowest version numbers first, reverse its output
22112if test x"${ac_cv_c_tclh}" = x ; then
22113 for i in \
22114 ${srcdir}/../tcl \
22115 `ls -dr ${srcdir}/../tcl[7-9]* 2>/dev/null` \
22116 ${srcdir}/../../tcl \
22117 `ls -dr ${srcdir}/../../tcl[7-9]* 2>/dev/null` \
22118 ${srcdir}/../../../tcl \
22119 `ls -dr ${srcdir}/../../../tcl[7-9]* 2>/dev/null ` ; do
22120 if test -f $i/generic/tclInt.h ; then
22121 ac_cv_c_tclh=`(cd $i/generic; pwd)`
22122 break
22123 fi
22124 done
22125fi
22126# finally check in a few common install locations
22127#
22128# since ls returns lowest version numbers first, reverse its output
22129if test x"${ac_cv_c_tclh}" = x ; then
22130 for i in \
22131 `ls -dr /usr/local/src/tcl[7-9]* 2>/dev/null` \
22132 `ls -dr /usr/local/lib/tcl[7-9]* 2>/dev/null` \
22133 /usr/local/src/tcl \
22134 /usr/local/lib/tcl \
22135 ${prefix}/include ; do
22136 if test -f $i/generic/tclInt.h ; then
22137 ac_cv_c_tclh=`(cd $i/generic; pwd)`
22138 break
22139 fi
22140 done
22141fi
22142# see if one is installed
22143if test x"${ac_cv_c_tclh}" = x ; then
bec39cab 22144 if test "${ac_cv_header_tclInt_h+set}" = set; then
b4e70030
JB
22145 echo "$as_me:$LINENO: checking for tclInt.h" >&5
22146echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
bec39cab
AC
22147if test "${ac_cv_header_tclInt_h+set}" = set; then
22148 echo $ECHO_N "(cached) $ECHO_C" >&6
22149fi
b4e70030
JB
22150echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
22151echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
bec39cab
AC
22152else
22153 # Is the header compilable?
b4e70030
JB
22154echo "$as_me:$LINENO: checking tclInt.h usability" >&5
22155echo $ECHO_N "checking tclInt.h usability... $ECHO_C" >&6
bec39cab
AC
22156cat >conftest.$ac_ext <<_ACEOF
22157/* confdefs.h. */
22158_ACEOF
22159cat confdefs.h >>conftest.$ac_ext
22160cat >>conftest.$ac_ext <<_ACEOF
22161/* end confdefs.h. */
22162$ac_includes_default
22163#include <tclInt.h>
22164_ACEOF
22165rm -f conftest.$ac_objext
22166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22167 (eval $ac_compile) 2>conftest.er1
22168 ac_status=$?
22169 grep -v '^ *+' conftest.er1 >conftest.err
22170 rm -f conftest.er1
22171 cat conftest.err >&5
22172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22173 (exit $ac_status); } &&
b4e70030
JB
22174 { ac_try='test -z "$ac_c_werror_flag"
22175 || test ! -s conftest.err'
bec39cab
AC
22176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22177 (eval $ac_try) 2>&5
22178 ac_status=$?
22179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22180 (exit $ac_status); }; } &&
22181 { ac_try='test -s conftest.$ac_objext'
22182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22183 (eval $ac_try) 2>&5
22184 ac_status=$?
22185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22186 (exit $ac_status); }; }; then
22187 ac_header_compiler=yes
22188else
22189 echo "$as_me: failed program was:" >&5
22190sed 's/^/| /' conftest.$ac_ext >&5
22191
b4e70030 22192ac_header_compiler=no
bec39cab
AC
22193fi
22194rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
22195echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22196echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
22197
22198# Is the header present?
b4e70030
JB
22199echo "$as_me:$LINENO: checking tclInt.h presence" >&5
22200echo $ECHO_N "checking tclInt.h presence... $ECHO_C" >&6
bec39cab
AC
22201cat >conftest.$ac_ext <<_ACEOF
22202/* confdefs.h. */
22203_ACEOF
22204cat confdefs.h >>conftest.$ac_ext
22205cat >>conftest.$ac_ext <<_ACEOF
22206/* end confdefs.h. */
3fc11d3e 22207#include <tclInt.h>
bec39cab
AC
22208_ACEOF
22209if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22210 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22211 ac_status=$?
22212 grep -v '^ *+' conftest.er1 >conftest.err
22213 rm -f conftest.er1
22214 cat conftest.err >&5
22215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22216 (exit $ac_status); } >/dev/null; then
22217 if test -s conftest.err; then
22218 ac_cpp_err=$ac_c_preproc_warn_flag
22219 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22220 else
22221 ac_cpp_err=
22222 fi
22223else
22224 ac_cpp_err=yes
3fc11d3e 22225fi
bec39cab
AC
22226if test -z "$ac_cpp_err"; then
22227 ac_header_preproc=yes
22228else
22229 echo "$as_me: failed program was:" >&5
22230sed 's/^/| /' conftest.$ac_ext >&5
22231
22232 ac_header_preproc=no
3fc11d3e 22233fi
bec39cab 22234rm -f conftest.err conftest.$ac_ext
b4e70030
JB
22235echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22236echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
22237
22238# So? What about this header?
22239case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22240 yes:no: )
22241 { echo "$as_me:$LINENO: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&5
22242echo "$as_me: WARNING: tclInt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22243 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the compiler's result" >&5
22244echo "$as_me: WARNING: tclInt.h: proceeding with the compiler's result" >&2;}
22245 ac_header_preproc=yes
22246 ;;
22247 no:yes:* )
22248 { echo "$as_me:$LINENO: WARNING: tclInt.h: present but cannot be compiled" >&5
22249echo "$as_me: WARNING: tclInt.h: present but cannot be compiled" >&2;}
22250 { echo "$as_me:$LINENO: WARNING: tclInt.h: check for missing prerequisite headers?" >&5
22251echo "$as_me: WARNING: tclInt.h: check for missing prerequisite headers?" >&2;}
22252 { echo "$as_me:$LINENO: WARNING: tclInt.h: see the Autoconf documentation" >&5
22253echo "$as_me: WARNING: tclInt.h: see the Autoconf documentation" >&2;}
22254 { echo "$as_me:$LINENO: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&5
22255echo "$as_me: WARNING: tclInt.h: section \"Present But Cannot Be Compiled\"" >&2;}
22256 { echo "$as_me:$LINENO: WARNING: tclInt.h: proceeding with the preprocessor's result" >&5
22257echo "$as_me: WARNING: tclInt.h: proceeding with the preprocessor's result" >&2;}
22258 { echo "$as_me:$LINENO: WARNING: tclInt.h: in the future, the compiler will take precedence" >&5
22259echo "$as_me: WARNING: tclInt.h: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
22260 (
22261 cat <<\_ASBOX
22262## ------------------------------------------ ##
22263## Report this to the AC_PACKAGE_NAME lists. ##
22264## ------------------------------------------ ##
22265_ASBOX
22266 ) |
22267 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
22268 ;;
22269esac
b4e70030
JB
22270echo "$as_me:$LINENO: checking for tclInt.h" >&5
22271echo $ECHO_N "checking for tclInt.h... $ECHO_C" >&6
bec39cab
AC
22272if test "${ac_cv_header_tclInt_h+set}" = set; then
22273 echo $ECHO_N "(cached) $ECHO_C" >&6
22274else
22275 ac_cv_header_tclInt_h=$ac_header_preproc
22276fi
b4e70030
JB
22277echo "$as_me:$LINENO: result: $ac_cv_header_tclInt_h" >&5
22278echo "${ECHO_T}$ac_cv_header_tclInt_h" >&6
bec39cab
AC
22279
22280fi
22281if test $ac_cv_header_tclInt_h = yes; then
3fc11d3e
JM
22282 ac_cv_c_tclh=installed
22283else
bec39cab 22284 ac_cv_c_tclh=""
3fc11d3e
JM
22285fi
22286
bec39cab 22287
3fc11d3e
JM
22288fi
22289
22290fi
22291
22292if test x"${ac_cv_c_tclh}" = x ; then
22293 TCLHDIR="# no Tcl private headers found"
bec39cab
AC
22294 { { echo "$as_me:$LINENO: error: Can't find Tcl private headers" >&5
22295echo "$as_me: error: Can't find Tcl private headers" >&2;}
22296 { (exit 1); exit 1; }; }
3fc11d3e
JM
22297fi
22298if test x"${ac_cv_c_tclh}" != x ; then
22299 no_tcl=""
22300 if test x"${ac_cv_c_tclh}" = x"installed" ; then
b4e70030
JB
22301 echo "$as_me:$LINENO: result: is installed" >&5
22302echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
22303 TCLHDIR=""
22304 else
b4e70030
JB
22305 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tclh}" >&5
22306echo "${ECHO_T}found in ${ac_cv_c_tclh}" >&6
3fc11d3e
JM
22307 # this hack is cause the TCLHDIR won't print if there is a "-I" in it.
22308 TCLHDIR="-I${ac_cv_c_tclh}"
22309 fi
22310fi
22311
22312
22313
bec39cab 22314
3fc11d3e
JM
22315#
22316# Ok, lets find the tk source trees so we can use the headers
22317# If the directory (presumably symlink) named "tk" exists, use that one
22318# in preference to any others. Same logic is used when choosing library
22319# and again with Tcl. The search order is the best place to look first, then in
22320# decreasing significance. The loop breaks if the trigger file is found.
22321# Note the gross little conversion here of srcdir by cd'ing to the found
22322# directory. This converts the path from a relative to an absolute, so
22323# recursive cache variables for the path will work right. We check all
22324# the possible paths in one loop rather than many seperate loops to speed
22325# things up.
22326# the alternative search directory is involked by --with-tkinclude
22327#
22328no_tk=true
b4e70030
JB
22329echo "$as_me:$LINENO: checking for Tk private headers" >&5
22330echo $ECHO_N "checking for Tk private headers... $ECHO_C" >&6
bec39cab 22331
b4e70030 22332# Check whether --with-tkinclude or --without-tkinclude was given.
3fc11d3e 22333if test "${with_tkinclude+set}" = set; then
b4e70030
JB
22334 withval="$with_tkinclude"
22335 with_tkinclude=${withval}
22336fi;
bec39cab
AC
22337if test "${ac_cv_c_tkh+set}" = set; then
22338 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 22339else
bec39cab 22340
3fc11d3e
JM
22341# first check to see if --with-tkinclude was specified
22342if test x"${with_tkinclude}" != x ; then
22343 if test -f ${with_tkinclude}/tk.h ; then
22344 ac_cv_c_tkh=`(cd ${with_tkinclude}; pwd)`
22345 elif test -f ${with_tkinclude}/generic/tk.h ; then
22346 ac_cv_c_tkh=`(cd ${with_tkinclude}/generic; pwd)`
22347 else
bec39cab
AC
22348 { { echo "$as_me:$LINENO: error: ${with_tkinclude} directory doesn't contain private headers" >&5
22349echo "$as_me: error: ${with_tkinclude} directory doesn't contain private headers" >&2;}
22350 { (exit 1); exit 1; }; }
3fc11d3e
JM
22351 fi
22352fi
22353
22354# next check if it came with Tk configuration file
22355if test x"${ac_cv_c_tkconfig}" = x ; then
22356 if test -f $ac_cv_c_tkconfig/../generic/tk.h ; then
22357 ac_cv_c_tkh=`(cd $ac_cv_c_tkconfig/..; pwd)`
22358 fi
22359fi
22360
22361# next check in private source directory
22362#
22363# since ls returns lowest version numbers first, reverse its output
22364if test x"${ac_cv_c_tkh}" = x ; then
22365 for i in \
22366 ${srcdir}/../tk \
22367 `ls -dr ${srcdir}/../tk[4-9]* 2>/dev/null` \
22368 ${srcdir}/../../tk \
22369 `ls -dr ${srcdir}/../../tk[4-9]* 2>/dev/null` \
22370 ${srcdir}/../../../tk \
22371 `ls -dr ${srcdir}/../../../tk[4-9]* 2>/dev/null ` ; do
22372 if test -f $i/generic/tk.h ; then
22373 ac_cv_c_tkh=`(cd $i/generic; pwd)`
22374 break
22375 fi
22376 done
22377fi
22378# finally check in a few common install locations
22379#
22380# since ls returns lowest version numbers first, reverse its output
22381if test x"${ac_cv_c_tkh}" = x ; then
22382 for i in \
22383 `ls -dr /usr/local/src/tk[4-9]* 2>/dev/null` \
22384 `ls -dr /usr/local/lib/tk[4-9]* 2>/dev/null` \
22385 /usr/local/src/tk \
22386 /usr/local/lib/tk \
22387 ${prefix}/include ; do
22388 if test -f $i/generic/tk.h ; then
22389 ac_cv_c_tkh=`(cd $i/generic; pwd)`
22390 break
22391 fi
22392 done
22393fi
22394# see if one is installed
22395if test x"${ac_cv_c_tkh}" = x ; then
bec39cab 22396 if test "${ac_cv_header_tk_h+set}" = set; then
b4e70030
JB
22397 echo "$as_me:$LINENO: checking for tk.h" >&5
22398echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
bec39cab
AC
22399if test "${ac_cv_header_tk_h+set}" = set; then
22400 echo $ECHO_N "(cached) $ECHO_C" >&6
22401fi
b4e70030
JB
22402echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
22403echo "${ECHO_T}$ac_cv_header_tk_h" >&6
bec39cab
AC
22404else
22405 # Is the header compilable?
b4e70030
JB
22406echo "$as_me:$LINENO: checking tk.h usability" >&5
22407echo $ECHO_N "checking tk.h usability... $ECHO_C" >&6
bec39cab
AC
22408cat >conftest.$ac_ext <<_ACEOF
22409/* confdefs.h. */
22410_ACEOF
22411cat confdefs.h >>conftest.$ac_ext
22412cat >>conftest.$ac_ext <<_ACEOF
22413/* end confdefs.h. */
22414$ac_includes_default
3fc11d3e 22415#include <tk.h>
bec39cab
AC
22416_ACEOF
22417rm -f conftest.$ac_objext
22418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22419 (eval $ac_compile) 2>conftest.er1
22420 ac_status=$?
22421 grep -v '^ *+' conftest.er1 >conftest.err
22422 rm -f conftest.er1
22423 cat conftest.err >&5
22424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22425 (exit $ac_status); } &&
b4e70030
JB
22426 { ac_try='test -z "$ac_c_werror_flag"
22427 || test ! -s conftest.err'
bec39cab
AC
22428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22429 (eval $ac_try) 2>&5
22430 ac_status=$?
22431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22432 (exit $ac_status); }; } &&
22433 { ac_try='test -s conftest.$ac_objext'
22434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22435 (eval $ac_try) 2>&5
22436 ac_status=$?
22437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22438 (exit $ac_status); }; }; then
22439 ac_header_compiler=yes
22440else
22441 echo "$as_me: failed program was:" >&5
22442sed 's/^/| /' conftest.$ac_ext >&5
22443
b4e70030 22444ac_header_compiler=no
bec39cab
AC
22445fi
22446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b4e70030
JB
22447echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22448echo "${ECHO_T}$ac_header_compiler" >&6
bec39cab
AC
22449
22450# Is the header present?
b4e70030
JB
22451echo "$as_me:$LINENO: checking tk.h presence" >&5
22452echo $ECHO_N "checking tk.h presence... $ECHO_C" >&6
bec39cab
AC
22453cat >conftest.$ac_ext <<_ACEOF
22454/* confdefs.h. */
22455_ACEOF
22456cat confdefs.h >>conftest.$ac_ext
22457cat >>conftest.$ac_ext <<_ACEOF
22458/* end confdefs.h. */
22459#include <tk.h>
22460_ACEOF
22461if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22462 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22463 ac_status=$?
22464 grep -v '^ *+' conftest.er1 >conftest.err
22465 rm -f conftest.er1
22466 cat conftest.err >&5
22467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22468 (exit $ac_status); } >/dev/null; then
22469 if test -s conftest.err; then
22470 ac_cpp_err=$ac_c_preproc_warn_flag
22471 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22472 else
22473 ac_cpp_err=
22474 fi
22475else
22476 ac_cpp_err=yes
3fc11d3e 22477fi
bec39cab
AC
22478if test -z "$ac_cpp_err"; then
22479 ac_header_preproc=yes
22480else
22481 echo "$as_me: failed program was:" >&5
22482sed 's/^/| /' conftest.$ac_ext >&5
22483
22484 ac_header_preproc=no
22485fi
22486rm -f conftest.err conftest.$ac_ext
b4e70030
JB
22487echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22488echo "${ECHO_T}$ac_header_preproc" >&6
bec39cab
AC
22489
22490# So? What about this header?
22491case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22492 yes:no: )
22493 { echo "$as_me:$LINENO: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&5
22494echo "$as_me: WARNING: tk.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22495 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the compiler's result" >&5
22496echo "$as_me: WARNING: tk.h: proceeding with the compiler's result" >&2;}
22497 ac_header_preproc=yes
22498 ;;
22499 no:yes:* )
22500 { echo "$as_me:$LINENO: WARNING: tk.h: present but cannot be compiled" >&5
22501echo "$as_me: WARNING: tk.h: present but cannot be compiled" >&2;}
22502 { echo "$as_me:$LINENO: WARNING: tk.h: check for missing prerequisite headers?" >&5
22503echo "$as_me: WARNING: tk.h: check for missing prerequisite headers?" >&2;}
22504 { echo "$as_me:$LINENO: WARNING: tk.h: see the Autoconf documentation" >&5
22505echo "$as_me: WARNING: tk.h: see the Autoconf documentation" >&2;}
22506 { echo "$as_me:$LINENO: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&5
22507echo "$as_me: WARNING: tk.h: section \"Present But Cannot Be Compiled\"" >&2;}
22508 { echo "$as_me:$LINENO: WARNING: tk.h: proceeding with the preprocessor's result" >&5
22509echo "$as_me: WARNING: tk.h: proceeding with the preprocessor's result" >&2;}
22510 { echo "$as_me:$LINENO: WARNING: tk.h: in the future, the compiler will take precedence" >&5
22511echo "$as_me: WARNING: tk.h: in the future, the compiler will take precedence" >&2;}
b4e70030
JB
22512 (
22513 cat <<\_ASBOX
22514## ------------------------------------------ ##
22515## Report this to the AC_PACKAGE_NAME lists. ##
22516## ------------------------------------------ ##
22517_ASBOX
22518 ) |
22519 sed "s/^/$as_me: WARNING: /" >&2
bec39cab
AC
22520 ;;
22521esac
b4e70030
JB
22522echo "$as_me:$LINENO: checking for tk.h" >&5
22523echo $ECHO_N "checking for tk.h... $ECHO_C" >&6
bec39cab
AC
22524if test "${ac_cv_header_tk_h+set}" = set; then
22525 echo $ECHO_N "(cached) $ECHO_C" >&6
22526else
22527 ac_cv_header_tk_h=$ac_header_preproc
22528fi
b4e70030
JB
22529echo "$as_me:$LINENO: result: $ac_cv_header_tk_h" >&5
22530echo "${ECHO_T}$ac_cv_header_tk_h" >&6
bec39cab 22531
3fc11d3e 22532fi
bec39cab 22533if test $ac_cv_header_tk_h = yes; then
3fc11d3e
JM
22534 ac_cv_c_tkh=installed
22535else
bec39cab 22536 ac_cv_c_tkh=""
3fc11d3e
JM
22537fi
22538
bec39cab 22539
3fc11d3e
JM
22540fi
22541
22542fi
22543
22544if test x"${ac_cv_c_tkh}" != x ; then
22545 no_tk=""
22546 if test x"${ac_cv_c_tkh}" = x"installed" ; then
b4e70030
JB
22547 echo "$as_me:$LINENO: result: is installed" >&5
22548echo "${ECHO_T}is installed" >&6
3fc11d3e
JM
22549 TKHDIR=""
22550 else
b4e70030
JB
22551 echo "$as_me:$LINENO: result: found in ${ac_cv_c_tkh}" >&5
22552echo "${ECHO_T}found in ${ac_cv_c_tkh}" >&6
3fc11d3e
JM
22553 # this hack is cause the TKHDIR won't print if there is a "-I" in it.
22554 TKHDIR="-I${ac_cv_c_tkh}"
22555 fi
22556else
22557 TKHDIR="# no Tk directory found"
bec39cab
AC
22558 { echo "$as_me:$LINENO: WARNING: Can't find Tk private headers" >&5
22559echo "$as_me: WARNING: Can't find Tk private headers" >&2;}
3fc11d3e
JM
22560 no_tk=true
22561fi
22562
22563
22564
bec39cab 22565
b4e70030
JB
22566echo "$as_me:$LINENO: checking for Itcl private headers. srcdir=${srcdir}" >&5
22567echo $ECHO_N "checking for Itcl private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
22568if test x"${ac_cv_c_itclh}" = x ; then
22569 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itcl; do
22570 if test -f $i/generic/itcl.h ; then
22571 ac_cv_c_itclh=`(cd $i/generic; pwd)`
22572 break
22573 fi
22574 done
22575fi
22576if test x"${ac_cv_c_itclh}" = x ; then
22577 ITCLHDIR="# no Itcl private headers found"
bec39cab
AC
22578 { { echo "$as_me:$LINENO: error: Can't find Itcl private headers" >&5
22579echo "$as_me: error: Can't find Itcl private headers" >&2;}
22580 { (exit 1); exit 1; }; }
3fc11d3e
JM
22581fi
22582if test x"${ac_cv_c_itclh}" != x ; then
22583 ITCLHDIR="-I${ac_cv_c_itclh}"
22584fi
22585# should always be here
22586# ITCLLIB="../itcl/itcl/unix/libitcl.a"
22587
22588#AC_SUBST(ITCLLIB)
22589
bec39cab 22590
b4e70030
JB
22591echo "$as_me:$LINENO: checking for Itk private headers. srcdir=${srcdir}" >&5
22592echo $ECHO_N "checking for Itk private headers. srcdir=${srcdir}... $ECHO_C" >&6
3fc11d3e
JM
22593if test x"${ac_cv_c_itkh}" = x ; then
22594 for i in ${srcdir}/../itcl ${srcdir}/../../itcl ${srcdir}/../../../itcl ${srcdir}/../itcl/itk; do
22595 if test -f $i/generic/itk.h ; then
22596 ac_cv_c_itkh=`(cd $i/generic; pwd)`
22597 break
22598 fi
22599 done
22600fi
22601if test x"${ac_cv_c_itkh}" = x ; then
22602 ITKHDIR="# no Itk private headers found"
bec39cab
AC
22603 { { echo "$as_me:$LINENO: error: Can't find Itk private headers" >&5
22604echo "$as_me: error: Can't find Itk private headers" >&2;}
22605 { (exit 1); exit 1; }; }
3fc11d3e
JM
22606fi
22607if test x"${ac_cv_c_itkh}" != x ; then
22608 ITKHDIR="-I${ac_cv_c_itkh}"
22609fi
22610# should always be here
22611# ITKLIB="../itcl/itk/unix/libitk.a"
22612
22613#AC_SUBST(ITKLIB)
22614
3fc11d3e 22615
dd2504ab
JM
22616
22617 # now look for Tk library stuff
22618
d91670b9 22619 tkdir="../tk/${configdir}/"
dd2504ab
JM
22620
22621 TK_DEPS="${tkdir}${TK_LIB_FILE}"
22622
3fc11d3e
JM
22623 # now look for Itcl library stuff
22624
bec39cab 22625
3fc11d3e
JM
22626#
22627# Ok, lets find the itcl configuration
bec39cab 22628# First, look for one uninstalled.
3fc11d3e
JM
22629# the alternative search directory is invoked by --with-itclconfig
22630#
22631
22632if test x"${no_itcl}" = x ; then
22633 # we reset no_itcl in case something fails here
22634 no_itcl=true
bec39cab 22635
b4e70030 22636# Check whether --with-itclconfig or --without-itclconfig was given.
3fc11d3e 22637if test "${with_itclconfig+set}" = set; then
b4e70030
JB
22638 withval="$with_itclconfig"
22639 with_itclconfig=${withval}
22640fi;
22641 echo "$as_me:$LINENO: checking for Itcl configuration" >&5
22642echo $ECHO_N "checking for Itcl configuration... $ECHO_C" >&6
bec39cab
AC
22643 if test "${ac_cv_c_itclconfig+set}" = set; then
22644 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 22645else
bec39cab 22646
3fc11d3e
JM
22647
22648 # First check to see if --with-itclconfig was specified.
22649 if test x"${with_itclconfig}" != x ; then
22650 if test -f "${with_itclconfig}/itclConfig.sh" ; then
22651 ac_cv_c_itclconfig=`(cd ${with_itclconfig}; pwd)`
22652 else
bec39cab
AC
22653 { { echo "$as_me:$LINENO: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&5
22654echo "$as_me: error: ${with_itclconfig} directory doesn't contain itclConfig.sh" >&2;}
22655 { (exit 1); exit 1; }; }
3fc11d3e
JM
22656 fi
22657 fi
22658
22659 # then check for a private Itcl library
22660 if test x"${ac_cv_c_itclconfig}" = x ; then
22661 for i in \
22662 ../itcl/itcl \
22663 `ls -dr ../itcl[4-9]*/itcl 2>/dev/null` \
22664 ../../itcl \
22665 `ls -dr ../../itcl[4-9]*/itcl 2>/dev/null` \
22666 ../../../itcl \
22667 `ls -dr ../../../itcl[4-9]*/itcl 2>/dev/null` ; do
22668 if test -f "$i/itclConfig.sh" ; then
22669 ac_cv_c_itclconfig=`(cd $i; pwd)`
22670 break
22671 fi
22672 done
22673 fi
22674 # check in a few common install locations
22675 if test x"${ac_cv_c_itclconfig}" = x ; then
22676 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22677 if test -f "$i/itclConfig.sh" ; then
22678 ac_cv_c_itclconfig=`(cd $i; pwd)`
22679 break
22680 fi
22681 done
22682 fi
22683 # check in a few other private locations
22684 if test x"${ac_cv_c_itclconfig}" = x ; then
22685 for i in \
22686 ${srcdir}/../itcl/itcl \
22687 `ls -dr ${srcdir}/../itcl[4-9]*/itcl 2>/dev/null` ; do
22688 if test -f "$i/itclConfig.sh" ; then
22689 ac_cv_c_itclconfig=`(cd $i; pwd)`
22690 break
22691 fi
22692 done
22693 fi
bec39cab 22694
3fc11d3e
JM
22695fi
22696
22697 if test x"${ac_cv_c_itclconfig}" = x ; then
22698 ITCLCONFIG="# no Itcl configs found"
bec39cab
AC
22699 { echo "$as_me:$LINENO: WARNING: Can't find Itcl configuration definitions" >&5
22700echo "$as_me: WARNING: Can't find Itcl configuration definitions" >&2;}
3fc11d3e
JM
22701 else
22702 no_itcl=
22703 ITCLCONFIG=${ac_cv_c_itclconfig}/itclConfig.sh
b4e70030
JB
22704 echo "$as_me:$LINENO: result: found $ITCLCONFIG" >&5
22705echo "${ECHO_T}found $ITCLCONFIG" >&6
3fc11d3e
JM
22706 fi
22707fi
22708
22709 if test -z "${no_itcl}"; then
bec39cab 22710
3fc11d3e
JM
22711 if test -f "$ITCLCONFIG" ; then
22712 . $ITCLCONFIG
22713 fi
22714
3fc11d3e 22715
3fc11d3e
JM
22716
22717
bec39cab
AC
22718
22719
22720
22721
22722
22723
22724
3fc11d3e
JM
22725
22726 ITCLLIB="${ITCL_BUILD_LIB_SPEC}"
b381d62d 22727 ITCL_DEPS="${ITCL_LIB_FULL_PATH}"
3fc11d3e
JM
22728 fi
22729
bec39cab 22730
3fc11d3e 22731 # now look for Itk library stuff
bec39cab 22732
3fc11d3e
JM
22733#
22734# Ok, lets find the itk configuration
bec39cab 22735# First, look for one uninstalled.
3fc11d3e
JM
22736# the alternative search directory is invoked by --with-itkconfig
22737#
22738
22739if test x"${no_itk}" = x ; then
22740 # we reset no_itk in case something fails here
22741 no_itk=true
bec39cab 22742
b4e70030 22743# Check whether --with-itkconfig or --without-itkconfig was given.
3fc11d3e 22744if test "${with_itkconfig+set}" = set; then
b4e70030
JB
22745 withval="$with_itkconfig"
22746 with_itkconfig=${withval}
22747fi;
22748 echo "$as_me:$LINENO: checking for Itk configuration" >&5
22749echo $ECHO_N "checking for Itk configuration... $ECHO_C" >&6
bec39cab
AC
22750 if test "${ac_cv_c_itkconfig+set}" = set; then
22751 echo $ECHO_N "(cached) $ECHO_C" >&6
3fc11d3e 22752else
bec39cab 22753
3fc11d3e
JM
22754
22755 # First check to see if --with-itkconfig was specified.
22756 if test x"${with_itkconfig}" != x ; then
22757 if test -f "${with_itkconfig}/itkConfig.sh" ; then
22758 ac_cv_c_itkconfig=`(cd ${with_itkconfig}; pwd)`
22759 else
bec39cab
AC
22760 { { echo "$as_me:$LINENO: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&5
22761echo "$as_me: error: ${with_itkconfig} directory doesn't contain itkConfig.sh" >&2;}
22762 { (exit 1); exit 1; }; }
3fc11d3e
JM
22763 fi
22764 fi
22765
22766 # then check for a private Itk library
22767 if test x"${ac_cv_c_itkconfig}" = x ; then
22768 for i in \
22769 ../itcl/itk \
22770 `ls -dr ../itcl[4-9]*/itk 2>/dev/null` \
22771 ../../itk \
22772 `ls -dr ../../itcl[4-9]*/itk 2>/dev/null` \
22773 ../../../itk \
22774 `ls -dr ../../../itcl[4-9]*/itk 2>/dev/null` ; do
22775 if test -f "$i/itkConfig.sh" ; then
22776 ac_cv_c_itkconfig=`(cd $i; pwd)`
22777 break
22778 fi
22779 done
22780 fi
22781 # check in a few common install locations
22782 if test x"${ac_cv_c_itkconfig}" = x ; then
22783 for i in `ls -d ${prefix}/lib /usr/local/lib 2>/dev/null` ; do
22784 if test -f "$i/itkConfig.sh" ; then
22785 ac_cv_c_itkconfig=`(cd $i; pwd)`
22786 break
22787 fi
22788 done
22789 fi
22790 # check in a few other private locations
22791 if test x"${ac_cv_c_itkconfig}" = x ; then
22792 for i in \
22793 ${srcdir}/../itcl/itk \
22794 `ls -dr ${srcdir}/../itcl[4-9]*/itk 2>/dev/null` ; do
22795 if test -f "$i/itkConfig.sh" ; then
22796 ac_cv_c_itkconfig=`(cd $i; pwd)`
22797 break
22798 fi
22799 done
22800 fi
bec39cab 22801
3fc11d3e
JM
22802fi
22803
22804 if test x"${ac_cv_c_itkconfig}" = x ; then
22805 ITKCONFIG="# no Itk configs found"
bec39cab
AC
22806 { echo "$as_me:$LINENO: WARNING: Can't find Itk configuration definitions" >&5
22807echo "$as_me: WARNING: Can't find Itk configuration definitions" >&2;}
3fc11d3e
JM
22808 else
22809 no_itk=
22810 ITKCONFIG=${ac_cv_c_itkconfig}/itkConfig.sh
b4e70030
JB
22811 echo "$as_me:$LINENO: result: found $ITKCONFIG" >&5
22812echo "${ECHO_T}found $ITKCONFIG" >&6
3fc11d3e
JM
22813 fi
22814fi
22815
22816
bec39cab
AC
22817 if test -z "${no_itcl}"; then
22818
22819 if test -f "$ITKCONFIG" ; then
22820 . $ITKCONFIG
22821 fi
22822
22823
22824
22825
22826
22827
3fc11d3e 22828
3fc11d3e 22829
3fc11d3e
JM
22830
22831
3fc11d3e
JM
22832
22833
3fc11d3e 22834 ITKLIB="${ITK_BUILD_LIB_SPEC}"
b381d62d 22835 ITK_DEPS="${ITK_LIB_FULL_PATH}"
3fc11d3e
JM
22836 fi
22837
4226a5a5 22838 ENABLE_CFLAGS="${ENABLE_CFLAGS} \$(SUBDIR_GDBTK_CFLAGS)"
3fc11d3e
JM
22839
22840 # Include some libraries that Tcl and Tk want.
b2a1bd4f 22841 TCL_LIBS='$(LIBGUI) $(ITCL) $(ITK) $(TK) $(TCL) $(X11_LDFLAGS) $(X11_LIBS)'
3fc11d3e
JM
22842 # Yes, the ordering seems wrong here. But it isn't.
22843 # TK_LIBS is the list of libraries that need to be linked
22844 # after Tcl/Tk. Note that this isn't put into LIBS. If it
22845 # were in LIBS then any link tests after this point would
22846 # try to include things like `$(LIBGUI)', which wouldn't work.
22847 GDBTKLIBS="${TCL_LIBS} ${TK_LIBS}"
4226a5a5
FN
22848
22849 CONFIG_OBS="${CONFIG_OBS} \$(SUBDIR_GDBTK_OBS)"
22850 CONFIG_DEPS="${CONFIG_DEPS} \$(SUBDIR_GDBTK_DEPS)"
22851 CONFIG_SRCS="${CONFIG_SRCS} \$(SUBDIR_GDBTK_SRCS)"
33f8ca73
AC
22852 CONFIG_ALL="${CONFIG_ALL} all-gdbtk"
22853 CONFIG_CLEAN="${CONFIG_CLEAN} clean-gdbtk"
22854 CONFIG_INSTALL="${CONFIG_INSTALL} install-gdbtk"
22855 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-gdbtk"
3fc11d3e
JM
22856
22857 if test x$gdb_cv_os_cygwin = xyes; then
22858 WIN32LIBS="${WIN32LIBS} -lshell32 -lgdi32 -lcomdlg32 -ladvapi32"
22859 WIN32LDAPP="-Wl,--subsystem,console"
22860 CONFIG_OBS="${CONFIG_OBS} gdbres.o"
22861 fi
22862 fi
22863 fi
ffc6a242 22864
b4e70030
JB
22865
22866
22867subdirs="$subdirs gdbtk"
3ace7edb 22868
3fc11d3e
JM
22869fi
22870
22871
22872
22873
22874
22875
22876
22877
22878
22879
22880
22881
22882
dd2504ab 22883
b4e70030
JB
22884echo "$as_me:$LINENO: checking for X" >&5
22885echo $ECHO_N "checking for X... $ECHO_C" >&6
bec39cab 22886
c906108c 22887
b4e70030 22888# Check whether --with-x or --without-x was given.
c906108c 22889if test "${with_x+set}" = set; then
b4e70030 22890 withval="$with_x"
c906108c 22891
b4e70030 22892fi;
c906108c
SS
22893# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
22894if test "x$with_x" = xno; then
22895 # The user explicitly disabled X.
22896 have_x=disabled
22897else
22898 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
22899 # Both variables are already set.
22900 have_x=yes
22901 else
bec39cab
AC
22902 if test "${ac_cv_have_x+set}" = set; then
22903 echo $ECHO_N "(cached) $ECHO_C" >&6
c906108c
SS
22904else
22905 # One or both of the vars are not set, and there is no cached value.
bec39cab 22906ac_x_includes=no ac_x_libraries=no
b4e70030 22907rm -fr conftest.dir
bec39cab
AC
22908if mkdir conftest.dir; then
22909 cd conftest.dir
c906108c 22910 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
bec39cab 22911 cat >Imakefile <<'_ACEOF'
c906108c
SS
22912acfindx:
22913 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
bec39cab 22914_ACEOF
b4e70030 22915 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
c906108c
SS
22916 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22917 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
22918 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
22919 for ac_extension in a so sl; do
22920 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
bec39cab
AC
22921 test -f $ac_im_libdir/libX11.$ac_extension; then
22922 ac_im_usrlibdir=$ac_im_libdir; break
c906108c
SS
22923 fi
22924 done
22925 # Screen out bogus values from the imake configuration. They are
22926 # bogus both because they are the default anyway, and because
22927 # using them would break gcc on systems where it needs fixed includes.
bec39cab 22928 case $ac_im_incroot in
b4e70030 22929 /usr/include) ;;
bec39cab 22930 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
c906108c 22931 esac
bec39cab 22932 case $ac_im_usrlibdir in
c906108c 22933 /usr/lib | /lib) ;;
bec39cab 22934 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
c906108c
SS
22935 esac
22936 fi
22937 cd ..
b4e70030 22938 rm -fr conftest.dir
c906108c
SS
22939fi
22940
bec39cab
AC
22941# Standard set of common directories for X headers.
22942# Check X11 before X11Rn because it is often a symlink to the current release.
22943ac_x_header_dirs='
22944/usr/X11/include
22945/usr/X11R6/include
22946/usr/X11R5/include
22947/usr/X11R4/include
22948
22949/usr/include/X11
22950/usr/include/X11R6
22951/usr/include/X11R5
22952/usr/include/X11R4
22953
22954/usr/local/X11/include
22955/usr/local/X11R6/include
22956/usr/local/X11R5/include
22957/usr/local/X11R4/include
22958
22959/usr/local/include/X11
22960/usr/local/include/X11R6
22961/usr/local/include/X11R5
22962/usr/local/include/X11R4
22963
22964/usr/X386/include
22965/usr/x386/include
22966/usr/XFree86/include/X11
22967
22968/usr/include
22969/usr/local/include
22970/usr/unsupported/include
22971/usr/athena/include
22972/usr/local/x11r5/include
22973/usr/lpp/Xamples/include
22974
22975/usr/openwin/include
22976/usr/openwin/share/include'
22977
22978if test "$ac_x_includes" = no; then
59f80f10 22979 # Guess where to find include files, by looking for Intrinsic.h.
c906108c 22980 # First, try using that file with no special directory specified.
bec39cab
AC
22981 cat >conftest.$ac_ext <<_ACEOF
22982/* confdefs.h. */
22983_ACEOF
22984cat confdefs.h >>conftest.$ac_ext
22985cat >>conftest.$ac_ext <<_ACEOF
22986/* end confdefs.h. */
59f80f10 22987#include <X11/Intrinsic.h>
bec39cab
AC
22988_ACEOF
22989if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22990 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22991 ac_status=$?
22992 grep -v '^ *+' conftest.er1 >conftest.err
22993 rm -f conftest.er1
22994 cat conftest.err >&5
22995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22996 (exit $ac_status); } >/dev/null; then
22997 if test -s conftest.err; then
22998 ac_cpp_err=$ac_c_preproc_warn_flag
22999 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23000 else
23001 ac_cpp_err=
23002 fi
23003else
23004 ac_cpp_err=yes
23005fi
23006if test -z "$ac_cpp_err"; then
c906108c
SS
23007 # We can compile using X headers with no special include directory.
23008ac_x_includes=
23009else
bec39cab
AC
23010 echo "$as_me: failed program was:" >&5
23011sed 's/^/| /' conftest.$ac_ext >&5
23012
23013 for ac_dir in $ac_x_header_dirs; do
59f80f10 23014 if test -r "$ac_dir/X11/Intrinsic.h"; then
bec39cab
AC
23015 ac_x_includes=$ac_dir
23016 break
23017 fi
23018done
c906108c 23019fi
bec39cab
AC
23020rm -f conftest.err conftest.$ac_ext
23021fi # $ac_x_includes = no
c906108c 23022
bec39cab 23023if test "$ac_x_libraries" = no; then
c906108c 23024 # Check for the libraries.
c906108c
SS
23025 # See if we find them without any special options.
23026 # Don't add to $LIBS permanently.
bec39cab 23027 ac_save_LIBS=$LIBS
4e8d927d 23028 LIBS="-lXt $LIBS"
bec39cab
AC
23029 cat >conftest.$ac_ext <<_ACEOF
23030/* confdefs.h. */
23031_ACEOF
23032cat confdefs.h >>conftest.$ac_ext
23033cat >>conftest.$ac_ext <<_ACEOF
23034/* end confdefs.h. */
59f80f10 23035#include <X11/Intrinsic.h>
bec39cab
AC
23036int
23037main ()
23038{
59f80f10 23039XtMalloc (0)
bec39cab
AC
23040 ;
23041 return 0;
23042}
23043_ACEOF
23044rm -f conftest.$ac_objext conftest$ac_exeext
23045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23046 (eval $ac_link) 2>conftest.er1
23047 ac_status=$?
23048 grep -v '^ *+' conftest.er1 >conftest.err
23049 rm -f conftest.er1
23050 cat conftest.err >&5
23051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23052 (exit $ac_status); } &&
b4e70030
JB
23053 { ac_try='test -z "$ac_c_werror_flag"
23054 || test ! -s conftest.err'
bec39cab
AC
23055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23056 (eval $ac_try) 2>&5
23057 ac_status=$?
23058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23059 (exit $ac_status); }; } &&
23060 { ac_try='test -s conftest$ac_exeext'
23061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23062 (eval $ac_try) 2>&5
23063 ac_status=$?
23064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23065 (exit $ac_status); }; }; then
23066 LIBS=$ac_save_LIBS
c906108c
SS
23067# We can link X programs with no special library path.
23068ac_x_libraries=
23069else
bec39cab
AC
23070 echo "$as_me: failed program was:" >&5
23071sed 's/^/| /' conftest.$ac_ext >&5
23072
b4e70030 23073LIBS=$ac_save_LIBS
bec39cab 23074for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
c906108c 23075do
bec39cab 23076 # Don't even attempt the hair of trying to link an X program!
c906108c 23077 for ac_extension in a so sl; do
b4e70030 23078 if test -r $ac_dir/libXt.$ac_extension; then
c906108c
SS
23079 ac_x_libraries=$ac_dir
23080 break 2
23081 fi
23082 done
23083done
23084fi
bec39cab
AC
23085rm -f conftest.err conftest.$ac_objext \
23086 conftest$ac_exeext conftest.$ac_ext
23087fi # $ac_x_libraries = no
c906108c 23088
bec39cab 23089if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
c906108c
SS
23090 # Didn't find X anywhere. Cache the known absence of X.
23091 ac_cv_have_x="have_x=no"
23092else
23093 # Record where we found X for the cache.
23094 ac_cv_have_x="have_x=yes \
bec39cab 23095 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
c906108c
SS
23096fi
23097fi
bec39cab 23098
c906108c
SS
23099 fi
23100 eval "$ac_cv_have_x"
23101fi # $with_x != no
23102
23103if test "$have_x" != yes; then
b4e70030
JB
23104 echo "$as_me:$LINENO: result: $have_x" >&5
23105echo "${ECHO_T}$have_x" >&6
c906108c
SS
23106 no_x=yes
23107else
23108 # If each of the values was on the command line, it overrides each guess.
23109 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23110 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23111 # Update the cache value to reflect the command line values.
23112 ac_cv_have_x="have_x=yes \
23113 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
b4e70030
JB
23114 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
23115echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
c906108c
SS
23116fi
23117
23118
9cc52bde
MK
23119# Check whether we should enable the TUI, but only do so if we really
23120# can.
23121if test x"$enable_tui" = xyes; then
23122 if test -d $srcdir/tui; then
23123 if test "$ac_cv_search_waddstr" != no; then
23124 CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_TUI_OBS)"
23125 CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_TUI_DEPS)"
23126 CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_TUI_SRCS)"
23127 CONFIG_INITS="$CONFIG_INITS \$(SUBDIR_TUI_INITS)"
23128 ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_TUI_CFLAGS)"
23129 CONFIG_ALL="${CONFIG_ALL} all-tui"
23130 CONFIG_CLEAN="${CONFIG_CLEAN} clean-tui"
23131 CONFIG_INSTALL="${CONFIG_INSTALL} install-tui"
23132 CONFIG_UNINSTALL="${CONFIG_UNINSTALL} uninstall-tui"
23133 else
bec39cab
AC
23134 { echo "$as_me:$LINENO: WARNING: no enhanced curses library found; disabling TUI" >&5
23135echo "$as_me: WARNING: no enhanced curses library found; disabling TUI" >&2;}
9cc52bde
MK
23136 fi
23137 fi
23138fi
23139
bec39cab
AC
23140# Unlike the sim directory, whether a simulator is linked is controlled by
23141# presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
7a292a7a
SS
23142# This code just checks for a few cases where we'd like to ignore those
23143# definitions, even when they're present in the '.mt' file. These cases
23144# are when --disable-sim is specified, or if the simulator directory is
6c5cfe5b 23145# not part of the source tree.
7a292a7a 23146#
b4e70030 23147# Check whether --enable-sim or --disable-sim was given.
7a292a7a 23148if test "${enable_sim+set}" = set; then
b4e70030
JB
23149 enableval="$enable_sim"
23150 echo "enable_sim = $enable_sim";
7a292a7a
SS
23151 echo "enableval = ${enableval}";
23152 case "${enableval}" in
23153 yes) ignore_sim=false ;;
23154 no) ignore_sim=true ;;
23155 *) ignore_sim=false ;;
23156 esac
23157else
23158 ignore_sim=false
b4e70030 23159fi;
7a292a7a
SS
23160
23161if test ! -d "${srcdir}/../sim"; then
23162 ignore_sim=true
23163fi
23164
23165if test "${ignore_sim}" = "true"; then
23166 IGNORE_SIM="SIM="
23167 IGNORE_SIM_OBS="SIM_OBS="
23168else
23169 IGNORE_SIM=""
23170 IGNORE_SIM_OBS=""
60ca704f
SE
23171
23172cat >>confdefs.h <<\_ACEOF
7a292a7a 23173#define WITH_SIM 1
bec39cab 23174_ACEOF
7a292a7a
SS
23175
23176fi
23177
23178
23179
c906108c
SS
23180
23181
23182
23183
23184
23185
dfcd3bfb 23186
e56ac5c3
AC
23187
23188
b3a90332
AC
23189
23190
c35f4ffc 23191# List of host floatformats.
bec39cab
AC
23192
23193cat >>confdefs.h <<_ACEOF
c35f4ffc 23194#define GDB_HOST_FLOAT_FORMAT $gdb_host_float_format
bec39cab 23195_ACEOF
c35f4ffc 23196
bec39cab
AC
23197
23198cat >>confdefs.h <<_ACEOF
c35f4ffc 23199#define GDB_HOST_DOUBLE_FORMAT $gdb_host_double_format
bec39cab
AC
23200_ACEOF
23201
c35f4ffc 23202
bec39cab 23203cat >>confdefs.h <<_ACEOF
c35f4ffc 23204#define GDB_HOST_LONG_DOUBLE_FORMAT $gdb_host_long_double_format
bec39cab 23205_ACEOF
c35f4ffc
AC
23206
23207
c906108c
SS
23208# target_subdir is used by the testsuite to find the target libraries.
23209target_subdir=
23210if test "${host}" != "${target}"; then
23211 target_subdir="${target_alias}/"
23212fi
23213
23214
23215frags=
771b4502 23216if test "${gdb_native}" = "yes"; then
0dad8a66
MK
23217 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
23218 if test ! -f ${host_makefile_frag}; then
bec39cab
AC
23219 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support native target ${host}\"" >&5
23220echo "$as_me: error: \"*** Gdb does not support native target ${host}\"" >&2;}
23221 { (exit 1); exit 1; }; }
0dad8a66
MK
23222 fi
23223 frags="$frags $host_makefile_frag"
23224else
23225 host_makefile_frag=/dev/null
c906108c 23226fi
c906108c
SS
23227
23228target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
23229if test ! -f ${target_makefile_frag}; then
bec39cab
AC
23230 { { echo "$as_me:$LINENO: error: \"*** Gdb does not support target ${target}\"" >&5
23231echo "$as_me: error: \"*** Gdb does not support target ${target}\"" >&2;}
23232 { (exit 1); exit 1; }; }
c906108c
SS
23233fi
23234frags="$frags $target_makefile_frag"
23235
23236
23237
23238
23239
23240hostfile=`sed -n '
23241s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
23242' ${host_makefile_frag}`
23243
23244targetfile=`sed -n '
b523a1fd 23245s/^[ ]*DEPRECATED_TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
c906108c
SS
23246' ${target_makefile_frag}`
23247
771b4502 23248if test "${gdb_native}" = "yes"; then
a85f51e7
DJ
23249# We pick this up from the host configuration file (.mh) because we
23250# do not have a native configuration Makefile fragment.
c906108c
SS
23251nativefile=`sed -n '
23252s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
23253' ${host_makefile_frag}`
c906108c
SS
23254fi
23255
23256
b00a8037 23257if test x"${gdb_osabi}" != x ; then
bec39cab
AC
23258
23259cat >>confdefs.h <<_ACEOF
b00a8037 23260#define GDB_OSABI_DEFAULT $gdb_osabi
bec39cab 23261_ACEOF
b00a8037
DJ
23262
23263fi
23264
8dcde887 23265# Enable multi-ice-gdb-server.
b4e70030 23266# Check whether --enable-multi-ice or --disable-multi-ice was given.
8dcde887 23267if test "${enable_multi_ice+set}" = set; then
b4e70030
JB
23268 enableval="$enable_multi_ice"
23269 case $enableval in
8dcde887
MK
23270 yes | no)
23271 ;;
bec39cab
AC
23272 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-multi-ice" >&5
23273echo "$as_me: error: bad value $enableval for --enable-multi-ice" >&2;}
23274 { (exit 1); exit 1; }; } ;;
8dcde887 23275 esac
b4e70030 23276fi;
4e8d927d 23277if test "x$enable_multi_ice" = xyes; then
b4e70030
JB
23278
23279
23280subdirs="$subdirs multi-ice"
3ace7edb 23281
a85f51e7
DJ
23282fi
23283
a13e2c95
UW
23284# We only build gdbserver automatically in a native configuration.
23285if test "$gdb_native" = "yes"; then
b4e70030
JB
23286 echo "$as_me:$LINENO: checking whether gdbserver is supported on this host" >&5
23287echo $ECHO_N "checking whether gdbserver is supported on this host... $ECHO_C" >&6
8dcde887 23288 if test "x$build_gdbserver" = xyes; then
b4e70030
JB
23289 echo "$as_me:$LINENO: result: yes" >&5
23290echo "${ECHO_T}yes" >&6
23291
23292
23293subdirs="$subdirs gdbserver"
3ace7edb 23294
8dcde887 23295 else
b4e70030
JB
23296 echo "$as_me:$LINENO: result: no" >&5
23297echo "${ECHO_T}no" >&6
8dcde887
MK
23298 fi
23299fi
23300
2c0fc042
AC
23301# If hostfile (XM_FILE) and/or targetfile (DEPRECATED_TM_FILE) and/or
23302# nativefile (NAT_FILE) is not set in config/*/*.m[ht] files, we link
23303# to an empty version.
c906108c
SS
23304
23305files=
23306links=
5a2402b8 23307
c906108c 23308rm -f xm.h
5a2402b8 23309xm_h=""
c906108c 23310if test "${hostfile}" != ""; then
5a2402b8 23311 xm_h=xm.h
0f475e27
AC
23312 case "${hostfile}" in
23313 xm-*.h ) GDB_XM_FILE="config/${gdb_host_cpu}/${hostfile}" ;;
23314 * ) GDB_XM_FILE="${hostfile}"
23315 esac
5a2402b8
AC
23316 files="${files} ${GDB_XM_FILE}"
23317 links="${links} xm.h"
60ca704f
SE
23318
23319cat >>confdefs.h <<_ACEOF
b78960be 23320#define GDB_XM_FILE "${GDB_XM_FILE}"
bec39cab 23321_ACEOF
5a2402b8 23322
c906108c 23323fi
5a2402b8
AC
23324
23325
c906108c 23326rm -f tm.h
5a2402b8 23327tm_h=""
c906108c 23328if test "${targetfile}" != ""; then
5a2402b8 23329 tm_h=tm.h
0f475e27 23330 case "${targetfile}" in
b8c4aece 23331 tm-*.h ) GDB_TM_FILE="config/${gdb_target_cpu}/${targetfile}" ;;
0f475e27
AC
23332 * ) GDB_TM_FILE="${targetfile}"
23333 esac
5a2402b8
AC
23334 files="${files} ${GDB_TM_FILE}"
23335 links="${links} tm.h"
60ca704f
SE
23336
23337cat >>confdefs.h <<_ACEOF
b78960be 23338#define GDB_TM_FILE "${GDB_TM_FILE}"
bec39cab 23339_ACEOF
5a2402b8 23340
c906108c 23341fi
5a2402b8
AC
23342
23343
c906108c 23344rm -f nm.h
5a2402b8 23345nm_h=""
c906108c 23346if test "${nativefile}" != ""; then
5a2402b8 23347 nm_h=nm.h
0f475e27
AC
23348 case "${nativefile}" in
23349 nm-*.h ) GDB_NM_FILE="config/${gdb_host_cpu}/${nativefile}" ;;
23350 * ) GDB_NM_FILE="${nativefile}"
23351 esac
5a2402b8
AC
23352 files="${files} ${GDB_NM_FILE}"
23353 links="${links} nm.h"
60ca704f
SE
23354
23355cat >>confdefs.h <<_ACEOF
b78960be 23356#define GDB_NM_FILE "${GDB_NM_FILE}"
bec39cab 23357_ACEOF
5a2402b8 23358
c906108c 23359fi
5a2402b8
AC
23360
23361
bec39cab
AC
23362ac_sources="$files"
23363ac_dests="$links"
23364while test -n "$ac_sources"; do
23365 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
23366 set $ac_sources; ac_source=$1; shift; ac_sources=$*
23367 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
23368done
b4e70030 23369 ac_config_links="$ac_config_links $ac_config_links_1"
c906108c
SS
23370
23371
c906108c
SS
23372
23373
c906108c 23374
c906108c 23375
bec39cab
AC
23376cat >>confdefs.h <<\_ACEOF
23377#define GDB_DEFAULT_HOST_CHARSET "ISO-8859-1"
23378_ACEOF
c906108c 23379
234b45d4 23380
234b45d4
KB
23381
23382
23383
b4e70030 23384# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
234b45d4 23385if test "${with_libiconv_prefix+set}" = set; then
b4e70030
JB
23386 withval="$with_libiconv_prefix"
23387
234b45d4
KB
23388 for dir in `echo "$withval" | tr : ' '`; do
23389 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
23390 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
23391 done
234b45d4 23392
b4e70030 23393fi;
234b45d4 23394
b4e70030
JB
23395 echo "$as_me:$LINENO: checking for iconv" >&5
23396echo $ECHO_N "checking for iconv... $ECHO_C" >&6
bec39cab
AC
23397if test "${am_cv_func_iconv+set}" = set; then
23398 echo $ECHO_N "(cached) $ECHO_C" >&6
234b45d4 23399else
bec39cab 23400
234b45d4
KB
23401 am_cv_func_iconv="no, consider installing GNU libiconv"
23402 am_cv_lib_iconv=no
bec39cab
AC
23403 cat >conftest.$ac_ext <<_ACEOF
23404/* confdefs.h. */
23405_ACEOF
23406cat confdefs.h >>conftest.$ac_ext
23407cat >>conftest.$ac_ext <<_ACEOF
23408/* end confdefs.h. */
234b45d4
KB
23409#include <stdlib.h>
23410#include <iconv.h>
bec39cab
AC
23411int
23412main ()
23413{
234b45d4
KB
23414iconv_t cd = iconv_open("","");
23415 iconv(cd,NULL,NULL,NULL,NULL);
23416 iconv_close(cd);
bec39cab
AC
23417 ;
23418 return 0;
23419}
23420_ACEOF
23421rm -f conftest.$ac_objext conftest$ac_exeext
23422if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23423 (eval $ac_link) 2>conftest.er1
23424 ac_status=$?
23425 grep -v '^ *+' conftest.er1 >conftest.err
23426 rm -f conftest.er1
23427 cat conftest.err >&5
23428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23429 (exit $ac_status); } &&
b4e70030
JB
23430 { ac_try='test -z "$ac_c_werror_flag"
23431 || test ! -s conftest.err'
bec39cab
AC
23432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23433 (eval $ac_try) 2>&5
23434 ac_status=$?
23435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23436 (exit $ac_status); }; } &&
23437 { ac_try='test -s conftest$ac_exeext'
23438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23439 (eval $ac_try) 2>&5
23440 ac_status=$?
23441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23442 (exit $ac_status); }; }; then
234b45d4
KB
23443 am_cv_func_iconv=yes
23444else
bec39cab
AC
23445 echo "$as_me: failed program was:" >&5
23446sed 's/^/| /' conftest.$ac_ext >&5
23447
234b45d4 23448fi
bec39cab
AC
23449rm -f conftest.err conftest.$ac_objext \
23450 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
23451 if test "$am_cv_func_iconv" != yes; then
23452 am_save_LIBS="$LIBS"
23453 LIBS="$LIBS -liconv"
bec39cab
AC
23454 cat >conftest.$ac_ext <<_ACEOF
23455/* confdefs.h. */
23456_ACEOF
23457cat confdefs.h >>conftest.$ac_ext
23458cat >>conftest.$ac_ext <<_ACEOF
23459/* end confdefs.h. */
234b45d4
KB
23460#include <stdlib.h>
23461#include <iconv.h>
bec39cab
AC
23462int
23463main ()
23464{
234b45d4
KB
23465iconv_t cd = iconv_open("","");
23466 iconv(cd,NULL,NULL,NULL,NULL);
23467 iconv_close(cd);
bec39cab
AC
23468 ;
23469 return 0;
23470}
23471_ACEOF
23472rm -f conftest.$ac_objext conftest$ac_exeext
23473if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23474 (eval $ac_link) 2>conftest.er1
23475 ac_status=$?
23476 grep -v '^ *+' conftest.er1 >conftest.err
23477 rm -f conftest.er1
23478 cat conftest.err >&5
23479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23480 (exit $ac_status); } &&
b4e70030
JB
23481 { ac_try='test -z "$ac_c_werror_flag"
23482 || test ! -s conftest.err'
bec39cab
AC
23483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23484 (eval $ac_try) 2>&5
23485 ac_status=$?
23486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23487 (exit $ac_status); }; } &&
23488 { ac_try='test -s conftest$ac_exeext'
23489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23490 (eval $ac_try) 2>&5
23491 ac_status=$?
23492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23493 (exit $ac_status); }; }; then
234b45d4
KB
23494 am_cv_lib_iconv=yes
23495 am_cv_func_iconv=yes
23496else
bec39cab
AC
23497 echo "$as_me: failed program was:" >&5
23498sed 's/^/| /' conftest.$ac_ext >&5
23499
234b45d4 23500fi
bec39cab
AC
23501rm -f conftest.err conftest.$ac_objext \
23502 conftest$ac_exeext conftest.$ac_ext
234b45d4
KB
23503 LIBS="$am_save_LIBS"
23504 fi
bec39cab
AC
23505
23506fi
b4e70030
JB
23507echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
23508echo "${ECHO_T}$am_cv_func_iconv" >&6
bec39cab
AC
23509 if test "$am_cv_func_iconv" = yes; then
23510
23511cat >>confdefs.h <<\_ACEOF
23512#define HAVE_ICONV 1
23513_ACEOF
23514
b4e70030
JB
23515 echo "$as_me:$LINENO: checking for iconv declaration" >&5
23516echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
bec39cab
AC
23517 if test "${am_cv_proto_iconv+set}" = set; then
23518 echo $ECHO_N "(cached) $ECHO_C" >&6
23519else
23520
23521 cat >conftest.$ac_ext <<_ACEOF
23522/* confdefs.h. */
23523_ACEOF
23524cat confdefs.h >>conftest.$ac_ext
23525cat >>conftest.$ac_ext <<_ACEOF
23526/* end confdefs.h. */
23527
23528#include <stdlib.h>
23529#include <iconv.h>
23530extern
23531#ifdef __cplusplus
23532"C"
23533#endif
23534#if defined(__STDC__) || defined(__cplusplus)
23535size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
23536#else
23537size_t iconv();
23538#endif
23539
23540int
23541main ()
23542{
23543
23544 ;
23545 return 0;
23546}
23547_ACEOF
23548rm -f conftest.$ac_objext
23549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23550 (eval $ac_compile) 2>conftest.er1
23551 ac_status=$?
23552 grep -v '^ *+' conftest.er1 >conftest.err
23553 rm -f conftest.er1
23554 cat conftest.err >&5
23555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23556 (exit $ac_status); } &&
b4e70030
JB
23557 { ac_try='test -z "$ac_c_werror_flag"
23558 || test ! -s conftest.err'
bec39cab
AC
23559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23560 (eval $ac_try) 2>&5
23561 ac_status=$?
23562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23563 (exit $ac_status); }; } &&
23564 { ac_try='test -s conftest.$ac_objext'
23565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23566 (eval $ac_try) 2>&5
23567 ac_status=$?
23568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23569 (exit $ac_status); }; }; then
23570 am_cv_proto_iconv_arg1=""
23571else
23572 echo "$as_me: failed program was:" >&5
23573sed 's/^/| /' conftest.$ac_ext >&5
23574
b4e70030 23575am_cv_proto_iconv_arg1="const"
bec39cab
AC
23576fi
23577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23578 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);"
23579fi
23580
23581 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
b4e70030 23582 echo "$as_me:$LINENO: result: ${ac_t:-
bec39cab
AC
23583 }$am_cv_proto_iconv" >&5
23584echo "${ECHO_T}${ac_t:-
b4e70030 23585 }$am_cv_proto_iconv" >&6
bec39cab
AC
23586
23587cat >>confdefs.h <<_ACEOF
23588#define ICONV_CONST $am_cv_proto_iconv_arg1
23589_ACEOF
23590
23591 fi
23592 LIBICONV=
23593 if test "$am_cv_lib_iconv" = yes; then
23594 LIBICONV="-liconv"
23595 fi
23596
23597
23598
b4e70030
JB
23599 ac_config_files="$ac_config_files Makefile .gdbinit:gdbinit.in"
23600 ac_config_commands="$ac_config_commands default"
bec39cab
AC
23601cat >confcache <<\_ACEOF
23602# This file is a shell script that caches the results of configure
23603# tests run on this system so they can be shared between configure
23604# scripts and configure runs, see configure's option --config-cache.
23605# It is not useful on other systems. If it contains results you don't
23606# want to keep, you may remove or edit it.
23607#
23608# config.status only pays attention to the cache file if you give it
23609# the --recheck option to rerun configure.
23610#
23611# `ac_cv_env_foo' variables (set or unset) will be overridden when
23612# loading this file, other *unset* `ac_cv_foo' will be assigned the
23613# following values.
23614
23615_ACEOF
23616
23617# The following way of writing the cache mishandles newlines in values,
23618# but we know of no workaround that is simple, portable, and efficient.
b4e70030 23619# So, don't put newlines in cache variables' values.
bec39cab
AC
23620# Ultrix sh set writes to stderr and can't be redirected directly,
23621# and sets the high bit in the cache file unless we assign to the vars.
b4e70030 23622{
bec39cab 23623 (set) 2>&1 |
b4e70030
JB
23624 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23625 *ac_space=\ *)
bec39cab
AC
23626 # `set' does not quote correctly, so add quotes (double-quote
23627 # substitution turns \\\\ into \\, and sed turns \\ into \).
23628 sed -n \
23629 "s/'/'\\\\''/g;
23630 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
b4e70030 23631 ;;
bec39cab
AC
23632 *)
23633 # `set' quotes correctly as required by POSIX, so do not add quotes.
b4e70030
JB
23634 sed -n \
23635 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
bec39cab 23636 ;;
b4e70030
JB
23637 esac;
23638} |
bec39cab
AC
23639 sed '
23640 t clear
b4e70030 23641 : clear
bec39cab
AC
23642 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23643 t end
b4e70030
JB
23644 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23645 : end' >>confcache
bec39cab
AC
23646if diff $cache_file confcache >/dev/null 2>&1; then :; else
23647 if test -w $cache_file; then
b4e70030 23648 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
bec39cab
AC
23649 cat confcache >$cache_file
23650 else
b4e70030 23651 echo "not updating unwritable cache $cache_file"
bec39cab
AC
23652 fi
23653fi
23654rm -f confcache
23655
23656test "x$prefix" = xNONE && prefix=$ac_default_prefix
23657# Let make expand exec_prefix.
23658test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23659
b4e70030
JB
23660# VPATH may cause trouble with some makes, so we remove $(srcdir),
23661# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23662# trailing colons and then remove the whole line if VPATH becomes empty
23663# (actually we leave an empty line to preserve line numbers).
23664if test "x$srcdir" = x.; then
23665 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23666s/:*\$(srcdir):*/:/;
23667s/:*\${srcdir}:*/:/;
23668s/:*@srcdir@:*/:/;
23669s/^\([^=]*=[ ]*\):*/\1/;
23670s/:*$//;
23671s/^[^=]*=[ ]*$//;
23672}'
23673fi
23674
bec39cab
AC
23675DEFS=-DHAVE_CONFIG_H
23676
23677ac_libobjs=
23678ac_ltlibobjs=
23679for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23680 # 1. Remove the extension, and $U if already installed.
b4e70030
JB
23681 ac_i=`echo "$ac_i" |
23682 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23683 # 2. Add them.
23684 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23685 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
bec39cab
AC
23686done
23687LIBOBJS=$ac_libobjs
23688
23689LTLIBOBJS=$ac_ltlibobjs
23690
23691
85981d60
AC
23692if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23693 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23694Usually this means the macro was only invoked conditionally." >&5
23695echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23696Usually this means the macro was only invoked conditionally." >&2;}
23697 { (exit 1); exit 1; }; }
23698fi
bec39cab
AC
23699
23700: ${CONFIG_STATUS=./config.status}
23701ac_clean_files_save=$ac_clean_files
23702ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23703{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23704echo "$as_me: creating $CONFIG_STATUS" >&6;}
23705cat >$CONFIG_STATUS <<_ACEOF
23706#! $SHELL
23707# Generated by $as_me.
23708# Run this file to recreate the current configuration.
23709# Compiler output produced by configure, useful for debugging
23710# configure, is in config.log if it exists.
23711
23712debug=false
23713ac_cs_recheck=false
23714ac_cs_silent=false
23715SHELL=\${CONFIG_SHELL-$SHELL}
23716_ACEOF
23717
23718cat >>$CONFIG_STATUS <<\_ACEOF
23719## --------------------- ##
23720## M4sh Initialization. ##
23721## --------------------- ##
23722
23723# Be Bourne compatible
23724if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23725 emulate sh
23726 NULLCMD=:
23727 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23728 # is contrary to our usage. Disable this feature.
23729 alias -g '${1+"$@"}'='"$@"'
b4e70030
JB
23730elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23731 set -o posix
bec39cab
AC
23732fi
23733DUALCASE=1; export DUALCASE # for MKS sh
23734
23735# Support unset when possible.
23736if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23737 as_unset=unset
23738else
23739 as_unset=false
23740fi
23741
23742
23743# Work around bugs in pre-3.0 UWIN ksh.
b4e70030 23744$as_unset ENV MAIL MAILPATH
bec39cab
AC
23745PS1='$ '
23746PS2='> '
23747PS4='+ '
23748
23749# NLS nuisances.
23750for as_var in \
23751 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23752 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23753 LC_TELEPHONE LC_TIME
23754do
23755 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23756 eval $as_var=C; export $as_var
23757 else
b4e70030 23758 $as_unset $as_var
bec39cab
AC
23759 fi
23760done
23761
23762# Required to use basename.
b4e70030 23763if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
23764 as_expr=expr
23765else
23766 as_expr=false
23767fi
23768
b4e70030 23769if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
bec39cab
AC
23770 as_basename=basename
23771else
23772 as_basename=false
23773fi
23774
23775
23776# Name of the executable.
b4e70030 23777as_me=`$as_basename "$0" ||
bec39cab
AC
23778$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23779 X"$0" : 'X\(//\)$' \| \
b4e70030
JB
23780 X"$0" : 'X\(/\)$' \| \
23781 . : '\(.\)' 2>/dev/null ||
bec39cab 23782echo X/"$0" |
b4e70030
JB
23783 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23784 /^X\/\(\/\/\)$/{ s//\1/; q; }
23785 /^X\/\(\/\).*/{ s//\1/; q; }
23786 s/.*/./; q'`
bec39cab 23787
b4e70030
JB
23788
23789# PATH needs CR, and LINENO needs CR and PATH.
23790# Avoid depending upon Character Ranges.
23791as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23792as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23793as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23794as_cr_digits='0123456789'
23795as_cr_alnum=$as_cr_Letters$as_cr_digits
23796
23797# The user is always right.
23798if test "${PATH_SEPARATOR+set}" != set; then
23799 echo "#! /bin/sh" >conf$$.sh
23800 echo "exit 0" >>conf$$.sh
23801 chmod +x conf$$.sh
23802 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23803 PATH_SEPARATOR=';'
23804 else
23805 PATH_SEPARATOR=:
23806 fi
23807 rm -f conf$$.sh
23808fi
bec39cab
AC
23809
23810
b4e70030
JB
23811 as_lineno_1=$LINENO
23812 as_lineno_2=$LINENO
23813 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23814 test "x$as_lineno_1" != "x$as_lineno_2" &&
23815 test "x$as_lineno_3" = "x$as_lineno_2" || {
23816 # Find who we are. Look in the path if we contain no path at all
23817 # relative or not.
23818 case $0 in
23819 *[\\/]* ) as_myself=$0 ;;
23820 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23821for as_dir in $PATH
23822do
23823 IFS=$as_save_IFS
23824 test -z "$as_dir" && as_dir=.
23825 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23826done
bec39cab 23827
b4e70030
JB
23828 ;;
23829 esac
23830 # We did not find ourselves, most probably we were run as `sh COMMAND'
23831 # in which case we are not to be found in the path.
23832 if test "x$as_myself" = x; then
23833 as_myself=$0
23834 fi
23835 if test ! -f "$as_myself"; then
23836 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23837echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23838 { (exit 1); exit 1; }; }
23839 fi
23840 case $CONFIG_SHELL in
23841 '')
23842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23843for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23844do
23845 IFS=$as_save_IFS
23846 test -z "$as_dir" && as_dir=.
23847 for as_base in sh bash ksh sh5; do
23848 case $as_dir in
23849 /*)
23850 if ("$as_dir/$as_base" -c '
bec39cab
AC
23851 as_lineno_1=$LINENO
23852 as_lineno_2=$LINENO
b4e70030 23853 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
bec39cab 23854 test "x$as_lineno_1" != "x$as_lineno_2" &&
b4e70030
JB
23855 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23856 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23857 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23858 CONFIG_SHELL=$as_dir/$as_base
23859 export CONFIG_SHELL
23860 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23861 fi;;
23862 esac
23863 done
23864done
23865;;
23866 esac
bec39cab
AC
23867
23868 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23869 # uniformly replaced by the line number. The first 'sed' inserts a
b4e70030
JB
23870 # line-number line before each line; the second 'sed' does the real
23871 # work. The second script uses 'N' to pair each line-number line
23872 # with the numbered line, and appends trailing '-' during
23873 # substitution so that $LINENO is not a special case at line end.
bec39cab 23874 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
b4e70030
JB
23875 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23876 sed '=' <$as_myself |
bec39cab
AC
23877 sed '
23878 N
b4e70030
JB
23879 s,$,-,
23880 : loop
23881 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
bec39cab 23882 t loop
b4e70030
JB
23883 s,-$,,
23884 s,^['$as_cr_digits']*\n,,
bec39cab 23885 ' >$as_me.lineno &&
b4e70030
JB
23886 chmod +x $as_me.lineno ||
23887 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23888echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
bec39cab
AC
23889 { (exit 1); exit 1; }; }
23890
23891 # Don't try to exec as it changes $[0], causing all sort of problems
23892 # (the dirname of $[0] is not the place where we might find the
b4e70030
JB
23893 # original and so on. Autoconf is especially sensible to this).
23894 . ./$as_me.lineno
bec39cab
AC
23895 # Exit status is that of the last command.
23896 exit
23897}
23898
23899
b4e70030
JB
23900case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23901 *c*,-n*) ECHO_N= ECHO_C='
23902' ECHO_T=' ' ;;
23903 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23904 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
bec39cab
AC
23905esac
23906
b4e70030 23907if expr a : '\(a\)' >/dev/null 2>&1; then
bec39cab
AC
23908 as_expr=expr
23909else
23910 as_expr=false
23911fi
23912
23913rm -f conf$$ conf$$.exe conf$$.file
23914echo >conf$$.file
23915if ln -s conf$$.file conf$$ 2>/dev/null; then
b4e70030
JB
23916 # We could just check for DJGPP; but this test a) works b) is more generic
23917 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23918 if test -f conf$$.exe; then
23919 # Don't use ln at all; we don't have any links
bec39cab 23920 as_ln_s='cp -p'
b4e70030
JB
23921 else
23922 as_ln_s='ln -s'
23923 fi
bec39cab
AC
23924elif ln conf$$.file conf$$ 2>/dev/null; then
23925 as_ln_s=ln
23926else
23927 as_ln_s='cp -p'
23928fi
b4e70030 23929rm -f conf$$ conf$$.exe conf$$.file
bec39cab
AC
23930
23931if mkdir -p . 2>/dev/null; then
23932 as_mkdir_p=:
23933else
23934 test -d ./-p && rmdir ./-p
23935 as_mkdir_p=false
23936fi
23937
b4e70030 23938as_executable_p="test -f"
bec39cab
AC
23939
23940# Sed expression to map a string onto a valid CPP name.
23941as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23942
23943# Sed expression to map a string onto a valid variable name.
23944as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23945
23946
b4e70030
JB
23947# IFS
23948# We need space, tab and new line, in precisely that order.
23949as_nl='
23950'
23951IFS=" $as_nl"
23952
23953# CDPATH.
23954$as_unset CDPATH
23955
bec39cab
AC
23956exec 6>&1
23957
b4e70030 23958# Open the log real soon, to keep \$[0] and so on meaningful, and to
bec39cab 23959# report actual input values of CONFIG_FILES etc. instead of their
b4e70030
JB
23960# values after options handling. Logging --version etc. is OK.
23961exec 5>>config.log
23962{
23963 echo
23964 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23965## Running $as_me. ##
23966_ASBOX
23967} >&5
23968cat >&5 <<_CSEOF
23969
bec39cab 23970This file was extended by $as_me, which was
b4e70030 23971generated by GNU Autoconf 2.59. Invocation command line was
bec39cab
AC
23972
23973 CONFIG_FILES = $CONFIG_FILES
23974 CONFIG_HEADERS = $CONFIG_HEADERS
23975 CONFIG_LINKS = $CONFIG_LINKS
23976 CONFIG_COMMANDS = $CONFIG_COMMANDS
23977 $ $0 $@
23978
b4e70030
JB
23979_CSEOF
23980echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23981echo >&5
bec39cab
AC
23982_ACEOF
23983
23984# Files that config.status was made for.
b4e70030
JB
23985if test -n "$ac_config_files"; then
23986 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23987fi
234b45d4 23988
b4e70030
JB
23989if test -n "$ac_config_headers"; then
23990 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23991fi
23992
23993if test -n "$ac_config_links"; then
23994 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23995fi
23996
23997if test -n "$ac_config_commands"; then
23998 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23999fi
234b45d4 24000
bec39cab 24001cat >>$CONFIG_STATUS <<\_ACEOF
b4e70030 24002
bec39cab
AC
24003ac_cs_usage="\
24004\`$as_me' instantiates files from templates according to the
24005current configuration.
234b45d4 24006
bec39cab 24007Usage: $0 [OPTIONS] [FILE]...
234b45d4 24008
bec39cab
AC
24009 -h, --help print this help, then exit
24010 -V, --version print version number, then exit
24011 -q, --quiet do not print progress messages
24012 -d, --debug don't remove temporary files
24013 --recheck update $as_me by reconfiguring in the same conditions
24014 --file=FILE[:TEMPLATE]
24015 instantiate the configuration file FILE
24016 --header=FILE[:TEMPLATE]
24017 instantiate the configuration header FILE
234b45d4 24018
bec39cab
AC
24019Configuration files:
24020$config_files
234b45d4 24021
bec39cab
AC
24022Configuration headers:
24023$config_headers
234b45d4 24024
bec39cab
AC
24025Configuration links:
24026$config_links
234b45d4 24027
bec39cab
AC
24028Configuration commands:
24029$config_commands
24030
24031Report bugs to <bug-autoconf@gnu.org>."
4e8d927d 24032_ACEOF
b4e70030 24033
bec39cab
AC
24034cat >>$CONFIG_STATUS <<_ACEOF
24035ac_cs_version="\\
24036config.status
b4e70030 24037configured by $0, generated by GNU Autoconf 2.59,
bec39cab
AC
24038 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24039
b4e70030 24040Copyright (C) 2003 Free Software Foundation, Inc.
bec39cab
AC
24041This config.status script is free software; the Free Software Foundation
24042gives unlimited permission to copy, distribute and modify it."
b4e70030
JB
24043srcdir=$srcdir
24044INSTALL="$INSTALL"
bec39cab
AC
24045_ACEOF
24046
24047cat >>$CONFIG_STATUS <<\_ACEOF
24048# If no file are specified by the user, then we need to provide default
24049# value. By we need to know if files were specified by the user.
24050ac_need_defaults=:
24051while test $# != 0
24052do
24053 case $1 in
24054 --*=*)
b4e70030
JB
24055 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24056 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
bec39cab 24057 ac_shift=:
c906108c 24058 ;;
b4e70030 24059 -*)
bec39cab
AC
24060 ac_option=$1
24061 ac_optarg=$2
24062 ac_shift=shift
c906108c 24063 ;;
b4e70030
JB
24064 *) # This is not an option, so the user has probably given explicit
24065 # arguments.
24066 ac_option=$1
24067 ac_need_defaults=false;;
bec39cab 24068 esac
c906108c 24069
bec39cab
AC
24070 case $ac_option in
24071 # Handling of the options.
b4e70030
JB
24072_ACEOF
24073cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
24074 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24075 ac_cs_recheck=: ;;
b4e70030
JB
24076 --version | --vers* | -V )
24077 echo "$ac_cs_version"; exit 0 ;;
24078 --he | --h)
24079 # Conflict between --help and --header
24080 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24081Try \`$0 --help' for more information." >&5
24082echo "$as_me: error: ambiguous option: $1
24083Try \`$0 --help' for more information." >&2;}
24084 { (exit 1); exit 1; }; };;
24085 --help | --hel | -h )
24086 echo "$ac_cs_usage"; exit 0 ;;
24087 --debug | --d* | -d )
bec39cab
AC
24088 debug=: ;;
24089 --file | --fil | --fi | --f )
24090 $ac_shift
24091 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24092 ac_need_defaults=false;;
24093 --header | --heade | --head | --hea )
24094 $ac_shift
24095 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24096 ac_need_defaults=false;;
24097 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24098 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24099 ac_cs_silent=: ;;
c906108c 24100
bec39cab 24101 # This is an error.
b4e70030
JB
24102 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24103Try \`$0 --help' for more information." >&5
24104echo "$as_me: error: unrecognized option: $1
24105Try \`$0 --help' for more information." >&2;}
bec39cab 24106 { (exit 1); exit 1; }; } ;;
c906108c 24107
b4e70030 24108 *) ac_config_targets="$ac_config_targets $1" ;;
c906108c 24109
bec39cab
AC
24110 esac
24111 shift
24112done
c906108c 24113
bec39cab 24114ac_configure_extra_args=
c906108c 24115
bec39cab
AC
24116if $ac_cs_silent; then
24117 exec 6>/dev/null
24118 ac_configure_extra_args="$ac_configure_extra_args --silent"
24119fi
c906108c 24120
bec39cab
AC
24121_ACEOF
24122cat >>$CONFIG_STATUS <<_ACEOF
24123if \$ac_cs_recheck; then
b4e70030
JB
24124 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24125 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
bec39cab
AC
24126fi
24127
24128_ACEOF
24129
24130cat >>$CONFIG_STATUS <<_ACEOF
c906108c 24131#
b4e70030 24132# INIT-COMMANDS section.
c906108c 24133#
c906108c 24134
b4e70030 24135
4e8d927d
DJ
24136GCC="$GCC"
24137CC="$CC"
24138acx_cv_header_stdint="$acx_cv_header_stdint"
24139acx_cv_type_int8_t="$acx_cv_type_int8_t"
24140acx_cv_type_int16_t="$acx_cv_type_int16_t"
24141acx_cv_type_int32_t="$acx_cv_type_int32_t"
24142acx_cv_type_int64_t="$acx_cv_type_int64_t"
24143acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
24144ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
24145ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
24146ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
24147ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
24148ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
24149ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
24150ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
24151ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
24152
bec39cab
AC
24153
24154gdb_host_cpu=$gdb_host_cpu
24155gdb_target_cpu=$gdb_target_cpu
24156nativefile=$nativefile
24157
24158
24159_ACEOF
24160
4e8d927d 24161
b4e70030
JB
24162
24163cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab 24164for ac_config_target in $ac_config_targets
c906108c 24165do
b4e70030
JB
24166 case "$ac_config_target" in
24167 # Handling of arguments.
24168 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24169 ".gdbinit" ) CONFIG_FILES="$CONFIG_FILES .gdbinit:gdbinit.in" ;;
24170 "$ac_config_links_1" ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
24171 "gdb_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gdb_stdint.h" ;;
24172 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24173 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
bec39cab
AC
24174 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24175echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24176 { (exit 1); exit 1; }; };;
c906108c
SS
24177 esac
24178done
24179
bec39cab
AC
24180# If the user did not use the arguments to specify the items to instantiate,
24181# then the envvar interface is used. Set only those that are not.
24182# We use the long form for the default assignment because of an extremely
24183# bizarre bug on SunOS 4.1.3.
24184if $ac_need_defaults; then
24185 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24186 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24187 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
24188 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24189fi
24190
b4e70030
JB
24191# Have a temporary directory for convenience. Make it in the build tree
24192# simply because there is no reason to put it here, and in addition,
24193# creating and moving files from /tmp can sometimes cause problems.
24194# Create a temporary directory, and hook for its removal unless debugging.
24195$debug ||
24196{
24197 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24198 trap '{ (exit 1); exit 1; }' 1 2 13 15
24199}
4e8d927d 24200
b4e70030 24201# Create a (secure) tmp directory for tmp files.
4e8d927d 24202
b4e70030
JB
24203{
24204 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24205 test -n "$tmp" && test -d "$tmp"
24206} ||
24207{
24208 tmp=./confstat$$-$RANDOM
24209 (umask 077 && mkdir $tmp)
24210} ||
24211{
24212 echo "$me: cannot create a temporary directory in ." >&2
24213 { (exit 1); exit 1; }
24214}
4e8d927d 24215
b4e70030 24216_ACEOF
4e8d927d 24217
b4e70030 24218cat >>$CONFIG_STATUS <<_ACEOF
4e8d927d 24219
b4e70030
JB
24220#
24221# CONFIG_FILES section.
24222#
4e8d927d 24223
b4e70030
JB
24224# No need to generate the scripts if there are no CONFIG_FILES.
24225# This happens for instance when ./config.status config.h
24226if test -n "\$CONFIG_FILES"; then
24227 # Protect against being on the right side of a sed subst in config.status.
24228 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24229 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24230s,@SHELL@,$SHELL,;t t
24231s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24232s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24233s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24234s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24235s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24236s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24237s,@exec_prefix@,$exec_prefix,;t t
24238s,@prefix@,$prefix,;t t
24239s,@program_transform_name@,$program_transform_name,;t t
24240s,@bindir@,$bindir,;t t
24241s,@sbindir@,$sbindir,;t t
24242s,@libexecdir@,$libexecdir,;t t
24243s,@datadir@,$datadir,;t t
24244s,@sysconfdir@,$sysconfdir,;t t
24245s,@sharedstatedir@,$sharedstatedir,;t t
24246s,@localstatedir@,$localstatedir,;t t
24247s,@libdir@,$libdir,;t t
24248s,@includedir@,$includedir,;t t
24249s,@oldincludedir@,$oldincludedir,;t t
24250s,@infodir@,$infodir,;t t
24251s,@mandir@,$mandir,;t t
24252s,@build_alias@,$build_alias,;t t
24253s,@host_alias@,$host_alias,;t t
24254s,@target_alias@,$target_alias,;t t
24255s,@DEFS@,$DEFS,;t t
24256s,@ECHO_C@,$ECHO_C,;t t
24257s,@ECHO_N@,$ECHO_N,;t t
24258s,@ECHO_T@,$ECHO_T,;t t
24259s,@LIBS@,$LIBS,;t t
24260s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
24261s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
24262s,@MAINT@,$MAINT,;t t
24263s,@CC@,$CC,;t t
24264s,@CFLAGS@,$CFLAGS,;t t
24265s,@LDFLAGS@,$LDFLAGS,;t t
24266s,@CPPFLAGS@,$CPPFLAGS,;t t
24267s,@ac_ct_CC@,$ac_ct_CC,;t t
24268s,@EXEEXT@,$EXEEXT,;t t
24269s,@OBJEXT@,$OBJEXT,;t t
24270s,@CPP@,$CPP,;t t
24271s,@EGREP@,$EGREP,;t t
24272s,@build@,$build,;t t
24273s,@build_cpu@,$build_cpu,;t t
24274s,@build_vendor@,$build_vendor,;t t
24275s,@build_os@,$build_os,;t t
24276s,@host@,$host,;t t
24277s,@host_cpu@,$host_cpu,;t t
24278s,@host_vendor@,$host_vendor,;t t
24279s,@host_os@,$host_os,;t t
24280s,@target@,$target,;t t
24281s,@target_cpu@,$target_cpu,;t t
24282s,@target_vendor@,$target_vendor,;t t
24283s,@target_os@,$target_os,;t t
b4e70030 24284s,@USE_NLS@,$USE_NLS,;t t
20e95c23
DJ
24285s,@LIBINTL@,$LIBINTL,;t t
24286s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t
24287s,@INCINTL@,$INCINTL,;t t
b4e70030 24288s,@XGETTEXT@,$XGETTEXT,;t t
20e95c23
DJ
24289s,@GMSGFMT@,$GMSGFMT,;t t
24290s,@POSUB@,$POSUB,;t t
b4e70030 24291s,@CATALOGS@,$CATALOGS,;t t
b4e70030 24292s,@DATADIRNAME@,$DATADIRNAME,;t t
b4e70030 24293s,@INSTOBJEXT@,$INSTOBJEXT,;t t
20e95c23
DJ
24294s,@GENCAT@,$GENCAT,;t t
24295s,@CATOBJEXT@,$CATOBJEXT,;t t
b4e70030
JB
24296s,@localedir@,$localedir,;t t
24297s,@PACKAGE@,$PACKAGE,;t t
24298s,@subdirs@,$subdirs,;t t
24299s,@AWK@,$AWK,;t t
24300s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24301s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24302s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24303s,@LN_S@,$LN_S,;t t
20e95c23
DJ
24304s,@RANLIB@,$RANLIB,;t t
24305s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
b4e70030
JB
24306s,@YACC@,$YACC,;t t
24307s,@AR@,$AR,;t t
24308s,@ac_ct_AR@,$ac_ct_AR,;t t
24309s,@DLLTOOL@,$DLLTOOL,;t t
24310s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
24311s,@WINDRES@,$WINDRES,;t t
24312s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
24313s,@MIG@,$MIG,;t t
24314s,@ac_ct_MIG@,$ac_ct_MIG,;t t
3841debe
DJ
24315s,@HAVE_LIBEXPAT@,$HAVE_LIBEXPAT,;t t
24316s,@LIBEXPAT@,$LIBEXPAT,;t t
24317s,@LTLIBEXPAT@,$LTLIBEXPAT,;t t
20e95c23 24318s,@ALLOCA@,$ALLOCA,;t t
b4e70030
JB
24319s,@CONFIG_LDFLAGS@,$CONFIG_LDFLAGS,;t t
24320s,@TARGET_SYSTEM_ROOT@,$TARGET_SYSTEM_ROOT,;t t
24321s,@TARGET_SYSTEM_ROOT_DEFINE@,$TARGET_SYSTEM_ROOT_DEFINE,;t t
24322s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t
24323s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t
24324s,@SER_HARDWIRE@,$SER_HARDWIRE,;t t
24325s,@WIN32LIBS@,$WIN32LIBS,;t t
24326s,@LIBGUI@,$LIBGUI,;t t
24327s,@GUI_CFLAGS_X@,$GUI_CFLAGS_X,;t t
24328s,@WIN32LDAPP@,$WIN32LDAPP,;t t
24329s,@TCL_VERSION@,$TCL_VERSION,;t t
24330s,@TCL_MAJOR_VERSION@,$TCL_MAJOR_VERSION,;t t
24331s,@TCL_MINOR_VERSION@,$TCL_MINOR_VERSION,;t t
24332s,@TCL_CC@,$TCL_CC,;t t
24333s,@TCL_DEFS@,$TCL_DEFS,;t t
24334s,@TCL_SHLIB_CFLAGS@,$TCL_SHLIB_CFLAGS,;t t
24335s,@TCL_SHLIB_LD@,$TCL_SHLIB_LD,;t t
24336s,@TCL_SHLIB_LD_LIBS@,$TCL_SHLIB_LD_LIBS,;t t
24337s,@TCL_SHLIB_SUFFIX@,$TCL_SHLIB_SUFFIX,;t t
24338s,@TCL_DL_LIBS@,$TCL_DL_LIBS,;t t
24339s,@TCL_LD_FLAGS@,$TCL_LD_FLAGS,;t t
24340s,@TCL_LD_SEARCH_FLAGS@,$TCL_LD_SEARCH_FLAGS,;t t
24341s,@TCL_CC_SEARCH_FLAGS@,$TCL_CC_SEARCH_FLAGS,;t t
24342s,@TCL_COMPAT_OBJS@,$TCL_COMPAT_OBJS,;t t
24343s,@TCL_RANLIB@,$TCL_RANLIB,;t t
24344s,@TCL_BUILD_LIB_SPEC@,$TCL_BUILD_LIB_SPEC,;t t
24345s,@TCL_LIB_SPEC@,$TCL_LIB_SPEC,;t t
24346s,@TCL_LIB_VERSIONS_OK@,$TCL_LIB_VERSIONS_OK,;t t
24347s,@TK_VERSION@,$TK_VERSION,;t t
24348s,@TK_DEFS@,$TK_DEFS,;t t
24349s,@TK_BUILD_INCLUDES@,$TK_BUILD_INCLUDES,;t t
24350s,@TK_XINCLUDES@,$TK_XINCLUDES,;t t
24351s,@TK_XLIBSW@,$TK_XLIBSW,;t t
24352s,@TK_BUILD_LIB_SPEC@,$TK_BUILD_LIB_SPEC,;t t
24353s,@TK_LIB_SPEC@,$TK_LIB_SPEC,;t t
24354s,@TCLHDIR@,$TCLHDIR,;t t
24355s,@TKHDIR@,$TKHDIR,;t t
24356s,@ITCLHDIR@,$ITCLHDIR,;t t
24357s,@ITKHDIR@,$ITKHDIR,;t t
24358s,@ITCL_VERSION@,$ITCL_VERSION,;t t
24359s,@ITCL_DEFS@,$ITCL_DEFS,;t t
24360s,@ITCL_BUILD_INCLUDES@,$ITCL_BUILD_INCLUDES,;t t
24361s,@ITCL_BUILD_LIB_SPEC@,$ITCL_BUILD_LIB_SPEC,;t t
24362s,@ITCL_LIB_SPEC@,$ITCL_LIB_SPEC,;t t
24363s,@ITK_VERSION@,$ITK_VERSION,;t t
24364s,@ITK_DEFS@,$ITK_DEFS,;t t
24365s,@ITK_BUILD_INCLUDES@,$ITK_BUILD_INCLUDES,;t t
24366s,@ITK_BUILD_LIB_SPEC@,$ITK_BUILD_LIB_SPEC,;t t
24367s,@ITK_LIB_SPEC@,$ITK_LIB_SPEC,;t t
24368s,@X_CFLAGS@,$X_CFLAGS,;t t
24369s,@X_LDFLAGS@,$X_LDFLAGS,;t t
24370s,@X_LIBS@,$X_LIBS,;t t
24371s,@TCL_DEPS@,$TCL_DEPS,;t t
24372s,@TK_DEPS@,$TK_DEPS,;t t
24373s,@ITCLLIB@,$ITCLLIB,;t t
24374s,@ITCL_DEPS@,$ITCL_DEPS,;t t
24375s,@ITKLIB@,$ITKLIB,;t t
24376s,@ITK_DEPS@,$ITK_DEPS,;t t
24377s,@GDBTKLIBS@,$GDBTKLIBS,;t t
24378s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
24379s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
24380s,@IGNORE_SIM@,$IGNORE_SIM,;t t
24381s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t
24382s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
24383s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
24384s,@CONFIG_OBS@,$CONFIG_OBS,;t t
24385s,@CONFIG_DEPS@,$CONFIG_DEPS,;t t
24386s,@CONFIG_SRCS@,$CONFIG_SRCS,;t t
24387s,@CONFIG_ALL@,$CONFIG_ALL,;t t
24388s,@CONFIG_CLEAN@,$CONFIG_CLEAN,;t t
24389s,@CONFIG_INSTALL@,$CONFIG_INSTALL,;t t
24390s,@CONFIG_UNINSTALL@,$CONFIG_UNINSTALL,;t t
24391s,@target_subdir@,$target_subdir,;t t
24392s,@frags@,$frags,;t t
24393s,@xm_h@,$xm_h,;t t
24394s,@tm_h@,$tm_h,;t t
24395s,@nm_h@,$nm_h,;t t
24396s,@LIBICONV@,$LIBICONV,;t t
24397s,@LIBOBJS@,$LIBOBJS,;t t
24398s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24399/@host_makefile_frag@/r $host_makefile_frag
24400s,@host_makefile_frag@,,;t t
24401/@target_makefile_frag@/r $target_makefile_frag
24402s,@target_makefile_frag@,,;t t
24403CEOF
24404
24405_ACEOF
24406
24407 cat >>$CONFIG_STATUS <<\_ACEOF
24408 # Split the substitutions into bite-sized pieces for seds with
24409 # small command number limits, like on Digital OSF/1 and HP-UX.
24410 ac_max_sed_lines=48
24411 ac_sed_frag=1 # Number of current file.
24412 ac_beg=1 # First line for current file.
24413 ac_end=$ac_max_sed_lines # Line after last line for current file.
24414 ac_more_lines=:
24415 ac_sed_cmds=
24416 while $ac_more_lines; do
24417 if test $ac_beg -gt 1; then
24418 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24419 else
24420 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4e8d927d 24421 fi
b4e70030
JB
24422 if test ! -s $tmp/subs.frag; then
24423 ac_more_lines=false
24424 else
24425 # The purpose of the label and of the branching condition is to
24426 # speed up the sed processing (if there are no `@' at all, there
24427 # is no need to browse any of the substitutions).
24428 # These are the two extra sed commands mentioned above.
24429 (echo ':t
24430 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24431 if test -z "$ac_sed_cmds"; then
24432 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24433 else
24434 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24435 fi
24436 ac_sed_frag=`expr $ac_sed_frag + 1`
24437 ac_beg=$ac_end
24438 ac_end=`expr $ac_end + $ac_max_sed_lines`
24439 fi
24440 done
24441 if test -z "$ac_sed_cmds"; then
24442 ac_sed_cmds=cat
24443 fi
24444fi # test -n "$CONFIG_FILES"
4e8d927d 24445
b4e70030
JB
24446_ACEOF
24447cat >>$CONFIG_STATUS <<\_ACEOF
24448for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24449 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24450 case $ac_file in
24451 - | *:- | *:-:* ) # input from stdin
24452 cat >$tmp/stdin
24453 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24454 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24455 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24456 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24457 * ) ac_file_in=$ac_file.in ;;
c906108c
SS
24458 esac
24459
b4e70030
JB
24460 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24461 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
bec39cab
AC
24462$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24463 X"$ac_file" : 'X\(//\)[^/]' \| \
24464 X"$ac_file" : 'X\(//\)$' \| \
b4e70030
JB
24465 X"$ac_file" : 'X\(/\)' \| \
24466 . : '\(.\)' 2>/dev/null ||
bec39cab 24467echo X"$ac_file" |
b4e70030
JB
24468 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24469 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24470 /^X\(\/\/\)$/{ s//\1/; q; }
24471 /^X\(\/\).*/{ s//\1/; q; }
24472 s/.*/./; q'`
24473 { if $as_mkdir_p; then
24474 mkdir -p "$ac_dir"
24475 else
24476 as_dir="$ac_dir"
bec39cab 24477 as_dirs=
b4e70030
JB
24478 while test ! -d "$as_dir"; do
24479 as_dirs="$as_dir $as_dirs"
24480 as_dir=`(dirname "$as_dir") 2>/dev/null ||
bec39cab
AC
24481$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24482 X"$as_dir" : 'X\(//\)[^/]' \| \
24483 X"$as_dir" : 'X\(//\)$' \| \
b4e70030
JB
24484 X"$as_dir" : 'X\(/\)' \| \
24485 . : '\(.\)' 2>/dev/null ||
bec39cab 24486echo X"$as_dir" |
b4e70030
JB
24487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24488 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24489 /^X\(\/\/\)$/{ s//\1/; q; }
24490 /^X\(\/\).*/{ s//\1/; q; }
24491 s/.*/./; q'`
bec39cab 24492 done
b4e70030
JB
24493 test ! -n "$as_dirs" || mkdir $as_dirs
24494 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24495echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
bec39cab 24496 { (exit 1); exit 1; }; }; }
b4e70030 24497
bec39cab
AC
24498 ac_builddir=.
24499
b4e70030 24500if test "$ac_dir" != .; then
bec39cab 24501 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
24502 # A "../" for each directory in $ac_dir_suffix.
24503 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24504else
24505 ac_dir_suffix= ac_top_builddir=
24506fi
bec39cab
AC
24507
24508case $srcdir in
b4e70030 24509 .) # No --srcdir option. We are building in place.
bec39cab 24510 ac_srcdir=.
b4e70030
JB
24511 if test -z "$ac_top_builddir"; then
24512 ac_top_srcdir=.
24513 else
24514 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24515 fi ;;
24516 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 24517 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
24518 ac_top_srcdir=$srcdir ;;
24519 *) # Relative path.
24520 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24521 ac_top_srcdir=$ac_top_builddir$srcdir ;;
bec39cab
AC
24522esac
24523
b4e70030
JB
24524# Do not use `cd foo && pwd` to compute absolute paths, because
24525# the directories may not exist.
24526case `pwd` in
24527.) ac_abs_builddir="$ac_dir";;
24528*)
24529 case "$ac_dir" in
24530 .) ac_abs_builddir=`pwd`;;
24531 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24532 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24533 esac;;
24534esac
24535case $ac_abs_builddir in
24536.) ac_abs_top_builddir=${ac_top_builddir}.;;
24537*)
24538 case ${ac_top_builddir}. in
24539 .) ac_abs_top_builddir=$ac_abs_builddir;;
24540 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24541 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24542 esac;;
24543esac
24544case $ac_abs_builddir in
24545.) ac_abs_srcdir=$ac_srcdir;;
24546*)
24547 case $ac_srcdir in
24548 .) ac_abs_srcdir=$ac_abs_builddir;;
24549 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24550 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24551 esac;;
24552esac
24553case $ac_abs_builddir in
24554.) ac_abs_top_srcdir=$ac_top_srcdir;;
24555*)
24556 case $ac_top_srcdir in
24557 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24558 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24559 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24560 esac;;
24561esac
c906108c 24562
c906108c 24563
bec39cab
AC
24564 case $INSTALL in
24565 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
b4e70030 24566 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
c906108c 24567 esac
121ce6e5 24568
b4e70030
JB
24569 if test x"$ac_file" != x-; then
24570 { echo "$as_me:$LINENO: creating $ac_file" >&5
24571echo "$as_me: creating $ac_file" >&6;}
24572 rm -f "$ac_file"
24573 fi
24574 # Let's still pretend it is `configure' which instantiates (i.e., don't
24575 # use $as_me), people would be surprised to read:
24576 # /* config.h. Generated by config.status. */
24577 if test x"$ac_file" = x-; then
24578 configure_input=
24579 else
24580 configure_input="$ac_file. "
24581 fi
24582 configure_input=$configure_input"Generated from `echo $ac_file_in |
24583 sed 's,.*/,,'` by configure."
24584
24585 # First look for the input files in the build tree, otherwise in the
24586 # src tree.
24587 ac_file_inputs=`IFS=:
24588 for f in $ac_file_in; do
24589 case $f in
24590 -) echo $tmp/stdin ;;
24591 [\\/$]*)
24592 # Absolute (can't be DOS-style, as IFS=:)
24593 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24594echo "$as_me: error: cannot find input file: $f" >&2;}
24595 { (exit 1); exit 1; }; }
24596 echo "$f";;
24597 *) # Relative
24598 if test -f "$f"; then
24599 # Build tree
24600 echo "$f"
24601 elif test -f "$srcdir/$f"; then
24602 # Source tree
24603 echo "$srcdir/$f"
24604 else
24605 # /dev/null tree
24606 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24607echo "$as_me: error: cannot find input file: $f" >&2;}
24608 { (exit 1); exit 1; }; }
24609 fi;;
24610 esac
24611 done` || { (exit 1); exit 1; }
4e8d927d 24612_ACEOF
bec39cab
AC
24613cat >>$CONFIG_STATUS <<_ACEOF
24614 sed "$ac_vpsub
24615$extrasub
24616_ACEOF
24617cat >>$CONFIG_STATUS <<\_ACEOF
24618:t
24619/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
b4e70030
JB
24620s,@configure_input@,$configure_input,;t t
24621s,@srcdir@,$ac_srcdir,;t t
24622s,@abs_srcdir@,$ac_abs_srcdir,;t t
24623s,@top_srcdir@,$ac_top_srcdir,;t t
24624s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24625s,@builddir@,$ac_builddir,;t t
24626s,@abs_builddir@,$ac_abs_builddir,;t t
24627s,@top_builddir@,$ac_top_builddir,;t t
24628s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24629s,@INSTALL@,$ac_INSTALL,;t t
24630" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24631 rm -f $tmp/stdin
24632 if test x"$ac_file" != x-; then
24633 mv $tmp/out $ac_file
24634 else
24635 cat $tmp/out
24636 rm -f $tmp/out
24637 fi
24638
24639done
24640_ACEOF
24641cat >>$CONFIG_STATUS <<\_ACEOF
24642
24643#
24644# CONFIG_HEADER section.
24645#
24646
24647# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24648# NAME is the cpp macro being defined and VALUE is the value it is being given.
24649#
24650# ac_d sets the value in "#define NAME VALUE" lines.
24651ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24652ac_dB='[ ].*$,\1#\2'
24653ac_dC=' '
24654ac_dD=',;t'
24655# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24656ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24657ac_uB='$,\1#\2define\3'
24658ac_uC=' '
24659ac_uD=',;t'
24660
24661for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24662 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
bec39cab 24663 case $ac_file in
b4e70030
JB
24664 - | *:- | *:-:* ) # input from stdin
24665 cat >$tmp/stdin
24666 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24667 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24668 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24669 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24670 * ) ac_file_in=$ac_file.in ;;
c906108c 24671 esac
b4e70030
JB
24672
24673 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24674echo "$as_me: creating $ac_file" >&6;}
24675
24676 # First look for the input files in the build tree, otherwise in the
24677 # src tree.
24678 ac_file_inputs=`IFS=:
24679 for f in $ac_file_in; do
24680 case $f in
24681 -) echo $tmp/stdin ;;
24682 [\\/$]*)
24683 # Absolute (can't be DOS-style, as IFS=:)
24684 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24685echo "$as_me: error: cannot find input file: $f" >&2;}
24686 { (exit 1); exit 1; }; }
24687 # Do quote $f, to prevent DOS paths from being IFS'd.
24688 echo "$f";;
24689 *) # Relative
24690 if test -f "$f"; then
24691 # Build tree
24692 echo "$f"
24693 elif test -f "$srcdir/$f"; then
24694 # Source tree
24695 echo "$srcdir/$f"
24696 else
24697 # /dev/null tree
24698 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24699echo "$as_me: error: cannot find input file: $f" >&2;}
24700 { (exit 1); exit 1; }; }
24701 fi;;
24702 esac
24703 done` || { (exit 1); exit 1; }
24704 # Remove the trailing spaces.
24705 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24706
24707_ACEOF
24708
24709# Transform confdefs.h into two sed scripts, `conftest.defines' and
24710# `conftest.undefs', that substitutes the proper values into
24711# config.h.in to produce config.h. The first handles `#define'
24712# templates, and the second `#undef' templates.
24713# And first: Protect against being on the right side of a sed subst in
24714# config.status. Protect against being in an unquoted here document
24715# in config.status.
24716rm -f conftest.defines conftest.undefs
24717# Using a here document instead of a string reduces the quoting nightmare.
24718# Putting comments in sed scripts is not portable.
24719#
24720# `end' is used to avoid that the second main sed command (meant for
24721# 0-ary CPP macros) applies to n-ary macro definitions.
24722# See the Autoconf documentation for `clear'.
24723cat >confdef2sed.sed <<\_ACEOF
24724s/[\\&,]/\\&/g
24725s,[\\$`],\\&,g
24726t clear
24727: clear
24728s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24729t end
24730s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24731: end
24732_ACEOF
24733# If some macros were called several times there might be several times
24734# the same #defines, which is useless. Nevertheless, we may not want to
24735# sort them, since we want the *last* AC-DEFINE to be honored.
24736uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24737sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24738rm -f confdef2sed.sed
24739
24740# This sed command replaces #undef with comments. This is necessary, for
c906108c
SS
24741# example, in the case of _POSIX_SOURCE, which is predefined and required
24742# on some systems where configure will not decide to define it.
b4e70030
JB
24743cat >>conftest.undefs <<\_ACEOF
24744s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24745_ACEOF
24746
24747# Break up conftest.defines because some shells have a limit on the size
24748# of here documents, and old seds have small limits too (100 cmds).
24749echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24750echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24751echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24752echo ' :' >>$CONFIG_STATUS
24753rm -f conftest.tail
24754while grep . conftest.defines >/dev/null
bec39cab 24755do
b4e70030
JB
24756 # Write a limited-size here document to $tmp/defines.sed.
24757 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24758 # Speed up: don't consider the non `#define' lines.
24759 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24760 # Work around the forget-to-reset-the-flag bug.
24761 echo 't clr' >>$CONFIG_STATUS
24762 echo ': clr' >>$CONFIG_STATUS
24763 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
bec39cab 24764 echo 'CEOF
b4e70030
JB
24765 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24766 rm -f $tmp/in
24767 mv $tmp/out $tmp/in
24768' >>$CONFIG_STATUS
24769 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
bec39cab
AC
24770 rm -f conftest.defines
24771 mv conftest.tail conftest.defines
24772done
b4e70030
JB
24773rm -f conftest.defines
24774echo ' fi # grep' >>$CONFIG_STATUS
24775echo >>$CONFIG_STATUS
24776
24777# Break up conftest.undefs because some shells have a limit on the size
24778# of here documents, and old seds have small limits too (100 cmds).
24779echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24780rm -f conftest.tail
24781while grep . conftest.undefs >/dev/null
24782do
24783 # Write a limited-size here document to $tmp/undefs.sed.
24784 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24785 # Speed up: don't consider the non `#undef'
24786 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24787 # Work around the forget-to-reset-the-flag bug.
24788 echo 't clr' >>$CONFIG_STATUS
24789 echo ': clr' >>$CONFIG_STATUS
24790 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24791 echo 'CEOF
24792 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24793 rm -f $tmp/in
24794 mv $tmp/out $tmp/in
24795' >>$CONFIG_STATUS
24796 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24797 rm -f conftest.undefs
24798 mv conftest.tail conftest.undefs
24799done
24800rm -f conftest.undefs
bec39cab
AC
24801
24802cat >>$CONFIG_STATUS <<\_ACEOF
b4e70030
JB
24803 # Let's still pretend it is `configure' which instantiates (i.e., don't
24804 # use $as_me), people would be surprised to read:
24805 # /* config.h. Generated by config.status. */
24806 if test x"$ac_file" = x-; then
24807 echo "/* Generated by configure. */" >$tmp/config.h
24808 else
24809 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24810 fi
24811 cat $tmp/in >>$tmp/config.h
24812 rm -f $tmp/in
bec39cab 24813 if test x"$ac_file" != x-; then
b4e70030 24814 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
bec39cab
AC
24815 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24816echo "$as_me: $ac_file is unchanged" >&6;}
24817 else
b4e70030
JB
24818 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24819$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24820 X"$ac_file" : 'X\(//\)[^/]' \| \
24821 X"$ac_file" : 'X\(//\)$' \| \
24822 X"$ac_file" : 'X\(/\)' \| \
24823 . : '\(.\)' 2>/dev/null ||
24824echo X"$ac_file" |
24825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24826 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24827 /^X\(\/\/\)$/{ s//\1/; q; }
24828 /^X\(\/\).*/{ s//\1/; q; }
24829 s/.*/./; q'`
24830 { if $as_mkdir_p; then
24831 mkdir -p "$ac_dir"
24832 else
24833 as_dir="$ac_dir"
24834 as_dirs=
24835 while test ! -d "$as_dir"; do
24836 as_dirs="$as_dir $as_dirs"
24837 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24838$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24839 X"$as_dir" : 'X\(//\)[^/]' \| \
24840 X"$as_dir" : 'X\(//\)$' \| \
24841 X"$as_dir" : 'X\(/\)' \| \
24842 . : '\(.\)' 2>/dev/null ||
24843echo X"$as_dir" |
24844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24845 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24846 /^X\(\/\/\)$/{ s//\1/; q; }
24847 /^X\(\/\).*/{ s//\1/; q; }
24848 s/.*/./; q'`
24849 done
24850 test ! -n "$as_dirs" || mkdir $as_dirs
24851 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24852echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24853 { (exit 1); exit 1; }; }; }
24854
bec39cab 24855 rm -f $ac_file
b4e70030 24856 mv $tmp/config.h $ac_file
bec39cab
AC
24857 fi
24858 else
b4e70030
JB
24859 cat $tmp/config.h
24860 rm -f $tmp/config.h
bec39cab 24861 fi
b4e70030
JB
24862done
24863_ACEOF
24864cat >>$CONFIG_STATUS <<\_ACEOF
24865
24866#
24867# CONFIG_LINKS section.
24868#
24869
24870for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
24871 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24872 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
c906108c 24873
b4e70030
JB
24874 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
24875echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
c906108c
SS
24876
24877 if test ! -r $srcdir/$ac_source; then
bec39cab
AC
24878 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
24879echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
24880 { (exit 1); exit 1; }; }
c906108c 24881 fi
b4e70030
JB
24882 rm -f $ac_dest
24883
24884 # Make relative symlinks.
24885 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
24886$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24887 X"$ac_dest" : 'X\(//\)[^/]' \| \
24888 X"$ac_dest" : 'X\(//\)$' \| \
24889 X"$ac_dest" : 'X\(/\)' \| \
24890 . : '\(.\)' 2>/dev/null ||
24891echo X"$ac_dest" |
24892 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24893 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24894 /^X\(\/\/\)$/{ s//\1/; q; }
24895 /^X\(\/\).*/{ s//\1/; q; }
24896 s/.*/./; q'`
24897 { if $as_mkdir_p; then
24898 mkdir -p "$ac_dest_dir"
24899 else
24900 as_dir="$ac_dest_dir"
24901 as_dirs=
24902 while test ! -d "$as_dir"; do
24903 as_dirs="$as_dir $as_dirs"
24904 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24905$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24906 X"$as_dir" : 'X\(//\)[^/]' \| \
24907 X"$as_dir" : 'X\(//\)$' \| \
24908 X"$as_dir" : 'X\(/\)' \| \
24909 . : '\(.\)' 2>/dev/null ||
24910echo X"$as_dir" |
24911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24912 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24913 /^X\(\/\/\)$/{ s//\1/; q; }
24914 /^X\(\/\).*/{ s//\1/; q; }
24915 s/.*/./; q'`
24916 done
24917 test ! -n "$as_dirs" || mkdir $as_dirs
24918 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
24919echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
24920 { (exit 1); exit 1; }; }; }
24921
24922 ac_builddir=.
24923
24924if test "$ac_dest_dir" != .; then
24925 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
24926 # A "../" for each directory in $ac_dir_suffix.
24927 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24928else
24929 ac_dir_suffix= ac_top_builddir=
24930fi
24931
24932case $srcdir in
24933 .) # No --srcdir option. We are building in place.
24934 ac_srcdir=.
24935 if test -z "$ac_top_builddir"; then
24936 ac_top_srcdir=.
24937 else
24938 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24939 fi ;;
24940 [\\/]* | ?:[\\/]* ) # Absolute path.
24941 ac_srcdir=$srcdir$ac_dir_suffix;
24942 ac_top_srcdir=$srcdir ;;
24943 *) # Relative path.
24944 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24945 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24946esac
24947
24948# Do not use `cd foo && pwd` to compute absolute paths, because
24949# the directories may not exist.
24950case `pwd` in
24951.) ac_abs_builddir="$ac_dest_dir";;
24952*)
24953 case "$ac_dest_dir" in
24954 .) ac_abs_builddir=`pwd`;;
24955 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
24956 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
24957 esac;;
24958esac
24959case $ac_abs_builddir in
24960.) ac_abs_top_builddir=${ac_top_builddir}.;;
24961*)
24962 case ${ac_top_builddir}. in
24963 .) ac_abs_top_builddir=$ac_abs_builddir;;
24964 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24965 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24966 esac;;
24967esac
24968case $ac_abs_builddir in
24969.) ac_abs_srcdir=$ac_srcdir;;
24970*)
24971 case $ac_srcdir in
24972 .) ac_abs_srcdir=$ac_abs_builddir;;
24973 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24974 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24975 esac;;
24976esac
24977case $ac_abs_builddir in
24978.) ac_abs_top_srcdir=$ac_top_srcdir;;
24979*)
24980 case $ac_top_srcdir in
24981 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24982 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24983 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24984 esac;;
24985esac
24986
bec39cab
AC
24987
24988 case $srcdir in
24989 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
b4e70030 24990 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
c906108c 24991 esac
b4e70030
JB
24992
24993 # Try a symlink, then a hard link, then a copy.
24994 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
24995 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
24996 cp -p $srcdir/$ac_source $ac_dest ||
24997 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
24998echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
bec39cab 24999 { (exit 1); exit 1; }; }
b4e70030
JB
25000done
25001_ACEOF
25002cat >>$CONFIG_STATUS <<\_ACEOF
25003
25004#
25005# CONFIG_COMMANDS section.
25006#
25007for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25008 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25009 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25010 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25011$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25012 X"$ac_dest" : 'X\(//\)[^/]' \| \
25013 X"$ac_dest" : 'X\(//\)$' \| \
25014 X"$ac_dest" : 'X\(/\)' \| \
25015 . : '\(.\)' 2>/dev/null ||
25016echo X"$ac_dest" |
25017 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25018 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25019 /^X\(\/\/\)$/{ s//\1/; q; }
25020 /^X\(\/\).*/{ s//\1/; q; }
25021 s/.*/./; q'`
25022 { if $as_mkdir_p; then
25023 mkdir -p "$ac_dir"
25024 else
25025 as_dir="$ac_dir"
25026 as_dirs=
25027 while test ! -d "$as_dir"; do
25028 as_dirs="$as_dir $as_dirs"
25029 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25030$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25031 X"$as_dir" : 'X\(//\)[^/]' \| \
25032 X"$as_dir" : 'X\(//\)$' \| \
25033 X"$as_dir" : 'X\(/\)' \| \
25034 . : '\(.\)' 2>/dev/null ||
25035echo X"$as_dir" |
25036 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25037 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25038 /^X\(\/\/\)$/{ s//\1/; q; }
25039 /^X\(\/\).*/{ s//\1/; q; }
25040 s/.*/./; q'`
25041 done
25042 test ! -n "$as_dirs" || mkdir $as_dirs
25043 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25044echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25045 { (exit 1); exit 1; }; }; }
25046
25047 ac_builddir=.
25048
25049if test "$ac_dir" != .; then
25050 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25051 # A "../" for each directory in $ac_dir_suffix.
25052 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25053else
25054 ac_dir_suffix= ac_top_builddir=
25055fi
25056
25057case $srcdir in
25058 .) # No --srcdir option. We are building in place.
25059 ac_srcdir=.
25060 if test -z "$ac_top_builddir"; then
25061 ac_top_srcdir=.
25062 else
25063 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25064 fi ;;
25065 [\\/]* | ?:[\\/]* ) # Absolute path.
25066 ac_srcdir=$srcdir$ac_dir_suffix;
25067 ac_top_srcdir=$srcdir ;;
25068 *) # Relative path.
25069 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25070 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25071esac
25072
25073# Do not use `cd foo && pwd` to compute absolute paths, because
25074# the directories may not exist.
25075case `pwd` in
25076.) ac_abs_builddir="$ac_dir";;
25077*)
25078 case "$ac_dir" in
25079 .) ac_abs_builddir=`pwd`;;
25080 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25081 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25082 esac;;
25083esac
25084case $ac_abs_builddir in
25085.) ac_abs_top_builddir=${ac_top_builddir}.;;
25086*)
25087 case ${ac_top_builddir}. in
25088 .) ac_abs_top_builddir=$ac_abs_builddir;;
25089 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25090 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25091 esac;;
25092esac
25093case $ac_abs_builddir in
25094.) ac_abs_srcdir=$ac_srcdir;;
25095*)
25096 case $ac_srcdir in
25097 .) ac_abs_srcdir=$ac_abs_builddir;;
25098 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25099 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25100 esac;;
25101esac
25102case $ac_abs_builddir in
25103.) ac_abs_top_srcdir=$ac_top_srcdir;;
25104*)
25105 case $ac_top_srcdir in
25106 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25107 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25108 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25109 esac;;
25110esac
bec39cab 25111
bec39cab 25112
b4e70030
JB
25113 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25114echo "$as_me: executing $ac_dest commands" >&6;}
25115 case $ac_dest in
25116 gdb_stdint.h )
4e8d927d
DJ
25117if test "$GCC" = yes; then
25118 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
25119else
25120 echo "/* generated for $CC */" > tmp-stdint.h
25121fi
25122
25123sed 's/^ *//' >> tmp-stdint.h <<EOF
25124
25125 #ifndef GCC_GENERATED_STDINT_H
25126 #define GCC_GENERATED_STDINT_H 1
25127
25128 #include <sys/types.h>
25129EOF
25130
25131if test "$acx_cv_header_stdint" != stdint.h; then
25132 echo "#include <stddef.h>" >> tmp-stdint.h
25133fi
25134if test "$acx_cv_header_stdint" != stddef.h; then
25135 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
25136fi
25137
25138sed 's/^ *//' >> tmp-stdint.h <<EOF
25139 /* glibc uses these symbols as guards to prevent redefinitions. */
25140 #ifdef __int8_t_defined
25141 #define _INT8_T
25142 #define _INT16_T
25143 #define _INT32_T
25144 #endif
25145 #ifdef __uint32_t_defined
25146 #define _UINT32_T
25147 #endif
25148
25149EOF
25150
25151# ----------------- done header, emit basic int types -------------
25152if test "$acx_cv_header_stdint" = stddef.h; then
25153 sed 's/^ *//' >> tmp-stdint.h <<EOF
25154
25155 #ifndef _UINT8_T
25156 #define _UINT8_T
25157 typedef unsigned $acx_cv_type_int8_t uint8_t;
25158 #endif
25159
25160 #ifndef _UINT16_T
25161 #define _UINT16_T
25162 typedef unsigned $acx_cv_type_int16_t uint16_t;
25163 #endif
25164
25165 #ifndef _UINT32_T
25166 #define _UINT32_T
25167 typedef unsigned $acx_cv_type_int32_t uint32_t;
25168 #endif
25169
25170 #ifndef _INT8_T
25171 #define _INT8_T
25172 typedef $acx_cv_type_int8_t int8_t;
25173 #endif
25174
25175 #ifndef _INT16_T
25176 #define _INT16_T
25177 typedef $acx_cv_type_int16_t int16_t;
25178 #endif
25179
25180 #ifndef _INT32_T
25181 #define _INT32_T
25182 typedef $acx_cv_type_int32_t int32_t;
25183 #endif
25184EOF
25185elif test "$ac_cv_type_u_int32_t" = yes; then
25186 sed 's/^ *//' >> tmp-stdint.h <<EOF
25187
25188 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
25189 #ifndef _INT8_T
25190 #define _INT8_T
25191 #endif
25192 #ifndef _INT16_T
25193 #define _INT16_T
25194 #endif
25195 #ifndef _INT32_T
25196 #define _INT32_T
25197 #endif
25198
25199 #ifndef _UINT8_T
25200 #define _UINT8_T
25201 typedef u_int8_t uint8_t;
25202 #endif
25203
25204 #ifndef _UINT16_T
25205 #define _UINT16_T
25206 typedef u_int16_t uint16_t;
25207 #endif
25208
25209 #ifndef _UINT32_T
25210 #define _UINT32_T
25211 typedef u_int32_t uint32_t;
25212 #endif
25213EOF
25214else
25215 sed 's/^ *//' >> tmp-stdint.h <<EOF
25216
25217 /* Some systems have guard macros to prevent redefinitions, define them. */
25218 #ifndef _INT8_T
25219 #define _INT8_T
25220 #endif
25221 #ifndef _INT16_T
25222 #define _INT16_T
25223 #endif
25224 #ifndef _INT32_T
25225 #define _INT32_T
25226 #endif
25227 #ifndef _UINT8_T
25228 #define _UINT8_T
25229 #endif
25230 #ifndef _UINT16_T
25231 #define _UINT16_T
25232 #endif
25233 #ifndef _UINT32_T
25234 #define _UINT32_T
25235 #endif
25236EOF
25237fi
25238
25239# ------------- done basic int types, emit int64_t types ------------
25240if test "$ac_cv_type_uint64_t" = yes; then
25241 sed 's/^ *//' >> tmp-stdint.h <<EOF
25242
25243 /* system headers have good uint64_t and int64_t */
25244 #ifndef _INT64_T
25245 #define _INT64_T
25246 #endif
25247 #ifndef _UINT64_T
25248 #define _UINT64_T
25249 #endif
25250EOF
25251elif test "$ac_cv_type_u_int64_t" = yes; then
25252 sed 's/^ *//' >> tmp-stdint.h <<EOF
25253
25254 /* system headers have an u_int64_t (and int64_t) */
25255 #ifndef _INT64_T
25256 #define _INT64_T
25257 #endif
25258 #ifndef _UINT64_T
25259 #define _UINT64_T
25260 typedef u_int64_t uint64_t;
25261 #endif
25262EOF
25263elif test -n "$acx_cv_type_int64_t"; then
25264 sed 's/^ *//' >> tmp-stdint.h <<EOF
25265
25266 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
25267 #ifndef _INT64_T
25268 #define _INT64_T
25269 typedef $acx_cv_type_int64_t int64_t;
25270 #endif
25271 #ifndef _UINT64_T
25272 #define _UINT64_T
25273 typedef unsigned $acx_cv_type_int64_t uint64_t;
25274 #endif
25275EOF
25276else
25277 sed 's/^ *//' >> tmp-stdint.h <<EOF
25278
25279 /* some common heuristics for int64_t, using compiler-specific tests */
25280 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
25281 #ifndef _INT64_T
25282 #define _INT64_T
25283 typedef long long int64_t;
25284 #endif
25285 #ifndef _UINT64_T
25286 #define _UINT64_T
25287 typedef unsigned long long uint64_t;
25288 #endif
25289
25290 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
25291 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
25292 does not implement __extension__. But that compiler doesn't define
25293 __GNUC_MINOR__. */
25294 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
25295 # define __extension__
25296 # endif
25297
25298 # ifndef _INT64_T
25299 # define _INT64_T
25300 __extension__ typedef long long int64_t;
25301 # endif
25302 # ifndef _UINT64_T
25303 # define _UINT64_T
25304 __extension__ typedef unsigned long long uint64_t;
25305 # endif
25306
25307 #elif !defined __STRICT_ANSI__
25308 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
25309
25310 # ifndef _INT64_T
25311 # define _INT64_T
25312 typedef __int64 int64_t;
25313 # endif
25314 # ifndef _UINT64_T
25315 # define _UINT64_T
25316 typedef unsigned __int64 uint64_t;
25317 # endif
25318 # endif /* compiler */
25319
25320 #endif /* ANSI version */
25321EOF
25322fi
25323
25324# ------------- done int64_t types, emit intptr types ------------
25325if test "$ac_cv_type_uintptr_t" != yes; then
25326 sed 's/^ *//' >> tmp-stdint.h <<EOF
25327
25328 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
25329 typedef u$acx_cv_type_intptr_t uintptr_t;
25330 typedef $acx_cv_type_intptr_t intptr_t;
25331EOF
25332fi
25333
25334# ------------- done intptr types, emit int_least types ------------
25335if test "$ac_cv_type_int_least32_t" != yes; then
25336 sed 's/^ *//' >> tmp-stdint.h <<EOF
25337
25338 /* Define int_least types */
25339 typedef int8_t int_least8_t;
25340 typedef int16_t int_least16_t;
25341 typedef int32_t int_least32_t;
25342 #ifdef _INT64_T
25343 typedef int64_t int_least64_t;
25344 #endif
25345
25346 typedef uint8_t uint_least8_t;
25347 typedef uint16_t uint_least16_t;
25348 typedef uint32_t uint_least32_t;
25349 #ifdef _UINT64_T
25350 typedef uint64_t uint_least64_t;
25351 #endif
25352EOF
25353fi
25354
25355# ------------- done intptr types, emit int_fast types ------------
25356if test "$ac_cv_type_int_fast32_t" != yes; then
25357 sed 's/^ *//' >> tmp-stdint.h <<EOF
25358
25359 /* Define int_fast types. short is often slow */
25360 typedef int8_t int_fast8_t;
25361 typedef int int_fast16_t;
25362 typedef int32_t int_fast32_t;
25363 #ifdef _INT64_T
25364 typedef int64_t int_fast64_t;
25365 #endif
25366
25367 typedef uint8_t uint_fast8_t;
25368 typedef unsigned int uint_fast16_t;
25369 typedef uint32_t uint_fast32_t;
25370 #ifdef _UINT64_T
25371 typedef uint64_t uint_fast64_t;
25372 #endif
25373EOF
25374fi
25375
25376if test "$ac_cv_type_uintmax_t" != yes; then
25377 sed 's/^ *//' >> tmp-stdint.h <<EOF
25378
25379 /* Define intmax based on what we found */
25380 #ifdef _INT64_T
25381 typedef int64_t intmax_t;
25382 #else
25383 typedef long intmax_t;
25384 #endif
25385 #ifdef _UINT64_T
25386 typedef uint64_t uintmax_t;
25387 #else
25388 typedef unsigned long uintmax_t;
25389 #endif
25390EOF
25391fi
25392
25393sed 's/^ *//' >> tmp-stdint.h <<EOF
25394
25395 #endif /* GCC_GENERATED_STDINT_H */
25396EOF
25397
25398if test -r gdb_stdint.h && cmp -s tmp-stdint.h gdb_stdint.h; then
25399 rm -f tmp-stdint.h
25400else
25401 mv -f tmp-stdint.h gdb_stdint.h
bec39cab
AC
25402fi
25403
4e8d927d 25404 ;;
b4e70030 25405 default )
c906108c 25406
2c0fc042 25407sed -e '/^DEPRECATED_TM_FILE[ ]*=/s,^DEPRECATED_TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
c906108c
SS
25408/^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
25409/^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
25410mv -f Makefile.tmp Makefile
25411
2acceee2 25412
c906108c
SS
25413case x$CONFIG_HEADERS in
25414xconfig.h:config.in)
25415echo > stamp-h ;;
25416esac
bec39cab
AC
25417 ;;
25418 esac
b4e70030
JB
25419done
25420_ACEOF
c906108c 25421
b4e70030 25422cat >>$CONFIG_STATUS <<\_ACEOF
bec39cab
AC
25423
25424{ (exit 0); exit 0; }
25425_ACEOF
c906108c 25426chmod +x $CONFIG_STATUS
bec39cab
AC
25427ac_clean_files=$ac_clean_files_save
25428
25429
25430# configure is writing to config.log, and then calls config.status.
25431# config.status does its own redirection, appending to config.log.
25432# Unfortunately, on DOS this fails, as config.log is still kept open
25433# by configure, so config.status won't be able to write to it; its
25434# output is simply discarded. So we exec the FD to /dev/null,
25435# effectively closing config.log, so it can be properly (re)opened and
25436# appended to by config.status. When coming back to configure, we
25437# need to make the FD available again.
25438if test "$no_create" != yes; then
25439 ac_cs_success=:
25440 ac_config_status_args=
25441 test "$silent" = yes &&
25442 ac_config_status_args="$ac_config_status_args --quiet"
25443 exec 5>/dev/null
25444 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25445 exec 5>>config.log
25446 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25447 # would make configure fail if this is the last instruction.
25448 $ac_cs_success || { (exit 1); exit 1; }
25449fi
c906108c 25450
bec39cab
AC
25451#
25452# CONFIG_SUBDIRS section.
25453#
c906108c
SS
25454if test "$no_recursion" != yes; then
25455
25456 # Remove --cache-file and --srcdir arguments so they do not pile up.
25457 ac_sub_configure_args=
25458 ac_prev=
b4e70030 25459 for ac_arg in $ac_configure_args; do
c906108c
SS
25460 if test -n "$ac_prev"; then
25461 ac_prev=
25462 continue
25463 fi
bec39cab 25464 case $ac_arg in
c906108c
SS
25465 -cache-file | --cache-file | --cache-fil | --cache-fi \
25466 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25467 ac_prev=cache_file ;;
25468 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
bec39cab
AC
25469 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25470 | --c=*)
25471 ;;
25472 --config-cache | -C)
c906108c
SS
25473 ;;
25474 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25475 ac_prev=srcdir ;;
25476 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25477 ;;
bec39cab
AC
25478 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25479 ac_prev=prefix ;;
25480 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25481 ;;
b4e70030 25482 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
c906108c
SS
25483 esac
25484 done
25485
bec39cab
AC
25486 # Always prepend --prefix to ensure using the same prefix
25487 # in subdir configurations.
25488 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25489
b4e70030 25490 ac_popdir=`pwd`
bec39cab 25491 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
c906108c
SS
25492
25493 # Do not complain, so a configure script can configure whichever
25494 # parts of a large source tree are present.
bec39cab 25495 test -d $srcdir/$ac_dir || continue
c906108c 25496
b4e70030
JB
25497 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25498echo "$as_me: configuring in $ac_dir" >&6;}
25499 { if $as_mkdir_p; then
25500 mkdir -p "$ac_dir"
25501 else
25502 as_dir="$ac_dir"
bec39cab 25503 as_dirs=
b4e70030
JB
25504 while test ! -d "$as_dir"; do
25505 as_dirs="$as_dir $as_dirs"
25506 as_dir=`(dirname "$as_dir") 2>/dev/null ||
bec39cab
AC
25507$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25508 X"$as_dir" : 'X\(//\)[^/]' \| \
25509 X"$as_dir" : 'X\(//\)$' \| \
b4e70030
JB
25510 X"$as_dir" : 'X\(/\)' \| \
25511 . : '\(.\)' 2>/dev/null ||
bec39cab 25512echo X"$as_dir" |
b4e70030
JB
25513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25514 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25515 /^X\(\/\/\)$/{ s//\1/; q; }
25516 /^X\(\/\).*/{ s//\1/; q; }
25517 s/.*/./; q'`
bec39cab 25518 done
b4e70030
JB
25519 test ! -n "$as_dirs" || mkdir $as_dirs
25520 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25521echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
bec39cab 25522 { (exit 1); exit 1; }; }; }
b4e70030 25523
bec39cab
AC
25524 ac_builddir=.
25525
b4e70030 25526if test "$ac_dir" != .; then
bec39cab 25527 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
b4e70030
JB
25528 # A "../" for each directory in $ac_dir_suffix.
25529 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25530else
25531 ac_dir_suffix= ac_top_builddir=
25532fi
bec39cab
AC
25533
25534case $srcdir in
b4e70030 25535 .) # No --srcdir option. We are building in place.
bec39cab 25536 ac_srcdir=.
b4e70030
JB
25537 if test -z "$ac_top_builddir"; then
25538 ac_top_srcdir=.
25539 else
25540 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25541 fi ;;
25542 [\\/]* | ?:[\\/]* ) # Absolute path.
bec39cab 25543 ac_srcdir=$srcdir$ac_dir_suffix;
b4e70030
JB
25544 ac_top_srcdir=$srcdir ;;
25545 *) # Relative path.
25546 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25547 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25548esac
25549
25550# Do not use `cd foo && pwd` to compute absolute paths, because
25551# the directories may not exist.
25552case `pwd` in
25553.) ac_abs_builddir="$ac_dir";;
25554*)
25555 case "$ac_dir" in
25556 .) ac_abs_builddir=`pwd`;;
25557 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25558 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25559 esac;;
25560esac
25561case $ac_abs_builddir in
25562.) ac_abs_top_builddir=${ac_top_builddir}.;;
25563*)
25564 case ${ac_top_builddir}. in
25565 .) ac_abs_top_builddir=$ac_abs_builddir;;
25566 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25567 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25568 esac;;
25569esac
25570case $ac_abs_builddir in
25571.) ac_abs_srcdir=$ac_srcdir;;
25572*)
25573 case $ac_srcdir in
25574 .) ac_abs_srcdir=$ac_abs_builddir;;
25575 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25576 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25577 esac;;
25578esac
25579case $ac_abs_builddir in
25580.) ac_abs_top_srcdir=$ac_top_srcdir;;
25581*)
25582 case $ac_top_srcdir in
25583 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25584 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25585 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25586 esac;;
bec39cab 25587esac
c906108c 25588
c906108c 25589
b4e70030 25590 cd $ac_dir
c906108c
SS
25591
25592 # Check for guested configure; otherwise get Cygnus style configure.
bec39cab
AC
25593 if test -f $ac_srcdir/configure.gnu; then
25594 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25595 elif test -f $ac_srcdir/configure; then
25596 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25597 elif test -f $ac_srcdir/configure.in; then
c906108c
SS
25598 ac_sub_configure=$ac_configure
25599 else
bec39cab
AC
25600 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25601echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
c906108c
SS
25602 ac_sub_configure=
25603 fi
25604
25605 # The recursion is here.
25606 if test -n "$ac_sub_configure"; then
c906108c 25607 # Make the cache file name correct relative to the subdirectory.
bec39cab
AC
25608 case $cache_file in
25609 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
b4e70030
JB
25610 *) # Relative path.
25611 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
c906108c 25612 esac
c906108c 25613
bec39cab
AC
25614 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25615echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
c906108c 25616 # The eval makes quoting arguments work.
b4e70030
JB
25617 eval $ac_sub_configure $ac_sub_configure_args \
25618 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
bec39cab
AC
25619 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25620echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25621 { (exit 1); exit 1; }; }
c906108c
SS
25622 fi
25623
b4e70030 25624 cd $ac_popdir
c906108c
SS
25625 done
25626fi
25627
25628
25629exit 0
This page took 2.087462 seconds and 4 git commands to generate.